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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 页面容器 */
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ffffff, #e6f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-authors {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.authors-label {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.authors-list {
    font-weight: 400;
    color: #e6f3ff;
}

.hero-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 45px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid transparent;
    min-width: 220px;
}

.hero-btn.primary {
    background: linear-gradient(120deg, #ffd166, #fca903);
    color: #1e2a78;
    box-shadow: 0 10px 25px rgba(252, 169, 3, 0.35);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

/* 主要内容区域 */
.main-content {
    background: white;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 章节样式 */
.content-section {
    padding: 80px 0;
    border-bottom: 1px solid #e2e8f0;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section:nth-child(even) {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 25px 60px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.3);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.section-title:hover::before {
    transform: translateX(100%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
}

/* 章节内容 */
.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-content > * {
    text-align: justify;
}

.section-content h3,
.section-content h4,
.section-content h5 {
    text-align: center;
    margin: 40px 0 25px 0;
    font-weight: 700;
    color: #2d3748;
}

.section-content h3 {
    font-size: 1.8rem;
    color: #4a5568;
}

.section-content h4 {
    font-size: 1.5rem;
    color: #4a5568;
}

.section-content p {
    margin: 25px 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    text-indent: 2em;
    text-align: justify;
}

/* 图片说明文字居中 */
.section-content p:contains("图") {
    text-align: center;
    text-indent: 0;
    font-style: italic;
    color: #718096;
    font-size: 0.95rem;
    margin: 15px 0 40px 0;
}

.section-content strong {
    color: #2d3748;
    font-weight: 600;
}

/* 图片样式 */
.section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    display: block;
    transition: all 0.4s ease;
    cursor: pointer;
}

.section-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* 图片标题 */
.section-content p:has(img) + p {
    text-align: center;
    font-style: italic;
    color: #718096;
    font-size: 0.95rem;
    margin-top: -20px;
    margin-bottom: 40px;
}

/* 列表样式 */
.section-content ul,
.section-content ol {
    margin: 30px 0;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

.section-content li {
    margin: 15px 0;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-content ul li::before {
    content: '▸';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 20px;
    font-size: 1.2rem;
}

.section-content ol {
    counter-reset: item;
}

.section-content ol li::before {
    content: counter(item) '.';
    counter-increment: item;
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 20px;
}

/* 特殊内容块 - 重点标题 */
.section-content p:contains("教学成果："),
.section-content p:contains("应用成效："),
.section-content p:contains("主要解决的教学问题：") {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    margin: 40px 0;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    text-indent: 0;
    font-size: 1.2rem;
}

/* 重点数据强调 */
.section-content p:contains("100%"),
.section-content p:contains("2次登顶"),
.section-content p:contains("3次夺冠"),
.section-content p:contains("99%以上"),
.section-content p:contains("98.3%"),
.section-content p:contains("500余项"),
.section-content p:contains("全国排名第10"),
.section-content p:contains("全国第4") {
    position: relative;
}

/* 数字高亮样式 - 修复左侧空白 */
.highlight-number {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    display: inline;
    margin: 0 1px;
    white-space: nowrap;
}

/* 成就高亮样式 - 修复左侧空白 */
.highlight-achievement {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: inline;
    margin: 0 1px;
    white-space: nowrap;
}

/* 奖项高亮样式 - 修复左侧空白 */
.highlight-award {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
    display: inline;
    margin: 0 1px;
    white-space: nowrap;
}

/* 重点概念强调 */
.concept-highlight {
    background: rgba(102, 126, 234, 0.1);
    color: #2d3748;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    display: inline;
    margin: 0;
    white-space: nowrap;
}

/* 数字和统计信息 */
.section-content p:contains("①"),
.section-content p:contains("②"),
.section-content p:contains("③"),
.section-content p:contains("④"),
.section-content p:contains("⑤"),
.section-content p:contains("⑥"),
.section-content p:contains("⑦") {
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 1.05rem;
    text-indent: 0;
    position: relative;
}

.section-content p:contains("①")::before { content: "📌"; margin-right: 8px; }
.section-content p:contains("②")::before { content: "📚"; margin-right: 8px; }
.section-content p:contains("③")::before { content: "🔬"; margin-right: 8px; }
.section-content p:contains("④")::before { content: "💡"; margin-right: 8px; }
.section-content p:contains("⑤")::before { content: "📊"; margin-right: 8px; }
.section-content p:contains("⑥")::before { content: "👨‍🏫"; margin-right: 8px; }
.section-content p:contains("⑦")::before { content: "🏆"; margin-right: 8px; }

/* 页脚样式 */
.footer {
    background: #1a202c;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
}

.meta-info {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 20px 40px;
    }

    .content-section {
        padding: 60px 0;
    }

    .section-content p {
        font-size: 1rem;
        text-indent: 1.5em;
    }

    .highlight-number,
    .highlight-achievement,
    .highlight-award {
        font-size: 1em;
        padding: 1px 4px;
        margin: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .meta-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 15px 25px;
    }

    .section-content {
        padding: 0 10px;
    }

    .section-content ul li,
    .section-content ol li {
        padding-left: 30px;
    }

    .section-content ul li::before,
    .section-content ol li::before {
        left: 10px;
    }
}

/* 打印样式 */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 40px 0;
    }

    .hero-badge {
        background: #f0f0f0 !important;
        color: black !important;
    }

    .hero-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    .page-container {
        box-shadow: none;
    }

    .content-section:nth-child(even) {
        background: white !important;
    }

    .footer {
        background: white !important;
        color: black !important;
        border-top: 1px solid #ccc;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }
}

/* 焦点和无障碍样式 */
a:focus,
button:focus,
img:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 选择文本样式 */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #1a202c;
}
