/* ==========================================================================
   安静家官网 · 公共样式（设计变量 / 重置 / 通用组件）
   主题色：橙红，取自 App 图标
   ========================================================================== */

:root {
    --brand: #ff5a1f;
    --brand-deep: #e23d0e;
    --brand-light: #ff8a4c;
    --brand-grad: linear-gradient(135deg, #ff7a2f 0%, #f0440f 100%);
    --brand-soft: #fff3ec;
    --text: #1f2329;
    --text-2: #6b7280;
    --text-3: #9aa1ac;
    --line: #eef0f3;
    --bg: #f7f8fa;
    --white: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(31, 35, 41, 0.06);
    --shadow-lg: 0 14px 40px rgba(226, 61, 14, 0.14);
    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

/* 项目中链接一律不带下划线 */
a:hover {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 区块标题 -------------------------------------------------------------- */
.section {
    padding: 72px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--brand);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-head h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--brand-grad);
    margin: 14px auto 0;
}

.section-head p {
    margin-top: 14px;
    color: var(--text-2);
}

/* 按钮 ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-grad);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(240, 68, 15, 0.24);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(240, 68, 15, 0.3);
}

.btn-outline {
    background: #fff;
    color: var(--brand);
    border: 1px solid rgba(255, 90, 31, 0.4);
    box-shadow: none;
}

.btn-outline:hover {
    box-shadow: 0 8px 20px rgba(240, 68, 15, 0.12);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 提示条 ---------------------------------------------------------------- */
.aj-flash {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
}

.aj-flash.is-success {
    background: #eaf9f0;
    color: #14874a;
    border: 1px solid #c6ecd8;
}

.aj-flash.is-error {
    background: #fdeceb;
    color: #c0392b;
    border: 1px solid #f7cfcb;
}

/* 表单 ------------------------------------------------------------------ */
.aj-field {
    margin-bottom: 16px;
}

.aj-field > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.aj-field > label .req {
    color: var(--brand);
    margin-left: 2px;
}

.aj-input,
.aj-textarea,
.aj-select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.aj-input:focus,
.aj-textarea:focus,
.aj-select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.16);
}

.aj-textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.7;
}

.aj-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.aj-field-tip {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 6px;
}

/* 空状态 ---------------------------------------------------------------- */
.aj-empty {
    text-align: center;
    color: var(--text-3);
    padding: 48px 16px;
    font-size: 14px;
}

/* 富文本正文（后台富文本内容统一排版） ---------------------------------- */
.aj-rich {
    color: #33383f;
    font-size: 16px;
    line-height: 1.9;
    word-break: break-word;
}

.aj-rich p {
    margin: 0 0 16px;
}

.aj-rich img {
    margin: 18px auto;
    border-radius: var(--radius);
}

.aj-rich h1,
.aj-rich h2,
.aj-rich h3,
.aj-rich h4 {
    margin: 26px 0 14px;
    line-height: 1.5;
}

.aj-rich h1 { font-size: 26px; }
.aj-rich h2 { font-size: 22px; }
.aj-rich h3 { font-size: 19px; }

.aj-rich ul,
.aj-rich ol {
    padding-left: 22px;
    margin: 0 0 16px;
}

.aj-rich li {
    margin-bottom: 6px;
}

.aj-rich table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
}

.aj-rich table td,
.aj-rich table th {
    border: 1px solid var(--line);
    padding: 10px 12px;
}

.aj-rich blockquote {
    border-left: 4px solid var(--brand-light);
    background: var(--brand-soft);
    padding: 12px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0 0 16px;
    color: #6a452f;
}

/* 分享（微信引导蒙层 + 轻提示） ----------------------------------------- */
.aj-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    max-width: 70%;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.aj-toast.is-show {
    opacity: 1;
}

.aj-share-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

.aj-share-mask .aj-share-arrow {
    position: absolute;
    top: 8px;
    right: 14px;
    width: 96px;
    height: 96px;
}

.aj-share-mask .aj-share-tip {
    position: absolute;
    top: 118px;
    right: 22px;
    max-width: 74%;
    text-align: right;
    font-size: 16px;
    line-height: 1.9;
}

.aj-share-mask .aj-share-tip b {
    color: #ffd08a;
    font-weight: 600;
}

.aj-share-mask .aj-share-close {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    padding: 8px 26px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}
