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

/* 根元素变量 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主要内容 */
.main-content {
    margin-top: 70px;
}

/* 头部区域 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.hero-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    z-index: 0;
    opacity: 0.5;
}

.hero-collage-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.hero-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-collage-item:hover img {
    transform: scale(1.3);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.paper-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.95;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.authors {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.author-email {
    font-size: 0.9rem;
    opacity: 0.95;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.affiliations {
    margin: 20px 0;
    opacity: 0.95;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.affiliation {
    margin: 5px 0;
    font-weight: 500;
}

.author-notes {
    margin: 15px 0;
    opacity: 0.95;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.author-notes .note {
    font-style: italic;
    font-weight: 500;
}

.paper-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.3);
}

/* 章节样式 */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 摘要样式 */
.abstract-content {
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

.abstract-content p {
    margin-bottom: 15px;
}

/* 高亮文本样式 */
.highlight {
    /* background: linear-gradient(120deg, #a2facf 0%, #64b3f4 100%); */
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    padding: 2px 4px;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.highlight:hover {
    background-size: 100% 100%;
    color: #764ba2;
}

/* Task Definition Section */
.task-definition {
    margin: 30px 0;
}

.task-definition p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.task-definition ul {
    margin: 20px 0;
}

/* Keypoint Demonstration */
.keypoint-demonstration {
    margin: 40px 0;
}

.demo-image-container {
    text-align: center;
    margin: 30px 0;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.keypoint-demo-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.keypoint-description {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.keypoint-group {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.keypoint-group:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.keypoint-group h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.keypoint-group h4 i {
    color: var(--secondary-color);
}

.keypoint-group p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Impact Section */
.impact-section {
    margin: 40px 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.impact-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.impact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.impact-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.impact-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Task Highlight Box */
.task-highlight {
    margin: 40px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
}

.task-highlight p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.task-highlight i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.task-highlight strong {
    color: var(--primary-color);
}

/* 数据集统计 */
.dataset-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 特点列表 */
.feature-list {
    list-style: none;
    max-width: 100%;
    margin: 30px auto;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* 数据示例画廊 */
.example-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.example-item {
    text-align: center;
}

.example-image-pair {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.example-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.example-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.example-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.image-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

.example-item p {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 代码块样式 */
.code-block {
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    background-color: #2d3748;
    color: #e2e8f0;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 方法亮点 */
.method-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.highlight-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.highlight-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 架构图 */
.architecture-diagram {
    text-align: center;
    margin: 40px 0;
}

.architecture-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.architecture-diagram img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 算法步骤 */
.algorithm-steps {
    max-width: 800px;
    margin: 40px auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.step-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 实验设置 */
.experiment-setup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.setup-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.setup-item ul {
    margin-top: 15px;
    padding-left: 20px;
}

.setup-item li {
    margin-bottom: 8px;
}

/* 指标列表 */
.metrics-list {
    max-width: 600px;
    margin: 30px auto;
    list-style: none;
}

.metrics-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

/* 公式框 */
.equation-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.equation-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equation-content {
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    font-family: 'Times New Roman', serif;
    color: #2c3e50;
    line-height: 2;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    text-align: center;
    margin: 0 5px;
}

.numerator {
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.denominator {
    padding-top: 8px;
    font-size: 0.95em;
}

/* 基线方法 */
.baseline-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.method-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.method-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 结果表格 */
.results-table-container {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.results-table tr:hover {
    background-color: var(--bg-light);
}

.highlight-row {
    background-color: #e8f4fd !important;
    font-weight: 600;
}

.highlight-row:hover {
    background-color: #d1ecf1 !important;
}

/* Checkpoint下载链接样式 */
.ckpt-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.ckpt-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ckpt-link i {
    font-size: 0.9rem;
}

/* 可视化结果 */
.visualization-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.result-item {
    text-align: center;
}

.result-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.result-item img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* 消融实验表格 */
.ablation-table-container {
    margin: 40px 0;
}

/* 下载网格 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.download-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.download-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.download-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.download-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 引用部分 */
.citation-section {
    margin-top: 60px;
}

.citation-box {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 0;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.citation-box pre {
    margin: 0;
    padding: 25px;
    background-color: #2d3748;
    color: #e2e8f0;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #2980b9;
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: black;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.modal-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: var(--text-light);
}

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

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

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .paper-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .authors {
        flex-direction: column;
        gap: 20px;
    }

    .paper-links {
        flex-direction: column;
        align-items: center;
    }

    .dataset-stats {
        grid-template-columns: 1fr;
    }

    .method-highlights {
        grid-template-columns: 1fr;
    }

    .example-gallery {
        grid-template-columns: 1fr;
    }

    .visualization-results {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .experiment-setup {
        grid-template-columns: 1fr;
    }

    .baseline-methods {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
    }

    .paper-title {
        font-size: 1.5rem;
    }

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

/* 打印样式 */
@media print {
    .navbar,
    .paper-links,
    .modal {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }

    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .hero-section {
        background: none;
        color: black;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--secondary-color);
    color: white;
}