/* ============================================
   Yeeoo AI检测助手 - 品牌定制风格
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
    --c-primary-purple: #823efc;
    --c-primary-blue: #0052d9;
    --c-primary-hover: #0064ff;
    --c-accent-purple: #4527a0;
    --c-accent-dark: #2a1a4a;
    --c-accent-muted: #7b84c7;

    --c-text: #303133;
    --c-text-2: #676d6f;
    --c-text-3: #909399;
    --c-text-placeholder: #c0c4cc;
    --c-text-on-dark: #fff;

    --c-bg: #fff;
    --c-bg-alt: #f9f9f9;
    --c-bg-input: #f5f7fa;
    --c-border: #e6e6e6;
    --c-border-soft: #e7eaef;
    --c-border-footer: #f0f2f5;

    --c-ai: #f56c6c; --c-ai-bg: #fef0f0;
    --c-sus: #e6a23c; --c-sus-bg: rgba(230,162,60,.1);
    --c-hu: #67c23a; --c-hu-bg: #f0f9eb;
    --c-info: #4e7ae7;

    --r-sm: 4px; --r-md: 8px; --r-lg: 10px; --r-xl: 12px; --r-pill: 20px;
    --shadow-card: 0 4px 15px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 20px rgba(69,39,160,.15);
    --container: 1140px;
    --nav-h: 60px;

    --font-zh: "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    font-family: var(--font-zh);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
    padding-top: var(--nav-h);
}

/* 无障碍 - 跳过导航 */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 999;
    background: var(--c-primary-blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid #ffd700; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   顶部固定导航
   ============================================ */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border-soft);
    z-index: 100;
}
.top-nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 30px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text);
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}
.brand-mark {
    width: 32px;
    height: 32px;
    display: block;
}
.brand-text { white-space: nowrap; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}
.nav-item {
    color: #333;
    font-size: 14px;
    padding: 0 15px;
    height: var(--nav-h);
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}
.nav-item:hover { color: var(--c-primary-hover); }
.nav-item.active { color: var(--c-primary-blue); font-weight: 600; }
.nav-item .caret { font-size: 10px; margin-left: 2px; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: 4px;
}
.lang-switch {
    color: #666;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.lang-switch .globe { font-size: 16px; }
.nav-link {
    color: #666;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--c-primary-hover); }
.user-icon { font-size: 14px; }
.user-name { font-size: 14px; color: #333; }

/* ============================================
   Hero
   ============================================ */
.hero {
    text-align: center;
    padding: 60px 20px 0;
    background: radial-gradient(ellipse at top, #eef2ff 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, #f3e8ff 0%, transparent 50%);
}
.hero-title {
    font-size: 50px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, #823efc, #7440f9, #6642f6, #5844f3, #4a46f0, #3c48ed, #2e4aea, #204ce7, #124ee4, #0450e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-desc {
    color: var(--c-text-2);
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    max-width: 900px;
    margin: 20px auto 0;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* ============================================
   滑块选项卡
   ============================================ */
.tab-pill {
    position: relative;
    width: 270px;
    height: 40px;
    background: #ececec;
    margin: 30px auto 0;
    border-radius: var(--r-pill);
    display: flex;
}
.tab-pill-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: #303133;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s;
}
.tab-pill-btn.active { color: #fff; }
.tab-pill-btn .ti { font-style: normal; font-size: 16px; }
.tab-pill-slider {
    position: absolute;
    top: 0; left: 0;
    width: 135px;
    height: 40px;
    background: linear-gradient(90deg, #823efc, #5e3eed);
    border-radius: var(--r-pill);
    transition: left 0.25s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(130,62,252,0.4);
}

/* ============================================
   通知行
   ============================================ */
.notice-line {
    max-width: var(--container);
    margin: 18px auto 0;
    padding: 8px 20px;
    color: #999;
    font-size: 12px;
    text-align: center;
}
.notice-line a { color: var(--c-primary-blue); }

/* ============================================
   核心工作区
   ============================================ */
.workarea {
    max-width: var(--container);
    margin: 14px auto 0;
    padding: 0 20px;
}
.work-card {
    display: flex;
    justify-content: space-between;
    background: var(--c-bg);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 30px;
    min-height: 540px;
    gap: 20px;
}
.card-left {
    width: calc(70% - 10px);
    display: flex;
    flex-direction: column;
}
.card-right {
    width: 30%;
    padding: 0 30px;
    border-left: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}

/* 示例 chips */
.example-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.example-tag {
    padding: 5px 12px;
    background: #f5f7fa;
    color: #606266;
    font-size: 12px;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.example-tag:hover {
    border-color: var(--c-primary-purple);
    color: var(--c-primary-purple);
    background: #faf5ff;
}
.example-tag.active {
    border-color: var(--c-primary-blue);
    color: var(--c-primary-blue);
    background: #eff6ff;
}

/* 编辑器 */
.editor-wrap {
    position: relative;
    margin: 8px 0 4px;
    height: 320px;
    flex: none;
    overflow: visible;
    border: 1.5px solid rgba(0, 82, 217, 0.28);
    border-radius: 8px;
    background: rgba(0, 82, 217, 0.03);
    box-sizing: border-box;
}
.editor-wrap:hover {
    border-color: rgba(0, 82, 217, 0.5);
    background: rgba(0, 82, 217, 0.045);
}
.editor-wrap:focus-within,
.editor-wrap:has(.editor:not(:placeholder-shown)),
.editor-wrap:has(.highlight-view:not([style*="display:none"])) {
    border-color: var(--c-primary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.12);
}
.editor {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    outline: 0;
    resize: none;
    overflow-y: auto;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-text);
    padding: 12px 14px;
}
.editor::placeholder { color: var(--c-text-placeholder); }
.editor:disabled { opacity: 0.6; cursor: not-allowed; }
.highlight-view {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-text);
    padding: 12px 14px;
    background: #fff;
    white-space: pre-wrap;
    word-wrap: break-word;
    cursor: text;
}
.hv-sus { background: rgba(230,162,60,.1); padding: 2px 4px; border-radius: 3px; margin: 1px 0; display: inline; }
.hv-ai  { background: #fef0f0; padding: 2px 4px; border-radius: 3px; margin: 1px 0; display: inline; }
.hv-hu  { background: #f0f9eb; padding: 2px 4px; border-radius: 3px; margin: 1px 0; display: inline; }

.word-count {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-2);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.btn-link {
    background: #fff;
    border: 1.5px solid var(--c-border);
    color: var(--c-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--r-sm);
    line-height: 1.3;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-link:hover {
    color: var(--c-primary-blue);
    border-color: var(--c-primary-blue);
    background: #eff6ff;
}

.btn-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.btn-clear {
    min-width: 96px;
    padding: 12px 22px;
    font-size: 15px;
    border-radius: 4px;
}
.btn-primary {
    background: var(--c-primary-blue);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-secondary:disabled, .btn-clear:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-detect {
    min-width: 180px;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 4px;
}
.btn-detect .remaining {
    opacity: 0.85;
    font-weight: 400;
    font-size: 13px;
    margin-left: 2px;
}
.btn-secondary {
    background: #fff;
    color: var(--c-text);
    border: 1px solid var(--c-border);
    padding: 8px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover { background: var(--c-bg-input); }

/* tab-content */
.tab-content { display: none; flex: 1; flex-direction: column; }
.tab-content.active { display: flex; }

/* 上传 */
.upload-area {
    border: 2px dashed var(--c-border);
    border-radius: var(--r-md);
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--c-primary-purple);
    background: #faf5ff;
}
.upload-area.is-loading {
    pointer-events: none;
    opacity: 0.6;
}
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-text { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.upload-hint { font-size: 13px; color: var(--c-text-3); }
.image-preview { margin-top: 14px; text-align: center; }
.image-preview img {
    max-width: 100%;
    max-height: 240px;
    border-radius: var(--r-sm);
    display: inline-block;
}
.image-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.image-actions .btn-detect { flex: 1; max-width: 280px; }

/* 结果区 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
}
.result-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.tester-badge {
    background: rgba(58,142,230,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(58,142,230,0.3);
    color: rgba(0,0,0,0.85);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
}

.result-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--c-text-3);
    text-align: center;
    padding: 30px 10px;
}
.result-empty-icon { font-size: 56px; opacity: 0.35; margin-bottom: 12px; }
.result-empty p { font-size: 13px; line-height: 1.7; margin: 0; }

.result-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 环形图 + 引导线标注 */
.donut-wrap { display: flex; justify-content: center; padding: 2px 0 0; margin: 0 -24px; }
.donut-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.donut-svg text { font-family: var(--font-zh); }
.callout-info { cursor: help; }
.leader-line  { stroke: #d8dbe3; stroke-width: 1; fill: none; }
#tipBox {
    position: fixed; padding: 6px 12px; background: var(--c-text); color: #fff;
    border-radius: 4px; font-size: 12px; z-index: 999; pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.2); display: none; max-width: 220px; line-height: 1.5;
}

.donut-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    font-size: 12px;
    color: var(--c-text-2);
    padding: 2px 0 4px;
}
.donut-legend .lg-item { display: inline-flex; align-items: center; gap: 6px; }
.donut-legend .lg-dot {
    width: 16px;
    height: 10px;
    border-radius: 2px;
}
.donut-legend .lg-dot.hu  { background: #b6dfaa; }
.donut-legend .lg-dot.sus { background: #f3c9a5; }
.donut-legend .lg-dot.ai  { background: #f5b8c4; }

.result-disclaimer {
    position: relative;
    background: #f4f5f7;
    color: #6b6f76;
    font-size: 12px;
    line-height: 1.65;
    padding: 10px 28px 10px 12px;
    border-radius: 4px;
}
.disclaimer-close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: 0;
    background: none;
    color: #b0b3b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.disclaimer-close:hover { color: #676d6f; }

.result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 6px 0 2px;
}
.ra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    color: #c0c4cc;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.ra-btn:hover { color: #909399; background: #f5f7fa; }
.ra-btn.active.like { color: #67c23a; }
.ra-btn.active.dislike { color: #f56c6c; }

.verdict-dl {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3a8ee6;
    font-size: 13px;
    font-weight: 400;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}
.verdict-dl:hover { color: #1d6fd6; }

/* 仪表盘（图片结果仍用） */
.gauge-wrap { display: flex; justify-content: center; padding: 4px 0; }
.gauge {
    position: relative;
    width: 200px;
    height: 200px;
}
.gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gauge-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--c-text);
}
.gauge-label {
    font-size: 13px;
    color: var(--c-text-2);
    margin-top: 4px;
}
#gaugeArc, #imgGaugeArc,
#gaugeArcAi, #gaugeArcSus, #gaugeArcHu {
    transition: stroke-dashoffset 1s ease, stroke-dasharray 0.8s ease, stroke 0.5s ease;
}

/* 分布条 */
.dist-bar {
    display: flex;
    height: 24px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--c-bg-input);
}
.db-ai  { background: var(--c-ai);  transition: width 0.6s ease; display: flex; align-items: center; justify-content: center; }
.db-sus { background: var(--c-sus); transition: width 0.6s ease; display: flex; align-items: center; justify-content: center; }
.db-hu  { background: var(--c-hu);  transition: width 0.6s ease; display: flex; align-items: center; justify-content: center; }
.db-label {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    font-size: 13px;
    color: var(--c-text-2);
}
.lg-item { display: inline-flex; align-items: center; gap: 4px; }
.lg-val { font-weight: 700; color: var(--c-text); }
.lg-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.lg-dot.ai  { background: var(--c-ai); }
.lg-dot.sus { background: var(--c-sus); }
.lg-dot.hu  { background: var(--c-hu); }

/* 模型行 */
.model-line {
    background: #f5f7fa;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #5c5c5c;
    display: flex;
    align-items: center;
    gap: 6px;
}
.model-line strong { color: var(--c-text); margin: 0 4px; }
.model-conf { color: var(--c-primary-blue); font-weight: 600; }

/* 判定 banner */
.verdict-banner {
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}
.verdict-banner.ai  { background: #fdecee; color: #d46a7a; }
.verdict-banner.sus { background: #fdf3e7; color: #d4924a; }
.verdict-banner.hu  { background: #e9f6e4; color: #5ba04a; }

/* 段落列表 */
.segment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 180px;
    overflow-y: auto;
    margin-top: 4px;
}
.segment-item {
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    background: #fff;
    overflow: hidden;
}
.segment-header {
    background: #f5f7fa;
    padding: 8px 10px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--c-text-2);
}
.segment-no {
    background: var(--c-info);
    color: #fff;
    padding: 1px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}
.segment-label { font-weight: 600; color: var(--c-text); }
.segment-text {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--c-text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.file-info {
    background: #f5f7fa;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--c-text-2);
    line-height: 1.7;
}

.hint-line {
    text-align: center;
    margin-top: 12px;
    color: var(--c-text-3);
    font-size: 11px;
}

/* ============================================
   Section 通用
   ============================================ */
.section {
    padding: 80px 20px;
    background: #fff;
}
.section.alt, .section-alt { background: #f9f9f9; }
.section.section-dark { background: linear-gradient(135deg, #2a1a4a, #4527a0); color: #fff; }
.container { max-width: var(--container); margin: 0 auto; }
.section-h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 10px;
}
.section-h2.light { color: #fff; }
.section-divider {
    width: 130px;
    height: 4px;
    background: var(--c-accent-purple);
    margin: 0 auto 30px;
    border-radius: 2px;
}
.section-divider.light { background: #b794f6; }
.section-lead {
    text-align: center;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 36px;
}
.section-lead.light { color: rgba(255,255,255,0.85); }

/* 能力卡片 */
.features-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.feature-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.feature-banner {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}
.banner-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.banner-image {
    background: linear-gradient(135deg, #823efc, #0450e1);
}
.feature-body { padding: 24px 24px 28px; }
.feature-body h3 {
    font-size: 18px;
    color: var(--c-accent-dark);
    margin: 0 0 12px;
    font-weight: 700;
}
.feature-body p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px;
}
.format-tags { display: flex; gap: 8px; justify-content: center; }
.fmt-tag {
    padding: 3px 10px;
    background: #f5f7fa;
    color: #606266;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* 场景卡片 */
.scenarios {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}
.scenario-card {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.scenario-card.reverse { flex-direction: row-reverse; }
.scenario-img {
    flex: 0 0 55%;
    height: 280px;
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scenario-img-1 { background: linear-gradient(135deg, #ffeaa7, #fab1a0); }
.scenario-img-2 { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.scenario-img-3 { background: linear-gradient(135deg, #55efc4, #00b894); }
.scenario-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.scenario-illu {
    width: 80%;
    height: 80%;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255,255,255,0.7);
}
.illu-1::before { content: "📱"; }
.illu-2::before { content: "📚"; }
.illu-3::before { content: "🗂️"; }

.scenario-text { flex: 1; }
.scenario-text h2 {
    color: var(--c-accent-dark);
    font-size: 22px;
    margin: 0 0 16px;
    font-weight: 700;
}
.scenario-text p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Benchmark */
.bench-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 28px;
}
.bench-tab {
    font-size: 15px;
    padding: 6px 22px;
    border-radius: 20px;
    color: #4527a0;
    background: rgba(69,39,160,0.1);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0.55;
    letter-spacing: 1px;
}
.bench-tab:hover { opacity: 0.85; }
.bench-tab.active {
    opacity: 1;
    transform: scale(1.04);
    font-weight: 600;
}
.bench-tab[data-bench="image"] { color: #1976d2; background: rgba(33,150,243,0.16); }
.bench-tab[data-bench="video"] { color: #2e7d32; background: rgba(76,175,80,0.22); }

.bench-table-card {
    background: #fff;
    border-radius: var(--r-xl);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 20px 24px 30px;
    overflow-x: auto;
}
.bench-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.bench-table th, .bench-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--c-border);
}
.bench-table th {
    background: #f5f7fa;
    color: var(--c-text);
    font-weight: 600;
}
.bench-table td { color: var(--c-text); }
.bench-table th.hl-col, .bench-table td.hl-col {
    background: rgba(69,39,160,0.04);
    color: var(--c-accent-purple);
    font-weight: 600;
}
.lang-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    background: #f0f2f5;
    color: #909399;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}
.bench-foot {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin: 20px 0 0;
}

/* AI or not */
.ainot-wrap {
    display: flex;
    align-items: center;
    gap: 50px;
}
.ainot-left { flex: 1; }
.ainot-left .section-h2 { text-align: left; margin: 0 0 10px; }
.ainot-left .section-divider { margin: 0 0 20px; }
.ainot-left .section-lead { text-align: left; margin: 0 0 24px; }
.ainot-right { flex: 0 0 45%; }
.ainot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 24px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--r-md);
}
.ainot-cell {
    position: relative;
    border-radius: var(--r-sm);
    overflow: hidden;
    aspect-ratio: 1;
}
.ainot-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cell-color {
    width: 100%;
    height: 100%;
}
.c1 { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.c2 { background: linear-gradient(135deg, #fdcbf1, #e6dee9); }
.c3 { background: linear-gradient(135deg, #c2e9fb, #84fab0); }
.c4 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.c5 { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.c6 { background: linear-gradient(135deg, #d4fc79, #96e6a1); }
.cell-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.cta-button {
    display: inline-block;
    background: var(--c-accent-purple);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    transition: background 0.2s;
}
.cta-button:hover { background: #5e3aaf; }

/* FAQ */
.qa-container { max-width: 800px; }
.qa-list { display: flex; flex-direction: column; gap: 0; }
.qa-item {
    border-bottom: 1px solid var(--c-border);
    padding: 18px 0;
}
.qa-item summary {
    font-size: 15px;
    color: #262626;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    position: relative;
    padding-right: 26px;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--c-text-3);
    transition: transform 0.2s;
    line-height: 1;
}
.qa-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-accent-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.a-body {
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.8;
    padding: 12px 0 0 30px;
}

/* 声明 */
.disclaimer { max-width: 800px; }
.disclaimer p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #fafbfd 0%, #f3f4f8 100%);
    border-top: 1px solid var(--c-border-footer);
    padding: 40px 20px 28px;
    color: #8a8f99;
    font-size: 14px;
    line-height: 1.7;
}
.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #823efc, #0450e1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(130,62,252,0.3);
}
.footer-slogan {
    margin: 0;
    font-size: 15px;
    color: #2a1a4a;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-bottom: 18px;
    padding: 14px 0;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}
.footer-links a {
    color: #606266;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #0052d9; }
.footer-meta {
    margin: 4px 0;
    font-size: 13px;
    color: #8a8f99;
    line-height: 1.7;
}
.footer-meta strong {
    color: #2a1a4a;
    font-weight: 600;
}
.footer-meta-sub {
    font-size: 12px;
    color: #b0b3b9;
}

@media (max-width: 600px) {
    .footer-links { gap: 4px 12px; }
    .footer-meta { font-size: 12px; }
    .footer-meta-sub { font-size: 11px; }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 980px) {
    .work-card { flex-direction: column; min-height: auto; }
    .card-left, .card-right { width: 100%; }
    .card-right { border-left: 0; border-top: 1px solid var(--c-border); padding: 24px 0 0; margin-top: 16px; }
    .ainot-wrap { flex-direction: column; align-items: stretch; }
    .ainot-right { flex: none; }
    .scenario-card, .scenario-card.reverse { flex-direction: column; }
    .scenario-img { flex: none; width: 100%; height: 200px; }
    .nav-menu { display: none; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 15px; }
    .section { padding: 50px 16px; }
    .features-grid { flex-direction: column; }
    .bench-table-card { padding: 12px; }
    .bench-table th, .bench-table td { padding: 8px 6px; font-size: 12px; }
    .lang-tag { display: none; }
}

@media (max-width: 480px) {
    .brand-text { display: none; }
    .top-nav-inner { gap: 10px; padding: 0 12px; }
    .nav-right { gap: 8px; }
    .lang-switch { display: none; }
    .hero { padding: 30px 14px 0; }
    .hero-title { font-size: 26px; }
    .tab-pill { width: 220px; }
    .tab-pill-btn, .tab-pill-slider { width: 110px; }
    .work-card { padding: 16px; }
}
