:root {
    /* === 法锤品牌色系 — 墨韵朱砂 === */
    --bg: #FFFFFF;
    --ink: #1A1614;           /* 墨色主文字，非纯黑 */
    --ink-soft: #3D3835;      /* 次级文字 */
    --muted: #6B6560;         /* 辅助文字，带暖调 */
    --soft: #F7F4F0;          /* 宣纸暖白背景 */
    --soft-warm: #F2EDE6;     /* 更深的暖灰 */
    --line: #E5DED6;          /*暖调分割线 */
    --line-subtle: #EDE8E2;   /*极淡分割线 */

    /* 主色：朱砂红 — 从刺眼纯红调整为深邃的法槌红 */
    --accent: #B8372D;        /* 朱砂红 */
    --accent-deep: #9A2D24;   /* 深朱砂（hover） */
    --accent-light: #FDEBE9;  /* 极淡红底 */
    --accent-glow: rgba(184, 55, 45, 0.10);  /* 红色辉光 */

    /* 语义色 */
    --success: #1B7837;       /* 竹青绿 */
    --success-light: rgba(27, 120, 55, 0.08);
    --warning: #A67C3D;        /* 琥珀棕 */
    --warning-light: rgba(166, 124, 61, 0.10);

    /* 辅助强调色 — 用于特殊场景区分 */
    --gold: #A68A56;          /* 铜金，权威感 */
    --ink-blue: #3A506B;      /*墨蓝，冷静专业 */

    /* 阴影系统 — 分层投影 */
    --shadow-sm: 0 1px 3px rgba(26, 22, 20, 0.04);
    --shadow-md: 0 6px 20px rgba(26, 22, 20, 0.06);
    --shadow-lg: 0 18px 50px rgba(26, 22, 20, 0.08);
    --shadow-hover: 0 20px 60px rgba(184, 55, 45, 0.10);
    --shadow-card: 0 2px 12px rgba(26, 22, 20, 0.05);

    /* 圆角体系 */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 布局 */
    --page: min(1120px, calc(100vw - 48px));

    /* 缓动函数 */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 200ms var(--ease-in-out);

    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
    line-height: 1.7;
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 max(24px, calc((100vw - 1120px) / 2));
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line-subtle);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

/* 导航栏滚动状态 — 下滑后出现微妙阴影 */
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform var(--transition-fast);
}

.brand:hover .brand-logo {
    transform: scale(1.05) rotate(-3deg);
}

.brand-accent {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-nav a,
.site-nav button,
.site-footer a,
.site-footer button {
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    padding: 4px 0;
    position: relative;
}

/* 导航链接下划线动画 */
.site-nav a::after,
.site-nav button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition-smooth);
}

.site-nav a:hover::after,
.site-nav button:hover::after {
    width: 100%;
}

.site-nav a:hover,
.site-nav button:hover,
.site-footer a:hover,
.site-footer button:hover,
.text-link:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: clamp(560px, 74vh, 720px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    /* 多层宣纸质感渐变 */
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184, 55, 45, 0.03) 0%, transparent 70%),
        linear-gradient(180deg, #FAF8F5 0%, #F5F1EC 40%, #EDE7DD 100%);
}

/* 水墨画布 */
.ink-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.word-field {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='96'%20viewBox='0%200%20180%2096'%3E%3Ctext%20x='0'%20y='54'%20fill='%23111111'%20font-family='Arial,%20sans-serif'%20font-size='12'%20font-weight='700'%3EFACHUI%20AI%3C/text%3E%3C/svg%3E");
    background-size: 180px 96px;
    opacity: 0.055;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 40px));
    text-align: center;
    padding: 80px 0;
}

.hero-logo-wrap {
    margin-bottom: 22px;
}

.hero-logo {
    width: 122px;
    height: 122px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* 入场动画 */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 150ms; }
.reveal-delay-2 { transition-delay: 300ms; }
.reveal-delay-3 { transition-delay: 450ms; }
.reveal-delay-4 { transition-delay: 600ms; }

/* 滚动提示 */
.hero-scroll-hint {
    margin-top: 40px;
}

.scroll-arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(8px) rotate(45deg);
    }
    60% {
        transform: translateY(4px) rotate(45deg);
    }
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 7.5vw, 72px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.hero p {
    width: min(540px, 100%);
    margin: 24px auto 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.75;
}

.hero-actions,
.form-actions,
.admin-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-actions {
    justify-content: center;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button:hover::after {
    opacity: 1;
}

.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    transition-duration: 150ms;
}

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(184, 55, 45, 0.20);
}

.button-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    box-shadow: 0 6px 24px rgba(184, 55, 45, 0.28);
}

