/* ============================================================
   新程相伴 · 新生互助帮扶平台 用户前端
   独立品牌样式 v2（暖橙 · 青春治愈 · 干净清爽 · 圆润亲和）
   设计系统：Soft Rounded 字体配对（Nunito Sans + Varela Round）
   品牌色：暖橙 #FF9A5C + 薄荷绿 #A8E6CF（产品文档第六章）
   ============================================================ */

:root {
    /* ---- 品牌色阶（暖橙为主，薄荷绿为辅） ---- */
    --primary-50:  #FFF7EF;
    --primary-100: #FFEFE0;
    --primary-200: #FFE0C4;
    --primary:     #FF9A5C;   /* 主色 暖橙 */
    --primary-deep:#F07C3A;   /* 主色加深 hover/强调 */
    --primary-ink: #D96A28;   /* 主色文字深色 */
    --primary-soft:#FFF0E4;

    --accent-100: #E9FBF3;
    --accent:     #A8E6CF;   /* 辅助色 薄荷绿 */
    --accent-deep:#4FB98A;   /* 薄荷绿加深 */
    --accent-ink: #2F6B55;

    --bg:      #FFFAF3;
    --bg-soft: #FFF4E8;
    --card:    #FFFFFF;
    --surface: #FFFDFB;

    --text-main:  #2E2A26;   /* 正文（略深，保证对比度） */
    --text-body:  #4A443E;   /* 正文次级 */
    --text-sub:   #8A7F75;   /* 辅助文字（>4.5:1 于浅底） */
    --text-faint: #B5AAA0;

    --border:        #F3E9DC;
    --border-strong: #E8D9C8;

    --radius-s: 10px;
    --radius-m: 14px;
    --radius-l: 18px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --shadow-xs: 0 2px 8px rgba(51, 51, 51, 0.04);
    --shadow-sm: 0 4px 18px rgba(51, 51, 51, 0.06);
    --shadow-md: 0 10px 28px rgba(255, 154, 92, 0.14);
    --shadow-lg: 0 18px 44px rgba(255, 154, 92, 0.18);

    --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    --font-head: 'Varela Round', 'Nunito Sans', "PingFang SC", "Microsoft Yahei", sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 全局焦点可见（可访问性 CRITICAL） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(255, 154, 92, 0.55);
    outline-offset: 2px;
    border-radius: 6px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏（固定顶部，毛玻璃） ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 250, 243, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255, 154, 92, 0.14);
    transition: box-shadow .25s ease;
}
.site-nav.scrolled {
    box-shadow: 0 4px 20px rgba(255, 154, 92, 0.12);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-deep);
    font-family: var(--font-head);
    letter-spacing: .3px;
}
.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 3px 8px rgba(255, 154, 92, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform .25s var(--ease-out);
}
.brand-badge svg {
    width: 24px;
    height: 24px;
    color: #fff;
    /* 图标描边加一层半透明底，增强层次 */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}
.nav-brand:hover .brand-badge { transform: rotate(-6deg) scale(1.06); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-main);
    transition: background .2s ease, color .2s ease;
}
/* 普通导航项 hover（不作用于 CTA 按钮，避免干扰） */
.nav-links li:not(.nav-cta) a:hover { background: var(--primary-soft); color: var(--primary-deep); }
.nav-links li a.active { color: var(--primary-deep); font-weight: 600; }
.nav-cta a {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(255, 154, 92, 0.35);
}
/* CTA hover 用更高特异性覆盖普通 hover，保持渐变背景 */
.nav-links .nav-cta a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 154, 92, 0.42);
}
.nav-cta a:active { transform: scale(0.97); }

/* 汉堡按钮 */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    transition: background .2s ease;
}
.nav-toggle:hover { background: var(--primary-soft); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero / Banner 区 ===== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 154, 92, 0.20) 0, transparent 44%),
        radial-gradient(circle at 90% 10%, rgba(168, 230, 207, 0.34) 0, transparent 42%),
        radial-gradient(circle at 60% 100%, rgba(255, 224, 196, 0.5) 0, transparent 40%),
        linear-gradient(180deg, #FFF4E8 0%, var(--bg) 100%);
    padding: 68px 0 72px;
}
/* 漂浮装饰光斑 */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .6;
    pointer-events: none;
}
.hero::before {
    width: 120px; height: 120px;
    top: 20%; left: 5%;
    background: radial-gradient(circle, rgba(168,230,207,.7), transparent 70%);
}
.hero::after {
    width: 90px; height: 90px;
    top: 28%; right: 6%;
    background: radial-gradient(circle, rgba(255,154,92,.6), transparent 70%);
}

/* 分栏布局 */
.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.hero-copy { text-align: left; position: relative; z-index: 2; }

