/* ==================== 基础样式 ==================== */
:root {
    --primary: #c62828;
    --primary-dark: #b71c1c;
    --secondary: #f9a825;
    --accent: #2e7d32;
    --dark: #1a0a0a;
    --gray: #6b7280;
    --light: #fef5f5;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #c62828 0%, #e53935 50%, #ff6f00 100%);
    --gradient-hero: linear-gradient(135deg, #1a0a0a 0%, #3e1010 50%, #5c1a1a 100%);
    --shadow: 0 4px 20px rgba(198, 40, 40, 0.15);
    --shadow-lg: 0 10px 40px rgba(198, 40, 40, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 80px 0;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(198, 40, 40, 0.1);
    transition: all 0.3s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-weight: 500;
    color: var(--gray);
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.btn-download-header {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==================== 英雄区域 ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; }
.hero-particles span:nth-child(3) { left: 30%; top: 30%; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 40%; top: 70%; animation-delay: 6s; }
.hero-particles span:nth-child(5) { left: 50%; top: 40%; animation-delay: 8s; }
.hero-particles span:nth-child(6) { left: 60%; top: 80%; animation-delay: 10s; }
.hero-particles span:nth-child(7) { left: 70%; top: 25%; animation-delay: 12s; }
.hero-particles span:nth-child(8) { left: 80%; top: 55%; animation-delay: 14s; }
.hero-particles span:nth-child(9) { left: 90%; top: 35%; animation-delay: 16s; }
.hero-particles span:nth-child(10) { left: 15%; top: 85%; animation-delay: 18s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.8; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #ffcdd2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #ffd54f;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
}

/* 桌面模型 */
.hero-visual {
    display: flex;
    justify-content: center;
}

.desktop-mockup {
    animation: floatPhone 3s ease-in-out infinite;
}

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

.desktop-frame {
    width: 480px;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.desktop-screen {
    display: flex;
    min-height: 340px;
}

.ds-sidebar {
    width: 160px;
    background: #0d0d0d;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ds-logo {
    color: #c62828;
    font-weight: 700;
    font-size: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
    margin-bottom: 4px;
}

.ds-menu-item {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
}

.ds-menu-item.active {
    background: rgba(198, 40, 40, 0.3);
    color: #fff;
}

.ds-main {
    flex: 1;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.ds-topbar {
    padding: 12px 16px;
    background: #151515;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #333;
}

.ds-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
}

.ds-stat {
    background: #222;
    padding: 14px 10px;
    border-radius: 8px;
    text-align: center;
    border-top: 2px solid #c62828;
}

.ds-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ds-stat-label {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

.ds-chart {
    flex: 1;
    padding: 0 16px 16px;
    display: flex;
    align-items: flex-end;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
    gap: 12px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.bar-group .bar {
    width: 100%;
    background: #333;
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    transition: all 0.3s;
}

.bar-group .bar.active {
    background: linear-gradient(to top, #c62828, #e53935);
}

.bar-group span {
    font-size: 10px;
    color: #666;
}

/* ==================== 区块头部 ==================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light .section-title,
.section-header.light .section-desc {
    color: var(--white);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.1), rgba(255, 111, 0, 0.1));
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-desc {
    font-size: 18px;
    color: var(--gray);
}

/* ==================== 功能特点 ==================== */
.features {
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(198, 40, 40, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== 系统预览 ==================== */
.preview-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    justify-items: center;
}

.preview-card {
    text-align: center;
}

.pc-frame {
    width: 320px;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pc-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #2a2a2a;
}

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

.pc-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
}

.pc-dots span:first-child { background: #e53935; }
.pc-dots span:nth-child(2) { background: #f9a825; }
.pc-dots span:nth-child(3) { background: #43a047; }

.pc-url {
    font-size: 11px;
    color: #888;
}

.pc-content {
    padding: 16px;
}

/* 仪表盘预览 */
.dash-preview {
    min-height: 140px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.mini-stat {
    background: #252525;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border-top: 2px solid #c62828;
}

.mini-stat b {
    display: block;
    font-size: 16px;
    color: #fff;
}

.mini-stat small {
    font-size: 10px;
    color: #888;
}

.dash-chart-preview {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.chart-col {
    flex: 1;
    background: #333;
    border-radius: 3px 3px 0 0;
    min-height: 10px;
}

.chart-col.highlight {
    background: linear-gradient(to top, #c62828, #e53935);
}

/* 党员管理预览 */
.member-preview {
    min-height: 140px;
}

.member-table {
    background: #252525;
    border-radius: 8px;
    overflow: hidden;
}

.mt-header, .mt-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 8px 12px;
    font-size: 11px;
}

.mt-header {
    background: #333;
    color: #aaa;
    font-weight: 600;
}

.mt-row {
    color: #ccc;
    border-bottom: 1px solid #333;
}

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

/* 在线学习预览 */
.edu-preview {
    min-height: 140px;
}

.edu-grid {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.edu-card {
    background: #252525;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-icon {
    font-size: 20px;
}

.edu-title {
    flex: 1;
    font-size: 12px;
    color: #ccc;
}

.edu-progress {
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.edu-fill {
    height: 100%;
    background: linear-gradient(to right, #c62828, #e53935);
    border-radius: 3px;
}

.preview-label {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray);
}

/* ==================== 功能模块总览 ==================== */
.modules {
    background: var(--gradient-hero);
    position: relative;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.module-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.module-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.module-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.module-desc {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.modules-cta {
    text-align: center;
}

.modules-cta .btn-primary {
    background: #ffd54f;
    color: #3e1010;
}

/* ==================== 使用教程 ==================== */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.guide-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.guide-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.step-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.step-icons span {
    font-size: 24px;
}

/* ==================== 安全保障 ==================== */
.security {
    background: var(--light);
}

.security-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.security-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.security-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.security-content > p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.security-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid #ffcdd2;
}

.security-item .check {
    color: var(--primary);
    font-weight: 700;
}

/* ==================== 关于 ==================== */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.about h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.1), rgba(255, 111, 0, 0.1));
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 12px;
    transition: all 0.3s;
}

.links-list a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==================== 底部 ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-icon {
    font-size: 32px;
}

.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.link-group a {
    display: block;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: #ffd54f;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-showcase {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-steps::before {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
