/* ========================================
   模拟飞行竞赛规则展示站
   基于 flyacademy H5 风格
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 顶部导航 */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0; transition: all 0.3s ease; background: transparent;
}
.header-scrolled {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1); padding: 12px 0;
}
.header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; transition: color 0.3s; }
.header-scrolled .logo { color: #2c3e50; }
.logo i { font-size: 26px; color: #3498db; }
.nav { display: flex; gap: 32px; }
.nav-link {
    color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 500;
    transition: all 0.3s; position: relative;
}
.header-scrolled .nav-link { color: #2c3e50; }
.nav-link:hover, .nav-link.active { color: #3498db; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%); width: 24px; height: 3px;
    background: #3498db; border-radius: 2px;
}

/* 竞赛项目下拉菜单 */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dropdown-caret { font-size: 10px; transition: transform 0.3s; margin-left: 2px; }
.nav-item-dropdown:hover .dropdown-caret { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: calc(100% + 14px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff; border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.16);
    padding: 18px 22px; min-width: 560px;
    opacity: 0; visibility: hidden; transition: all 0.28s ease;
    z-index: 1001;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px;
}
.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-group { display: flex; flex-direction: column; }
.dropdown-group-title {
    font-size: 12px; color: #95a5a6; font-weight: 700; padding: 0 10px 6px;
    border-bottom: 1px solid #f0f0f0; margin-bottom: 4px; letter-spacing: 0.02em;
}
.dropdown-menu a {
    font-size: 14px; color: #2c3e50; padding: 8px 10px; border-radius: 7px;
    transition: all 0.2s; font-weight: 500;
}
.dropdown-menu a:hover { background: #f0f4f8; color: #3498db; }

/* Hero 区域 */
.hero {
    position: relative; min-height: 70vh; display: flex; align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 30%, #34495e 60%, #3498db 100%);
    overflow: hidden;
}
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }
.cloud { position: absolute; background: rgba(255,255,255,0.1); border-radius: 50%; filter: blur(40px); }
.cloud-1 { width: 300px; height: 300px; top: 10%; left: -5%; animation: float 20s ease-in-out infinite; }
.cloud-2 { width: 400px; height: 400px; top: 50%; right: -10%; animation: float 25s ease-in-out infinite reverse; }
.cloud-3 { width: 250px; height: 250px; bottom: 10%; left: 30%; animation: float 18s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-30px); } }
.plane-icon {
    position: absolute; top: 20%; right: 15%; font-size: 120px;
    color: rgba(255,255,255,0.08); transform: rotate(-20deg);
    animation: planeFly 15s ease-in-out infinite;
}
@keyframes planeFly { 0%,100% { transform: rotate(-20deg) translate(0,0); } 50% { transform: rotate(-15deg) translate(-20px,20px); } }
.hero-content { position: relative; z-index: 10; text-align: center; color: #fff; padding: 0 30px; max-width: 900px; }
.hero-title { font-size: 48px; font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
.title-line { display: block; }
.title-line.highlight {
    background: linear-gradient(90deg, #5dade2, #3498db, #2980b9);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 22px; font-weight: 500; margin-bottom: 15px; color: rgba(255,255,255,0.95); }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-large {
    padding: 16px 36px; font-size: 16px; font-weight: 600; border-radius: 12px;
    display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: #fff; box-shadow: 0 4px 20px rgba(52,152,219,0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(52,152,219,0.5); }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.4); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.6); transform: translateY(-3px); }
.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 13px; display: flex; flex-direction: column;
    align-items: center; gap: 10px; animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* 通用区块 */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 32px; font-weight: 700; color: #2c3e50; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: #7f8c8d; }

/* 比赛导航卡片 */
.competition-section { padding: 80px 0; background: #f5f7fa; }
.competition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.competition-card {
    position: relative; background: #fff; border-radius: 16px; padding: 28px 24px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.06); transition: all 0.4s ease; overflow: hidden; display: block;
}
.competition-card:hover { transform: translateY(-8px); box-shadow: 0 16px 50px rgba(0,0,0,0.12); }
.competition-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #3498db, #5dade2); transform: scaleX(0);
    transform-origin: left; transition: transform 0.4s ease;
}
.competition-card:hover::before { transform: scaleX(1); }
.competition-card.cat-aerobatics::before { background: linear-gradient(90deg, #3498db, #5dade2); }
.competition-card.cat-landing::before { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.competition-card.cat-military::before { background: linear-gradient(90deg, #e74c3c, #f39c12); }
.competition-card.cat-culture::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.competition-card.cat-knowledge::before { background: linear-gradient(90deg, #f39c12, #e67e22); }

.card-cat-tag {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 999px; margin-bottom: 12px;
}
.card-cat-tag.tech { background: #eaf2fa; color: #3498db; }
.card-cat-tag.cult { background: #f0eaf7; color: #8e44ad; }
.card-cat-tag.know { background: #eafaf1; color: #27ae60; }
.competition-card h3 { font-size: 20px; font-weight: 700; color: #2c3e50; margin-bottom: 8px; }
.competition-card .card-plane { font-size: 14px; color: #7f8c8d; margin-bottom: 12px; }
.competition-card .card-plane i { color: #3498db; margin-right: 6px; }
.competition-card .card-time {
    display: flex; gap: 16px; margin-bottom: 12px; padding: 10px 14px;
    background: #f8f9fa; border-radius: 8px;
}
.competition-card .time-item { font-size: 13px; color: #5a6a7a; }
.competition-card .time-item strong { color: #2c3e50; font-size: 15px; }
.competition-card .card-group { font-size: 12px; color: #95a5a6; }
.competition-card .card-arrow {
    position: absolute; bottom: 20px; right: 20px; font-size: 18px; color: #3498db;
    opacity: 0; transition: all 0.3s;
}
.competition-card:hover .card-arrow { opacity: 1; transform: translateX(4px); }

/* 快速入口 */
.quick-entry { padding: 60px 0; background: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card {
    text-align: center; padding: 32px 20px; border-radius: 16px; background: #f8f9fa;
    transition: all 0.3s; display: block;
}
.quick-card:hover { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-5px); }
.quick-card i { font-size: 32px; color: #3498db; margin-bottom: 14px; }
.quick-card h4 { font-size: 16px; font-weight: 600; color: #2c3e50; margin-bottom: 6px; }
.quick-card p { font-size: 13px; color: #7f8c8d; }

/* 成绩计算区 */
.score-section { padding: 80px 0; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; }
.score-section .section-title { color: #fff; }
.score-section .section-subtitle { color: rgba(255,255,255,0.7); }
.score-formula {
    max-width: 700px; margin: 0 auto; background: rgba(255,255,255,0.08); border-radius: 16px;
    padding: 36px; text-align: center;
}
.score-formula .formula-label { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.score-formula .formula-main { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.score-formula .formula-highlight { color: #5dade2; }
.score-formula .formula-time {
    background: rgba(0,0,0,0.2); border-radius: 10px; padding: 20px; margin-top: 20px;
    font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.8;
}
.score-formula .formula-time strong { color: #5dade2; }

/* 页脚 */
.footer { background: #1a252f; color: #fff; padding: 50px 0 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-bottom: 35px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-logo i { color: #3498db; font-size: 24px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h5 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.footer-col a { display: block; padding: 6px 0; color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: #3498db; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 30px; text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; }

/* ===== 科目详情页 ===== */
.detail-hero {
    position: relative; padding: 80px 0 36px;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    color: #fff; overflow: hidden; text-align: center;
}
.detail-hero .hero-bg { opacity: 0.5; }
.detail-title { max-width: 1200px; margin: 0 auto; padding: 0 30px; text-align: center; }
.detail-title h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.detail-title .detail-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.detail-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.detail-tag.tech { background: rgba(52,152,219,0.2); color: #5dade2; }
.detail-tag.cult { background: rgba(142,68,173,0.2); color: #c39bd3; }
.detail-tag.know { background: rgba(39,174,96,0.2); color: #58d68d; }
.detail-tag.group { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

/* 科目页内容布局 */
.detail-body { max-width: 1200px; margin: 0 auto; padding: 40px 30px 60px; display: flex; gap: 30px; }
.detail-toc {
    position: sticky; top: 90px; width: 240px; flex-shrink: 0; align-self: flex-start;
    background: #fff; border: 1px solid #e0e6ed; border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10); padding: 0; overflow: hidden;
    max-height: calc(100vh - 110px); overflow-y: auto;
}
.detail-toc::-webkit-scrollbar { width: 4px; }
.detail-toc::-webkit-scrollbar-thumb { background: #c5cdd8; border-radius: 2px; }
.detail-toc h4 {
    font-size: 13px; color: #fff; font-weight: 700; margin: 0;
    padding: 11px 14px; background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex; align-items: center; gap: 6px; letter-spacing: 0.03em;
}
.detail-toc h4.toc-purple {
    background: linear-gradient(135deg, #7c5cff, #6c3eed);
}
.detail-toc ul { list-style: none; padding: 10px 8px; }
.detail-toc li a {
    display: block; font-size: 13px; color: #5a6a7a; padding: 7px 12px; border-radius: 6px;
    transition: all 0.2s; font-weight: 500; border-left: 2px solid transparent;
}
.detail-toc li a:hover {
    color: #3498db; background: #f0f4f8;
}
.detail-toc li a.active {
    color: #fff; background: #3498db; font-weight: 600; border-left: 2px solid #2980b9;
}
.detail-toc li a.toc-sub {
    padding-left: 28px; font-size: 12px; color: #8a99a8;
}
.detail-toc li a.toc-sub:hover { color: #3498db; }
.detail-toc li a.toc-sub.active { color: #fff; background: #5dade2; }
.detail-toc .toc-divider {
    height: 1px; background: #e8edf3; margin: 4px 12px;
}
.detail-toc .toc-group {
    font-size: 11px; color: #a0afc0; font-weight: 600; padding: 6px 12px 2px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.detail-toc li a.toc-current {
    color: #7c5cff; font-weight: 600; background: rgba(124,92,255,0.08);
    border-left: 2px solid #7c5cff;
}
.detail-toc li a.toc-current:hover { background: rgba(124,92,255,0.15); }
.detail-content { flex: 1; min-width: 0; }

/* 信息模块 */
.info-module { background: #fff; border-radius: 14px; padding: 24px 28px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.info-module h2 { font-size: 20px; font-weight: 700; color: #2c3e50; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.info-module h2 i { color: #3498db; font-size: 20px; }
.info-module p { font-size: 15px; color: #2c3e50; margin-bottom: 10px; }
.info-module p:last-child { margin-bottom: 0; }
.info-module strong { color: #2c3e50; }
.info-module ul.info-list { margin-top: 8px; }
.info-module ul.info-list li { padding: 5px 0 5px 18px; position: relative; font-size: 15px; color: #2c3e50; }
.info-module ul.info-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: #3498db; }
.source-tag {
    display: inline-block; font-size: 12px; color: #95a5a6; font-family: "Cascadia Code", "Consolas", monospace;
    margin-top: 10px; padding: 3px 10px; background: #f8f9fa; border-radius: 4px;
}

/* 数据表格 */
.data-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.data-table th { background: #f5f7fa; font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 2px solid #e0e6ed; white-space: nowrap; color: #2c3e50; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #ecf0f1; color: #34495e; vertical-align: top; }
.data-table tr:hover td { background: #f8f9fa; }

/* 时间数值卡片 */
.time-cards { display: flex; gap: 20px; margin: 16px 0; }
.time-card { flex: 1; background: linear-gradient(135deg, #f5f7fa, #e8ecf0); border-radius: 12px; padding: 20px 24px; text-align: center; }
.time-card .time-label { font-size: 13px; color: #7f8c8d; margin-bottom: 8px; }
.time-card .time-value { font-size: 28px; font-weight: 700; color: #3498db; }

/* 罚则表格 */
.penalty-table th { background: #fff5f5; }
.penalty-table .penalty-item { color: #e74c3c; font-weight: 600; }

/* 页内Tab */
.detail-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #ecf0f1; }
.detail-tab { padding: 12px 24px; font-size: 15px; font-weight: 600; color: #95a5a6; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s; margin-bottom: -2px; }
.detail-tab.active { color: #3498db; border-bottom-color: #3498db; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 上下页导航 */
.page-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.page-nav a {
    display: flex; align-items: center; gap: 10px; padding: 16px 24px; background: #fff;
    border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: all 0.3s; flex: 1;
}
.page-nav a:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.page-nav a.prev { text-align: left; }
.page-nav a.next { text-align: right; justify-content: flex-end; }
.page-nav .nav-label { font-size: 12px; color: #95a5a6; }
.page-nav .nav-title { font-size: 15px; font-weight: 600; color: #2c3e50; }
.page-nav a.prev i { color: #3498db; }
.page-nav a.next i { color: #3498db; }

/* 来源声明 */
.source-declaration {
    max-width: 1200px; margin: 0 auto; padding: 20px 30px 40px; text-align: center;
    font-size: 13px; color: #95a5a6;
}

/* ===== 图片展示 ===== */
.figure-gallery { margin: 16px 0; }
.figure-item {
    background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: box-shadow 0.3s;
}
.figure-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.figure-item img {
    width: 100%; display: block; cursor: zoom-in; transition: transform 0.3s;
    max-height: 600px; object-fit: contain; background: #f8f9fa;
}
.figure-item:hover img { transform: scale(1.01); }
.figure-caption {
    padding: 12px 18px; font-size: 14px; color: #5a6a7a; line-height: 1.6;
    border-top: 1px solid #ecf0f1; display: flex; align-items: center; gap: 8px;
}
.figure-caption i { color: #3498db; font-size: 15px; }
.figure-caption .fig-source { margin-left: auto; font-size: 12px; color: #95a5a6; font-family: "Cascadia Code", "Consolas", monospace; }

/* 图片网格（多图并排） */
.figure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.figure-grid .figure-item { margin-bottom: 0; }
.figure-grid .figure-item img { max-height: 400px; }

/* 图片灯箱 */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center;
    cursor: zoom-out; padding: 40px;
}
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img { max-width: 95%; max-height: 95%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px; cursor: pointer; }

/* 附录页面图片 */
.appendix-pages { margin: 16px 0; }
.appendix-page-item {
    background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.appendix-page-item img { width: 100%; display: block; cursor: zoom-in; }
.appendix-page-item .figure-caption { border-top: 1px solid #ecf0f1; }

/* 示意图占位提示 */
.diagram-placeholder {
    background: linear-gradient(135deg, #f5f7fa, #e8ecf0); border-radius: 12px;
    padding: 40px 30px; text-align: center; margin: 16px 0;
    border: 2px dashed #cbd5e0;
}
.diagram-placeholder i { font-size: 48px; color: #b0bec5; margin-bottom: 12px; }
.diagram-placeholder p { font-size: 14px; color: #78909c; }

/* 响应式补充 */
@media (max-width: 768px) {
    .figure-grid { grid-template-columns: 1fr; }
    .figure-item img { max-height: 400px; }
    .figure-caption { flex-direction: column; align-items: flex-start; gap: 4px; }
    .figure-caption .fig-source { margin-left: 0; }
}

/* 移动端菜单按钮 */
.menu-toggle { display: none; }

/* 响应式 */
@media (max-width: 992px) {
    .hero-title { font-size: 36px; }
    .competition-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-toc { display: none; }
    .detail-body { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        display: none; position: fixed; top: 64px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 16px 30px; gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 999;
    }
    .nav.nav-open { display: flex; }
    .nav .nav-link { color: #2c3e50; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
    .nav .nav-link.active::after { display: none; }
    .nav-item-dropdown > .nav-link { padding: 12px 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
    .dropdown-menu {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; min-width: 0; padding: 4px 0 8px 14px;
        grid-template-columns: 1fr; gap: 4px; background: transparent;
    }
    .dropdown-group-title { color: #95a5a6; border-bottom: 1px solid #f5f5f5; padding: 8px 10px 4px; }
    .dropdown-menu a { padding: 10px 10px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
    .dropdown-caret { display: none; }
    .menu-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; background: rgba(255,255,255,0.15); border: none;
        border-radius: 8px; color: #fff; font-size: 20px; cursor: pointer;
    }
    .header-scrolled .menu-toggle { background: #f5f7fa; color: #2c3e50; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero-desc { font-size: 14px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-large { width: 100%; max-width: 280px; justify-content: center; }
    .section-title { font-size: 24px; }
    .competition-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: 1fr; }
    .competition-section, .quick-entry, .score-section { padding: 50px 0; }
    .detail-hero { padding: 70px 0 28px; }
    .detail-title h1 { font-size: 24px; }
    .time-cards { flex-direction: column; }
    .footer-links { grid-template-columns: 1fr; }
    .page-nav { flex-direction: column; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px 10px; }
}

/* 返回按钮（分级返回：子页->规则首页->赛事中心/首页） */
.simrules-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: #fff; font-size: 14px; font-weight: 600;
    text-decoration: none; padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.65); border-radius: 20px;
    margin-right: 14px; transition: all .3s; white-space: nowrap;
    flex-shrink: 0;
}
.header-scrolled .simrules-back { color: #2c3e50; border-color: rgba(44,62,80,0.5); }
.simrules-back:hover { background: rgba(52,152,219,0.18); }
@media (max-width: 768px) {
    .simrules-back { font-size: 12px; padding: 5px 10px; margin-right: 8px; }
}
