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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.logo {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo h2 {
    font-size: 20px;
    font-weight: 600;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left-color: #3498db;
}

.nav-item .icon {
    font-size: 20px;
    margin-right: 12px;
}

.nav-divider {
    padding: 20px 20px 10px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
}

/* 可折叠导航区域 */
.nav-section-toggle {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.nav-section-toggle:hover {
    color: rgba(255,255,255,0.8);
}

.nav-section-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 10px;
    margin-right: 4px;
}

.nav-section-items {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.nav-section-items.collapsed {
    max-height: 0;
    opacity: 0;
}

/* 右侧内容区 */
.content {
    flex: 1;
    margin-left: 260px;
    padding: 40px 60px;
    overflow-y: auto;
    max-width: 1200px;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ed;
}

.page-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    color: #7f8c8d;
}

/* 内容卡片 */
.intro-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.intro-card h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.intro-card p {
    color: #555;
    margin-bottom: 15px;
}

.intro-card ul {
    list-style: none;
    padding-left: 0;
}

.intro-card ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #555;
}

.intro-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 步骤列表 */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.step-item {
    display: flex;
    gap: 15px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.step-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.step-content p {
    color: #666;
    margin: 0;
}

/* 账号类型卡片 */
.account-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.type-card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.type-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.type-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.type-card p {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.type-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.type-link:hover {
    color: #2980b9;
}

/* 警告卡片 */
.warning-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid #e74c3c;
}

.warning-card h2 {
    color: #c0392b;
}

.warning-card ul li:before {
    color: #e74c3c;
    content: "⚠";
}

/* 教程内容样式 */
.tutorial-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.tutorial-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.tutorial-section h3 {
    font-size: 20px;
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
}

.tutorial-section p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.tutorial-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tutorial-section ol li {
    color: #555;
    margin-bottom: 12px;
    padding-left: 10px;
    line-height: 1.8;
}

.tutorial-section ol li strong {
    color: #2c3e50;
}

/* 代码块 */
.code-block {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* 截图占位符 */
.screenshot {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 60px;
    text-align: center;
    margin: 20px 0;
    color: #999;
}

.screenshot-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 20px 0;
}

/* 提示框 */
.tip-box {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.tip-box p {
    margin: 0;
    color: #2c3e50;
}

.tip-box strong {
    color: #2980b9;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.warning-box p {
    margin: 0;
    color: #856404;
}

.danger-box {
    background: #f8d7da;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.danger-box p {
    margin: 0;
    color: #721c24;
}

/* FAQ 样式 */
.faq-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
}

.faq-item p {
    color: #555;
    margin: 0;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
        padding: 20px;
    }

    .account-types {
        grid-template-columns: 1fr;
    }
}