/* 社交证明条 */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 154, 92, 0.22);
}
.proof-avatars { display: flex; }
.avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #fff;
    margin-left: -8px;
    box-shadow: 0 2px 6px rgba(255, 154, 92, 0.3);
}
.avatar:first-child { margin-left: 0; }
.avatar:nth-child(2) { background: linear-gradient(135deg, #F59E0B, #F07C3A); }
.avatar:nth-child(3) { background: linear-gradient(135deg, #4FB98A, #A8E6CF); }
.avatar:nth-child(4) { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.avatar.plus { background: var(--accent-deep); }
.proof-text { font-size: 13px; color: var(--text-body); line-height: 1.5; }
.proof-text strong { color: var(--primary-deep); font-size: 15px; }

/* 右侧漂浮视觉 */
.hero-visual {
    position: relative;
    min-height: 380px;
    z-index: 1;
}
.float-card {
    position: absolute;
    background: var(--card);
    border-radius: var(--radius-l);
    padding: 18px 20px;
    box-shadow: 0 16px 40px rgba(255, 154, 92, 0.16);
    border: 1px solid var(--primary-100);
    max-width: 260px;
    animation: floatY 6s ease-in-out infinite;
}
.float-card p { font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 8px; }
.fc-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    padding: 2px 9px;
    border-radius: var(--radius-full);
    margin-bottom: 9px;
}
.fc-badge.green { background: linear-gradient(135deg, #4FB98A, #A8E6CF); }
.fc-badge.mint { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.fc-author { font-size: 12px; color: var(--text-sub); }
.fc-1 { top: 8%; left: 0; animation-delay: 0s; z-index: 3; }
.fc-2 { top: 40%; right: 0; animation-delay: 1.5s; z-index: 2; }
.fc-3 { bottom: 2%; left: 12%; animation-delay: 3s; z-index: 1; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.float-orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 154, 92, 0.35);
    pointer-events: none;
}
.float-orbit.o1 { width: 300px; height: 300px; top: 10%; right: 6%; }
.float-orbit.o2 { width: 220px; height: 220px; bottom: 4%; left: 0; border-color: rgba(168,230,207,.5); }
.float-emoji {
    position: absolute;
    width: 46px; height: 46px;
    background: var(--card);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(255, 154, 92, 0.18);
    animation: floatY 5s ease-in-out infinite;
}
.float-emoji.e1 { top: 2%; right: 24%; animation-delay: 1s; }
.float-emoji.e2 { top: 34%; left: -2%; animation-delay: 2.2s; }
.float-emoji.e3 { bottom: 8%; right: 8%; animation-delay: .5s; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    background: var(--card);
    color: var(--primary-ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--primary-200);
    margin-bottom: 24px;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--primary-deep); }
.hero h1 {
    font-family: var(--font-head);
    font-size: 46px;
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 24px;
    color: var(--text-main);
}
.hero h1 .accent {
    color: var(--primary-deep);
    position: relative;
    white-space: nowrap;
    background: linear-gradient(120deg, transparent 0%, transparent 7%, rgba(255, 154, 92, 0.22) 7%, rgba(255, 154, 92, 0.22) 93%, transparent 93%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 96%;
    border-radius: 2px;
    padding: 0 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto 0;
    line-height: 1.75;
}
.hero-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
/* 分栏 hero（index）时左对齐 + 清晰的垂直呼吸 */
.hero:has(.hero-layout) .hero-sub { margin: 0 0 0; }
.hero:has(.hero-layout) .hero-actions {
    justify-content: flex-start;
    margin-top: 34px;
}
.hero:has(.hero-layout) .hero-badge { margin-bottom: 26px; }
.hero:has(.hero-layout) .hero h1 { font-size: 42px; }
.hero:has(.hero-layout) .hero h1 .accent { white-space: normal; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 30px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s var(--ease-out), box-shadow .2s ease, filter .2s ease;
}
.hero-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 154, 92, 0.4);
}
.hero-btn-primary:hover { filter: brightness(1.05); transform: translateY(-2px); }
.hero-btn-primary:active { transform: scale(0.98); }
.hero-btn-ghost {
    background: var(--card);
    color: var(--primary-ink);
    border: 1.5px solid var(--primary-200);
    box-shadow: var(--shadow-xs);
}
.hero-btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.hero-btn-ghost:active { transform: scale(0.98); }

/* ===== 板块介绍区 ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--card); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-ink);
    background: var(--primary-soft);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: .5px;
}
.section-lead { color: var(--text-body); font-size: 16px; max-width: 640px; margin: 0 auto; line-height: 1.8; }

/* 「查看全部」入口 */
.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary-200);
    background: var(--card);
    color: var(--primary-deep);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
    transition: all .2s var(--ease-out);
}
.section-more-link svg { width: 16px; height: 16px; }
.section-more-link:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.section-more-link:active { transform: scale(0.97); }

/* 全部内容页统计 */
.all-count {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-body);
}
.all-count strong { color: var(--primary-deep); font-size: 16px; }

/* ===== 联系我们页 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform .22s var(--ease-out), box-shadow .22s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 18px; }
.contact-ico {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ci, var(--primary));
    box-shadow: 0 5px 14px rgba(255, 154, 92, 0.3);
    margin-bottom: 14px;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-family: var(--font-head); font-size: 17px; margin-bottom: 6px; color: var(--text-main); }
.contact-card p { font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 10px; }
.contact-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deep);
    word-break: break-all;
}
a.contact-value:hover { text-decoration: underline; }
.contact-body { flex: 1; }
.contact-body .contact-ico { margin-bottom: 0; }
@media (max-width: 1023px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wide { grid-column: span 2; }
}
@media (max-width: 767px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
    .contact-card { padding: 24px 20px; }
}

/* 「加载更多」 */
.load-more { text-align: center; margin-top: 30px; }
.load-more-btn {
    min-height: 48px;
    padding: 0 40px;
    border: 1.5px solid var(--primary-200);
    border-radius: var(--radius-full);
    background: var(--card);
    color: var(--primary-deep);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all .2s var(--ease-out);
}
.load-more-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.load-more-btn:active { transform: scale(0.96); }
.load-more-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== 价值主张 Bento 区 ===== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 8px;
}
.value-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease-out), box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}
.vc-ico {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--vi, var(--primary));
    box-shadow: 0 5px 14px rgba(255, 154, 92, 0.3);
    margin-bottom: 16px;
    transition: transform .25s var(--ease-out);
}
.vc-ico svg { width: 22px; height: 22px; }
.value-card:hover .vc-ico { transform: scale(1.1) rotate(-4deg); }
.value-card h3 { font-family: var(--font-head); font-size: 17px; margin-bottom: 8px; color: var(--text-main); }
.value-card p { font-size: 14px; color: var(--text-body); line-height: 1.75; }
/* 宽卡：横跨两列 */
.vc-update { grid-column: span 2; display: flex; align-items: center; gap: 18px; }
.vc-update .vc-ico { margin-bottom: 0; flex-shrink: 0; }
.vc-update-body { flex: 1; }
.vc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(255, 154, 92, 0.35);
    transition: transform .2s var(--ease-out), filter .2s ease;
}
.vc-link svg { width: 16px; height: 16px; }
.vc-link:hover { transform: translateY(-2px); filter: brightness(1.06); }
.vc-link:active { transform: scale(0.97); }
@media (max-width: 1023px) {
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .vc-update { grid-column: span 2; flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .value-grid { grid-template-columns: 1fr; }
    .vc-update { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}

/* ===== 场景入口卡片（标签筛选，铺开展示、自动换行） ===== */
.tag-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;              /* 自动换行铺开，不横向滚动 */
    justify-content: center;      /* 居中排列 */
    padding: 6px 0 14px;
}
.tag-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 20px 10px 12px;
    border: 1.5px solid var(--border-strong);
    background: var(--card);
    border-radius: var(--radius-m);
    font-size: 15px;
    color: var(--text-main);
    cursor: pointer;
    transition: all .22s var(--ease-out);
    font-family: inherit;
    position: relative;
    box-shadow: var(--shadow-xs);
}
.tag-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.tag-btn:active { transform: scale(0.97); }
.tag-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 154, 92, 0.4);
}
.tag-ico {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ti, var(--primary));
    box-shadow: 0 3px 8px rgba(255, 154, 92, 0.25);
    transition: transform .22s var(--ease-out);
}
.tag-ico svg { width: 20px; height: 20px; }
.tag-btn.active .tag-ico { transform: scale(1.08); }
.tag-btn.active .tag-ico { background: rgba(255,255,255,.22); }
.tag-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; text-align: left; }
.tag-txt strong { font-size: 15px; font-weight: 700; }
.tag-txt small { font-size: 11.5px; opacity: .78; margin-top: 2px; }
.tag-btn.active .tag-txt small { opacity: .92; }

