/* ============================================================
   AIMention 水墨风格样式系统 v2
   设计：中国水墨 · 克制 · 优雅 · 现代 SaaS
   更新：全站书法字体、水墨背景图、水墨边框
   ============================================================ */

/* ====== 加载行楷字体（马善政楷书 Ma Shan Zheng - 清晰可读）====== */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700&display=swap');

/* ====== CSS 变量 ====== */
:root {
    /* 配色系统 */
    --paper: #F7F3EA;          /* 宣纸白 */
    --paper-warm: #F0EBE0;     /* 暖纸色 */
    --ink: #1C1A17;            /* 墨黑 */
    --ink-soft: #2A231E;       /* 深墨 */
    --ink-light: #6E665C;      /* 淡墨灰 */
    --ink-faint: #9A9088;      /* 极淡墨 */
    --line: #D8D1C6;           /* 纸灰分割线 */
    --vermilion: #A6422B;      /* 朱砂红 */
    --vermilion-light: #C25840;
    --jade: #4C6B5F;           /* 青黛绿 */
    --gold: #B89968;           /* 金色 */
    --white: #FFFFFF;

    /* 字体 - 标题用行楷，正文用宋体保证可读性 */
    --font-title: 'Ma Shan Zheng', '华文行楷', 'STXingkai', 'STKaiti', 'KaiTi', serif;
    --font-body: 'Noto Serif SC', '宋体', 'SimSun', 'STSong', serif;
    --font-num: 'Noto Serif SC', '宋体', 'SimSun', serif;

    /* 尺寸 */
    --max-width: 1200px;
    --radius: 6px;
    --radius-lg: 12px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(28, 26, 23, 0.06);
    --shadow: 0 4px 20px rgba(28, 26, 23, 0.08);
    --shadow-lg: 0 8px 40px rgba(28, 26, 23, 0.12);

    /* 水墨边框 SVG */
    --ink-border: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='8' viewBox='0 0 200 8'%3E%3Cpath d='M0,4 Q25,1 50,4 T100,4 T150,4 T200,4' fill='none' stroke='%23A6422B' stroke-width='1.5' opacity='0.4'/%3E%3C/svg%3E");
}

/* ====== 基础重置 ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    /* 宣纸纹理 + 水墨点缀背景 */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(214, 207, 198, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(214, 207, 198, 0.1) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03' /%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; transition: color 0.3s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ====== 容器 ====== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ====== 导航栏 ====== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 0;
    background: rgba(247, 243, 234, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: all 0.3s;
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo 图片样式 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo-footer img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 16px;
    color: var(--ink-light);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--vermilion);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vermilion);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--vermilion);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(166, 66, 43, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--paper-warm);
    color: var(--vermilion);
}

.btn-ghost:active {
    background: var(--paper-warm);
}

.btn-outline {
    background: transparent;
    color: var(--vermilion);
    border-color: var(--vermilion);
}

.btn-outline:hover {
    background: var(--vermilion);
    color: var(--paper);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 18px;
}

/* ====== Hero 首屏 ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* 水墨背景图 */
    background-image: url('/assets/img/bg-ink-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 半透明遮罩，确保文字可读 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 243, 234, 0.7);
    z-index: 0;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero logo 图片 */
.hero-logo {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s forwards;
}

.hero-logo img {
    height: 80px;
    width: auto;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(76, 107, 95, 0.1);
    color: var(--jade);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s forwards;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jade);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(40px, 7vw, 80px);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: 3px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--vermilion);
    font-weight: 400;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.hero-desc {
    font-size: 16px;
    color: var(--ink-light);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 1.2s forwards;
}

