/* ===== 跑途 RunTour - 马拉松旅游指南 ===== */
:root {
    --color-primary: #e8734a;
    --color-primary-dark: #c75a32;
    --color-text: #2d2d2d;
    --color-muted: #777;
    --color-bg: #faf8f5;
    --color-card: #fff;
    --color-border: #e8e3dd;
    --color-accent: #f5a623;
    --font-body: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 隐藏 #c08a8e 顶部调试条 */
[style*="c08a8e"], .debug-bar, .top-debug, #debug-bar, [data-debug] { display: none !important; }
* { background-color: initial; }

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; }

/* ===== A11y Skip Link ===== */
.skip-link {
    position: absolute; top: -100px; left: 16px;
    background: var(--color-primary); color: #fff;
    padding: 8px 16px; border-radius: 0 0 6px 6px;
    z-index: 10000; font-size: 14px; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== Header ===== */
.rt-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 1000;
}
.rt-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.rt-logo img { height: 36px; display: block; }
.rt-logo { flex-shrink: 0; }

.rt-nav { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.rt-nav > li { position: relative; }
.rt-nav > li > a {
    display: block; padding: 8px 18px; color: var(--color-text);
    font-size: 15px; font-weight: 500; border-radius: var(--radius);
    transition: all 0.2s;
}
.rt-nav > li > a:hover, .rt-nav > li > a:focus {
    background: #fef5f0; color: var(--color-primary);
}
.rt-nav .rt-sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 180px; max-height: 360px; overflow-y: auto;
    background: #fff; border: 1px solid var(--color-border); box-shadow: 0 8px 20px rgba(0,0,0,.12);
    padding: 6px 0; list-style: none; margin: 0; z-index: 300;
}
.rt-nav .rt-sub a { display: block; padding: 9px 16px; font-size: 14px; color: var(--color-text); }
.rt-nav .rt-sub a:hover { background: #fef5f0; color: var(--color-primary); }
.rt-nav > li:hover > .rt-sub { display: block; }
.rt-nav > li:hover > a { color: var(--color-primary); }

/* Mobile nav toggle */
.rt-nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.rt-nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--color-text); border-radius: 2px;
    transition: all 0.3s;
}
.rt-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.rt-nav-toggle.active span:nth-child(2) { opacity: 0; }
.rt-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Footer ===== */
.rt-footer {
    background: #1a1a1a; color: #aaa; padding: 48px 0 24px;
    margin-top: 64px;
}
.rt-footer-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.rt-footer-grid b { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 12px; }
.rt-footer-grid a, .rt-footer-grid span { display: block; font-size: 13px; margin-bottom: 6px; color: #999; }
.rt-footer-grid a:hover { color: var(--color-primary); }
.rt-footer-brand img { height: 28px; margin-bottom: 12px; }
.rt-footer-brand p { font-size: 13px; line-height: 1.6; }
.rt-footer-bottom {
    max-width: 1200px; margin: 32px auto 0; padding: 16px 20px 0;
    border-top: 1px solid #333; display: flex; gap: 24px;
    font-size: 12px;
}
.rt-footer-bottom small { color: #666; }

/* ===== Back to top ===== */
#back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary);
    color: #fff; border: none; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(232,115,74,0.3);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* ===== Hero ===== */
.rt-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fef5f0 0%, #fff5eb 50%, #faf8f5 100%);
    padding: 80px 0 60px;
}
.rt-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.rt-kicker {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 3px; color: var(--color-primary); text-transform: uppercase;
    margin-bottom: 16px;
}
.rt-hero h1 { font-size: clamp(32px,5vw,56px); font-weight: 900; line-height: 1.15; color: #1a1a1a; margin-bottom: 16px; }
.rt-hero p { font-size: 18px; color: var(--color-muted); max-width: 560px; line-height: 1.7; margin-bottom: 32px; }
.rt-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.rt-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: var(--color-primary); color: #fff;
    font-size: 15px; font-weight: 600; border-radius: 30px;
    transition: all 0.3s;
}
.rt-btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,115,74,0.3); }
.rt-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: #fff; color: var(--color-text);
    font-size: 15px; font-weight: 600; border-radius: 30px;
    border: 1px solid var(--color-border); transition: all 0.3s;
}
.rt-btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.rt-hero-stats { display: flex; gap: 40px; }
.rt-hero-stats span { font-size: 14px; color: var(--color-muted); }
.rt-hero-stats b { display: block; font-size: 28px; font-weight: 800; color: var(--color-text); }