/* ===== Bento 卡片展示区 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding-top: 8px;
}
/* 特色卡：首卡跨两列，突出展示 */
.testimonial-card.featured { grid-column: span 2; }
.testimonial-card.featured .card-content { font-size: 16px; }
@media (max-width: 1023px) {
    .testimonial-card.featured { grid-column: span 2; }
}
@media (max-width: 767px) {
    .testimonial-card.featured { grid-column: span 1; }
}
.testimonial-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 24px 22px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease-out), box-shadow .22s ease, border-color .22s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 卡片作为 <a> 链接时的默认样式重置 */
    text-decoration: none;
    color: inherit;
}
/* 卡片顶部渐变装饰条 */
.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-deep), var(--accent));
    opacity: 0;
    transition: opacity .22s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}
.testimonial-card:hover::before { opacity: 1; }
/* 特色卡热门角标 */
.featured-badge {
    position: absolute;
    top: 14px; right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    padding: 4px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(255, 154, 92, 0.4);
    z-index: 2;
}
.featured-badge svg { width: 13px; height: 13px; }
.card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}
.grade-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    padding: 3px 11px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(255, 154, 92, 0.3);
}
.grade-badge.senior {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 2px 6px rgba(79, 185, 138, 0.3);
}
.card-nickname { font-size: 15px; font-weight: 700; color: var(--text-main); font-family: var(--font-head); }
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 13px;
}
.tag-chip {
    font-size: 12px;
    color: var(--primary-ink);
    background: var(--primary-50);
    padding: 3px 11px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-100);
}
.card-content {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.85;
    flex: 1;
}
.card-content.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Markdown 渲染内容样式 */
.card-content .md-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 8px 0;
    box-shadow: var(--shadow-xs);
}
.card-content.collapsed .md-img { display: none; }
.card-content .md-link { color: var(--primary-deep); text-decoration: underline; word-break: break-all; }
.card-content p { margin-bottom: 6px; }
.card-content p:last-child { margin-bottom: 0; }
.card-content h1, .card-content h2, .card-content h3,
.card-content h4, .card-content h5, .card-content h6 {
    font-family: var(--font-head);
    color: var(--text-main);
    margin: 10px 0 6px;
    line-height: 1.4;
}
.card-content h1 { font-size: 19px; }
.card-content h2 { font-size: 17px; }
.card-content h3 { font-size: 16px; }
.card-content ul, .card-content ol { padding-left: 20px; margin: 6px 0; }
.card-content li { margin-bottom: 4px; }
.card-content blockquote {
    border-left: 3px solid var(--primary);
    background: var(--primary-50);
    padding: 8px 14px;
    border-radius: 0 8px 8px 0;
    margin: 8px 0;
    color: var(--text-body);
}
.card-content code {
    background: var(--primary-100);
    color: var(--primary-ink);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 13px;
}
.card-content pre {
    background: #2E2A26;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 13px;
}
.card-content pre code { background: transparent; color: inherit; padding: 0; }
.card-content strong { color: var(--text-main); }
.card-content .attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-100);
    color: var(--accent-ink);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    margin: 4px 4px 4px 0;
    font-size: 13px;
}
.card-content .attachment-chip svg { width: 15px; height: 15px; }
.expand-btn {
    align-self: flex-start;
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--primary-deep);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    padding: 0 8px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .2s ease, transform .2s var(--ease-out);
}
.expand-btn:hover { color: var(--primary-ink); transform: translateX(2px); }
.card-footer {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed var(--border-strong);
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.card-footer time { color: var(--text-sub); }
.card-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-sub);
    font-size: 12.5px;
}
.card-views svg { width: 14px; height: 14px; color: var(--primary); }

