/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* 自定义颜色变量 */
:root {
    /* 主题色 - 橙红色系 */
    --primary-light: #FFAB91;
    --primary: #FF6B4A;
    --primary-dark: #FF8A65;
    
    /* 背景色 */
    --bg-light: #FFF8F5;
    --bg-white: #FFFFFF;
    
    /* 文字色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    
    /* 功能色 */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(255, 107, 74, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 107, 74, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 107, 74, 0.2);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFE5DC 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-steps {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-step-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-step-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
}

.nav-step-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.step-icon {
    font-size: 18px;
}

.faq-btn {
    background: linear-gradient(135deg, var(--warning) 0%, #FFA726 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 主内容区域 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页 Hero 区域 */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-decoration {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.start-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: var(--radius-xl);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.start-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* 步骤概览 */
.steps-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 200px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.step-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

/* 向导容器 */
.guide-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 107, 74, 0.2);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.guide-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.guide-icon {
    font-size: 48px;
}

.guide-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.guide-question {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.guide-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-btn {
    background: var(--bg-light);
    border: 2px solid transparent;
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.option-icon {
    font-size: 24px;
}

/* 教程容器 */
.tutorial-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.tutorial-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.back-btn {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
}

.tutorial-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.tutorial-section {
    margin-bottom: 40px;
}

.tutorial-section:last-child {
    margin-bottom: 0;
}

.tutorial-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-light);
}

.tutorial-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.tutorial-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* 链接样式 */
.link-block {
    margin: 16px 0;
}

.link-block a {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.1) 0%, rgba(255, 138, 101, 0.1) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.link-block a:hover {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.2) 0%, rgba(255, 138, 101, 0.2) 100%);
    transform: translateX(5px);
}

/* 图片样式 */
.tutorial-image {
    margin: 20px 0;
    text-align: center;
}

.tutorial-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 167, 38, 0.1) 100%);
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.highlight-box h4 {
    color: var(--warning);
    margin-top: 0;
}

.highlight-box ul {
    margin-left: 20px;
}

.highlight-box li {
    margin: 8px 0;
    color: var(--text-primary);
}

/* 高亮文本 */
.highlight-text {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.1) 0%, rgba(255, 138, 101, 0.1) 100%);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* 警告框 */
.warning-box {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
    border: 2px solid var(--error);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.warning-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text strong {
    color: var(--error);
    display: block;
    margin-bottom: 8px;
}

/* 信息框 */
.info-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
    border: 2px solid var(--info);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
    color: var(--text-primary);
}

/* 代码块 */
.code-block {
    background: #2D2D2D;
    color: #F8F8F2;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
}

/* FAQ 样式 */
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.faq-item p {
    margin-bottom: 12px;
}

/* 手风琴样式 */
.accordion {
    margin-top: 20px;
}

.accordion-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    background: var(--bg-light);
    border: none;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: white;
}

.accordion-icon {
    font-size: 24px;
}

.accordion-title {
    flex: 1;
    text-align: left;
}

.accordion-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
}

.accordion-content .tutorial-section {
    padding: 20px;
}

.accordion-content .tutorial-footer {
    padding: 0 20px 20px;
}

/* 教程底部 */
.tutorial-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
}

.next-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.complete-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--success) 0%, #66BB6A 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 空内容 */
.empty-content {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

.empty-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.empty-content-large {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-icon-large {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.empty-content-large h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-content-large p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Modal 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: auto;
    padding: 20px;
    border-radius: var(--radius-lg);
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

/* 成功弹窗 */
.success-modal-content {
    text-align: center;
    padding: 40px 50px;
    max-width: 400px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

.success-modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.success-modal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-steps {
        width: 100%;
        justify-content: center;
    }
    
    .nav-step-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .step-text {
        display: none;
    }
    
    .faq-btn {
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    .hero {
        padding: 40px 16px 30px;
    }
    
    .hero-decoration {
        font-size: 60px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .start-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .steps-overview {
        flex-direction: column;
        padding: 30px 16px;
    }
    
    .step-card {
        width: 100%;
        max-width: 280px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .guide-container {
        padding: 30px 16px;
    }
    
    .guide-card {
        padding: 24px;
    }
    
    .guide-header {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-icon {
        font-size: 40px;
    }
    
    .guide-header h2 {
        font-size: 20px;
    }
    
    .guide-question {
        font-size: 16px;
    }
    
    .option-btn {
        padding: 16px;
    }
    
    .tutorial-container {
        padding: 30px 16px;
    }
    
    .tutorial-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tutorial-header h2 {
        font-size: 20px;
    }
    
    .back-btn {
        width: 100%;
        text-align: center;
    }
    
    .tutorial-content {
        padding: 20px;
    }
    
    .tutorial-section h3 {
        font-size: 18px;
    }
    
    .tutorial-section h4 {
        font-size: 16px;
    }
    
    .tutorial-section p {
        font-size: 14px;
    }
    
    .tutorial-image img {
        max-height: 400px;
    }
    
    .link-block a {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .highlight-text {
        font-size: 14px;
    }
    
    .warning-box, .info-box {
        padding: 16px;
    }
    
    .warning-icon, .info-icon {
        font-size: 24px;
    }
    
    .accordion-header {
        padding: 16px;
        font-size: 14px;
    }
    
    .accordion-icon {
        font-size: 20px;
    }
    
    .accordion-content .tutorial-section {
        padding: 16px;
    }
    
    .faq-item {
        padding: 16px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .faq-item h4 {
        font-size: 14px;
    }
    
    .code-block {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .success-modal-content {
        padding: 30px 20px;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .success-modal-content h2 {
        font-size: 24px;
    }
    
    .empty-content-large {
        padding: 40px 30px;
    }
    
    .empty-icon-large {
        font-size: 60px;
    }
    
    .empty-content-large h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }
    
    .tutorial-image img {
        max-height: 300px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
