/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f59e0b;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #1f2937;
    --darker-bg: #111827;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --code-bg: #f3f4f6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ==================== 头部样式 ==================== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.version {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
}

/* ==================== 导航菜单 ==================== */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    background: var(--dark-bg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-link {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--primary-color);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: var(--primary-color);
}

/* ==================== 主内容区 ==================== */
main {
    padding: 40px 30px;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.section h3 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin: 25px 0 15px 0;
}

.section h4 {
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
}

/* ==================== 内容盒子 ==================== */
.content-box {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--warning-color);
}

.highlight-box p {
    margin: 10px 0;
    font-size: 1.05em;
}

.info-box {
    background: #dbeafe;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.info-box strong {
    color: var(--secondary-color);
}

/* ==================== 特色功能网格 ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin: 15px 0;
    font-size: 1.3em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 步骤盒子 ==================== */
.step-box {
    margin: 25px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    color: white;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* ==================== 代码块 ==================== */
.code-block {
    background: var(--darker-bg);
    color: #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: var(--shadow);
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    background: var(--code-bg);
    color: var(--danger-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.code-block code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ==================== 表格样式 ==================== */
.command-table,
.permission-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.command-table thead,
.permission-table thead {
    background: var(--dark-bg);
    color: white;
}

.command-table th,
.permission-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.command-table td,
.permission-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.command-table tbody tr:hover,
.permission-table tbody tr:hover {
    background: var(--light-bg);
}

/* ==================== 列表样式 ==================== */
ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 8px 0;
    line-height: 1.6;
}

/* ==================== 按钮样式 ==================== */
.nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--dark-bg);
    color: white;
}

.btn-secondary:hover {
    background: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== FAQ样式 ==================== */
.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.question {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1em;
}

.answer {
    padding: 20px;
    background: var(--light-bg);
}

.answer p {
    margin: 10px 0;
}

.answer ul, .answer ol {
    margin: 15px 0;
}

/* ==================== 教程盒子 ==================== */
.tutorial-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.tutorial-box h4 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.tutorial-box h4:first-child {
    margin-top: 0;
}

.note {
    color: var(--text-secondary);
    font-style: italic;
    margin: 10px 0;
}

/* ==================== 结果盒子 ==================== */
.result-box {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
}

.result-box strong {
    color: var(--success-color);
}

/* ==================== 对比盒子 ==================== */
.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.compare-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
}

.compare-item h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ==================== 故障排除 ==================== */
.troubleshoot-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.troubleshoot-box h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.troubleshoot-box h4:first-child {
    margin-top: 0;
}

.troubleshoot-flow {
    margin: 30px 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.flow-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #3b82f6);
    color: white;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.flow-content h4 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}

.flow-content p {
    margin: 0;
    color: var(--text-secondary);
}

.flow-arrow {
    text-align: center;
    font-size: 2em;
    color: var(--secondary-color);
    margin: 10px 0;
}

.error-box {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
}

.error-box h4 {
    color: var(--danger-color);
    margin: 0 0 10px 0;
}

.error-box p {
    margin: 5px 0;
}

/* ==================== 页脚样式 ==================== */
footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    main {
        padding: 20px 15px;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-link {
        min-width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 15px;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .feature-card,
    .step,
    .faq-item {
        break-inside: avoid;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--warning-color);
}

/* ==================== 付费版页面样式 ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.free-card {
    border-top: 4px solid var(--text-secondary);
}

.premium-card {
    border-top: 4px solid var(--primary-color);
}

.badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: var(--shadow);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background: var(--light-bg);
}

.pricing-header h3 {
    font-size: 1.8em;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.price {
    margin: 20px 0;
}

.price-amount {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
}

.price-desc {
    color: var(--text-secondary);
    margin: 10px 0 0 0;
}

.pricing-features {
    padding: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item.included .feature-icon {
    background: #d1fae5;
    color: var(--success-color);
}

.feature-item.excluded .feature-icon {
    background: #fee2e2;
    color: var(--danger-color);
}

.feature-item.highlight {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
    padding-left: 10px;
    margin-left: -10px;
    font-weight: 600;
}

.pricing-footer {
    padding: 30px;
    text-align: center;
    background: var(--light-bg);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* 功能详解网格 */
.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-detail-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-detail-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-detail-card h3 {
    color: var(--primary-color);
    margin: 15px 0;
}

.feature-detail-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-detail-card ul {
    list-style: none;
    padding: 0;
}

.feature-detail-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.feature-detail-card ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 价格高亮 */
.price-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 30px 0;
    border: 3px solid var(--primary-color);
}

.price-highlight h3 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.price-subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.price-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-content h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.benefit-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* 购买步骤 */
.purchase-steps {
    margin: 30px 0;
}

.purchase-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.purchase-step:hover {
    transform: translateX(10px);
}

.purchase-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    color: white;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-right: 25px;
    flex-shrink: 0;
}

.purchase-step-content h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.3em;
}

.purchase-step-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* 联系方式 */
.contact-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.contact-info h4 {
    color: var(--primary-color);
    margin: 15px 0 10px 0;
}

.contact-info p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--text-primary);
    font-size: 1.1em;
}

/* 警告框 */
.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.warning-box strong {
    color: var(--warning-color);
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 50px 0;
    box-shadow: var(--shadow-lg);
}

.cta-section h2 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: white;
    border: none;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .price-benefits {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8em;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}