.button-secondary {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.section {
    width: var(--page);
    margin: 0 auto;
    padding: 88px 0;
    border-bottom: 1px solid var(--line-subtle);
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.scroll-reveal.scroll-revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    margin-bottom: 44px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section-heading p {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.text-link {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.about-body {
    max-width: 780px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.proof-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 36px 28px 36px 0;
    transition: background var(--transition-smooth);
}

.proof-item:hover {
    background: var(--soft);
}

.proof-item + .proof-item {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.proof-item h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.proof-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.proof-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.proof-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.numbered-list {
    border-top: 1px solid var(--line);
}

.agent-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.agent-card {
    display: grid;
    min-height: 320px;
    padding: 26px;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateY(24px);
}

.agent-card.card-revealed {
    opacity: 1;
    transform: translateY(0);
}

.agent-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.agent-card.card-revealed:hover {
    transform: translateY(-6px);
}

.agent-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agent-card-logo {
    width: 72px;
    height: 72px;
    margin: 10px 0 6px;
    object-fit: contain;
    image-rendering: pixelated;
    justify-self: start;
    transition: transform var(--transition-smooth);
}

.agent-card:hover .agent-card-logo {
    transform: scale(1.06);
}

.agent-card-copy {
    align-self: end;
    min-width: 0;
    margin-top: 16px;
}

.agent-card-copy p {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.agent-card-copy h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.agent-card-copy span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

/* 智能体状态徽章 */
.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.agent-badge-available {
    background: var(--success-light);
    color: var(--success);
}

.agent-badge-available::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(27, 120, 55, 0.15);
}

.agent-badge-preview {
    background: var(--soft-warm);
    color: var(--muted);
}

/* 智能体卡片底部双按钮区 */
.agent-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.agent-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

.agent-card-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* 主操作按钮 — 立即使用 */
.agent-card-action-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(184, 55, 45, 0.18);
}

.agent-card-action-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(184, 55, 45, 0.28);
    transform: translateY(-1px);
}

.agent-card-action-primary::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.agent-card-action-primary:hover::after {
    transform: translateX(3px);
}

/* 次操作按钮 — 详情，更紧凑 */
.agent-card-action-secondary {
    flex: 0 0 auto;
    min-width: 38px;
    padding: 0 14px;
}

/* 模态框智能体 CTA 区 */
.agent-modal-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line-subtle);
}

.agent-modal-cta .button {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.agent-modal-cta .button-primary::after {
    content: '→';
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.agent-modal-cta .button-primary:hover::after {
    transform: translateX(4px);
}

.agent-modal-hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* 智能体功能特点列表 */
.agent-features {
    margin: 20px 0;
    padding: 18px 20px;
    background: var(--soft);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}

.agent-features h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.03em;
}

.agent-features ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.agent-features li {
    margin-bottom: 4px;
}

.list-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 96px;
    border-bottom: 1px solid var(--line-subtle);
    background: #ffffff;
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateX(-20px);
}

.list-row.row-revealed {
    opacity: 1;
    transform: translateX(0);
}

.list-row:hover {
    background: var(--soft);
    transform: translateX(6px);
}

.list-row.row-revealed:hover {
    transform: translateX(6px);
}

.row-number {
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.row-copy {
    min-width: 0;
}

.row-copy h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.row-copy p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
    background: var(--soft);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.row-action {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
}

.row-date {
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 36px 0;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.site-footer {
    width: var(--page);
    margin: 0 auto;
    padding: 56px 0 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px 36px;
    color: var(--muted);
    font-size: 13px;
    align-items: start;
}

.site-footer nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-footer p {
    margin: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-company {
    font-size: 12px;
    color: var(--muted);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.contact-icon {
    font-size: 14px;
}

.wechat-item {
    position: relative;
    cursor: pointer;
}

.wechat-qr {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 150px;
    height: 150px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 10;
}

.wechat-item:hover .wechat-qr {
    display: block;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
}

.admin-login-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top left, rgba(184, 55, 45, 0.07), transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(166, 138, 86, 0.05), transparent 40%),
        linear-gradient(135deg, #FAF8F5 0%, #F2EDE6 100%);
}

.admin-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.admin-login-card {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 40px;
}

.admin-login-brand {
    width: max-content;
    margin-bottom: 34px;
}

.admin-login-heading {
    margin-bottom: 24px;
}

.admin-login-heading p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.admin-login-heading h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0;
}

.admin-login-home {
    display: inline-flex;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.admin-login-home:hover {
    color: var(--accent);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 36px;
}

.content-panel {
    width: min(760px, 100%);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
}

.login-panel h2,
.content-panel h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.login-panel p,
.content-meta {
    color: var(--muted);
}

.form-stack,
.admin-form {
    display: grid;
    gap: 18px;
}

.form-stack label,
.admin-form label {
    display: grid;
    gap: 8px;
    color: #333333;
    font-size: 14px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    padding: 11px 12px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 55, 45, 0.08);
}

.form-message {
    min-height: 22px;
    margin: 0;
    color: var(--accent);
}

.rich-content {
    color: #333333;
    line-height: 1.7;
}

.rich-content p {
    margin: 0 0 14px;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.rich-content ul,
.rich-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.rich-content li {
    margin-bottom: 8px;
}

.rich-content blockquote {
    margin: 20px 0;
    padding: 16px 24px;
    border-left: 3px solid var(--accent);
    background: var(--accent-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.rich-content pre {
    margin: 16px 0;
    padding: 16px;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.rich-content code {
    background: var(--soft);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.rich-content pre code {
    background: none;
    padding: 0;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 16px 0;
}

.rich-content a {
    color: var(--accent);
    text-decoration: underline;
}

.rich-content a:hover {
    color: var(--accent-deep);
}

/* ===== 文章详情子页面 ===== */
.article-page {
    width: 100%;
    min-height: calc(100vh - 280px);
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #FAF8F5 0%, #FFFFFF 100%);
}

.article-container {
    width: min(760px, calc(100vw - 48px));
    margin: 0 auto;
}

.article-header {
    margin-bottom: 32px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-date {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    background: var(--soft);
}

.article-title {
    margin: 0 0 16px;
    font-family: "Noto Serif SC", "PingFang SC", serif;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.article-summary {
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.8;
    font-family: "Noto Serif SC", "PingFang SC", serif;
    font-style: italic;
}

.article-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 36px 0 40px;
}

.article-body {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.85;
}

/* 文章正文内图片 */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 28px 0;
    box-shadow: var(--shadow-card);
}

/* 文章正文内视频 */
.article-body video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 28px 0;
}

/* 文章正文标题层级 */
.article-body h2 {
    margin: 40px 0 16px;
    font-family: "Noto Serif SC", "PingFang SC", serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

.article-body h3 {
    margin: 32px 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
}

/* 文章底部 */
.article-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line-subtle);
}

.article-footer .button {
    min-height: 40px;
    font-size: 14px;
}

/* 文章页响应式 */
@media (max-width: 640px) {
    .article-page {
        padding: 32px 0 60px;
    }

    .article-title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .article-summary {
        font-size: 15px;
    }

    .article-body {
        font-size: 15px;
    }

    .article-divider {
        margin: 28px 0 32px;
    }
}

.admin-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--soft);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 26px 20px;
    background: #ffffff;
    border-right: 1px solid var(--line-subtle);
}

.admin-brand {
    font-size: 24px;
}

.admin-subtitle {
    margin: 4px 0 34px;
    color: var(--muted);
    font-size: 13px;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav button {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: #333333;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}

.admin-nav button.active,
.admin-nav button:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.admin-main {
    padding: 0 32px 48px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(252, 250, 247, 0.94);
    border-bottom: 1px solid var(--line-subtle);
    backdrop-filter: blur(20px) saturate(180%);
}

.admin-topbar p {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 13px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 24px;
}

.admin-section {
    display: none;
    padding-top: 30px;
}

.admin-section.active {
    display: block;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric-item,
.admin-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric-item {
    min-height: 118px;
    display: grid;
    align-content: center;
    padding: 22px;
}

.metric-item span {
    color: var(--muted);
    font-size: 13px;
}

.metric-item strong {
    margin-top: 6px;
    font-size: 28px;
    line-height: 1;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.admin-grid-form {
    display: grid;
    grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
    gap: 18px;
    align-items: start;
}

.admin-panel {
    padding: 24px;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 19px;
}

.panel-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.compact-list {
    border-top: 1px solid var(--line);
}

.compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.compact-item span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.table-panel {
    overflow: hidden;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 14px;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

td {
    color: #222222;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.status-published,
.status-active {
    background: var(--success-light);
    color: var(--success);
}

.status-draft {
    background: var(--warning-light);
    color: var(--warning);
}

.row-buttons {
    display: flex;
    gap: 12px;
}

.row-buttons button {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 900px) {
    :root {
        --page: min(100vw - 32px, 720px);
    }

    .site-header {
        min-height: 64px;
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: static;
        flex-basis: 100%;
        display: none;
        padding: 12px 0 18px;
        background: #ffffff;
        border-top: 1px solid var(--line);
        border-bottom: 0;
        box-shadow: none;
    }

    .site-nav.open {
        display: grid;
        gap: 18px;
    }

    .hero {
        min-height: 620px;
    }

    .hero h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .section-heading-row,
    .hero-actions,
    .form-actions,
    .admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-contact {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .proof-grid,
    .agent-card-grid,
    .metric-grid,
    .admin-grid-two,
    .admin-grid-form,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .proof-item,
    .proof-item + .proof-item {
        padding: 24px 0;
        border-left: 0;
    }

    .proof-item + .proof-item {
        border-top: 1px solid var(--line);
    }

    .list-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
        padding: 20px 0;
    }

    .agent-card {
        min-height: 280px;
    }

    .row-action,
    .row-date {
        grid-column: 2;
        justify-self: start;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-main {
        padding: 0 16px 40px;
    }
}

@media (max-width: 560px) {
    .word-field {
        background-size: 140px 74px;
    }

    .section {
        padding: 52px 0;
    }

    .row-number {
        font-size: 23px;
    }

    .modal {
        padding: 12px;
    }

    .modal-panel {
        padding: 28px 20px;
    }

    .admin-login-card {
        padding: 28px 20px;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }
}
