/* ===== CSS 变量定义 ===== */
:root {
    --primary-color: #a855f7;
    --primary-hover: #9333ea;
    --accent-color: #ec4899;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #fdf8f6;
    --bg-card: #faf5ff;
    --border-color: #f1e4fc;
    --border-dark: #e2d4f0;
    --shadow-sm: 0 4px 14px rgba(168, 85, 247, 0.12);
    --shadow-md: 0 12px 24px -10px rgba(168, 85, 247, 0.15);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ===== 可访问性辅助 ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== 导航栏 ===== */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-smooth);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 20px;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* ===== Hero 区域 ===== */
.hero-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 90px 24px 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 55%;
    min-width: 300px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f3e8ff;
    color: var(--primary-hover);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    gap: 6px;
}

.hero-badge span {
    color: var(--accent-color);
}

.hero-text h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-text h1 span {
    color: var(--primary-color);
    display: block;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

.hero-image-cell {
    flex: 1 1 45%;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;          /* 图片容器内部居中 */
    align-self: center;      
}

.hero-placeholder-img {
    width: 100%;
    max-width: 460px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #6366f1 100%);
    box-shadow: var(--shadow-md);
}

/* ===== 视频教学 ===== */
.video-container {
    max-width: var(--max-width);
    margin: 40px auto 80px;
    padding: 0 24px;
    text-align: center;
}

.video-subtitle {
    color: var(--text-muted);
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 16px;
}

.video-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 450px;
    background-color: #0b0f19;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #1e293b;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== 双版本速览矩阵（创意版块） ===== */
.compare-matrix-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 24px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 54px;
    font-size: 16px;
}

.compare-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.compare-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.compare-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.compare-card-header {
    margin-bottom: 24px;
}

.compare-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.badge-mod {
    background-color: #ede9fe;
    color: #7c3aed;
}

.badge-pro {
    background-color: #fce7f3;
    color: #be185d;
}

.compare-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.compare-features {
    list-style: none;
    margin-top: 12px;
    flex: 1;
}

.compare-features li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
}

.check-icon {
    color: #a855f7;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== 核心特性卡片区 ===== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.feature-card:hover {
    background-color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background-color: #f3e8ff;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 14px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== 性能数据条（创意版块） ===== */
.perf-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, #f3e8ff 0%, #fdf2f8 100%);
    border-radius: 20px;
    padding: 32px 24px;
    margin: 60px 0;
    flex-wrap: wrap;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.perf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.perf-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.perf-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perf-divider {
    width: 1px;
    height: 48px;
    background-color: var(--border-dark);
}

/* ===== 正文排版 ===== */
.article-body {
    max-width: 850px;
    margin: 70px auto 0;
    font-size: 16px;
    color: #334155;
}

.article-body p {
    margin-bottom: 22px;
    text-align: justify;
    line-height: 1.75;
}

.inline-title-block {
    margin-top: 50px;
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.title-block-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.title-block-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

/* 装饰列表 */
.decorated-list {
    list-style: none;
    margin: 30px 0;
}

.list-item-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.list-item-icon-cell {
    flex-shrink: 0;
    padding-top: 4px;
}

.list-item-content-cell strong {
    color: var(--text-main);
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.list-item-content-cell p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== 快速决策指南（创意版块） ===== */
.quick-decision-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    margin-top: 50px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.quick-decision-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-main);
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.decision-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.decision-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.decision-icon {
    font-size: 24px;
}

.decision-option strong {
    font-size: 15px;
    color: var(--text-main);
}

.decision-arrow {
    color: var(--text-muted);
    font-weight: 600;
}

.decision-recommend {
    align-self: flex-start;
}

/* ===== 页脚 ===== */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 70px 0 30px;
    font-size: 14px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    flex: 1 1 300px;
}

.footer-info h4 {
    color: var(--bg-white);
    font-size: 17px;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-links {
    flex: 2 1 500px;
}

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

.footer-col {
    flex: 1 1 150px;
}

.footer-col h5 {
    color: var(--bg-white);
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 50px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 24px;
        align-items: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 12px;
    }

    .hero-section {
        flex-direction: column;
        padding: 50px 20px 40px;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-placeholder-img {
        height: 220px;
    }

    .video-wrapper {
        height: 250px;
    }

    .perf-strip {
        flex-direction: column;
        gap: 20px;
    }

    .perf-divider {
        width: 80%;
        height: 1px;
    }

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

    .footer-container {
        flex-direction: column;
    }

    .footer-links-table {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}