/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0071e3;
    --primary-light: #e8f2ff;
    --primary-dark: #005bb5;
    --text-1: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --bg-card: #ffffff;
    --border: #e8e8ed;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.10);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-1);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== 移动端导航栏 ===== */
.navbar-mobile {
    display: none;
}

/* ===== 应用容器 ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== 左侧侧边栏 ===== */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #f8f8fa 0%, #f0f0f3 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0 8px;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-2);
    border-radius: 10px;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary);
}

.nav-link.active {
    background: rgba(0, 113, 227, 0.12);
    color: var(--primary);
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
}

/* ===== Hero区域 ===== */
.hero {
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #0071e3 0%, #003366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-2);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.hero .user-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--text-3);
}

.hero .count-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.hero .count-label {
    font-size: 16px;
    color: var(--text-2);
}

/* ===== 板块样式 ===== */
.section {
    padding: 40px;
    background: var(--bg);
}

.section.bg-light {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-2);
}

/* ===== 教程步骤 ===== */
.tutorial-content {
    max-width: 800px;
    margin: 0 auto;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.step-item:hover {
    border-color: rgba(0, 113, 227, 0.2);
    box-shadow: var(--shadow-md);
}

.step-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.03) 0%, rgba(0, 113, 227, 0.01) 100%);
}

.step-number {
    float: left;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.step-content {
    overflow: hidden;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-1);
}

.step-content p {
    font-size: 15px;
    color: var(--text-1);
    line-height: 1.8;
    margin: 0;
}

/* ===== 配置卡片 ===== */
.config-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.config-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.config-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.config-card.warning {
    background: linear-gradient(135deg, #fff7f0 0%, #fffbf7 100%);
    border-color: rgba(255, 59, 48, 0.15);
}

.config-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-1);
}

.config-card ol {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 0;
}

.config-card li {
    counter-increment: item;
    padding-left: 26px;
    position: relative;
    padding-bottom: 12px;
    font-size: 15px;
    color: var(--text-1);
    line-height: 1.7;
}

.config-card li:last-child {
    padding-bottom: 0;
}

.config-card li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FAQ手风琴 ===== */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.faq-item:hover {
    border-color: rgba(0, 113, 227, 0.15);
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 12px;
    line-height: 1.5;
}

.faq-answer {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ===== 疑难杂症板块 ===== */
.troubleshooting-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin-top: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.troubleshooting-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.troubleshooting-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.troubleshooting-info {
    flex: 1;
}

.troubleshooting-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
    line-height: 1.4;
}

.troubleshooting-desc {
    font-size: 13px;
    color: #86868b;
    line-height: 1.6;
    margin: 0;
}

/* ===== 页脚 ===== */
.footer {
    padding: 30px 40px;
    background: var(--bg-alt);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.copyright {
    font-size: 12px;
    color: var(--text-3);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .section {
        padding: 48px 32px;
    }
    
    .hero {
        padding: 60px 32px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        z-index: 2000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .navbar-mobile-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 52px;
    }
    
    .navbar-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        font-size: 15px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .navbar-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 12px;
        transition: background var(--transition-fast);
    }
    
    .navbar-toggle:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .navbar-toggle span {
        width: 24px;
        height: 2px;
        background: var(--text-1);
        border-radius: 2px;
        transition: var(--transition);
    }
    
    .navbar-mobile-menu {
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .navbar-mobile-menu.active {
        max-height: 500px;
    }
    
    .navbar-mobile-menu ul {
        list-style: none;
        padding: 8px 0;
    }
    
    .navbar-mobile-menu li {
        padding: 0 20px;
    }
    
    .navbar-mobile-menu a {
        display: block;
        padding: 14px 0;
        text-decoration: none;
        color: var(--text-1);
        font-size: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        transition: color var(--transition-fast);
    }
    
    .navbar-mobile-menu a:hover {
        color: var(--primary);
    }
    
    .navbar-mobile-menu li:last-child a {
        border-bottom: none;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .section {
        padding: 40px 24px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .config-content {
        grid-template-columns: 1fr;
    }
    
    .config-card {
        padding: 24px;
    }
    
    .troubleshooting-content {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 32px 24px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-right: 16px;
    }
    
    .step-content h3 {
        font-size: 16px;
    }
}