/* 卡片淡入过渡 */
.card-enter { animation: fadeIn .45s var(--ease-out) both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 0;
    color: var(--text-sub);
    font-size: 16px;
}
.empty-state .empty-illustration {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
}
.empty-state .empty-illustration svg { width: 30px; height: 30px; }
.empty-state p { margin-bottom: 22px; }
/* 缺省空状态：场景插图层 */
.empty-scene {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
}
.empty-scene .empty-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), #fff4e8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
    box-shadow: 0 8px 24px rgba(255, 154, 92, 0.18);
}
.empty-scene .empty-illustration svg { width: 36px; height: 36px; }
/* 漂浮气泡装饰 */
.empty-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(168, 230, 207, 0.55);
    animation: emptyFloat 3.6s ease-in-out infinite;
}
.empty-bubble.b1 { width: 12px; height: 12px; top: 4px; left: 10px; }
.empty-bubble.b2 { width: 8px; height: 8px; top: 18px; right: 8px; background: rgba(255, 154, 92, 0.5); animation-delay: .6s; }
.empty-bubble.b3 { width: 6px; height: 6px; bottom: 8px; left: 14px; animation-delay: 1.1s; }
/* 漂浮爱心与星星 */
.empty-float {
    position: absolute;
    color: var(--primary);
    animation: emptyFloat 4.2s ease-in-out infinite;
}
.empty-float svg { width: 100%; height: 100%; }
.empty-heart {
    width: 18px; height: 18px;
    top: -2px; right: 12px;
    color: #f590b0;
    animation-delay: .3s;
}
.empty-star {
    width: 14px; height: 14px;
    bottom: 2px; right: 4px;
    color: #f5b041;
    animation-delay: .9s;
}
@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.empty-title {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}
.empty-desc {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto 20px !important;
}
/* 分类快捷引导 */
.empty-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.empty-guide-label {
    font-size: 13px;
    color: var(--text-sub);
    margin-right: 2px;
}
.empty-guide-tag {
    min-height: 34px;
    padding: 0 15px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s var(--ease-out);
}
.empty-guide-tag:hover {
    border-color: var(--primary);
    color: var(--primary-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.empty-guide-tag:active { transform: scale(0.96); }
.empty-btn svg { width: 16px; height: 16px; }
/* 错误状态（加载失败） */
.error-state .empty-illustration {
    background: linear-gradient(135deg, #fdecec, #fff4f0);
    color: #e05252;
    box-shadow: 0 8px 24px rgba(224, 82, 82, 0.15);
}
@media (max-width: 767px) {
    .empty-title { font-size: 17px; }
    .empty-desc { font-size: 14px; }
    .empty-guide { gap: 6px; }
    .empty-guide-tag { min-height: 32px; padding: 0 12px; }
}
.empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.empty-btn {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary-200);
    background: var(--card);
    color: var(--primary-deep);
    font-size: 14px;
    font-weight: 700;
    transition: all .2s var(--ease-out);
}
.empty-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.empty-btn:active { transform: scale(0.97); }
.empty-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 154, 92, 0.35);
}
.empty-btn.primary:hover { filter: brightness(1.06); }