/* ====== 通用区块 ====== */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 区块背景图 */
.section-bg-1 {
    background-image: url('/assets/img/bg-ink-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-bg-2 {
    background-image: url('/assets/img/bg-ink-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-bg-3 {
    background-image: url('/assets/img/bg-ink-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 半透明遮罩确保文字可读 */
.section-bg-1::before,
.section-bg-2::before,
.section-bg-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 243, 234, 0.82);
    z-index: 0;
}

.section-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 15px;
    color: var(--vermilion);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(30px, 5vw, 48px);
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.section-desc {
    font-size: 17px;
    color: var(--ink-light);
    max-width: 640px;
    line-height: 1.9;
}

.section-center .section-desc {
    margin: 0 auto;
}

.accent { color: var(--vermilion); }
.jade-text { color: var(--jade); }

/* ====== 产品能力区 ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}

/* 水墨边框卡片 */
.feature-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 36px;
    transition: all 0.3s;
    position: relative;
    border-radius: 8px;
    /* 水墨边框 - 使用SVG边框图片 */
    border-image: var(--ink-border) 1 stretch;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

/* 水墨边框装饰 - 顶部和底部波浪线 */
.feature-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6' viewBox='0 0 200 6'%3E%3Cpath d='M0,3 Q25,0 50,3 T100,3 T150,3 T200,3' fill='none' stroke='%23A6422B' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 6px;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6' viewBox='0 0 200 6'%3E%3Cpath d='M0,3 Q25,0 50,3 T100,3 T150,3 T200,3' fill='none' stroke='%23A6422B' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 6px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-item:hover .feature-icon {
    color: var(--vermilion);
    transform: scale(1.1);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--jade);
    transition: all 0.3s;
    display: inline-block;
}

.feature-title {
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 10px;
}

.feature-text {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.8;
}

/* ====== 工作原理区 ====== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--paper-warm);
    border: 2px solid var(--ink);
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 16px;
    transition: all 0.3s;
}

.step-card:hover .step-number {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--vermilion);
}

.step-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--ink);
}

.step-text {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.8;
}

/* ====== 适用场景区 ====== */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.scenario-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    border: 1px solid var(--line);
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow-sm);
}

/* 水墨边框装饰 */
.scenario-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6' viewBox='0 0 200 6'%3E%3Cpath d='M0,3 Q25,0 50,3 T100,3 T150,3 T200,3' fill='none' stroke='%234C6B5F' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 6px;
}

.scenario-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.scenario-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(166, 66, 43, 0.1);
    color: var(--vermilion);
    font-size: 13px;
    margin-bottom: 12px;
}

.scenario-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.scenario-text {
    color: var(--ink-light);
    font-size: 15px;
}

/* ====== 社会证明区 ====== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    border: 1px solid var(--line);
    position: relative;
    box-shadow: var(--shadow-sm);
}

/* 水墨边框装饰 */
.stat-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6' viewBox='0 0 200 6'%3E%3Cpath d='M0,3 Q25,0 50,3 T100,3 T150,3 T200,3' fill='none' stroke='%23A6422B' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 6px;
}

.stat-number {
    font-size: 44px;
    color: var(--vermilion);
    line-height: 1.2;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 15px;
    color: var(--ink-light);
}

/* ====== CTA区 ====== */
.cta-section {
    text-align: center;
    padding: 120px 0;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    /* 深色水墨背景 */
    background-image: url('/assets/img/bg-ink-dark.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 26, 23, 0.75);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section .section-title {
    color: var(--paper);
}

.cta-section .section-desc {
    color: rgba(247, 243, 234, 0.7);
}

.cta-section .btn-primary {
    background: var(--vermilion);
}

.cta-section .btn-primary:hover {
    background: var(--vermilion-light);
}

.cta-section .btn-ghost {
    color: var(--paper);
    border-color: rgba(247, 243, 234, 0.3);
}

.cta-section .btn-ghost:hover {
    border-color: var(--paper);
    background: rgba(247, 243, 234, 0.1);
}

/* ====== Footer ====== */
.footer {
    background: var(--ink);
    color: rgba(247, 243, 234, 0.6);
    padding: 60px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.9;
    max-width: 320px;
    margin-top: 12px;
}

.footer-col h5 {
    color: var(--paper);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--vermilion-light);
}

.footer-bottom {
    border-top: 1px solid rgba(247, 243, 234, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

/* ====== 认证页面 - 横版布局（第一屏完整显示） ====== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 20px;
    position: relative;
    background-image: url('/assets/img/bg-ink-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 243, 234, 0.85);
    z-index: 0;
}

/* 返回首页按钮 */
.back-home {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-light);
    font-size: 15px;
    transition: all 0.3s;
}

.back-home:hover {
    color: var(--vermilion);
    border-color: var(--vermilion);
    background: rgba(255, 255, 255, 1);
}

/* 横版认证卡片 */
.auth-card {
    width: 100%;
    max-width: 860px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-height: 420px;
    max-height: calc(100vh - 80px);
}

/* 左侧品牌展示区 */
.auth-card-left {
    background: var(--ink);
    color: var(--paper);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-image: url('/assets/img/bg-ink-dark.jpg');
    background-size: cover;
    background-position: center;
}

.auth-card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 26, 23, 0.8);
    z-index: 0;
}

