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

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-size: 16px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 文章内容 */
.content {
    padding: 20px;
}

/* 主标题 */
.main-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    text-align: center;
}

/* 章节 */
.section {
    margin-bottom: 40px;
}

/* 章节标题 */
.section-title {
    font-size: 1.5em;
    color: #2980b9;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

/* 段落 */
.paragraph {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

/* 注意事项 */
.note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* 高亮段落 */
.highlight {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
    font-weight: 500;
}

/* 链接 */
.link {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 图片容器 */
.image-container {
    margin: 25px 0;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 内容图片 */
.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 重要说明区域 */
.important-section {
    background-color: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #ffa726;
}

.important-section .section-title {
    color: #f57c00;
    border-left-color: #ffa726;
}

/* 列表 */
.instruction-list {
    list-style: none;
    padding-left: 0;
}

.instruction-list li {
    padding: 12px 15px 12px 40px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.instruction-list li:before {
    content: "•";
    position: absolute;
    left: 15px;
    color: #ff9800;
    font-size: 1.5em;
    line-height: 1;
}

/* 图片预览遮罩层 */
.image-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-preview.active {
    display: flex;
}

/* 关闭按钮 */
.close-preview {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-preview:hover {
    color: #ccc;
}

/* 预览图片 */
.preview-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
        box-shadow: none;
    }

    .content {
        padding: 15px;
    }

    .main-title {
        font-size: 1.5em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .section-title {
        font-size: 1.2em;
        margin-bottom: 12px;
        padding-left: 10px;
    }

    .paragraph {
        margin-bottom: 12px;
        line-height: 1.7;
    }

    .note,
    .highlight {
        padding: 12px;
        margin: 15px 0;
    }

    .image-container {
        margin: 20px 0;
    }

    .important-section {
        padding: 15px;
    }

    .instruction-list li {
        padding: 10px 12px 10px 35px;
        margin-bottom: 8px;
        font-size: 0.95em;
    }

    .instruction-list li:before {
        left: 12px;
        font-size: 1.3em;
    }

    .close-preview {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .preview-image {
        max-width: 95%;
        max-height: 95%;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 5px;
    }

    .content {
        padding: 10px;
    }

    .main-title {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .paragraph {
        line-height: 1.6;
    }

    .note,
    .highlight {
        padding: 10px;
    }

    .instruction-list li {
        padding: 8px 10px 8px 30px;
        font-size: 0.9em;
    }

    .instruction-list li:before {
        left: 10px;
    }
}

/* 打印样式 */
@media print {
    .image-preview {
        display: none !important;
    }

    .container {
        box-shadow: none;
    }

    .content-image {
        cursor: default;
    }

    .content-image:hover {
        transform: none;
        box-shadow: none;
    }
}
