/*
 * AI家园 (spark1.cn) - 主站样式
 * 暗色科技风 + 人文温度（靛蓝紫）
 * 字体（Noto Sans SC + Noto Serif SC）统一由 design-tokens.css 的 @import 加载，勿在此重复引入
 */

@import '../shared/design-tokens.css';
@import '../shared/dark-base.css?v=9';

/* spark1 靛蓝紫调色板 */
:root {
    --c-primary: #6366f1;
    --c-primary-dark: #4f46e5;
    --c-secondary: #8b5cf6;
    --c-accent: #06b6d4;
    --c-accent-warm: #f59e0b;
    --c-glow: rgba(99, 102, 241, 0.4);
    --c-glow-warm: rgba(245, 158, 11, 0.3);
    --grad-text: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
    --grad-btn: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    --grad-card-border: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(139,92,246,0.5), rgba(6,182,212,0.5));
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px var(--c-glow);
    --shadow-btn: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Hero 区域 */
.page-hero {
    color: white;
    text-align: center;
    padding: 4rem 0 3rem;
    background: transparent;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #818cf8, transparent);
    border-radius: 3px;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 0.9rem;
    font-family: var(--font-display);
    color: #eef2ff;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: var(--display-tracking);
    text-shadow: 0 2px 30px rgba(99,102,241,0.25);
}

.page-hero p {
    color: #b0c4d3;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.8rem; }
}

/* 毛玻璃内容块 */
.service-item, .info-item {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012) 32%, transparent 62%),
        var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    margin: 1.5rem 0;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--hairline);
    box-shadow: inset 0 1px 0 var(--surface-hi), 0 12px 34px -24px rgba(0,0,0,0.7);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
    position: relative;
    overflow: hidden;
}

.service-item::before, .info-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-card-border);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-item:hover, .info-item:hover {
    transform: translateY(-4px);
    border-color: var(--hairline-strong);
    box-shadow: inset 0 1px 0 var(--surface-hi), 0 22px 48px -24px var(--c-glow, rgba(99,102,241,0.5));
}

.service-item:hover::before, .info-item:hover::before { opacity: 1; }

.service-item h2, .info-item h2, .info-item h3 {
    color: #e0e7ff;
    margin-bottom: 1rem;
}

.service-item p, .info-item p {
    color: #b0c4d3;
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.service-item ul {
    padding-left: 1.2rem;
    color: #b0c4d3;
}

.service-item li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.service-item li::marker {
    color: var(--c-primary);
}

/* About 内容区域 */
.about-content, .services-detail {
    padding: 3rem 0;
}

.about-content {
    /* container centered, cards in 2-col grid inside */
}
.about-content > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-content h2, .services-detail h2 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.vision, .mission, .history, .team, .values {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.vision {
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #f59e0b) 1;
}

.vision:hover, .mission:hover, .history:hover, .team:hover, .values:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-glow);
}

.vision h2, .mission h2, .history h2, .team h2, .values h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.vision p, .mission p, .history p, .team p {
    color: #b0c4d3;
    line-height: 1.8;
}

.values ul {
    list-style: none;
    padding: 0;
}

.values li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #b0c4d3;
    line-height: 1.7;
}