.auth-card-left > * {
    position: relative;
    z-index: 1;
}

.auth-card-left .nav-logo img {
    height: 44px;
    filter: brightness(0) invert(1);
    margin-bottom: 18px;
}

.auth-card-left h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--paper);
}

.auth-card-left p {
    font-size: 14px;
    color: rgba(247, 243, 234, 0.7);
    line-height: 1.8;
}

/* 右侧表单区 */
.auth-card-right {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    font-size: 22px;
    text-align: left;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--ink-light);
    text-align: left;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 15px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(28, 26, 23, 0.08);
}

.form-input::placeholder {
    color: var(--ink-faint);
}

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

.form-row .form-input {
    flex: 1;
}

.form-btn-code {
    padding: 11px 20px;
    white-space: nowrap;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 14px;
    transition: all 0.3s;
}

.form-btn-code:hover {
    background: var(--ink);
    color: var(--paper);
}

.form-btn-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-btn-code:disabled:hover {
    background: var(--paper-warm);
    color: var(--ink);
}

.auth-message {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.auth-message.show {
    display: block;
    animation: fadeInUp 0.3s forwards;
}

.auth-message.error {
    background: rgba(166, 66, 43, 0.1);
    color: var(--vermilion);
}

.auth-message.success {
    background: rgba(76, 107, 95, 0.1);
    color: var(--jade);
}

.auth-footer {
    text-align: left;
    margin-top: 20px;
    font-size: 14px;
    color: var(--ink-light);
}

.auth-footer a {
    color: var(--vermilion);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ====== 管理后台 ====== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--ink);
    color: var(--paper);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(247, 243, 234, 0.1);
    margin-bottom: 16px;
}

.admin-sidebar-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.admin-nav { list-style: none; }

.admin-nav-item {
    padding: 12px 24px;
    font-size: 15px;
    color: rgba(247, 243, 234, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(247, 243, 234, 0.05);
    color: var(--paper);
}

.admin-nav-item.active {
    background: rgba(166, 66, 43, 0.15);
    color: var(--vermilion-light);
    border-left-color: var(--vermilion);
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    min-height: 100vh;
    background: var(--paper);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 28px;
    color: var(--ink);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink-light);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6' viewBox='0 0 200 6'%3E%3Cpath d='M0,3 Q25,0 50,3 T100,3 T150,3 T200,3' fill='none' stroke='%23A6422B' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 6px;
}

.stat-card:hover {
    box-shadow: var(--shadow);
}

.stat-card-label {
    font-size: 14px;
    color: var(--ink-light);
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    color: var(--ink);
}

.stat-card-value .unit {
    font-size: 15px;
    color: var(--ink-light);
    margin-left: 4px;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th {
    background: var(--paper-warm);
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    color: var(--ink-light);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--paper-warm);
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.badge-active { background: rgba(76, 107, 95, 0.15); color: var(--jade); }
.badge-inactive { background: rgba(154, 144, 136, 0.15); color: var(--ink-faint); }
.badge-admin { background: rgba(166, 66, 43, 0.15); color: var(--vermilion); }
.badge-member { background: rgba(76, 107, 95, 0.15); color: var(--jade); }
.badge-suspended { background: rgba(166, 66, 43, 0.1); color: var(--vermilion); }

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 26, 23, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s;
}

.modal {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-title {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--ink);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--white);
    color: var(--ink);
    min-width: 240px;
}

.search-input:focus {
    outline: none;
    border-color: var(--ink);
}

/* 提问测试区 */
.query-test-area {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.query-test-result {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    min-height: 100px;
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink);
}

.query-test-result.empty {
    color: var(--ink-faint);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.query-test-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--ink-light);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

/* 选择框 */
.form-select {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236E665C' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select:focus {
    outline: none;
    border-color: var(--ink);
}

.form-textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 15px;
    resize: vertical;
    min-height: 80px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--ink);
}

/* ====== 动画 ====== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ====== 响应式 ====== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-container { grid-template-columns: repeat(2, 1fr); }
    .scenarios-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { width: 60px; }
    .admin-sidebar-logo img,
    .admin-nav-item span { display: none; }
    .admin-main { margin-left: 60px; padding: 16px; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px; }
    /* 注册页面横版改竖版 */
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .auth-card-left {
        padding: 32px;
        min-height: auto;
    }
    .auth-card-right {
        padding: 32px;
    }
}

/* ====== 毛笔笔触轨迹 ====== */
.brush-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

.brush-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(28, 26, 23, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