/* 骨架屏（加载态，保持布局稳定避免 CLS） */
.skeleton-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 24px 22px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 200px;
}
.skeleton-card .sk {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--bg) 25%, var(--primary-100) 37%, var(--bg) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
.skeleton-card .sk:first-child { height: 20px; width: 40%; }
@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ===== 页脚 ===== */
.site-footer {
    background:
        radial-gradient(circle at 85% 20%, rgba(168, 230, 207, 0.18) 0, transparent 42%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    border-top: 1px solid var(--primary-100);
    padding: 46px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 34px;
}
.footer-brand .nav-brand { font-size: 19px; margin-bottom: 14px; }
.footer-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    max-width: 320px;
    margin-top: 6px;
}
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 24px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-deep));
}
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--text-body);
    font-size: 14px;
    transition: color .2s ease, transform .2s var(--ease-out);
}
.footer-col li a:hover { color: var(--primary-deep); transform: translateX(3px); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-sub);
}
.footer-beian { font-size: 12.5px; color: var(--text-faint); }

/* ===== 响应式适配 ===== */
@media (max-width: 1023px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-layout { grid-template-columns: 1fr; gap: 56px; }
    .hero-copy { text-align: center; }
    .hero:has(.hero-layout) .hero-actions { justify-content: center; }
    .hero:has(.hero-layout) .hero-proof { justify-content: center; }
    .hero-visual { min-height: 360px; }
}
@media (max-width: 767px) {
    .card-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 33px; }
    .hero { padding: 48px 0 40px; }
    .hero-sub { font-size: 16px; }
    .section-header h2 { font-size: 26px; }
    .tag-filter { justify-content: flex-start; }
    .hero:has(.hero-layout) .hero h1 { font-size: 32px; }
    .hero-visual { min-height: 320px; margin-top: -8px; }
    .float-card { max-width: 220px; padding: 14px 16px; }
    .fc-2 { right: 2%; }
    .float-orbit.o1 { width: 240px; height: 240px; }
    .hero-proof { flex-direction: column; text-align: center; gap: 12px; }

    /* 移动端导航折叠 */
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 18px;
        gap: 4px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform .25s ease, opacity .25s ease, visibility .25s;
        box-shadow: 0 12px 24px rgba(255, 154, 92, 0.08);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li a { width: 100%; justify-content: center; }
    .nav-cta a { margin-top: 6px; }
}

/* 减少动态偏好（可访问性） */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .card-enter { animation: none !important; }
}

/* ===== 采集表单页 ===== */
.form-notice {
    background: linear-gradient(135deg, var(--primary-50), var(--card));
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-l);
    padding: 22px 24px;
    margin-bottom: 28px;
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}
.form-notice p { font-size: 15px; margin-bottom: 10px; line-height: 1.8; color: var(--text-body); }
.form-notice ul { margin-left: 4px; }
.form-notice li { font-size: 14px; color: var(--text-body); margin-bottom: 7px; line-height: 1.7; display: flex; align-items: flex-start; gap: 8px; }
.form-notice .notice-check {
    flex-shrink: 0;
    width: 17px; height: 17px;
    margin-top: 3px;
    color: var(--accent-deep);
    background: var(--accent-100);
    border-radius: 5px;
    padding: 2px;
}

.apply-form {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-field { margin-bottom: 26px; }
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: var(--font-head);
}
.form-label em { color: var(--primary-deep); font-style: normal; }
.form-label .muted { font-size: 13px; color: var(--text-sub); font-weight: 400; font-family: var(--font-body); }

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 12px 15px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-m);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    background: var(--surface);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:hover { border-color: var(--primary-200); }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(255, 154, 92, 0.16);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-control::placeholder { color: var(--text-faint); }
select.form-control { appearance: auto; cursor: pointer; }

