/* ====== 矩界数字订货一体化系统 - 全站样式 v2.0 ====== */
:root {
    --primary: #1a3a8a;
    --primary-dark: #0d1f4d;
    --primary-light: #274bb5;
    --accent: #4f7cff;
    --accent2: #00d4ff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f8f9fc;
    --bg-mute: #f1f3f7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow: 0 4px 16px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, .16);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --container: 1200px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ====== 滚动动效 ====== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== 顶部导航 ====== */
.topbar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left span { margin-right: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: inline-flex; gap: 8px; }
.lang-switcher a {
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}
.lang-switcher a.active, .lang-switcher a:hover { color: var(--primary); background: rgba(26, 58, 138, .08); }

.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.2; }
.brand-en { font-size: 11px; color: var(--text-muted); letter-spacing: .5px; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
    background: rgba(26, 58, 138, .05);
}

.mobile-lang { display: none; }

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 24px !important;
    margin-left: 8px;
    box-shadow: 0 4px 16px rgba(26, 58, 138, .3);
    font-weight: 600 !important;
}
.nav-cta:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(26, 58, 138, .4);
    background: linear-gradient(135deg, var(--primary-light), var(--accent)) !important;
}

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: var(--transition); }

/* ====== Hero 区域 - 全屏沉浸式 ====== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0a1535 0%, #102a66 30%, #1a3a8a 60%, #274bb5 100%);
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(79, 124, 255, .45), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, .3), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 58, 138, .2), transparent 70%);
}
/* 动态网格背景 */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 70%);
    animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
    100% { transform: translate(0, 0); }
}

