/* =========================================
   全局设计系统与重置
   ========================================= */
:root {
    /* 品牌色彩：午夜蓝底色 + 暖橙点缀 */
    --bg-deep: #0B1426;       /* 极深午夜蓝背景 */
    --bg-section: #111E3D;    /* 区块交替背景 */
    --bg-card: #1A2B52;       /* 卡片背景 */
    
    --text-primary: #FFFFFF;
    --text-secondary: #9BAFCF;
    --text-muted: #6A7FA3;
    
    --accent-orange: #FF6B35; /* 活力暖橙 CTA */
    --accent-hover: #FF8F66;
    
    /* 字体系统 */
    --font-sans: 'Inter', system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

    /* 间距与圆角 */
    --radius-md: 8px;
    --radius-lg: 16px;
    --container-width: 1200px;
    --transition-base: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================
   通用布局组件
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section--alt {
    background-color: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
    text-wrap: balance;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =========================================
   页头与页脚
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 20, 38, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 36px;
    width: auto;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover, 
.nav-link[aria-current="page"] {
    color: var(--text-primary);
}

.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
}

/* =========================================
   按钮样式
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* =========================================
   Hero 区域
   ========================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    text-wrap: balance;
}

.hero-highlight {
    color: var(--accent-orange);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-svg-wrapper {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* =========================================
   功能网格 (Core Features)
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.3);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   界面示意与场景
   ========================================= */
.interface-demo {
    background: radial-gradient(circle at 50% 100%, #1c305e 0%, var(--bg-deep) 70%);
    padding: 60px 0;
    border-radius: var(--radius-lg);
    margin: 60px auto;
    max-width: var(--container-width);
    overflow: hidden;
    position: relative;
}

.demo-window {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.demo-bar {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #f59e0b; }
.dot:nth-child(3) { background: #22c55e; }

.demo-body {
    padding: 24px;
    display: flex;
    gap: 24px;
    min-height: 300px;
}

.demo-sidebar { width: 200px; border-right: 1px solid rgba(255,255,255,0.1); }
.demo-chat-area { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.chat-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 70%;
}
.msg-in { background: #334155; align-self: flex-start; }
.msg-out { background: #0d9488; align-self: flex-end; }

.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scene-item {
    background: var(--bg-section);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   表格与版本信息
   ========================================= */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.data-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* =========================================
   下载区域 (#download)
   ========================================= */
.download-zone {
    background: linear-gradient(135deg, #1c305e 0%, #0B1426 100%);
    text-align: center;
    padding: 80px 0;
}

.install-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 200px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--accent-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* =========================================
   最新动态 & 相关阅读
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition-base);
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.link-pill {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.link-pill:hover {
    background: rgba(255,107,53,0.15);
    color: var(--accent-orange);
}

/* =========================================
   FAQ 组件
   ========================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--bg-card);
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: all var(--transition-base);
}

details[open] {
    border-color: rgba(255,107,53,0.3);
}

summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: "+";
    color: var(--accent-orange);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 16px;
}

/* =========================================
   页脚
   ========================================= */
.site-footer {
    background: #080f1d;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-brand {
    margin-bottom: 24px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .scene-grid {
        grid-template-columns: 1fr;
    }
    
    .install-steps {
        flex-direction: column;
        gap: 24px;
    }

    .demo-sidebar { display: none; }
}

/* =========================================
   SVG 动效与无障碍
   ========================================= */
/* Hero 卡片漂浮效果 */
@keyframes card-float-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes card-float-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.card-el-1 { animation: card-float-1 6s ease-in-out infinite; }
.card-el-2 { animation: card-float-2 8s ease-in-out infinite 1s; }
.card-el-3 { animation: card-float-1 7s ease-in-out infinite 2s; }

/* 呼吸发光效果 */
@keyframes breathe {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.breathing { animation: breathe 5s infinite ease-in-out; }

/* 减少动态效果偏好设置 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .card-el-1, .card-el-2, .card-el-3, .breathing {
        animation: none !important;
    }
}