/* ===== Markdown 编辑器 ===== */
.md-editor {
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-m);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.md-editor:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 154, 92, 0.16);
}
.md-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.md-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--card);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s var(--ease-out);
}
.md-btn svg { width: 17px; height: 17px; }
.md-btn:hover {
    border-color: var(--primary);
    color: var(--primary-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}
.md-btn:active { transform: scale(0.96); }
.md-toolbar-sep {
    width: 1px;
    height: 22px;
    background: var(--border-strong);
    margin: 0 4px;
}
/* AI 润色按钮：胶囊渐变 + sparkle 光效，突出 AI 能力 */
.polish-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #8b5cf6, #f07c3a);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .2s var(--ease-out), box-shadow .25s ease, filter .2s ease;
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.28);
}
.polish-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.polish-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 7px 20px rgba(139, 92, 246, 0.35);
}
.polish-btn:hover::after { left: 120%; }
.polish-btn:active { transform: scale(0.96); }
.polish-btn:disabled { pointer-events: none; opacity: .85; }
.polish-btn .polish-spark { width: 16px; height: 16px; }
.polish-btn .md-btn-spin { width: 15px; height: 15px; }
.md-btn-spin {
    animation: mdSpin .8s linear infinite;
}
@keyframes mdSpin {
    to { transform: rotate(360deg); }
}
/* AI 润色操作条（置于编辑器上方） */
.polish-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.polish-bar-tip {
    font-size: 12.5px;
    color: var(--text-sub);
}
/* Vditor 编辑器容器适配现有表单样式 */
#content {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-m);
    overflow: hidden;
}
#content:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 154, 92, 0.14);
}
#content .vditor {
    border: none;
    border-radius: 0;
}
#content .vditor .vditor-toolbar {
    border-bottom: 1px solid var(--border);
}
/* ===== Vditor 内容中的图片与附件样式（突出展示） ===== */
/* 图片：圆角、最大宽度、柔和阴影 */
.vditor-reset img,
#content .vditor .vditor-reset img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.12);
    margin: 8px 0;
}
/* 附件链接：按 OSS 附件 URL 特征识别，渲染成醒目胶囊卡片 */
.vditor-reset a[href*="content-attachment"],
#content .vditor .vditor-reset a[href*="content-attachment"],
.detail-body a[href*="content-attachment"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 4px 2px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(59, 130, 246, 0.04));
    border: 1.5px solid rgba(59, 130, 246, 0.35);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
    vertical-align: middle;
}
.vditor-reset a[href*="content-attachment"]::before,
#content .vditor .vditor-reset a[href*="content-attachment"]::before,
.detail-body a[href*="content-attachment"]::before {
    content: "⬇";
    font-size: 15px;
    flex-shrink: 0;
}
.vditor-reset a[href*="content-attachment"]:hover,
#content .vditor .vditor-reset a[href*="content-attachment"]:hover,
.detail-body a[href*="content-attachment"]:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.10));
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
    color: #1e40af;
}
/* 内容区底部：字数 + 撤销润色 */
.content-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.polish-undo {
    display: none;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--primary-deep);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    font-family: inherit;
    transition: opacity .2s ease;
}
.polish-undo:hover { opacity: .75; text-decoration: underline; }
.polish-undo svg { width: 14px; height: 14px; }
.md-toolbar-tip { font-size: 12px; color: var(--text-sub); margin-left: auto; }
.md-textarea {
    border: none;
    border-radius: 0;
    background: var(--card);
    min-height: 150px;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    line-height: 1.8;
    resize: vertical;
}
.md-textarea:focus { outline: none; box-shadow: none; }
@media (max-width: 767px) {
    .md-toolbar-tip { display: none; }
    .md-btn { padding: 0 12px; }
}

.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.check-item {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
    transition: all .22s var(--ease-out);
    background: var(--surface);
    user-select: none;
}
.check-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.check-item:active { transform: scale(0.96); }
.check-item input { display: none; }
.check-item:has(input:checked) {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-50));
    border-color: var(--primary);
    color: var(--primary-ink);
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(255, 154, 92, 0.18);
}

