/* ============================================================
   TCME 中医药博览会信息平台 — 全局样式
   ============================================================ */

/* ===== 重置 & 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'PingFang SC', Roboto, sans-serif; background: #f8f5ee; color: #2c281f; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== 品牌色 ===== */
:root {
    --gold: #b8945c;
    --gold-light: #e8dcc8;
    --red-deep: #7a1a1a;
    --red-bright: #a83535;
    --cream: #f8f5ee;
    --charcoal: #2c281f;
    --text-muted: #6b5f4e;
    --shadow-soft: 0 6px 28px rgba(0,0,0,0.05);
}

/* ===== 按钮 ===== */
.btn-primary { display: inline-block; background: var(--red-deep); color: #fff; padding: 12px 30px; border-radius: 48px; font-weight: 600; transition: background 0.25s, transform 0.2s; border: none; cursor: pointer; font-size: 0.95rem; }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(122,26,26,0.2); }
.btn-outline { display: inline-block; background: transparent; color: var(--red-deep); padding: 10px 26px; border-radius: 48px; font-weight: 600; border: 2px solid var(--red-deep); transition: all 0.25s; font-size: 0.95rem; }
.btn-outline:hover { background: var(--red-deep); color: #fff; }
.btn-gold { display: inline-block; background: var(--gold); color: #fff; padding: 10px 26px; border-radius: 48px; font-weight: 600; transition: background 0.25s; border: none; cursor: pointer; font-size: 0.95rem; }
.btn-gold:hover { background: #a67a4a; }
.btn-sm { padding: 6px 18px; font-size: 0.82rem; }
.btn-text { font-weight: 500; color: var(--red-deep); transition: color 0.2s; }
.btn-text:hover { color: var(--gold); }

/* ===== HEADER ===== */
header { padding: 14px 0; background: rgba(248,245,238,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(184,148,92,0.15); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 700; }
.logo .accent { color: var(--red-deep); }
.logo i { color: var(--gold); font-size: 1.8rem; }
.logo .sub { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); margin-left: 4px; }

.nav-links { display: flex; gap: 28px; font-weight: 500; color: #3f382d; font-size: 0.95rem; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red-deep); }
.nav-links a.active { font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 4px; }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .btn-primary { padding: 7px 20px; font-size: 0.82rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--charcoal); border-radius: 4px; transition: 0.3s; }

@media (max-width: 820px) {
    .hamburger { display: flex; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: rgba(248,245,238,0.98); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(184,148,92,0.15); z-index: 99; }
    .nav-links.open { display: flex; }
}

/* ===== HERO ===== */
.hero { padding: 50px 0 40px; background: linear-gradient(150deg, #ede6d6 0%, #f8f5ee 100%); position: relative; overflow: hidden; }
.hero::after { content: "✧"; position: absolute; right: 2%; bottom: 5%; font-size: 20rem; opacity: 0.03; color: var(--gold); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero-text h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; color: var(--charcoal); }
.hero-text h1 .highlight { color: var(--gold); }
.hero-text .subhead { font-size: 1.15rem; color: #5a4f3d; margin: 14px 0 18px; padding-left: 18px; border-left: 4px solid var(--gold); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 16px 0 26px; }
.hero-meta span { font-size: 0.95rem; color: #3f382d; }
.hero-meta i { color: var(--gold); margin-right: 8px; width: 18px; }
.hero-image { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 260" width="400" height="260"><rect width="400" height="260" fill="%23e8dcc8" rx="28" opacity="0.5"/><circle cx="110" cy="110" r="50" fill="%23b8945c" opacity="0.15"/><circle cx="300" cy="90" r="65" fill="%237a1a1a" opacity="0.08"/><text x="60" y="150" font-size="72" opacity="0.12">🌿</text><text x="230" y="180" font-size="85" opacity="0.10">🏛️</text></svg>'); background-size: contain; background-repeat: no-repeat; background-position: center; min-height: 220px; border-radius: 30px; }

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text .subhead { border-left: none; padding-left: 0; }
    .hero-meta { justify-content: center; }
    .hero-image { min-height: 140px; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.2rem; }
}

/* ===== 搜索/筛选栏 ===== */
.filter-bar { background: #fff; border-radius: 60px; padding: 14px 24px; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; box-shadow: var(--shadow-soft); border: 1px solid rgba(184,148,92,0.08); }
.filter-bar .search-box { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 10px; background: #f5f0e8; border-radius: 40px; padding: 8px 18px; }
.filter-bar .search-box input { border: none; background: transparent; outline: none; font-size: 0.95rem; width: 100%; color: var(--charcoal); }
.filter-bar .search-box i { color: var(--text-muted); }
.filter-bar .filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-bar .filter-tags a { padding: 4px 14px; border-radius: 30px; font-size: 0.82rem; background: #f5f0e8; color: var(--text-muted); transition: all 0.2s; cursor: pointer; }
.filter-bar .filter-tags a:hover, .filter-bar .filter-tags a.active { background: var(--red-deep); color: #fff; }
.filter-bar .sort { font-size: 0.85rem; color: var(--text-muted); }
.filter-bar .sort select { border: none; background: transparent; outline: none; font-size: 0.85rem; color: var(--charcoal); cursor: pointer; }

@media (max-width: 640px) {
    .filter-bar { border-radius: 28px; padding: 16px; flex-direction: column; align-items: stretch; }
    .filter-bar .search-box { min-width: unset; }
}

/* ===== 通用标题 ===== */
.section-title { font-size: 2rem; font-weight: 600; text-align: center; margin-bottom: 6px; color: var(--charcoal); }
.section-sub { text-align: center; color: var(--text-muted); max-width: 680px; margin: 0 auto 32px; font-size: 1.02rem; }

/* ===== 四大入口 ===== */
.entry-section { padding: 50px 0 40px; }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.entry-card { background: #fff; padding: 28px 18px 24px; border-radius: 20px; text-align: center; box-shadow: var(--shadow-soft); border: 1px solid rgba(184,148,92,0.08); transition: transform 0.25s, box-shadow 0.3s; }
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(122,26,26,0.07); }
.entry-card .icon-wrap { background: #ede6d6; width: 64px; height: 64px; border-radius: 60px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.entry-card .icon-wrap i { font-size: 1.8rem; color: var(--red-deep); }
.entry-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.entry-card p { font-size: 0.88rem; color: var(--text-muted); }
.entry-card .arrow { display: inline-block; margin-top: 10px; color: var(--gold); font-weight: 600; transition: transform 0.2s; }
.entry-card:hover .arrow { transform: translateX(4px); }

@media (max-width: 820px) { .entry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .entry-grid { grid-template-columns: 1fr; } .section-title { font-size: 1.6rem; } }

/* ===== 展会卡片 ===== */
.expo-section { padding: 40px 0 50px; background: #fff; }
.expo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.expo-card { background: #f8f5ee; padding: 22px 24px 20px; border-radius: 18px; border: 1px solid rgba(184,148,92,0.06); transition: transform 0.25s; }
.expo-card:hover { transform: translateY(-3px); }
.expo-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.expo-card .top .badge { background: var(--gold-light); color: var(--red-deep); font-size: 0.7rem; font-weight: 600; padding: 2px 14px; border-radius: 20px; }
.expo-card .top .status { font-size: 0.78rem; color: var(--text-muted); }
.expo-card .top .status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.expo-card .top .status .dot.green { background: #2e7d32; }
.expo-card .top .status .dot.orange { background: #e67e22; }
.expo-card .top .status .dot.gray { background: #95a5a6; }
.expo-card h3 { font-size: 1.15rem; color: var(--charcoal); }
.expo-card .org { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.expo-card .info-row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.88rem; color: #3f382d; }
.expo-card .info-row i { color: var(--gold); width: 16px; }
.expo-card .actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 820px) { .expo-grid { grid-template-columns: 1fr; } }

/* ===== 数据统计 ===== */
.stats-section { padding: 50px 0; background: #ede6d6; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-grid .stat-item .num { font-size: 2.6rem; font-weight: 700; color: var(--red-deep); }
.stats-grid .stat-item .label { font-size: 0.95rem; color: var(--text-muted); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; } .stats-grid .stat-item .num { font-size: 2rem; } }

/* ===== 资讯 ===== */
.news-section { padding: 50px 0; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.news-list .news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0ebe0; }
.news-list .news-item:last-child { border-bottom: none; }
.news-list .news-item .tag { display: inline-block; background: var(--gold-light); color: var(--red-deep); font-size: 0.65rem; font-weight: 600; padding: 2px 12px; border-radius: 20px; margin-bottom: 2px; }
.news-list .news-item h4 { font-size: 1rem; font-weight: 600; transition: color 0.2s; cursor: pointer; }
.news-list .news-item h4:hover { color: var(--red-deep); }
.news-list .news-item .meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.news-side .side-card { background: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-soft); border: 1px solid rgba(184,148,92,0.06); }
.news-side .side-card h4 { font-size: 1rem; margin-bottom: 10px; }
.news-side .side-card .side-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0ebe0; font-size: 0.9rem; }
.news-side .side-card .side-item:last-child { border-bottom: none; }
.news-side .side-card .side-item i { color: var(--gold); width: 18px; }

@media (max-width: 820px) { .news-grid { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.cta-section { padding: 50px 0; text-align: center; background: linear-gradient(150deg, #f8f5ee, #ede6d6); }
.cta-section h2 { font-size: 2.2rem; }
.cta-section .btn-group { margin-top: 24px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 480px) { .cta-section h2 { font-size: 1.8rem; } }

/* ===== Page Header (内页标题) ===== */
.page-header { padding: 40px 0 28px; background: linear-gradient(150deg, #ede6d6 0%, #f8f5ee 100%); border-bottom: 1px solid rgba(184,148,92,0.12); }
.page-header h1 { font-size: 2.4rem; font-weight: 700; color: var(--charcoal); }
.page-header .breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }
.page-header .breadcrumb a { color: var(--red-deep); }
.page-header .breadcrumb a:hover { color: var(--gold); }

/* ===== Section Main ===== */
.section-main { padding: 40px 0 60px; }

/* ===== 2列布局 ===== */
.grid-2col { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; }
@media (max-width: 820px) { .grid-2col { grid-template-columns: 1fr; } }

/* ===== 分类标签 ===== */
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.category-tabs a { padding: 6px 20px; border-radius: 30px; background: #fff; border: 1px solid rgba(184,148,92,0.12); font-size: 0.88rem; transition: all 0.2s; cursor: pointer; }
.category-tabs a:hover, .category-tabs a.active { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }

/* ===== 文章列表 ===== */
.article-item { padding: 20px 0; border-bottom: 1px solid #f0ebe0; }
.article-item:last-child { border-bottom: none; }
.article-item .tag { display: inline-block; background: var(--gold-light); color: var(--red-deep); font-size: 0.7rem; font-weight: 600; padding: 2px 14px; border-radius: 20px; margin-bottom: 4px; }
.article-item h3 { font-size: 1.15rem; font-weight: 600; transition: color 0.2s; cursor: pointer; }
.article-item h3:hover { color: var(--red-deep); }
.article-item .summary { color: var(--text-muted); font-size: 0.92rem; margin: 4px 0 6px; }
.article-item .meta { font-size: 0.82rem; color: var(--text-muted); }
.article-item .meta i { margin-right: 4px; }

/* ===== 侧边卡片 ===== */
.side-card { background: #fff; border-radius: 20px; padding: 24px 26px; margin-bottom: 24px; box-shadow: var(--shadow-soft); border: 1px solid rgba(184,148,92,0.06); }
.side-card h3 { font-size: 1.1rem; margin-bottom: 14px; border-bottom: 2px solid var(--gold-light); padding-bottom: 10px; }
.side-card .side-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0ebe0; font-size: 0.92rem; }
.side-card .side-item:last-child { border-bottom: none; }
.side-card .side-item i { color: var(--gold); width: 20px; }
.side-card .side-item .hot { color: var(--red-deep); font-size: 0.75rem; font-weight: 600; }
.side-card .info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0ebe0; font-size: 0.92rem; }
.side-card .info-row:last-child { border-bottom: none; }
.side-card .info-row .label { color: var(--text-muted); }
.side-card .tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.side-card .tag-cloud a { background: #f0ebe0; padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; color: var(--text-muted); transition: all 0.2s; cursor: pointer; }
.side-card .tag-cloud a:hover { background: var(--gold-light); color: var(--red-deep); }

/* ===== 关于页面 ===== */
.about-text h2 { font-size: 1.6rem; margin: 28px 0 12px; color: var(--charcoal); border-left: 4px solid var(--gold); padding-left: 14px; }
.about-text h2:first-of-type { margin-top: 0; }
.about-text p { color: #3f382d; font-size: 1.02rem; margin-bottom: 16px; }
.about-text .highlight-box { background: #ede6d6; padding: 20px 24px; border-radius: 16px; border-left: 4px solid var(--gold); margin: 16px 0 24px; }
.about-text .highlight-box p { margin-bottom: 0; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 24px; }
.values-grid .value-item { background: #fff; padding: 20px 18px; border-radius: 16px; border: 1px solid rgba(184,148,92,0.08); box-shadow: var(--shadow-soft); text-align: center; }
.values-grid .value-item .icon { font-size: 2rem; color: var(--gold); margin-bottom: 8px; }
.values-grid .value-item h4 { font-size: 1.05rem; color: var(--red-deep); }
.values-grid .value-item p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

.btn-group-vertical { display: flex; flex-direction: column; gap: 10px; }
.btn-group-vertical .btn-primary, .btn-group-vertical .btn-outline { text-align: center; width: 100%; }

/* ===== 展会地图 ===== */
.map-container { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-soft); border: 1px solid rgba(184,148,92,0.06); margin-bottom: 36px; }
.map-placeholder { background: #ede6d6; border-radius: 16px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); overflow: hidden; }
.map-placeholder svg { width: 100%; height: auto; }

.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.city-card { background: #fff; padding: 18px 16px; border-radius: 16px; text-align: center; border: 1px solid rgba(184,148,92,0.08); box-shadow: var(--shadow-soft); transition: transform 0.2s; }
.city-card:hover { transform: translateY(-4px); }
.city-card .city { font-size: 1.3rem; font-weight: 700; color: var(--red-deep); }
.city-card .count { font-size: 0.85rem; color: var(--text-muted); }
.city-card .expo-list { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid rgba(184,148,92,0.12); transition: all 0.2s; font-size: 0.92rem; cursor: pointer; }
.pagination a:hover, .pagination a.active { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }
.pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; color: var(--text-muted); }

/* ===== FOOTER ===== */
footer { background: var(--charcoal); color: #d6cebe; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand p { max-width: 280px; margin-top: 10px; font-size: 0.92rem; opacity: 0.7; }
.footer-col h5 { color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 1rem; }
.footer-col a { display: block; margin-bottom: 8px; opacity: 0.6; transition: opacity 0.2s; font-size: 0.9rem; }
.footer-col a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 0.85rem; opacity: 0.5; }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }