@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #f093fb;
    --error-color: #ff6b6b;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.25);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 幻灯片容器 */
.slides-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

/* 基础幻灯片样式 */
.slide {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-secondary);
}

.slide-content {
    width: 90%;
    max-width: 1200px;
    padding: 3rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
    overflow-y: auto;
    max-height: 90vh;
}

/* 大尺寸幻灯片 */
.large-slide .slide-content {
    width: 95%;
    max-width: 1400px;
    padding: 4rem;
}

/* 标题页样式 */
.hero-slide {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 章节标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    margin: 0 auto;
}

/* 议程页面样式 */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.agenda-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.agenda-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
}

.agenda-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.agenda-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 自我介绍页面 */
.intro-image-only {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.intro-image-only img {
    max-width: 100%;
    max-height: 100%;
    min-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* 介绍大纲页面 */
.intro-points {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    font-size: 1.3rem;
    color: var(--text-dark);
}

.point-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.point-item i {
    color: var(--primary-color);
    font-size: 2rem;
    min-width: 2rem;
}

/* 概览页面 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.scenario-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.scenario-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.scenario-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.scenario-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.scenario-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 数据页面样式 */
.data-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--success-color), #00c9ff);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.download-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

/* 任务页面样式 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.task-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.task-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.task-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.task-content p {
    color: var(--text-light);
}

/* 算法详解页面 */
.algorithm-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.algorithm-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-tertiary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* 个税计算页面 */
.tax-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.rate-table th,
.rate-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-tertiary);
}

.rate-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-dark);
}

.example-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.example-params {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.calc-step {
    padding: 0.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* 密码保护页面 */
.password-slide {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    position: relative;
    overflow: hidden;
}

.password-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.3) 0%, transparent 50%);
}

.lock-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.lock-icon i {
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
}

.password-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

#password-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    background: rgba(255,255,255,0.9);
}

#submit-password {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#submit-password:hover {
    background: var(--warning-color);
    transform: translateY(-2px);
}

/* 高级内容样式 */
.wealth-content {
    padding: 2rem 0;
}

.wealth-content h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.wealth-content blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.wealth-content p {
    margin: 1rem 0;
    color: var(--text-light);
}

.wealth-content pre {
    background: var(--text-dark);
    color: #a0aec0;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    margin: 1rem 0;
}

.wealth-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* 工具展示 */
.tool-showcase {
    display: flex;
    justify-content: center;
}

.tool-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--success-color), #00c9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.tool-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.tool-description code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.tool-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 总结页面 */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.summary-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.summary-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feedback-space textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-top: 1rem;
}

.feedback-space textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 结尾页面 */
.finale-content {
    text-align: center;
}

.finale-text {
    margin-bottom: 3rem;
}

.finale-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.finale-images {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.image-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.image-card:first-child .finale-img {
    width: 350px;
    height: auto;
    min-height: 350px;
    object-fit: contain;
}

.image-card:last-child .finale-img {
    width: 250px;
    height: auto;
    min-height: 250px;
    object-fit: contain;
}

.finale-img {
    display: block;
}

.thank-you h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* 导航按钮 */
.navigation {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.nav-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.nav-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 进度条 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 1001;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    width: 6.25%;
}

/* 幻灯片编号 */
.slide-number {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.1);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slide-content {
        padding: 2rem;
    }
    
    .large-slide .slide-content {
        padding: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .agenda-grid {
        grid-template-columns: 1fr;
    }
    
    .algorithm-layout,
    .tax-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-image-only {
        height: 50vh;
    }
    
    .point-item {
        padding: 1.5rem;
        font-size: 1.1rem;
        gap: 1.5rem;
    }
    
    .point-item i {
        font-size: 1.5rem;
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .finale-images {
        flex-direction: column;
        align-items: center;
    }
    
    .navigation {
        bottom: 1rem;
        right: 1rem;
    }
    
    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* 动画效果 */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 滚动条样式 */
.slide-content::-webkit-scrollbar {
    width: 8px;
}

.slide-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.slide-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.slide-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 