/* ===== Section ===== */
.rt-section { padding: 64px 0; }
.rt-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.rt-section-head { text-align: center; margin-bottom: 48px; }
.rt-section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.rt-section-head p { font-size: 16px; color: var(--color-muted); max-width: 600px; margin: 0 auto; }

/* ===== Race Cards ===== */
.rt-race-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.rt-race-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow); transition: all 0.3s;
}
.rt-race-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.rt-race-card figure { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.rt-race-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.rt-race-card:hover figure img { transform: scale(1.05); }
.rt-race-card figcaption {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.7); color: #fff; font-size: 11px;
    padding: 4px 10px; border-radius: 20px; font-weight: 600;
}
.rt-card-body { padding: 20px; }
.rt-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.rt-card-body p { font-size: 14px; color: var(--color-muted); margin-bottom: 12px; line-height: 1.6; }
.rt-card-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.rt-card-meta span { font-size: 12px; color: #999; }
.rt-card-meta b { color: var(--color-primary); }
.rt-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--color-primary); margin-top: 12px;
}
.rt-card-link:hover { gap: 10px; }

/* ===== City Cards (alternate layout) ===== */
.rt-city-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.rt-city-card {
    display: flex; gap: 20px; background: #fff; border-radius: 12px;
    overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s;
    min-width: 0;
}
.rt-city-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.rt-city-card figure { flex: 0 0 200px; min-width: 0; overflow: hidden; }
.rt-city-card figure img { width: 100%; height: 100%; object-fit: cover; }
.rt-city-body { flex: 1; min-width: 0; padding: 20px 20px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.rt-city-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.rt-city-body p { font-size: 14px; color: var(--color-muted); margin-bottom: 12px; line-height: 1.6; }
.rt-tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px; margin-right: 6px; margin-bottom: 6px;
}
.rt-tag-warm { background: #fff5eb; color: #e8734a; }
.rt-tag-cool { background: #e8f4fd; color: #2b7bd6; }

/* ===== Story list ===== */
.rt-story-list { display: flex; flex-direction: column; gap: 0; }
.rt-story-item {
    display: flex; gap: 16px; align-items: center;
    padding: 20px 0; border-bottom: 1px solid var(--color-border);
    min-width: 0;
}
.rt-story-item:first-child { padding-top: 0; }
.rt-story-item:last-child { border-bottom: none; }
.rt-story-item time {
    flex: 0 0 60px; font-size: 13px; font-weight: 700; color: var(--color-primary);
    text-align: center;
}
.rt-story-body { flex: 1; min-width: 0; }
.rt-story-body span { font-size: 11px; color: var(--color-accent); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.rt-story-body h3 { font-size: 16px; font-weight: 600; margin: 4px 0; }
.rt-story-body h3 a { color: var(--color-text); }
.rt-story-body h3 a:hover { color: var(--color-primary); }
.rt-story-body p { font-size: 13px; color: var(--color-muted); }

/* ===== CTA ===== */
.rt-cta {
    text-align: center; padding: 80px 20px;
    background: linear-gradient(135deg, #fef5f0, #fff);
}
.rt-cta span { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--color-primary); text-transform: uppercase; }
.rt-cta h2 { font-size: 28px; font-weight: 800; margin: 12px 0 24px; }
.rt-cta div { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rt-btn-light {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: #fff; border: 1px solid var(--color-border);
    font-size: 15px; font-weight: 600; border-radius: 30px; color: var(--color-primary);
    transition: all 0.3s;
}
.rt-btn-light:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== Page Banner ===== */
.rt-page-banner {
    background: linear-gradient(135deg, #fef5f0, #fff5eb);
    padding: 48px 0; text-align: center;
}
.rt-page-banner h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.rt-breadcrumb { font-size: 13px; color: var(--color-muted); }
.rt-breadcrumb a { color: var(--color-muted); }
.rt-breadcrumb a:hover { color: var(--color-primary); }
.rt-breadcrumb i { margin: 0 6px; font-size: 11px; }

/* ===== Detail/Article page ===== */
.rt-article-head {
    text-align: center; padding: 48px 20px 32px;
    max-width: 800px; margin: 0 auto;
}
.rt-article-head h1 { font-size: clamp(24px,4vw,36px); font-weight: 900; line-height: 1.3; margin-bottom: 12px; }
.rt-article-head > p { font-size: 16px; color: var(--color-muted); max-width: 600px; margin: 0 auto 20px; }
.rt-article-head div { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: #999; }
.rt-page-shell { max-width: 1200px; margin: 0 auto; padding: 0 20px 64px; display: flex; gap: 40px; min-width: 0; }
.rt-main-col { flex: 1; min-width: 0; }
.rt-side-col { flex: 0 0 300px; min-width: 0; }

.rt-article { max-width: 780px; }
.rt-article-cover { margin-bottom: 32px; border-radius: 12px; overflow: hidden; }
.rt-article-cover img { width: 100%; display: block; }
.rt-article-cover figcaption { font-size: 12px; color: #999; text-align: center; padding: 8px 0; }

.rt-article-body { font-size: 16px; line-height: 1.9; color: #3a3a3a; }
.rt-article-body h2 { font-size: 22px; font-weight: 800; margin: 40px 0 16px; color: #1a1a1a; }
.rt-article-body p { margin-bottom: 20px; }
.rt-article-body blockquote {
    border-left: 4px solid var(--color-primary); background: #fef5f0;
    padding: 16px 20px; margin: 24px 0; font-style: italic; border-radius: 0 8px 8px 0;
}

/* Data table */
.rt-data-table { margin: 24px 0; overflow-x: auto; }
.rt-data-table > div {
    display: flex; border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.rt-data-table > div:first-child { font-weight: 700; background: #fef5f0; }
.rt-data-table span { flex: 0 0 120px; padding: 10px 12px; min-width: 0; }
.rt-data-table b { flex: 1; padding: 10px 12px; min-width: 0; text-align: center; }

/* Prev/Next */
.rt-prev-next { display: flex; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.rt-prev-next a { flex: 1; min-width: 0; padding: 16px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); transition: all 0.2s; }
.rt-prev-next a:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.rt-prev-next span { font-size: 11px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 1px; display: block; }
.rt-prev-next b { font-size: 14px; display: block; margin-top: 4px; color: var(--color-text); }

/* ===== Article Summary (SEO/GEO) ===== */
.article-summary {
    background: #fef5f0; border: 1px solid #fde2d4; border-radius: 12px;
    padding: 24px; margin: 32px 0;
}
.article-summary > div { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article-summary > div span {
    font-size: 20px;
}
.article-summary h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.article-summary p { font-size: 15px; color: var(--color-text); line-height: 1.7; }
.article-summary code {
    display: block; margin-top: 12px; padding: 10px 14px;
    background: #fff; border-radius: 6px; font-size: 12px;
    color: var(--color-muted); word-break: break-all;
}

/* ===== Sidebar widgets ===== */
.rt-widget {
    background: #fff; border-radius: 10px; padding: 20px;
    box-shadow: var(--shadow); margin-bottom: 20px;
}
.rt-widget h4 {
    font-size: 15px; font-weight: 700; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 2px solid var(--color-primary);
}
.rt-widget ul { list-style: none; }
.rt-widget ul li { margin-bottom: 10px; }
.rt-widget ul li a {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; color: var(--color-text); padding: 6px 0;
    transition: all 0.2s;
}
.rt-widget ul li a:hover { color: var(--color-primary); padding-left: 4px; }
.rt-widget .rt-widget-count {
    font-size: 11px; color: #999; background: #f5f5f5;
    padding: 2px 8px; border-radius: 10px;
}
.rt-widget-ad img { width: 100%; border-radius: 8px; }

/* ===== Contact form ===== */
.rt-contact-form { background: #fff; border-radius: 10px; padding: 32px; box-shadow: var(--shadow); margin-top: 32px; }
.rt-contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row label { flex: 1; min-width: 0; }
.form-row label span, .form-mes span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #555; }
.inp, .form-mes textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--color-border);
    border-radius: 6px; font-size: 14px; font-family: var(--font-body);
    transition: border-color 0.2s;
}
.inp:focus, .form-mes textarea:focus { border-color: var(--color-primary); outline: none; }
.form-mes textarea { height: 120px; resize: vertical; }
.btn-contact {
    padding: 12px 40px; background: var(--color-primary); color: #fff;
    border: none; border-radius: 30px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}
.btn-contact:hover { background: var(--color-primary-dark); }
.btn-contact-reset {
    padding: 12px 28px; background: #f5f5f5; color: var(--color-muted);
    border: 1px solid var(--color-border); border-radius: 30px; font-size: 14px;
    cursor: pointer; margin-left: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .rt-race-grid { grid-template-columns: repeat(2,1fr); }
    .rt-city-grid { grid-template-columns: 1fr; }
    .rt-footer-grid { grid-template-columns: 1fr 1fr; }
    .rt-page-shell { flex-direction: column; }
    .rt-side-col { flex: none; }
}
@media (max-width: 768px) {
    .rt-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--color-border); }
    .rt-nav .rt-sub { position: static; min-width: 0; max-height: none; overflow: visible; border: 0; box-shadow: none; padding: 0 0 4px 18px; }
    .rt-nav .rt-sub a { padding: 7px 0; }
    .rt-nav .rt-sub.is-open { display: block; }
    .rt-nav.active { display: flex; }
    .rt-nav-toggle { display: flex; }
    .rt-race-grid { grid-template-columns: 1fr; }
    .rt-footer-grid { grid-template-columns: 1fr; }
    .rt-city-card { flex-direction: column; }
    .rt-city-card figure { flex: none; height: 180px; }
    .rt-hero-stats { flex-wrap: wrap; gap: 20px; }
    .rt-prev-next { flex-direction: column; }
    .form-row { flex-direction: column; }
    .rt-story-item { flex-direction: column; align-items: flex-start; }
    .rt-story-item time { flex: none; text-align: left; }
    .rt-page-banner { padding: 32px 0; }
    .rt-page-banner h1 { font-size: 22px; }
}

/* ===== 补充：页面头部 ===== */
.page-header { background: linear-gradient(135deg,#fef5f0,#fff5eb); padding:48px 0; text-align:center; }
.page-header .page-title { font-size:32px; font-weight:800; margin-bottom:8px; }
.page-header .breadcrumb { font-size:13px; color:var(--color-muted); background:none; margin:0; padding:0; }
.page-header .breadcrumb a { color:var(--color-muted); }
.page-header .breadcrumb a:hover { color:var(--color-primary); }
.page-header .breadcrumb span { margin:0 6px; }

/* ===== 补充：通用 section ===== */
.section { padding:48px 0; }
.section .container { max-width:1200px; margin:0 auto; padding:0 20px; }
.section .row { display:flex; gap:30px; }
.section .col-md-8 { flex:1; min-width:0; }
.section .col-md-4 { flex:0 0 300px; min-width:0; }
.text-muted { color:var(--color-muted); }

/* ===== 补充：文章列表(静态) ===== */
.article-list-static { display:flex; flex-direction:column; gap:20px; }
.article-item-static { background:#fff; border-radius:10px; padding:20px; box-shadow:var(--shadow); transition:all 0.3s; }
.article-item-static:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(0,0,0,0.1); }
.article-item-static .media { display:flex; gap:20px; min-width:0; }
.article-item-static .media-left { flex:0 0 240px; overflow:hidden; border-radius:8px; }
.article-item-static .media-left img { width:100%; height:160px; object-fit:cover; display:block; transition:transform 0.4s; }
.article-item-static:hover .media-left img { transform:scale(1.05); }
.article-item-static .media-body { flex:1; min-width:0; }
.article-item-static .media-body h3 { font-size:18px; font-weight:700; margin-bottom:8px; }
.article-item-static .media-body h3 a { color:var(--color-text); }
.article-item-static .media-body h3 a:hover { color:var(--color-primary); }
.article-item-static .media-body .text-muted { font-size:14px; line-height:1.6; margin-bottom:12px; }
.meta-tags { display:flex; gap:16px; font-size:12px; color:#999; }
.meta-tags span i { margin-right:4px; }

/* ===== 补充：赛事列表 ===== */
.race-list { display:flex; flex-direction:column; gap:16px; }
.race-item { display:flex; gap:20px; background:#fff; border-radius:10px; padding:20px; box-shadow:var(--shadow); transition:all 0.3s; min-width:0; align-items:center; }
.race-item:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(0,0,0,0.1); }
.race-date { flex:0 0 70px; text-align:center; }
.race-month { display:block; font-size:13px; color:var(--color-muted); text-transform:uppercase; }
.race-day { display:block; font-size:32px; font-weight:900; color:var(--color-primary); line-height:1; }
.race-info { flex:1; min-width:0; }
.race-info h3 { font-size:18px; font-weight:700; margin-bottom:6px; }
.race-info h3 a { color:var(--color-text); }
.race-info h3 a:hover { color:var(--color-primary); }
.race-info .text-muted { font-size:14px; margin-bottom:8px; }
.race-tags { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:12px; color:#999; }
.tag { display:inline-block; padding:2px 10px; border-radius:12px; font-size:11px; font-weight:600; }
.tag-gold { background:#fff7e0; color:#d4a017; }
.tag-platinum { background:#e8f0fe; color:#1a56db; }
.tag-major { background:#fef5f0; color:#e8734a; }

/* ===== 补充：卡片网格 ===== */
.card-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.card-grid-2 { grid-template-columns:repeat(2,1fr); }
.card { background:#fff; border-radius:10px; overflow:hidden; box-shadow:var(--shadow); transition:all 0.3s; }
.card:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(0,0,0,0.1); }
.card-story .card-img-wrap { overflow:hidden; aspect-ratio:3/2; }
.card-story .card-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.card:hover .card-img-wrap img { transform:scale(1.05); }
.card-body { padding:20px; }
.card-body h3 { font-size:17px; font-weight:700; margin-bottom:8px; line-height:1.4; }
.card-body h3 a { color:var(--color-text); }
.card-body h3 a:hover { color:var(--color-primary); }
.card-text { font-size:14px; color:var(--color-muted); line-height:1.6; margin-bottom:12px; }

/* ===== 补充：Bootstrap 兼容容器 ===== */
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
.row { display:flex; gap:30px; }
.col-md-8 { flex:1; min-width:0; }
.col-md-4 { flex:0 0 300px; min-width:0; }
.col-md-9 { flex:1; min-width:0; }
.col-md-3 { flex:0 0 300px; min-width:0; }
.col-sm-12 { flex:1; min-width:0; }

/* ===== 补充：header scroll效果 ===== */
.rt-header.is-scrolled { box-shadow:0 2px 20px rgba(0,0,0,0.08); }

@media (max-width:768px) {
    .section .row, .row { flex-direction:column; }
    .section .col-md-4, .col-md-4, .col-md-3 { flex:none; }
    .article-item-static .media { flex-direction:column; }
    .article-item-static .media-left { flex:none; height:180px; }
    .race-item { flex-direction:column; align-items:flex-start; }
    .card-grid, .card-grid-2 { grid-template-columns:1fr; }
    .page-header { padding:32px 0; }
    .page-header .page-title { font-size:24px; }
}

/* 文章详情内容样式 */
.article-detail-content { font-size: 16px; line-height: 1.9; color: var(--color-text); }
.article-detail-content h2 { font-size: 24px; font-weight: 700; color: #222; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
.article-detail-content h3 { font-size: 20px; font-weight: 700; color: #222; margin: 28px 0 12px; }
.article-detail-content p { font-size: 16px; line-height: 1.9; color: var(--color-text); margin: 0 0 18px; }
.article-detail-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.article-detail-content blockquote { border-left: 4px solid var(--color-primary); margin: 24px 0; padding: 14px 20px; background: #fef5f0; color: var(--color-text); }
.article-detail-content ol, .article-detail-content ul { margin: 0 0 18px; padding-left: 24px; }
.article-detail-content li { margin-bottom: 6px; }
/* 上下篇导航 */
.article-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.article-prev-next a { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 16px 18px; transition: all .25s; min-width: 0; }
.article-prev-next a:hover { border-color: var(--color-primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-prev-next a.next { text-align: right; }
.article-prev-next span { display: block; font-size: 12px; color: var(--color-muted); margin-bottom: 6px; }
.article-prev-next strong { display: block; font-size: 15px; line-height: 1.5; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 文章详情头部样式 */
.article-detail { background: #fff; border-radius: 12px; padding: 36px 40px; box-shadow: var(--shadow); }
.article-detail-title { font-size: 30px; font-weight: 800; line-height: 1.35; color: #1a1a1a; margin: 0 0 16px; }
.article-meta-header { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--color-muted); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.article-featured-image { margin: -36px -40px 24px; }
.article-featured-image img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px 12px 0 0; }
@media (max-width: 768px) { .article-detail { padding: 20px; } .article-featured-image { margin: -20px -20px 16px; } .article-detail-title { font-size: 24px; } }