.form-error { font-size: 13px; color: #D8402C; margin-top: 8px; min-height: 18px; display: none; }
.form-error.show { display: flex; align-items: center; gap: 5px; }
.form-control.invalid { border-color: #D8402C; box-shadow: 0 0 0 4px rgba(216, 64, 44, 0.12); }

.char-count { text-align: right; font-size: 13px; color: var(--text-sub); margin-top: 7px; }

.form-actions { margin-top: 10px; }
.submit-btn {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: var(--radius-m);
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-head);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 154, 92, 0.4);
    transition: filter .2s ease, transform .15s var(--ease-out), box-shadow .2s ease;
}
.submit-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 154, 92, 0.45); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.submit-tip { text-align: center; font-size: 15px; margin-top: 16px; min-height: 24px; font-weight: 600; }
.submit-tip.success { color: #1E9E63; }
.submit-tip.error { color: #D8402C; }

/* ===== Toast 弹窗提示（顶部居中浮出） ===== */
.app-toast-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: auto;
    max-width: calc(100vw - 40px);
}
.app-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.18), 0 2px 8px rgba(30, 41, 59, 0.08);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
    transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
    pointer-events: auto;
}
.app-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.app-toast-ico {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-toast-ico svg { width: 13px; height: 13px; }
.app-toast.success .app-toast-ico { background: rgba(30, 158, 99, 0.15); color: #1E9E63; }
.app-toast.success { color: #1E9E63; }
.app-toast.error .app-toast-ico { background: rgba(216, 64, 44, 0.14); color: #D8402C; }
.app-toast.error { color: #D8402C; }
.app-toast.info .app-toast-ico { background: rgba(59, 130, 246, 0.14); color: #3b82f6; }
.app-toast.info { color: var(--text-main); }
@media (max-width: 767px) {
    .app-toast { width: auto; max-width: calc(100vw - 40px); padding: 11px 16px; font-size: 14px; }
}

/* 采集表单页 hero 标题（替代内联样式，便于移动端覆盖） */
.hero-title-form { font-size: 32px; }

@media (max-width: 767px) {
    .apply-form { padding: 22px; }
    .submit-btn { font-size: 16px; }
}

/* ============================================================
   移动端深度适配（增强块）
   ============================================================ */

/* 消除移动端点击高亮闪烁 */
* { -webkit-tap-highlight-color: transparent; }

/* 安全区适配：底部栏/表单底部留出 iPhone 底部手势条空间 */
@supports (padding: max(0px)) {
    .site-footer { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
    .apply-form { padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px)); }
}

/* 768-480px：平板横屏至大屏手机 */
@media (max-width: 767px) {
    .container { padding: 0 16px; }
    /* 页脚移动端：单列堆叠 */
    .site-footer { padding: 40px 0 0; }
    .footer-top { grid-template-columns: 1fr; gap: 26px; padding-bottom: 28px; }
    .footer-desc { max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
    .hero { padding: 42px 0 36px; }
    .hero h1 { font-size: 30px; line-height: 1.32; }
    .hero:has(.hero-layout) .hero h1 { font-size: 28px; }
    .hero-title-form { font-size: 28px; }
    .hero-sub { font-size: 15px; line-height: 1.7; }
    .section { padding: 44px 0; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 24px; }
    .section-lead { font-size: 15px; }
    .tag-btn { min-height: 58px; padding: 8px 16px 8px 10px; gap: 10px; }
    .tag-txt small { font-size: 11px; }
    .testimonial-card { padding: 20px 18px 18px; }
    .card-content { font-size: 14px; line-height: 1.8; }
    /* 标签筛选：换行铺开、左对齐 */
    .tag-filter {
        justify-content: flex-start;
        gap: 10px;
        padding: 4px 0 16px;
    }

    /* 移动端顶部导航：提升层级，避免被内容遮挡 */
    .site-nav { position: sticky; }
    .nav-links {
        z-index: 200;
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    /* Hero 视觉：小屏压缩，避免挤压首屏 */
    .hero-visual { min-height: 300px; }
    .float-card { max-width: 210px; }
    .hero-proof .avatar { width: 34px; height: 34px; font-size: 12px; }

    /* 值卡片 */
    .value-card { padding: 22px 20px; }
    .value-card h3 { font-size: 16px; }
    .value-card p { font-size: 13.5px; }
    .vc-update { gap: 14px; }
}

/* 480px 及以下：小屏手机（iPhone SE / 安卓小屏） */
@media (max-width: 480px) {
    .hero h1 { font-size: 27px; }
    .hero:has(.hero-layout) .hero h1 { font-size: 26px; }
    .hero-title-form { font-size: 26px; }
    .hero-badge { font-size: 13px; padding: 6px 14px; }
    .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 26px auto 0; }
    .hero-btn { justify-content: center; width: 100%; }
    .float-card { padding: 12px 14px; }
    .float-card p { font-size: 13px; }
    .float-emoji { width: 40px; height: 40px; font-size: 19px; }

    .section-header h2 { font-size: 22px; }
    .tag-btn { min-height: 56px; padding: 7px 14px 7px 9px; }
    .tag-ico { width: 36px; height: 36px; }
    .tag-ico svg { width: 18px; height: 18px; }

    /* 表单：更紧凑但保持触控区 ≥44px */
    .apply-form { padding: 18px 16px; }
    .form-field { margin-bottom: 20px; }
    .form-label { font-size: 14px; }
    .form-control { min-height: 44px; padding: 11px 13px; font-size: 14px; }
    .check-item { min-height: 44px; padding: 0 15px; font-size: 13px; }
    .md-btn { min-height: 40px; padding: 0 12px; font-size: 13px; }
    .char-count { font-size: 12px; }

    .footer-links { gap: 16px; }
    .footer-links a { font-size: 13px; }
    .footer-copy { font-size: 12.5px; }
}

/* 375px 及以下：超小屏 */
@media (max-width: 375px) {
    .hero h1 { font-size: 25px; }
    .hero:has(.hero-layout) .hero h1 { font-size: 24px; }
    .hero-title-form { font-size: 24px; }
    .hero-sub { font-size: 14px; }
    .nav-brand { font-size: 18px; }
    .brand-badge { width: 32px; height: 32px; font-size: 16px; }
    .tag-btn { padding: 7px 12px 7px 8px; }
    .tag-txt strong { font-size: 14px; }
    .tag-txt small { font-size: 10.5px; }
    .card-nickname { font-size: 14px; }
    .card-content { font-size: 13.5px; }
    .submit-btn { font-size: 15px; }
}

/* ============================================================
   卡片可点击 + 分享详情页
   ============================================================ */

/* 卡片可点击反馈 */
.testimonial-card { cursor: pointer; }
.testimonial-card:focus-visible {
    outline: 3px solid rgba(255, 154, 92, 0.5);
    outline-offset: 2px;
}
.card-readmore {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--primary-deep);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s var(--ease-out);
}
.card-readmore svg { width: 15px; height: 15px; }
.testimonial-card:hover .card-readmore,
.testimonial-card:focus-visible .card-readmore {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 详情页 ===== */
.detail-wrap { max-width: 760px; padding-top: 28px; padding-bottom: 40px; }
.detail-back { margin-bottom: 18px; }
.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px 0 10px;
    border-radius: var(--radius-full);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    transition: all .2s ease;
}
.detail-back-link svg { width: 17px; height: 17px; }
.detail-back-link:hover { color: var(--primary-deep); border-color: var(--primary); transform: translateX(-2px); }

.detail-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 32px 34px 30px;
    position: relative;
    overflow: hidden;
}
.detail-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-deep), var(--accent));
}
.detail-head { border-bottom: 1px dashed var(--border-strong); padding-bottom: 20px; margin-bottom: 24px; }
.detail-meta-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-author { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--text-main); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.detail-meta-bottom {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--text-sub);
    font-size: 13px;
}
.detail-meta-bottom span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta-bottom svg { width: 15px; height: 15px; }