.values li:last-child { border-bottom: none; }
.values strong { color: #c7d2fe; }

/* 法律文档（隐私政策/服务条款）— 单列居中 */
.legal-content {
    padding: 3rem 0;
}
.legal-content .container {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content .vision,
.legal-content .mission,
.legal-content .history,
.legal-content .team,
.legal-content .values {
    text-align: left;
}

/* 联系区域 */
.contact-content {
    padding: 3rem 0;
}

.contact-info, .contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.contact-info h2, .contact-form h2 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-size: 1.1rem;
}

/* 表单 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #c7d2fe;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    outline: none;
    background: rgba(15, 23, 42, 0.8);
}

.form-group textarea {
    resize: vertical;
}

.form-group select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* ========================================
 * 以下为首页 index.html 内联样式提取
 * ======================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #e2e8f0;
    background: #0f172a;
    overflow-x: hidden;
}

/* 流动渐变背景 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite alternate;
    z-index: -2;
    pointer-events: none;
}

/* 点阵网格 */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

@keyframes meshFloat {
    0%   { transform: scale(1) translate(0, 0); }
    33%  { transform: scale(1.05) translate(-2%, 1%); }
    66%  { transform: scale(0.98) translate(1%, -2%); }
    100% { transform: scale(1.02) translate(-1%, 1%); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 毛玻璃导航栏（类选择器：勿退回元素选择器 header{}——会命中视图内任意裸 <header> 致其吸顶盖住下拉，见 CLAUDE.md 陷阱 26） */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.logo::before {
    content: '✦';
    font-size: 1.05rem;
    line-height: 1;
    background: linear-gradient(135deg, #818cf8, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--c-glow, rgba(99,102,241,0.6)));
    animation: floaty 5s ease-in-out infinite;
}

nav ul {
    display: flex;
    list-style: none;
    position: relative;
    gap: 0.5rem;
}

nav li { position: relative; }

nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--grad-btn);
    transition: left 0.3s, right 0.3s;
    border-radius: 1px;
}

nav a:hover { color: #e0e7ff; }
nav a:hover::after { left: 0; right: 0; }

/* 子菜单基础样式已统一在 dark-base.css */

/* Hero 区域（首页） */
.hero {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.15) 0%, transparent 50%);
    color: white;
    text-align: center;
    padding: 6rem 0 5rem;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 40%, #a5b4fc 70%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #b0c4d3;
    line-height: 1.8;
}

/* 愿景标语 */
.hero-vision {
    font-size: 1.25rem;
    color: #c7d2fe;
    margin-bottom: 0.4rem;
    letter-spacing: 2px;
    font-weight: 600;
}
.hero-vision-en {
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    font-style: italic;
}

/* 渐变炫光按钮 */
.btn {
    display: inline-block;
    background: var(--grad-btn);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99,102,241,0.5);
}
.btn:hover::after { opacity: 1; }

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin: 0 auto 3rem;
    color: #eef2ff;
    font-weight: 800;
    letter-spacing: var(--display-tracking);
    position: relative;
    padding-bottom: 0.9rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.9rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-accent));
    box-shadow: 0 0 14px var(--c-glow, rgba(99,102,241,0.5));
}
/* 需要渐变强调时显式加 .grad（默认纯色，避免满屏渐变标题） */
.section-title.grad,
.section-title[style*="-webkit-text-fill-color"] {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About 区域（首页） */
.about {
    padding: 5rem 0;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.about-text p {
    color: #b0c4d3;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image { text-align: center; }
.about-image img {
    max-width: 340px;
    width: 100%;
    height: auto;            /* 覆盖 height 属性的展示提示，否则 CSS 只设宽不设高 → 宽340×高1024 横向压扁变形 */
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px -20px rgba(99, 102, 241, 0.35);
    opacity: 0.92;
}

/* 首页 about：文 + 图 左右双列（区别于 about.html 的 .about-content > .container 卡片结构） */
.about > .container > .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.2rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: #b0c4d3;
    font-size: 0.9rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 联系区域（首页） */
.contact {
    padding: 5rem 0;
    background: rgba(99,102,241,0.05);
    border-top: 1px solid var(--glass-border);
    color: white;
    text-align: center;
}
.contact h2 { font-size: 2rem; margin-bottom: 1rem; color: #e0e7ff; }
.contact p { color: #94a3b8; margin-bottom: 1.5rem; }

/* 愿景横幅：品牌渐变 + 颗粒纹理 + 宋体宣言 */
.vision-banner {
    background: linear-gradient(135deg, #5b6ee0 0%, #764ba2 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.vision-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--grain), radial-gradient(80% 120% at 50% 0%, rgba(255,255,255,0.14), transparent 60%);
    background-size: 180px 180px, 100% 100%;
    opacity: 0.5; mix-blend-mode: overlay;
    pointer-events: none;
}
.vision-banner .container { position: relative; z-index: 1; }
.vision-text {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    color: #fff;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.vision-text-en {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    letter-spacing: 1px;
    font-style: italic;
}

/* 频道展示区：深色质感（不再使用刺眼白底） */
.channels-showcase {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.4), rgba(99,102,241,0.05), rgba(15,23,42,0.4));
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    position: relative;
}
.channels-showcase::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--grain);
    background-size: 180px 180px;
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.channels-showcase .container { position: relative; z-index: 1; }
.channel-cat-title {
    font-size: 1.05rem;
    color: #c7d2fe;
    margin: 2.2rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--hairline);
    font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
}
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.channel-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)), var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 1.3rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: inset 0 1px 0 var(--surface-hi), 0 10px 28px -22px rgba(0,0,0,0.7);
    transition: transform 0.3s cubic-bezier(.34,1.2,.5,1), box-shadow 0.3s, border-color 0.3s;
}
.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--hairline-strong);
    box-shadow: inset 0 1px 0 var(--surface-hi), 0 18px 40px -20px var(--c-glow, rgba(99,102,241,0.45));
}
.channel-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.channel-card h4 {
    font-size: 0.98rem;
    color: #e8ecff;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.channel-card p {
    font-size: 0.8rem;
    color: var(--ui-muted, #94a3b8);
    margin: 0;
}

/* Footer */
#contact footer, footer#contact {
    background: transparent;
}

