/* ============================================================
   卡皮巴拉智能体 官网样式
   视觉与 goods-library-cloud fashion 登录页（views-fashion/Login/index.vue）保持一致：
   深色科技背景 + 紫色系主色 + 玻璃拟态卡片
   ============================================================ */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 基础主色调 */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --primary-border: #c7d2fe;
    --accent: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);

    /* 紫色系科技电力主题 */
    --power-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --power-glow: rgba(168, 85, 247, 0.35);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-page: #090d16;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 深色区块通用 token */
    --glass-bg: rgba(30, 41, 59, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(129, 140, 248, 0.55);
    --dark-text: #f8fafc;
    --dark-muted: #94a3b8;
    --dark-dim: #64748b;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ================= 炫酷背景光效（固定在视口，随页面滚动保持） ================= */
.ambient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.4;
    animation: floatPulse 14s ease-in-out infinite alternate;
}

.sphere-1 { width: 600px; height: 600px; background: #6366f1; top: -120px; left: -100px; }
.sphere-2 { width: 500px; height: 500px; background: #a855f7; bottom: -100px; right: 8%; animation-delay: -5s; }
.sphere-3 { width: 400px; height: 400px; background: #0ea5e9; top: 35%; left: 30%; opacity: 0.22; animation-delay: -8s; }

@keyframes floatPulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.12) translate(35px, 25px); }
    100% { transform: scale(0.92) translate(-25px, 35px); }
}

/* ================= 滚动进场动画 ================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ================= 导航栏 ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(9, 13, 22, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand h1,
.nav-brand h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

/* 品牌 Logo 方块（导航与展示区共用） */
.brand-logo-box {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.navbar .brand-logo-box,
.footer .brand-logo-box {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 10px;
}

/* ================= 通用区块 ================= */
.section {
    position: relative;
    z-index: 1;
    padding: 96px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 14.5px;
    color: var(--dark-muted);
    line-height: 1.8;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 玻璃卡片通用 */
.glass-card,
.feature-card,
.agent-card,
.compliance-card,
.metric-tile,
.step,
.faq-item,
.console-card,
.case-nav-item {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.7s ease;
}

.feature-card:hover,
.agent-card:hover,
.compliance-card:hover,
.metric-tile:hover,
.step:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.35);
}

