/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

/* 通用样式 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0f4c90;
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #202124;
}

h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 8px;
    margin-top: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #1a73e8;
}

h3 {
    font-size: 22px;
    margin-top: 30px;
    color: #1a73e8;
}

h4 {
    font-size: 18px;
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: top 0.3s, box-shadow 0.3s;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
}

.logo img {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-links li {
    margin: 0 0 0 25px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a73e8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a73e8;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #1a73e8;
    margin: 5px;
    transition: all 0.3s ease;
}

/* 顶部区域样式 */
.hero {
    text-align: center;
    padding: 30px 20px 50px;
}

.subtitle {
    font-size: 18px;
    color: #5f6368;
}

/* 章节样式 */
.section {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 内容布局 */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 特性卡片 */
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    flex: 1;
    min-width: 300px;
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-top: 0;
    color: #1a73e8;
    font-size: 18px;
    border-bottom: 1px solid #d0e0fc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.feature-card ul {
    margin-bottom: 0;
}

/* 步骤样式 */
.step-container {
    margin-top: 25px;
}

.step {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e0e0e0;
}

.step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    width: 35px;
    height: 35px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0;
    color: #202124;
}

/* 方法卡片 */
.method-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.method-card {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    border-left: 3px solid #1a73e8;
    padding: 15px;
    border-radius: 0 5px 5px 0;
    transition: transform 0.3s;
}

.method-card:hover {
    transform: translateX(5px);
}

.method-card h4 {
    margin-top: 0;
    color: #1a73e8;
}

/* 提示框样式 */
.note, .warning, .tip, .success-note {
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
    padding-left: 20px;
}

.note {
    background-color: #e8f0fe;
    border-left: 4px solid #1a73e8;
}

.warning {
    background-color: #fef7e0;
    border-left: 4px solid #fbbc04;
}

.tip {
    background-color: #e6f4ea;
    border-left: 4px solid #34a853;
}

.success-note {
    background-color: #e6f4ea;
    border-left: 4px solid #34a853;
}

/* 子章节样式 */
.subsection {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* 图片样式 */
.tutorial-image {
    margin: 20px 0;
    text-align: center;
    position: relative;
    max-width: 100%;
}

.tutorial-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tutorial-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.caption {
    margin-top: 10px;
    font-size: 14px;
    color: #5f6368;
    font-style: italic;
}

/* 图片查看器样式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s;
    opacity: 0;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e0e0e0;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
}

/* FAQ样式 */
.faq-container {
    margin-top: 25px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    color: #1a73e8;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.faq-question::after {
    content: '▼';
    position: absolute;
    right: 20px;
    font-size: 12px;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s, padding 0.5s;
}

.faq-item.active .faq-question {
    background-color: #f0f7ff;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 15px 20px 20px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #1a73e8;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 900;
}

.back-to-top:hover {
    background-color: #0f4c90;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    color: #5f6368;
    font-size: 14px;
}

/* 动画效果 */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 70px 15px 20px;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        height: calc(100vh - 60px);
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0;
        padding: 30px 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        opacity: 0;
    }
    
    .nav-active {
        transform: translateX(0);
    }
    
    .burger {
        display: block;
    }
    
    .burger-active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger-active .line2 {
        opacity: 0;
    }
    
    .burger-active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .content-wrapper,
    .feature-list,
    .method-list {
        flex-direction: column;
    }
    
    .image-content {
        order: -1;
    }
    
    .feature-card,
    .method-card {
        min-width: 100%;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}