/* 粒子效果 */
.hero-particles {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero .container { 
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero-content { max-width: 600px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    font-size: 14px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.hero h1 {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #c8d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .desc {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: .9;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero 右侧 - 产品示意 */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-dashboard {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg);
    transition: transform .5s ease;
}
.hero-dashboard:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}
.hero-db-header {
    display: flex; justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 16px;
}
.hero-db-dots { display: flex; gap: 6px; }
.hero-db-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
}
.hero-db-title { font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero-db-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.hero-db-card {
    padding: 16px;
    background: rgba(255, 255, 255, .06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .08);
}
.hero-db-card .label { font-size: 11px; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.hero-db-card .number { font-size: 28px; font-weight: 700; color: #fff; }
.hero-db-card .change { font-size: 12px; color: #10b981; }
.hero-db-chart {
    display: flex; align-items: flex-end; gap: 6px;
    height: 80px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-db-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--accent), rgba(79, 124, 255, .3));
    animation: barGrow 1s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}
@keyframes barGrow {
    to { transform: scaleY(1); }
}
.hero-floating-badge {
    position: absolute;
    padding: 12px 20px;
    background: rgba(255, 255, 255, .95);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    animation: floatBadge 4s ease-in-out infinite;
}
.hero-floating-badge.top-right { top: 10%; right: 5%; animation-delay: 0s; }
.hero-floating-badge.bottom-left { bottom: 15%; left: 10%; animation-delay: 1s; }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-floating-badge .icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    border: 0;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { 
    background: var(--bg-soft); color: var(--primary); 
    transform: translateY(-3px); 
    box-shadow: 0 16px 32px rgba(0, 0, 0, .25); 
}
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .35); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-secondary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-secondary:hover { 
    background: linear-gradient(135deg, var(--primary-light), var(--accent)); color: #fff; 
    box-shadow: 0 8px 24px rgba(26, 58, 138, .35); transform: translateY(-2px); 
}
.btn-sm { padding: 8px 20px; font-size: 14px; }

.scroll-cue {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    text-align: center;
    z-index: 3;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ====== 通用 Section ====== */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .overline {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(26, 58, 138, .08);
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.section-dark .section-title .overline { color: var(--accent2); background: rgba(0, 212, 255, .12); }
.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -.5px;
}
.section-dark .section-title h2 { color: #fff; }
.section-title p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 720px;
    margin: 0 auto;
}
.section-dark .section-title p { color: rgba(255, 255, 255, .7); }
.section-title .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-dark .section-title .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== 数据统计条 ====== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: -1px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item .label {
    font-size: 15px;
    color: var(--text-muted);
}
.stat-item .suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* ====== 特性卡片 - 增强版 ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s;
}
.feature-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 0% 0%, rgba(26, 58, 138, .03), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, var(--success), var(--accent)); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, var(--warning), #ff6b6b); }
.feature-card:nth-child(5)::before { background: linear-gradient(90deg, #8b5cf6, var(--accent)); }
.feature-card:nth-child(6)::before { background: linear-gradient(90deg, var(--accent2), var(--primary)); }
.feature-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(26, 58, 138, .08), rgba(79, 124, 255, .08));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 28px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: scale(1.05);
}
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--text); font-weight: 700; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ====== 客户 Logo 墙 ====== */
.client-wall {
    padding: 60px 0;
    text-align: center;
}
.client-wall .heading {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
}
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: .5;
    filter: grayscale(1);
    transition: var(--transition);
}
.client-logos:hover {
    opacity: 1;
    filter: grayscale(0);
}
.client-logos .logo-item {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    padding: 12px 24px;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.client-logos .logo-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ====== 介绍区 - 增强版 ====== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.intro-visual {
    position: relative;
}
.intro-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a3a8a, #4f7cff);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 80px;
    box-shadow: var(--shadow-xl);
}
.intro-image::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .2), transparent 60%);
}
.intro-float-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    animation: floatBadge 5s ease-in-out infinite;
}
.intro-float-card .icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--success), #34d399);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 20px;
}
.intro-float-card .text .big { font-size: 20px; font-weight: 700; color: var(--text); }
.intro-float-card .text .small { font-size: 12px; color: var(--text-muted); }
.intro-text h2 { font-size: 38px; margin-bottom: 20px; color: var(--text); line-height: 1.3; font-weight: 800; }
.intro-text > p { font-size: 16px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.8; }
.intro-points { list-style: none; }
.intro-points li {
    display: flex; gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.intro-points li:hover { padding-left: 8px; }
.intro-points li:last-child { border-bottom: 0; }
.point-num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(26, 58, 138, .25);
}
.point-content h4 { font-size: 17px; margin-bottom: 4px; font-weight: 600; }
.point-content p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ====== 场景解决方案 ====== */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.scene-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.scene-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}
.scene-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}
.scene-image::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, .2), transparent 70%);
}
.scene-card:nth-child(2) .scene-image { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.scene-card:nth-child(3) .scene-image { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.scene-body { padding: 24px; }
.scene-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(26, 58, 138, .08);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.scene-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.scene-body p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.scene-features {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.scene-features span {
    padding: 4px 10px;
    background: var(--bg-soft);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ====== 优势 / 价值卡片 ====== */
.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.advantage-card {
    text-align: center;
    padding: 48px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}
.advantage-card::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(26, 58, 138, .04), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}
.advantage-card:hover::before { opacity: 1; }
.advantage-icon {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 12px 28px rgba(26, 58, 138, .3);
    transition: var(--transition);
}
.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 16px 36px rgba(26, 58, 138, .4);
}
.advantage-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.advantage-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ====== CTA 增强 ====== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1f4d 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(79, 124, 255, .3), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 212, 255, .15), transparent 50%);
}
.cta-section::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 42px; margin-bottom: 16px; font-weight: 800; }
.cta-section p { font-size: 18px; opacity: .85; margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-section .btn-primary { background: #fff; color: var(--primary); }
.cta-section .btn-primary:hover { background: var(--bg-soft); }

/* ====== 案例卡片 - 增强版 ====== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.case-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.case-header {
    padding: 36px 28px 28px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
    position: relative;
    overflow: hidden;
}
.case-header::after {
    content: '';
    position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(26, 58, 138, .05);
    border-radius: 50%;
}
.case-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}
.case-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.case-company { color: var(--text-muted); font-size: 14px; }
.case-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.case-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.case-stats { list-style: none; flex: 1; }
.case-stats li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
    display: flex; gap: 12px; align-items: flex-start;
}
.case-stats li:last-child { border-bottom: 0; }
.case-stat-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: rgba(26, 58, 138, .1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    margin-top: 2px;
}
.case-stat-title { font-weight: 600; color: var(--text); margin-bottom: 2px; font-size: 15px; }
.case-stat-desc { color: var(--text-muted); font-size: 13px; }
.case-card .btn-sm { margin-top: 20px; align-self: flex-start; }

/* ====== 产品功能 Tabs ====== */
.product-tabs {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 56px; flex-wrap: wrap;
}
.product-tab {
    padding: 12px 28px;
    border-radius: 24px;
    background: #fff;
    border: 2px solid var(--border);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.product-tab .tab-icon { font-size: 18px; }
.product-tab:hover { border-color: var(--primary); color: var(--primary); }
.product-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(26, 58, 138, .3);
    transform: translateY(-2px);
}
.product-panel { display: none; animation: fadeSlideIn .4s ease; }
.product-panel.active { display: block; }
@keyframes fadeSlideIn { 
    from { opacity: 0; transform: translateY(16px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.product-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.module-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary); }
.module-card::after {
    content: '';
    position: absolute; top: -50%; right: -50%;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(26, 58, 138, .03), transparent 70%);
    border-radius: 50%;
}
.module-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(26, 58, 138, .2);
}
.module-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.module-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

.feature-list { list-style: none; max-width: 960px; margin: 0 auto; }
.feature-list li {
    display: flex; gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.feature-list li:hover { padding-left: 12px; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list-num {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(26, 58, 138, .25);
}
.feature-list-content h4 { font-size: 17px; margin-bottom: 6px; color: var(--text); font-weight: 600; }
.feature-list-content p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ====== 关于我们 ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}
.about-content h2 { font-size: 36px; margin-bottom: 20px; font-weight: 800; }
.about-content p { color: var(--text-muted); font-size: 16px; line-height: 1.9; margin-bottom: 16px; }
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.about-stat {
    padding: 28px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all .4s ease;
}
.about-stat:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-xl); 
    border-color: var(--primary);
}
.about-stat-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 14px;
}
.about-stat .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.about-stat h4 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.about-stat p { color: var(--text-muted); font-size: 13px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.service-item {
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.service-item:hover { 
    border-color: var(--primary); 
    transform: translateY(-4px); 
    box-shadow: var(--shadow);
}
.service-icon {
    width: 48px; height: 48px;
    margin: 0 auto 14px;
    background: rgba(26, 58, 138, .08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 22px;
    transition: var(--transition);
}
.service-item:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}
.service-item h4 { font-size: 14px; font-weight: 600; }

/* 文化卡片 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.culture-card {
    padding: 36px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}
.culture-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.culture-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(26, 58, 138, .08), rgba(79, 124, 255, .08));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 28px;
}
.culture-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.culture-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ====== 联系我们 ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}
.contact-info {
    background: linear-gradient(135deg, #0d1f4d 0%, #1a3a8a 60%, #274bb5 100%);
    color: #fff;
    padding: 56px 44px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.contact-info::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(79, 124, 255, .25), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, .15), transparent 50%);
}
.contact-info::after {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at bottom, #000 40%, transparent 70%);
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { font-size: 28px; margin-bottom: 36px; font-weight: 700; }
.contact-info-list { list-style: none; }
.contact-info-list li {
    display: flex; gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    align-items: flex-start;
    transition: var(--transition);
}
.contact-info-list li:hover { padding-left: 8px; }
.contact-info-list li:last-child { border-bottom: 0; }
.contact-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, .12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.contact-info-list li:hover .contact-icon { background: rgba(255, 255, 255, .25); }
.contact-info-list .label { font-size: 12px; opacity: .7; margin-bottom: 4px; }
.contact-info-list .value { font-size: 15px; font-weight: 500; }

.contact-form {
    background: #fff;
    padding: 44px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-form h3 { font-size: 24px; margin-bottom: 8px; font-weight: 700; }
.contact-form .form-tip { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group label .req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
    color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 138, .1);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-promise {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit:hover { 
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    box-shadow: 0 8px 20px rgba(26, 58, 138, .3);
    transform: translateY(-2px);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-msg { padding: 12px; border-radius: 8px; margin-top: 16px; text-align: center; font-size: 14px; display: none; }
.form-msg.success { display: block; background: rgba(16, 185, 129, .1); color: var(--success); border: 1px solid rgba(16, 185, 129, .2); }
.form-msg.error { display: block; background: rgba(239, 68, 68, .1); color: var(--danger); border: 1px solid rgba(239, 68, 68, .2); }

/* ====== FAQ ====== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}
.faq-question .arrow {
    transition: transform .3s;
    font-size: 12px;
    color: var(--text-muted);
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding: 0 24px;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ====== 页脚 ====== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .7);
    padding: 72px 0 24px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 24px; font-weight: 600; }
.footer-brand img { width: 44px; height: 44px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-weight: 700; }
.footer-brand .brand-en { color: rgba(255, 255, 255, .4); font-size: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 16px; color: rgba(255, 255, 255, .5); }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { color: rgba(255, 255, 255, .6); font-size: 14px; transition: var(--transition); }
.footer-list a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .4);
}
.footer-bottom a { color: rgba(255, 255, 255, .6); }

/* ====== 页面横幅 ====== */
.page-banner {
    background: linear-gradient(135deg, #0d1f4d 0%, #1a3a8a 60%, #274bb5 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(79, 124, 255, .25), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 212, 255, .15), transparent 50%);
}
.page-banner::after {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; }
.page-banner p { font-size: 18px; opacity: .85; }

/* ====== 移动端响应 ====== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .intro-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero h1 { font-size: 40px; }
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .section { padding: 80px 0; }
    .features-grid, .scene-grid, .case-grid, .product-overview { grid-template-columns: repeat(2, 1fr); }
    .advantages { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .culture-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { gap: 32px; }
    .stat-item .number { font-size: 36px; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .menu-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { width: 100%; padding: 12px 16px; }
    .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
    .mobile-lang { display: block; padding: 12px 0 4px; margin-top: 4px; border-top: 1px solid var(--border); }
    .mobile-lang .lang-switcher { justify-content: center; gap: 12px; }
    .hero { min-height: auto; padding: 80px 0 60px; }
    .hero h1 { font-size: 32px; }
    .hero .desc { font-size: 16px; }
    .hero-badge { font-size: 12px; }
    .section-title h2 { font-size: 28px; }
    .section { padding: 60px 0; }
    .page-banner { padding: 60px 0; }
    .page-banner h1 { font-size: 32px; }
    .features-grid, .scene-grid, .case-grid, .product-overview, .advantages, .services-grid, .culture-grid { grid-template-columns: 1fr; }
    .feature-card, .module-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .feature-card .feature-icon, .module-card .module-icon { margin-bottom: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
    .feature-card h3, .module-card h3 { margin-bottom: 6px; font-size: 16px; flex: 0 0 auto; max-width: calc(100% - 64px); }
    .feature-card p, .module-card p { flex: 1 1 100%; }
    .module-card { padding: 24px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .form-row { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .contact-form, .contact-info { padding: 28px 20px; }
    .navbar .container { height: 60px; }
    .brand img { width: 32px; height: 32px; }
    .brand-name { font-size: 15px; }
    .stats-bar { gap: 20px; }
    .stat-item .number { font-size: 28px; }
    .stat-item .label { font-size: 12px; }
}

/* ====== 管理后台 ====== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-soft); }
.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0d1f4d 0%, #1a3a8a 100%);
    color: #fff;
    padding: 0;
    position: fixed; left: 0; top: 0; bottom: 0;
    overflow-y: auto;
    z-index: 50;
}
.admin-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex; align-items: center; gap: 12px;
}
.admin-brand img { width: 36px; height: 36px; }
.admin-brand .name { font-size: 16px; font-weight: 600; color: #fff; }
.admin-brand .sub { font-size: 12px; color: rgba(255, 255, 255, .6); }
.admin-menu { list-style: none; padding: 16px 12px; }
.admin-menu li { margin-bottom: 4px; }
.admin-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, .8);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}
.admin-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-menu a.active { background: rgba(255, 255, 255, .15); color: #fff; }
.admin-menu .icon { width: 18px; text-align: center; }

.admin-main { flex: 1; margin-left: 240px; padding: 0; }
.admin-topbar {
    background: #fff;
    padding: 14px 28px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.admin-topbar h1 { font-size: 18px; color: var(--text); }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.admin-user .avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 600;
}
.admin-user a.logout { color: var(--danger); }

.admin-content { padding: 28px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 24px;
}
.stat-card.blue .stat-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #10b981, #047857); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.purple .stat-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.stat-card .label { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--text); }

.card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.card-header h3 { font-size: 16px; }
.card-body { padding: 20px; }
.card-body.no-padding { padding: 0; }

.search-bar {
    display: flex; gap: 8px;
    align-items: center;
}
.search-bar input, .search-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.search-bar button {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

table { width: 100%; border-collapse: collapse; }
table th, table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
table th { background: var(--bg-soft); color: var(--text-muted); font-weight: 500; font-size: 13px; }
table tr:hover { background: var(--bg-soft); }
table .actions { display: flex; gap: 6px; }
table .actions a, table .actions button {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    color: var(--text);
    text-decoration: none;
}
table .actions a.primary, table .actions button.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
table .actions a.danger, table .actions button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.badge-pending { background: rgba(245, 158, 11, .12); color: var(--warning); }
.badge-processing { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.badge-done { background: rgba(16, 185, 129, .12); color: var(--success); }
.badge-ignored { background: rgba(107, 114, 128, .12); color: var(--text-muted); }
.badge-enabled { background: rgba(16, 185, 129, .12); color: var(--success); }
.badge-disabled { background: rgba(239, 68, 68, .12); color: var(--danger); }

.pagination {
    display: flex; justify-content: center; gap: 4px;
    padding: 16px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    background: #fff;
}
.pagination a.active, .pagination span.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination a:hover { background: var(--bg-soft); }

.detail-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px 16px;
    margin-bottom: 16px;
}
.detail-grid .label { color: var(--text-muted); }
.detail-grid .value { color: var(--text); }

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.chart-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}
.chart-card h3 { font-size: 16px; margin-bottom: 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 0 8px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar {
    width: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: var(--transition);
}
.bar:hover { opacity: .8; }
.bar-label { font-size: 11px; color: var(--text-muted); }
.bar-value { font-size: 11px; font-weight: 600; color: var(--text); }

/* Login */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0d1f4d 0%, #1a3a8a 50%, #274bb5 100%);
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(79, 124, 255, .3), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(36, 188, 255, .2), transparent 50%);
}
.login-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .2);
}
.login-box .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; justify-content: center; }
.login-box .logo img { width: 40px; height: 40px; }
.login-box .logo .name { font-size: 18px; font-weight: 600; color: var(--text); }
.login-box h2 { text-align: center; margin-bottom: 8px; }
.login-box .tip { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .btn-submit { margin-top: 8px; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error { background: rgba(239, 68, 68, .1); color: var(--danger); border: 1px solid rgba(239, 68, 68, .2); }
.alert-success { background: rgba(16, 185, 129, .1); color: var(--success); border: 1px solid rgba(16, 185, 129, .2); }

/* ====== 模态框 ====== */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 200;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.modal h3 { margin-bottom: 24px; font-size: 20px; }
.modal .form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.modal .form-actions button {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
.modal .form-actions button.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.modal .form-actions button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ====== 权限标签列表 ====== */
.perm-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.perm-item {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: var(--bg-soft);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.perm-item.selected { background: rgba(26, 58, 138, .1); border-color: var(--primary); color: var(--primary); }


/* 访问分析页 */
.btn-range { padding: 4px 14px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); background: #fff; transition: var(--transition); }
.btn-range:hover { border-color: var(--primary); color: var(--primary); }
.btn-range.btn-active { background: var(--primary); color: #fff; border-color: var(--primary); }