/* 标签色（与 fashion 案例卡一致，图标容器复用） */
.tag-purple { color: #c084fc; border-color: rgba(192, 132, 252, 0.4); }
.tag-green  { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.tag-blue   { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.tag-orange { color: #fb923c; border-color: rgba(251, 146, 60, 0.4); }
.tag-red    { color: #f87171; border-color: rgba(248, 113, 113, 0.4); }

.case-features-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-chip {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================= Hero ================= */
.hero {
    position: relative;
    z-index: 1;
    padding: 80px 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 22px;
}

.hero-title {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 15.5px;
    color: var(--dark-muted);
    line-height: 1.85;
    margin-bottom: 22px;
    max-width: 540px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.hero-tags .case-chip {
    font-size: 12px;
    padding: 5px 11px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat h4 {
    font-size: 26px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-stat p {
    font-size: 12px;
    color: var(--dark-dim);
}

/* 智能体工作台模拟卡片 */
.hero-visual {
    position: relative;
    padding: 24px 0;
}

.console-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.console-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.25) 0%, transparent 55%);
    pointer-events: none;
}

.console-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.console-dots span:nth-child(1) { background: #f87171; }
.console-dots span:nth-child(2) { background: #fbbf24; }
.console-dots span:nth-child(3) { background: #4ade80; }

.console-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.console-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #4ade80;
}

.console-status i {
    font-size: 8px;
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.console-body {
    padding: 8px 18px;
}

.task-row {
    display: grid;
    grid-template-columns: 34px 1fr 90px 52px;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.task-row:last-child {
    border-bottom: none;
}

.task-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.task-info strong {
    display: block;
    font-size: 13px;
    color: #f1f5f9;
    line-height: 1.3;
}

.task-info span {
    display: block;
    font-size: 11px;
    color: var(--dark-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.task-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--power-gradient);
    box-shadow: 0 0 10px var(--power-glow);
    animation: fillBar 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes fillBar {
    to { width: var(--w); }
}

.task-state {
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.task-state.done { color: #4ade80; }
.task-state.running { color: #818cf8; }
.task-state.queue { color: var(--dark-dim); }

.console-foot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
}

.console-foot small {
    display: block;
    font-size: 11px;
    color: var(--dark-dim);
    margin-bottom: 2px;
}

.console-foot strong {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
}

/* 悬浮指标徽章 */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(99, 102, 241, 0.92);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    animation: floatBadge 4s ease-in-out infinite;
}

/* 徽章挂在卡片角上，只压住边框留白，不压住工作台文字 */
.fb-1 { top: -22px; right: -12px; }
.fb-2 { bottom: -22px; left: -12px; background: rgba(168, 85, 247, 0.92); box-shadow: 0 8px 24px rgba(168, 85, 247, 0.45); animation-delay: -2s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 直连平台跑马灯 */
.platform-strip {
    margin-top: 72px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.35);
}

.platform-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--dark-dim);
    margin-bottom: 14px;
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.platform-chip i {
    color: #818cf8;
    font-size: 16px;
}

/* ================= 核心能力 ================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
    margin-bottom: 4px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.feature-card p {
    font-size: 12.5px;
    color: var(--dark-muted);
    line-height: 1.65;
    flex: 1;
}

/* ================= 场景案例：轮播 + 案例导航 ================= */
.cases-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* 与 fashion 登录页 .auth-showcase 一致的展示区 */
.auth-showcase {
    min-width: 0;
    background: linear-gradient(155deg, #13182e 0%, #0d111d 55%, #180d28 100%);
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.6);
}

.auth-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.28) 0%, transparent 60%);
    pointer-events: none;
}

.auth-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.brand-logo-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-title-box h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title-box p {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    font-size: 11px;
    color: #c7d2fe;
    white-space: nowrap;
}

.case-carousel-wrapper {
    position: relative;
    z-index: 2;
    margin: 16px 0;
    height: 380px;
}

.case-card {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(40px) scale(0.96);
    pointer-events: none;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
}

.case-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.case-img-cover {
    height: 215px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.case-img-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-img-cover img {
    transform: scale(1.04);
}

.case-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.case-tag-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-tag-pill i { font-size: 14px; }

.case-metric-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.case-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.case-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 10px;
}

.carousel-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    width: 44px;
    background: #818cf8;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.6);
}

.carousel-arrows {
    display: flex;
    gap: 8px;
}

.arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.showcase-stats-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-mini-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2px;
}

.stat-mini-box p {
    font-size: 11px;
    color: #64748b;
}

/* 案例导航列表 */
.case-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    border-radius: 16px;
}

.case-nav-item:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
}

.case-nav-item.active {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.5);
}

.case-nav-num {
    font-size: 12px;
    font-weight: 800;
    color: var(--dark-dim);
    letter-spacing: 1px;
    width: 24px;
}

.case-nav-item.active .case-nav-num {
    color: #a5b4fc;
}

.case-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.case-nav-text {
    flex: 1;
    min-width: 0;
}

.case-nav-text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #f1f5f9;
}

.case-nav-text span {
    display: block;
    font-size: 12px;
    color: var(--dark-muted);
}

.case-nav-arrow {
    color: var(--dark-dim);
    font-size: 14px;
    transition: transform 0.25s, color 0.25s;
}

.case-nav-item.active .case-nav-arrow {
    color: #a5b4fc;
    transform: translateX(3px);
}

/* ================= 智能体矩阵 ================= */
.agent-hub {
    display: flex;
    justify-content: center;
    margin-bottom: -28px;
    position: relative;
    z-index: 2;
}

.agent-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 28px 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.08), 0 20px 40px -12px rgba(99, 102, 241, 0.5);
}

.agent-core .brand-logo-box {
    margin-bottom: 6px;
}

.agent-core strong {
    font-size: 14px;
    font-weight: 800;
    color: #f8fafc;
}

.agent-core span {
    font-size: 11px;
    color: #a5b4fc;
    letter-spacing: 1px;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 48px;
    position: relative;
}

/* 连接线：中枢到四个智能体 */
.agent-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12.5%;
    right: 12.5%;
    height: 24px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.agent-card {
    padding: 44px 22px 24px;
    text-align: center;
    position: relative;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    width: 1px;
    height: 24px;
    background: rgba(129, 140, 248, 0.35);
}

.agent-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: -72px auto 16px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
    background-color: #111827;
}

.agent-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
}

.agent-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.agent-card > p:not(.agent-role) {
    font-size: 12.5px;
    color: var(--dark-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.agent-card .case-features-row {
    justify-content: center;
}

/* ================= 工作流程 ================= */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 58px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.7), rgba(99, 102, 241, 0.1));
    pointer-events: none;
}

.step {
    padding: 28px 22px 26px;
    text-align: center;
    position: relative;
}

.step-num {
    position: absolute;
    top: 14px;
    left: 18px;
    font-size: 11px;
    font-weight: 800;
    color: var(--dark-dim);
    letter-spacing: 1px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15), 0 10px 24px rgba(99, 102, 241, 0.4);
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.step p {
    font-size: 12.5px;
    color: var(--dark-muted);
    line-height: 1.65;
}

