/* ============================================================
   ROS 暑期学校 2026 — 配色与组件覆盖层
   必须在 combo.css 之后加载。
   色系取自 2026 主视觉横幅（Lyrical Luth 海龟吟游诗人）：
   深海蓝 #1d2b50 | 渐变蓝 #3b4f8f→#25356b | 水母金 #f5c84b
   浅蓝灰 #eef1f8 | 龟壳绿 #5cb87a
   ============================================================ */

/* ---------- 通用 ---------- */
.zh-heading {
    font-family: 'Microsoft YaHei', 'Arial Black', sans-serif;
    font-weight: bold;
}

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

.section img { max-width: 100%; height: auto; }

/* ---------- 导航 ---------- */
nav {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 6px rgba(29, 43, 80, 0.15);
}

nav .p-intro        { border-color: #1d2b50; }
nav .p-introduction { border-color: #eef1f8; }
nav .p-organizers   { border-color: #1d2b50; }
nav .p-highlights   { border-color: #f5c84b; }
nav .p-program      { border-color: #eef1f8; }
nav .p-admission    { border-color: #f5c84b; }
nav .p-registration { border-color: #1d2b50; }
nav .p-accomodation { border-color: #5cb87a; }
nav .p-review       { border-color: #eef1f8; }
nav .p-contact      { border-color: #5cb87a; }

/* ---------- 首屏 ---------- */
/* combo.css 给 #intro 设了 2025 紫底 !important，这里压掉 */
#intro { background-color: transparent !important; }

.hero { margin: 0; }

.hero-banner { width: 100%; display: block; }

.hero-fallback {
    display: none; /* banner 图加载失败时由 onerror 切换为 flex */
    min-height: 480px;
    background: linear-gradient(135deg, #3b4f8f 0%, #25356b 100%);
    color: #ffffff;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 80px;
}

.hero-fallback h1 {
    color: #ffffff;
    font-family: 'Microsoft YaHei', 'Arial Black', sans-serif;
    font-weight: bold;
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.hero-fallback .hero-theme { color: #f5c84b; font-size: 22px; margin-bottom: 24px; }
.hero-fallback .hero-meta  { color: #e8ecf7; font-size: 18px; margin-bottom: 6px; }

/* ---------- 区块背景（覆盖 combo.css 旧配色） ---------- */
#introduction { background-color: #eef1f8 !important; color: #222222; }
#organizers   { background-color: #1d2b50 !important; color: #ffffff; }
#highlights   { background-color: #ffffff !important; color: #222222; }
#program      { background-color: #eef1f8 !important; color: #222222; }
#admission    { background-color: #f5c84b !important; color: #1d2b50; }
#registration { background-color: #1d2b50 !important; color: #ffffff; }
#accomodation { background-color: #ffffff !important; color: #222222; }
#review       { background-color: #eef1f8 !important; color: #222222; }
#contact      { background-color: #ffffff !important; color: #222222; }
#footer       { background-color: #1d2b50 !important; }

/* 深色区块内的文字与链接 */
#organizers h3, #organizers p, #organizers li,
#registration h3, #registration h4, #registration p, #registration li {
    color: #ffffff;
}

#organizers a, #registration a { color: #f5c84b; }
#organizers strong { color: #f5c84b; }

/* 圆形分区徽章文字 */
.sectiondivider h5 { color: #1d2b50; letter-spacing: 2px; }
#organizers .sectiondivider h5,
#registration .sectiondivider h5 { color: #f5c84b; }

/* ---------- 信息卡片（introduction） ---------- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-card {
    background: #ffffff;
    border-top: 4px solid #f5c84b;
    border-radius: 6px;
    padding: 18px 16px;
    box-shadow: 0 2px 8px rgba(29, 43, 80, 0.08);
}

.info-card h4 {
    color: #1d2b50;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
}

.info-card p { margin-bottom: 8px; line-height: 1.6; }

/* ---------- 亮点卡片（highlights） ---------- */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.highlight-card {
    background: #eef1f8;
    border-left: 4px solid #5cb87a;
    border-radius: 6px;
    padding: 18px 16px;
}

.highlight-card h4 {
    color: #1d2b50;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
}

.highlight-card p { margin-bottom: 0; line-height: 1.7; }

/* ---------- 主办单位列表（organizers，深底） ---------- */
.org-list { list-style: none; padding-left: 0; }

.org-list li {
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid #f5c84b;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 14px;
    line-height: 1.8;
}

/* ---------- 报名占位框与流程（registration，深底） ---------- */
.notice-box {
    background: rgba(245, 200, 75, 0.12);
    border: 1px solid #f5c84b;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 24px;
}

.notice-box p { margin-bottom: 8px; }
.notice-box strong { color: #f5c84b; font-size: 18px; }

.steps {
    list-style: none;
    padding-left: 0;
    counter-reset: step;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 24px;
}

.steps li {
    counter-increment: step;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 16px 8px 10px;
    color: #ffffff;
    margin-bottom: 0;
}

.steps li::before {
    content: counter(step);
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #f5c84b;
    color: #1d2b50;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 8px;
}

/* ---------- 十二年回顾 ---------- */
.poem {
    text-align: center;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
}

.sign {
    text-align: right;
    line-height: 2;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    margin-top: 30px;
}

/* ---------- 地图 ---------- */
.hotel-map { width: 100%; max-width: 800px; height: 420px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    nav { font-size: 12px; }
    nav ul li { padding: 2px 4px; }
    .hero-fallback h1 { font-size: 26px; }
    .hero-fallback .hero-theme { font-size: 17px; }
    .section { padding: 90px 0; }
}