.detail-body {
    font-size: 16px;
    color: var(--text-body);
    line-height: 2;
    word-break: break-word;
}
.detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 14px 0;
    box-shadow: var(--shadow-sm);
}
.detail-body a { color: var(--primary-deep); text-decoration: underline; word-break: break-all; }
.detail-body p { margin-bottom: 14px; }
.detail-body h1, .detail-body h2, .detail-body h3,
.detail-body h4, .detail-body h5, .detail-body h6 {
    font-family: var(--font-head);
    color: var(--text-main);
    margin: 22px 0 10px;
    line-height: 1.45;
}
.detail-body h1 { font-size: 24px; }
.detail-body h2 { font-size: 21px; }
.detail-body h3 { font-size: 18px; }
.detail-body ul, .detail-body ol { padding-left: 22px; margin: 10px 0; }
.detail-body li { margin-bottom: 6px; }
.detail-body blockquote {
    border-left: 3px solid var(--primary);
    background: var(--primary-50);
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    margin: 14px 0;
    color: var(--text-body);
}
.detail-body code {
    background: var(--primary-100);
    color: var(--primary-ink);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 14px;
}
.detail-body pre {
    background: #2E2A26;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 14px 0;
    font-size: 14px;
}
.detail-body pre code { background: transparent; color: inherit; padding: 0; }

.detail-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px dashed var(--border-strong);
}

/* 详情加载态 */
.detail-loading { text-align: center; padding: 60px 0; color: var(--text-sub); }
.detail-loading .spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--primary-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin .8s linear infinite;
}

/* 详情错误态 */
.detail-error { text-align: center; padding: 50px 20px; }
.detail-error-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
}
.detail-error-icon svg { width: 30px; height: 30px; }
.detail-error p { color: var(--text-body); font-size: 15px; margin-bottom: 22px; }

@media (max-width: 767px) {
    .detail-wrap { padding-top: 18px; }
    .detail-card { padding: 22px 20px 24px; }
    .detail-author { font-size: 17px; }
    .detail-body { font-size: 15px; line-height: 1.9; }
    .detail-body h1 { font-size: 20px; }
    .detail-body h2 { font-size: 18px; }
    .detail-body h3 { font-size: 16px; }
    .detail-cta { flex-direction: column; }
    .detail-cta .hero-btn { width: 100%; justify-content: center; }
    .detail-meta-bottom { flex-wrap: wrap; gap: 14px; }
}

/* ===== 通用加载状态（首页/列表页首次加载） ===== */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-sub);
    font-size: 14px;
    gap: 14px;
}
.loading-state .spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--primary-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 全部内容页 · 分类筛选（紧凑标签条） ===== */
.list-filter-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 26px;
}
.list-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.list-tag {
    min-height: 38px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.list-tag:hover {
    border-color: var(--primary);
    color: var(--primary-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.list-tag:active { transform: scale(0.96); }
.list-tag.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 154, 92, 0.35);
}
.list-filter-count {
    font-size: 13px;
    color: var(--text-body);
    margin: 0;
}
.list-filter-count strong { color: var(--primary-deep); font-weight: 700; }

/* ===== 卡片头像 ===== */
.card-top .card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 154, 92, 0.35);
    background: var(--primary-soft);
}
.card-top .card-avatar.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-deep);
}
.card-top { flex-wrap: wrap; }

/* ===== 详情页头像 ===== */
.detail-meta-top .detail-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2.5px solid rgba(255, 154, 92, 0.4);
    background: var(--primary-soft);
    box-shadow: 0 3px 10px rgba(255, 154, 92, 0.18);
}
.detail-meta-top .detail-avatar.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-deep);
}
.detail-author-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

/* ===== 投稿页 · 头像上传 ===== */
.avatar-uploader {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-m);
    background: var(--card);
}
.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
}
.avatar-preview svg { width: 34px; height: 34px; opacity: .6; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.avatar-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: filter .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}
.avatar-btn svg { width: 16px; height: 16px; }
.avatar-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 154, 92, 0.35); }
.avatar-btn:active { transform: scale(0.97); }
.avatar-tip { font-size: 12.5px; color: var(--text-body); margin: 0; line-height: 1.6; }
.avatar-remove {
    background: none;
    border: none;
    color: var(--danger, #e05252);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}
.avatar-remove:hover { text-decoration: underline; }
@media (max-width: 767px) {
    .avatar-uploader { flex-direction: column; align-items: flex-start; }
    .list-filter-wrap { flex-direction: column; align-items: flex-start; }
    .list-filter-count { align-self: flex-end; }
}