/* ================= 成效数据 ================= */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metric-tile {
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-tile::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--power-gradient);
    opacity: 0.7;
}

.metric-tile > i {
    font-size: 24px;
    color: #a5b4fc;
    margin-bottom: 8px;
    display: block;
}

.metric-tile h4 {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.metric-tile p {
    font-size: 12.5px;
    color: var(--dark-muted);
}

/* ================= 合规与安全 ================= */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.compliance-card {
    padding: 26px 22px;
}

.compliance-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 16px;
}

.compliance-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.compliance-card p {
    font-size: 12.5px;
    color: var(--dark-muted);
    line-height: 1.65;
}

.compliance-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(129, 140, 248, 0.6);
    color: #fff;
}

/* ================= 常见问题 ================= */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
}

.faq-item.open {
    border-color: var(--glass-border-hover);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-q i {
    color: #a5b4fc;
    font-size: 16px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-a p {
    padding: 0 22px 18px;
    font-size: 13px;
    color: var(--dark-muted);
    line-height: 1.8;
}

/* ================= 页脚 ================= */
.footer {
    position: relative;
    z-index: 1;
    padding: 56px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 22, 0.6);
    color: #94a3b8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand .nav-brand {
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 12px;
    color: #64748b;
    letter-spacing: 0.5px;
}

.footer-brand .footer-desc {
    margin-top: 12px;
    font-size: 12.5px;
    color: #94a3b8;
    letter-spacing: 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 12.5px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* 回到顶部 */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: rgba(99, 102, 241, 0.6);
}

/* 主按钮（协议弹窗底部） */
.btn-primary-submit {
    width: 100%;
    height: 44px;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
    transition: all 0.2s;
}

.btn-primary-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.5);
}

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

/* ================= 协议 / 隐私政策 弹窗（与 fashion 登录页一致） ================= */
.agreement-mask {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.agreement-mask.show { display: flex; }

.agreement-modal {
    width: 720px;
    max-width: 94vw;
    height: 80vh;
    max-height: 86vh;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.25s ease-in-out;
    color: var(--text-main);
}

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

.agreement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-light);
}

.agreement-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
}

.agreement-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.agreement-close:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.agreement-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px;
}

.agreement-content h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 16px 0 6px;
}

.agreement-content h3:first-child { margin-top: 0; }

.agreement-content p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 8px;
    text-align: justify;
}

.agreement-content p.agr-sub { margin-left: 14px; }

.agreement-content .agr-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.agreement-content .agr-notice {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: #4338ca;
    line-height: 1.8;
}

.agreement-footer {
    padding: 12px 22px 16px;
    border-top: 1px solid var(--border-color);
}

.agreement-footer .btn-primary-submit { height: 40px; font-size: 13.5px; }

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
    .feature-grid,
    .metric-grid,
    .compliance-grid,
    .agent-grid,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-grid::before,
    .agent-card::before,
    .steps::before {
        display: none;
    }

    .agent-hub {
        margin-bottom: 20px;
    }

    .agent-grid {
        padding-top: 40px;
    }

    .nav-menu {
        gap: 18px;
    }
}

@media (max-width: 960px) {
    .hero {
        padding-top: 56px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-visual {
        max-width: 620px;
        margin: 0 auto;
        width: 100%;
    }

    .cases-layout {
        grid-template-columns: 1fr;
    }

    .case-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .case-nav-item {
        flex: 1 1 calc(50% - 6px);
    }

    .auth-showcase {
        padding: 28px 24px;
    }

    .section {
        padding: 72px 0;
    }

    /* 平板及以下只保留主要锚点，协议入口在合规区与页脚仍可打开 */
    .nav-menu li:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 640px) {
    .navbar .container {
        gap: 1rem;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .nav-menu li:nth-child(n+3) {
        display: none;
    }

    .nav-brand h1 {
        font-size: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .hero-stat h4 {
        font-size: 20px;
    }

    .task-row {
        grid-template-columns: 34px 1fr 52px;
    }

    .task-progress {
        display: none;
    }

    .fb-1 { right: 8px; }
    .fb-2 { left: 8px; }

    .section-title {
        font-size: 26px;
    }

    .feature-grid,
    .metric-grid,
    .compliance-grid,
    .agent-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .metric-tile h4 {
        font-size: 24px;
    }

    .brand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .case-carousel-wrapper {
        height: 430px;
    }

    .case-img-cover {
        height: 180px;
    }

    .case-nav-item {
        flex: 1 1 100%;
    }

    .showcase-stats-bar {
        gap: 8px;
    }

    .stat-mini-box h4 {
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        gap: 28px;
    }

    .back-top {
        right: 14px;
        bottom: 14px;
    }
}
