:root {
    /* 核心双色规范：高科技蓝 + 活力红 */
    --beisen-primary: #0062ff;     /* 更加纯正、高饱和的科技蓝 */
    --beisen-primary-rgb: 0, 98, 255;
    --beisen-accent: #FF3B30;      /* 更具现代感的科技红 */
    --beisen-accent-rgb: 255, 59, 48;
    
    /* 中性基础色 - 极致简约 */
    --beisen-dark: #0F172A;        
    --beisen-text: #1E293B;        
    --beisen-gray-bg: #F8FAFC;     /* 更淡的灰色背景 */
    --beisen-border: rgba(15, 23, 42, 0.04); /* 极淡边框，近乎隐形 */
    
    /* 统一渐变规范 */
    --beisen-gradient-primary: linear-gradient(135deg, var(--beisen-primary) 0%, #004ecc 100%);
    --beisen-gradient-accent: linear-gradient(135deg, var(--beisen-accent) 0%, #d70000 100%);
    --beisen-btn-gradient: linear-gradient(135deg, var(--beisen-primary) 0%, #004ecc 100%);
    --beisen-btn-gradient-hover: linear-gradient(135deg, #004ecc 0%, #0062ff 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--beisen-text);
    background-color: #fff;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 链接全局规范 - 使用活力红 */
a {
    color: var(--beisen-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--beisen-primary); /* Hover 变为科技蓝 */
    text-decoration: underline;
}

.beisen-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .beisen-container { padding: 0 30px; }
    .section-padding { padding: 80px 0; }
    h2.section-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .beisen-container { padding: 0 20px; }
    .section-padding { padding: 60px 0; }
    h2.section-title { font-size: 28px; letter-spacing: -0.5px; }
    .section-subtitle { font-size: 15px; }
    .section-header { margin-bottom: 40px; }
    
    .btn-primary, .btn-accent, .btn-dark, .btn-outline, .btn-ghost {
        padding: 12px 30px;
        font-size: 15px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Header with More Link */
.section-header.has-more {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    max-width: 1200px;
}
.section-header.has-more .header-content {
    flex-grow: 1;
}
.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--beisen-primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    padding-bottom: 8px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.section-more-link:hover {
    gap: 12px;
    color: var(--beisen-accent);
}
.section-more-link svg {
    transition: transform 0.3s ease;
}
.is-dark .section-more-link {
    color: #fff;
    opacity: 0.9;
}
.is-dark .section-more-link:hover {
    opacity: 1;
    color: var(--beisen-accent);
}

@media (max-width: 768px) {
    .section-header.has-more {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .section-more-link {
        padding-bottom: 0;
    }
}

/* 组装式页面容器 */
.beisen-assembly-page {
    width: 100%;
    overflow: hidden;
}

h2.section-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--beisen-text); /* 统一为深色，移除所有渐变 */
    letter-spacing: -1px;
    display: inline-block;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.is-dark h2.section-title { color: #ffffff !important; }
.is-dark .section-subtitle { color: rgba(255,255,255,0.7) !important; }

@media (max-width: 768px) {
    h2.section-title { font-size: 32px; }
    .section-subtitle { font-size: 16px; }
    .section-header { margin-bottom: 40px; }
}

/* Buttons - 蓝红双色按钮系统 */
:root {
    --beisen-btn-gradient: linear-gradient(135deg, var(--beisen-primary) 0%, #1E40AF 100%);
    --beisen-btn-gradient-hover: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
    --beisen-btn-accent: linear-gradient(135deg, var(--beisen-accent) 0%, #B91C1C 100%);
}

.btn-primary, .btn-accent, .btn-dark, .btn-outline, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 20;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
}

/* 高端品质感：纯色/渐变 + 顶部高光 + 扫光 */
.btn-primary {
    background: var(--beisen-btn-gradient);
    color: #fff !important;
    box-shadow: none;
}
.btn-accent {
    background: var(--beisen-btn-accent);
    color: #fff !important;
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
    border-radius: inherit;
    pointer-events: none;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}
.btn-primary:hover {
    background: var(--beisen-btn-gradient-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
    filter: brightness(1.02);
}
.btn-primary:hover::after { left: 130%; }

/* 副 CTA：渐变方向相反，区分类型 */
.btn-accent {
    background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
    color: #fff;
    box-shadow: none;
}
.btn-accent::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
    border-radius: inherit;
    pointer-events: none;
}
.btn-accent:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #1D4ED8 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
    filter: brightness(1.02);
}

.btn-outline, .btn-ghost {
    background: rgba(var(--beisen-primary-rgb), 0.02);
    border: 1.5px solid rgba(var(--beisen-primary-rgb), 0.2);
    color: var(--beisen-primary);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.btn-outline:hover, .btn-ghost:hover {
    background: rgba(var(--beisen-primary-rgb), 0.08);
    border-color: var(--beisen-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--beisen-primary-rgb), 0.1);
    color: var(--beisen-primary);
}

.is-dark .btn-primary {
    box-shadow: none;
}

.btn-dark {
    background: var(--beisen-dark);
    color: #fff;
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.btn-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
}

.btn-primary:hover .btn-icon-svg, .btn-dark:hover .btn-icon-svg {
    transform: translateX(4px);
}

.btn-primary:hover {
    background: var(--beisen-btn-gradient-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
    filter: brightness(1.02);
}
/* 已重复的 :hover 块已被上方合并规则覆盖 */

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-primary span, .btn-dark span {
    position: relative;
    z-index: 2;
}

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

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

/* Global Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Sequential reveal for children */
.reveal-on-scroll.is-revealed .reveal-child {
    animation: slideUpFade 0.6s both;
}
.reveal-on-scroll.is-revealed .reveal-child:nth-child(1) { animation-delay: 0.1s; }
.reveal-on-scroll.is-revealed .reveal-child:nth-child(2) { animation-delay: 0.2s; }
.reveal-on-scroll.is-revealed .reveal-child:nth-child(3) { animation-delay: 0.3s; }
.reveal-on-scroll.is-revealed .reveal-child:nth-child(4) { animation-delay: 0.4s; }
.reveal-on-scroll.is-revealed .reveal-child:nth-child(5) { animation-delay: 0.5s; }
.reveal-on-scroll.is-revealed .reveal-child:nth-child(6) { animation-delay: 0.6s; }

/* Legal/Policy Page Styles */
.legal-page-hero {
    background-color: var(--beisen-gray-bg);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--beisen-border);
    margin-bottom: 60px;
}
.legal-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--beisen-dark);
    margin: 0 0 15px;
}
.legal-page-meta {
    font-size: 14px;
    color: #64748b;
}

.beisen-legal-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #334155;
    font-size: 16px;
}
.beisen-legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--beisen-dark);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--beisen-primary);
    display: inline-block;
}
.beisen-legal-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--beisen-dark);
    margin: 30px 0 15px;
}
.beisen-legal-content p {
    margin-bottom: 20px;
}
.beisen-legal-content ul, .beisen-legal-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}
.beisen-legal-content li {
    margin-bottom: 10px;
}
.beisen-legal-content strong {
    color: var(--beisen-dark);
}

@media (max-width: 768px) {
    .legal-page-hero { padding: 60px 0 40px; }
    .legal-page-title { font-size: 24px; }
    .beisen-legal-content h2 { font-size: 20px; }
}