/* 认证组件样式 */
.auth-section { display: flex; align-items: center; position: relative; gap: 10px; }
.auth-section .btn-login {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    min-height: 40px;
}
.auth-section .btn-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(129,140,248,0.5);
}
.auth-section .btn-register {
    display: inline-block;
    background: var(--grad-btn);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 15px;
    margin-left: 10px;
    transition: all 0.3s;
    min-height: 40px;
}
.auth-section .btn-register:hover { box-shadow: var(--shadow-btn); }
.auth-section .user-dropdown-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}
.auth-section .user-dropdown-btn:hover { background: rgba(255,255,255,0.15); }
.auth-section .user-name { color: white; font-size: 14px; }
.auth-section .dropdown-arrow { width: 12px; height: 12px; fill: white; transition: transform 0.3s; }
.auth-section .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); right: 0;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1001;
    padding: 8px 0;
}
.auth-section .dropdown-item {
    padding: 7px 20px; color: #cbd5e1;
    text-decoration: none; display: block; transition: background 0.2s;
}
.auth-section .dropdown-item:hover { background: rgba(99,102,241,0.15); }
.auth-section .dropdown-label {
    padding: 4px 20px 2px; font-size: 12px; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.5px; pointer-events: none;
}
.auth-section .dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.auth-section .btn-logout-dropdown {
    width: 100%; text-align: left; background: none; border: none;
    color: #f87171; cursor: pointer; font-size: 15px; padding: 12px 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .contact-content .container > div { margin-bottom: 2rem; }
    .header-content { flex-direction: column; }
    nav ul { margin-top: 0.8rem; flex-wrap: wrap; justify-content: center; }
    nav li { margin: 0; }
    .auth-section { margin-top: 0.8rem; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero h1 { font-size: 1.8rem; }
    .about-content > .container { grid-template-columns: 1fr; }
    .about > .container > .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about { padding: 3rem 0; }
    .channels-showcase { padding: 3rem 0; }
    .channel-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .channel-card { padding: 1rem; }
    .channel-card-icon { font-size: 1.5rem; }
}

/* 无障碍：减弱动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 首页质感增强 ===== */

/* 通用可悬停卡片（替代 onmouseover 内联样式） */
.home-card {
    transition: transform 0.3s cubic-bezier(.34,1.2,.5,1), box-shadow 0.3s, border-color 0.3s, background 0.3s;
    box-shadow: inset 0 1px 0 var(--surface-hi), 0 12px 32px -26px rgba(0,0,0,0.7);
}
.home-card:hover {
    transform: translateY(-5px);
    border-color: var(--hc, rgba(129,140,248,0.5)) !important;
    box-shadow: inset 0 1px 0 var(--surface-hi), 0 20px 44px -22px var(--hc-glow, rgba(99,102,241,0.4));
    background: var(--hc-bg, rgba(255,255,255,0.06));
}

/* 首屏模型机悬浮 + 打字光标 */
.hero-mockup { animation: floaty 7s ease-in-out infinite; }
.mockup-msg.ai .mockup-bubble::after {
    content: '▍';
    margin-left: 2px;
    color: var(--c-primary, #818cf8);
    animation: caret 1s steps(2) infinite;
    font-weight: 400;
}
.mockup-msg:last-of-type .mockup-bubble::after { content: ''; }
@keyframes caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* 常见问题（原白底）→ 深色玻璃卡片 */
.faq-block { padding: 5rem 0; background: linear-gradient(180deg, rgba(99,102,241,0.05), rgba(15,23,42,0.4)); }
.faq-block h2 { font-family: var(--font-display); color: #eef2ff; font-weight: 800; }
.faq-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)), var(--surface-2);
    border: 1px solid var(--hairline); border-radius: 14px;
    padding: 1.3rem 1.6rem; margin-bottom: 0.9rem;
    box-shadow: inset 0 1px 0 var(--surface-hi), 0 10px 28px -26px rgba(0,0,0,0.7);
    transition: border-color 0.3s, transform 0.3s;
}
.faq-item:hover { border-color: var(--hairline-strong); transform: translateX(3px); }
.faq-item h3 { color: #c7d2fe; margin-bottom: 0.5rem; font-size: 1.08rem; font-family: var(--font-body); }
.faq-item p { color: var(--ui-muted, #94a3b8); line-height: 1.8; margin: 0; }

/* 营销紫带颗粒纹理 */
.marketing-band { position: relative; overflow: hidden; }
.marketing-band::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--grain), radial-gradient(70% 100% at 50% 0%, rgba(255,255,255,0.12), transparent 60%);
    background-size: 180px 180px, 100% 100%;
    opacity: 0.45; mix-blend-mode: overlay; pointer-events: none;
}
.marketing-band > * { position: relative; z-index: 1; }

/* 页脚(.site-footer)样式已内联至 views/partials/footer-spark1.ejs：被 main/channel/subdomain 三布局共用、单一来源；勿在此重复定义，否则会再次漂移出 channel/subdomain 页脚塌缩 bug。 */

/* 汉堡菜单 + 移动端导航已统一迁移至 dark-base.css */

@media (max-width: 768px) {
    /* 页面特有元素（浮动微信按钮等） */
    #wechat-float {
        right: 12px !important;
        bottom: 68px !important;
    }
    #wechat-float #float-btn {
        width: 40px !important;
        height: 40px !important;
    }
    #wechat-float #float-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    #wechat-float #float-panel {
        width: 190px !important;
        right: -8px !important;
        padding: 10px !important;
    }
    #wechat-float #float-panel img {
        width: 100px !important;
        height: 100px !important;
    }
    #lead-bottom-bar {
        padding: 8px 12px !important;
    }
    #lead-bottom-bar img {
        width: 40px !important;
        height: 40px !important;
    }
    #lead-bottom-bar p {
        font-size: 0.85rem !important;
    }
    #lead-side-guide {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #wechat-float {
        right: 8px !important;
        bottom: 68px !important;
    }
    #wechat-float #float-btn {
        width: 36px !important;
        height: 36px !important;
    }
    #wechat-float #float-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* 移动端关闭按钮默认隐藏 */
.mobile-nav-close {
    display: none;
}

/* ===== 无障碍增强 ===== */
html.a11y-high-contrast .page-hero h1,
html.a11y-high-contrast .about-content h2,
html.a11y-high-contrast .services-detail h2,
html.a11y-high-contrast .contact-info h2,
html.a11y-high-contrast .contact-form h2 {
    -webkit-text-fill-color: #e0e7ff;
    background: none;
    color: #e0e7ff;
}
html.a11y-high-contrast .service-item,
html.a11y-high-contrast .info-item,
html.a11y-high-contrast .vision,
html.a11y-high-contrast .mission,
html.a11y-high-contrast .history,
html.a11y-high-contrast .team,
html.a11y-high-contrast .values,
html.a11y-high-contrast .contact-info,
html.a11y-high-contrast .contact-form {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}
html.a11y-large-text .service-item p,
html.a11y-large-text .info-item p,
html.a11y-large-text .vision p,
html.a11y-large-text .mission p,
html.a11y-large-text .values li {
    font-size: 1.05rem;
}

/* ==================== Agent Builder ==================== */
.ag-builder { padding: 2rem 0 4rem; }
.ag-section {
    background: var(--surface-1, rgba(255,255,255,0.04));
    border: 1px solid var(--hairline, rgba(255,255,255,0.07));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ag-section h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.ag-hint { color: #94a3b8; font-size: 0.85rem; margin: 0 0 0.8rem; }
.ag-hint code { background: rgba(99,102,241,0.15); padding: 1px 5px; border-radius: 3px; font-size: 0.82rem; }
.ag-field { margin-bottom: 0.8rem; }
.ag-label { display: block; color: #cbd5e1; font-size: 0.9rem; margin-bottom: 0.3rem; }
.ag-label .required { color: #ef4444; }
.ag-input {
    width: 100%; padding: 0.55rem 0.75rem;
    background: rgba(15,23,42,0.6); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #e2e8f0; font-size: 0.9rem;
    font-family: inherit; box-sizing: border-box;
}
.ag-input:focus { border-color: #6366f1; outline: none; }
.ag-row { display: flex; gap: 1rem; }
.ag-flex-1 { flex: 1; }

.ag-icon-picker { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ag-icon-btn {
    width: 2.2rem; height: 2.2rem; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; background: rgba(15,23,42,0.6); cursor: pointer;
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.ag-icon-btn:hover { border-color: #6366f1; }
.ag-icon-btn.active { border-color: #6366f1; background: rgba(99,102,241,0.2); }

.ag-input-row {
    display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.ag-input-row .ag-input { flex: 1; min-width: 100px; }
.ag-checkbox { color: #94a3b8; font-size: 0.85rem; white-space: nowrap; cursor: pointer; }
.ag-checkbox input { margin-right: 3px; }
.ag-btn-del {
    background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444; border-radius: 6px; padding: 0.4rem 0.65rem; cursor: pointer;
    font-size: 0.85rem;
}
.ag-btn-del:hover { background: rgba(239,68,68,0.25); }

.ag-btn-primary {
    background: #6366f1; border: none; color: #fff; padding: 0.6rem 1.5rem;
    border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-family: inherit;
    transition: background 0.15s; text-decoration: none; display: inline-block;
}
.ag-btn-primary:hover { background: #4f46e5; }
.ag-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.ag-btn-accent { background: #f59e0b; }
.ag-btn-accent:hover { background: #d97706; }
.ag-btn-secondary {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #cbd5e1; padding: 0.55rem 1.2rem; border-radius: 8px;
    cursor: pointer; font-size: 0.9rem; font-family: inherit;
}
.ag-btn-secondary:hover { background: rgba(255,255,255,0.1); }
.ag-btn-sm {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #cbd5e1; padding: 0.3rem 0.8rem; border-radius: 6px;
    cursor: pointer; font-size: 0.85rem; font-family: inherit;
}
.ag-btn-sm:hover { background: rgba(255,255,255,0.1); }
.ag-btn-sm.ag-btn-accent { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.3); color: #f59e0b; }
.ag-btn-sm.ag-btn-del { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: #ef4444; }
.ag-btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

.ag-radio-group { display: flex; gap: 1.5rem; }
.ag-radio { color: #cbd5e1; cursor: pointer; }
.ag-radio input { margin-right: 4px; }

.ag-step-card {
    background: rgba(15,23,42,0.4); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 1rem; margin-bottom: 1rem;
}
.ag-step-header { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.ag-step-id { color: #6366f1; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.ag-step-body { padding-left: 0.5rem; }
.ag-step-options {
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
    margin-top: 0.5rem; color: #94a3b8; font-size: 0.85rem;
}
.ag-step-options .ag-input { max-width: 80px; display: inline-block; }

.ag-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ==================== Run Overlay ==================== */
.ag-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.ag-run-panel {
    background: #1e293b; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; width: 90%; max-width: 700px; max-height: 85vh;
    display: flex; flex-direction: column;
}
.ag-run-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ag-run-header h3 { margin: 0; }
.ag-close-btn {
    background: none; border: none; color: #94a3b8; font-size: 1.3rem;
    cursor: pointer;
}
.ag-close-btn:hover { color: #e2e8f0; }
.ag-run-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.ag-run-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; gap: 0.8rem; align-items: center; }
.ag-run-status { color: #94a3b8; font-size: 0.85rem; }

.ag-progress-steps { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ag-prog-step {
    display: flex; align-items: center; gap: 0.3rem; color: #64748b;
    font-size: 0.85rem; padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.06); border-radius: 6px;
}
.ag-prog-step.active { color: #6366f1; border-color: #6366f1; }
.ag-prog-dot {
    width: 1.4rem; height: 1.4rem; border-radius: 50%; background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.ag-prog-step.active .ag-prog-dot { background: #6366f1; color: #fff; }

.ag-result-card {
    background: rgba(15,23,42,0.4); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem;
}
.ag-result-card h4 { margin: 0 0 0.5rem; color: #6366f1; font-size: 0.95rem; }
.ag-result-card pre {
    background: rgba(0,0,0,0.3); padding: 0.8rem; border-radius: 6px;
    overflow-x: auto; font-size: 0.85rem; color: #cbd5e1; white-space: pre-wrap;
    max-height: 400px; overflow-y: auto;
}
.ag-result-meta { color: #94a3b8; font-size: 0.85rem; margin-top: 0.5rem; }
.ag-error { color: #ef4444; padding: 1rem; background: rgba(239,68,68,0.1); border-radius: 8px; }

/* ==================== Marketplace ==================== */
.ag-marketplace { padding: 2rem 0 4rem; }
.ag-controls { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ag-categories { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ag-cat-btn {
    padding: 0.35rem 0.8rem; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; background: rgba(15,23,42,0.6); color: #94a3b8;
    cursor: pointer; font-size: 0.85rem; font-family: inherit;
}
.ag-cat-btn:hover { border-color: #6366f1; color: #cbd5e1; }
.ag-cat-btn.active { background: rgba(99,102,241,0.2); border-color: #6366f1; color: #6366f1; }

.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.ag-card {
    background: var(--surface-1, rgba(255,255,255,0.04));
    border: 1px solid var(--hairline, rgba(255,255,255,0.07));
    border-radius: 12px; padding: 1.25rem; text-decoration: none; color: inherit;
    transition: border-color 0.2s, transform 0.2s; display: block;
}
.ag-card:hover { border-color: #6366f1; transform: translateY(-2px); }
.ag-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.ag-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #e2e8f0; }
.ag-card-desc { color: #94a3b8; font-size: 0.85rem; margin: 0 0 0.6rem; line-height: 1.4; }
.ag-card-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.ag-tag {
    padding: 0.15rem 0.5rem; background: rgba(99,102,241,0.1); border-radius: 4px;
    color: #818cf8; font-size: 0.75rem;
}
.ag-card-meta { display: flex; gap: 0.8rem; color: #64748b; font-size: 0.8rem; margin-bottom: 0.5rem; }
.ag-card-price { margin-top: 0.5rem; }
.ag-badge {
    display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px;
    background: rgba(99,102,241,0.15); color: #818cf8; font-size: 0.8rem;
    margin-right: 0.4rem;
}
.ag-badge-free { background: rgba(16,185,129,0.15); color: #34d399; }
.ag-loading, .ag-empty { text-align: center; padding: 3rem; color: #94a3b8; }
.ag-pagination { text-align: center; margin-top: 1.5rem; color: #94a3b8; font-size: 0.85rem; }

/* ==================== My Agents ==================== */
.ag-my-agents { padding: 2rem 0 4rem; }
.ag-earnings {
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px; padding: 0.8rem 1.2rem; margin-bottom: 1.5rem;
    color: #f59e0b;
}
.ag-earnings-amount { font-size: 1.3rem; font-weight: 700; margin: 0 0.2rem; }
.ag-my-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface-1, rgba(255,255,255,0.04));
    border: 1px solid var(--hairline, rgba(255,255,255,0.07));
    border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 0.6rem;
    gap: 1rem; flex-wrap: wrap;
}
.ag-my-left { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 200px; }
.ag-my-icon { font-size: 1.5rem; }
.ag-my-info { display: flex; flex-direction: column; gap: 0.2rem; }
.ag-my-status { font-size: 0.8rem; color: #94a3b8; }
.ag-my-note { font-size: 0.8rem; color: #f59e0b; }
.ag-my-stats { display: flex; gap: 1rem; color: #64748b; font-size: 0.85rem; }
.ag-my-actions { display: flex; gap: 0.4rem; }

/* ==================== Detail Page ==================== */
.ag-detail { padding: 2rem 0 4rem; }
.ag-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
@media (max-width: 768px) { .ag-detail-grid { grid-template-columns: 1fr; } }
.ag-detail-main {
    background: var(--surface-1, rgba(255,255,255,0.04));
    border: 1px solid var(--hairline, rgba(255,255,255,0.07));
    border-radius: 12px; padding: 1.5rem;
}
.ag-detail-side { display: flex; flex-direction: column; gap: 1rem; }
.ag-side-card {
    background: var(--surface-1, rgba(255,255,255,0.04));
    border: 1px solid var(--hairline, rgba(255,255,255,0.07));
    border-radius: 12px; padding: 1.25rem;
}
.ag-side-card h3 { margin: 0 0 0.8rem; font-size: 1rem; }
.ag-step-preview { display: flex; flex-direction: column; gap: 0.5rem; }
.ag-step-item { display: flex; align-items: center; gap: 0.6rem; color: #94a3b8; font-size: 0.9rem; }
.ag-step-num {
    width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(99,102,241,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
    color: #818cf8; flex-shrink: 0;
}
.ag-tag-list { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.ag-reviews { margin-top: 2rem; }
.ag-stars { display: flex; gap: 0.3rem; margin-bottom: 0.5rem; }
.ag-star { font-size: 1.5rem; cursor: pointer; color: #64748b; transition: color 0.15s; }
.ag-star:hover, .ag-star.active { color: #f59e0b; }
.ag-review-item {
    background: var(--surface-1, rgba(255,255,255,0.04));
    border: 1px solid var(--hairline, rgba(255,255,255,0.07));
    border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem;
}
.ag-review-header { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.4rem; font-size: 0.9rem; }
.ag-review-stars { color: #f59e0b; }
.ag-review-date { color: #64748b; font-size: 0.8rem; margin-left: auto; }
.ag-review-body { color: #cbd5e1; font-size: 0.9rem; margin: 0; }

.ag-related { margin-top: 3rem; }

/* ── 品牌 FAQ 区块 .brand-faq ─────────────────────────────────────────
   收敛自各 AI 品牌页内联重复定义（4 处近乎一致，仅 hover 色调不同）。
   修复：此前 31 个页面渲染 <section class="brand-faq"> 却无任何样式（FAQ 裸奔）。
   各页可覆写 --brand-faq-hover 自定义悬停色；已内联定义的 4 页因 body <style>
   层叠在后，其自有样式仍生效（不受影响）。 ── */
.brand-faq { margin-top: 40px; }
.brand-faq h2 { color: var(--form-text); font-size: 1.1rem; text-align: center; margin-bottom: 20px; }
.brand-faq details { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 10px; }
.brand-faq summary { padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--form-text); font-size: 0.92rem; }
.brand-faq summary:hover { background: var(--brand-faq-hover, rgba(99,102,241,0.06)); }
.brand-faq details[open] summary { border-bottom: 1px solid rgba(255,255,255,0.06); }
.brand-faq details p { padding: 14px 18px; color: var(--ui-muted); font-size: 0.88rem; line-height: 1.8; }

/* ── 通用轻提示 .error-toast ──────────────────────────────────────────
   收敛自 14 个 AI 页面内联重复定义，配合 shared/client/toast.js（union 签名）。
   pointer-events:none 让提示不拦截点击（原 ai-food/ai-picturebook 已有此特性，统一采用）。 ── */
.error-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); padding: 12px 24px; background: rgba(239,68,68,0.9); color: #fff; border-radius: 10px; font-size: 0.9rem; opacity: 0; transition: all 0.3s; z-index: 10001; pointer-events: none; }
.error-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.error-toast.success { background: rgba(16,185,129,0.9); }

/* ── 跳转页码控件 ──────────────────────────────────────────────────────── */
.jump-page-wrap { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.jump-page-wrap input { width: 44px; padding: 4px 6px; text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: var(--form-text); font-size: 0.82rem; -moz-appearance: textfield; }
.jump-page-wrap input::-webkit-outer-spin-button, .jump-page-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jump-page-wrap input:focus { border-color: #6366f1; outline: none; }
.jump-page-wrap button { padding: 4px 10px; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); border-radius: 6px; color: #a5b4fc; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
.jump-page-wrap button:hover { background: rgba(99,102,241,0.25); }
