/* ===== 今日天气网 · 全站样式（中国红主题） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",Arial,sans-serif; background: #fdf2f0; color: #3a2e2e; font-size: 15px; line-height: 1.7; }
a { color: #c0392b; text-decoration: none; }
a:hover { color: #922b21; text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- 头部（中国红渐变 + 鎏金点缀） ---------- */
.site-header { background: linear-gradient(135deg,#8e0e0e 0%,#c62828 45%,#e53935 80%,#ff7043 100%); color: #fff; box-shadow: 0 3px 14px rgba(180,20,20,.28); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 15px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo a { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.logo-icon { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.logo-text { font-size: 24px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.slogan { font-size: 13px; opacity: .92; margin-top: 2px; color: #ffe0b2; }
.header-search { display: flex; flex: 1; max-width: 460px; min-width: 260px; }
.header-search input { flex: 1; border: none; border-radius: 22px 0 0 22px; padding: 10px 18px; font-size: 14px; outline: none; color: #333; }
.header-search button { border: none; background: linear-gradient(135deg,#ffb300,#ff8f00); color: #5d3000; border-radius: 0 22px 22px 0; padding: 0 26px; font-size: 15px; cursor: pointer; font-weight: 700; }
.header-search button:hover { background: linear-gradient(135deg,#ffa000,#f57c00); }
.site-nav { background: rgba(60,0,0,.22); }
.nav-inner { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 15px; }
.nav-inner a { color: #fff; font-size: 14px; padding: 5px 12px; border-radius: 6px; }
.nav-inner a:hover { background: rgba(255,255,255,.24); text-decoration: none; }

.page-main { padding: 18px 0 30px; min-height: 60vh; }

/* ---------- 通用组件 ---------- */
.breadcrumb { font-size: 13px; color: #9a6a62; margin: 8px 2px 14px; }
.breadcrumb a { color: #c0392b; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(180,30,30,.08); padding: 18px 20px; margin-bottom: 16px; border-top: 3px solid #e53935; }
.card h2 { font-size: 18px; color: #8e0e0e; border-left: 4px solid #e53935; padding-left: 10px; margin-bottom: 12px; }
.card h3 { font-size: 15px; color: #a82822; margin: 14px 0 8px; }
.section-desc { color: #8a6a64; font-size: 13px; margin: -6px 0 12px; }

/* ---------- 工具页地区查询区（大气简洁） ---------- */
.tool-select { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 16px 0 12px; padding: 22px 18px; background: linear-gradient(135deg,#fff7f4,#ffe9e4); border: 1px solid #f2d0cb; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.tool-select select { min-width: 170px; height: 48px; padding: 0 42px 0 18px; border: 1px solid #e6b8b0; border-radius: 24px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23c62828' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 16px center / 12px 8px; font-size: 15px; color: #3a2e2e; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; box-shadow: 0 2px 8px rgba(180,30,30,.08); transition: border-color .15s, box-shadow .15s; }
.tool-select select:focus { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,.16); }
.tool-select button { height: 48px; padding: 0 36px; border: none; border-radius: 24px; background: linear-gradient(135deg,#c62828,#e53935 60%,#ff7043); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 2px; cursor: pointer; box-shadow: 0 4px 14px rgba(229,57,53,.32); transition: transform .15s, box-shadow .15s; }
.tool-select button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229,57,53,.42); }
.tool-select .ts-hint { width: 100%; text-align: center; font-size: 12px; color: #a06a63; letter-spacing: .5px; margin-top: 2px; }
@media (max-width: 600px) {
  .tool-select { flex-direction: column; padding: 18px 14px; }
  .tool-select select, .tool-select button { width: 100%; min-width: 0; }
}

/* ---------- 实时天气卡片 ---------- */
.now-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.now-place { font-size: 15px; color: #8a6a64; }
.now-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-btn { background: linear-gradient(135deg, #e53935, #ff7043); color: #fff; border: none; border-radius: 24px; padding: 9px 18px; font-size: 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(229,57,53,.3); transition: transform .15s, box-shadow .15s; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(229,57,53,.4); }
.alert-bar { margin-top: 12px; background: #fff3e0; border: 1px solid #ffcc80; border-left: 4px solid #f57c00; border-radius: 8px; padding: 10px 14px; font-size: 14px; color: #7a4f00; line-height: 1.7; }
.alert-bar strong { color: #c62828; }
.alert-more { margin-left: 8px; }
.alert-more a { color: #a05a00; text-decoration: underline; }
.now-main { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 8px 0; }
.now-temp { font-size: 58px; font-weight: 300; color: #c62828; line-height: 1; }
.now-temp sup { font-size: 24px; }
.now-cond { font-size: 20px; color: #333; }
.now-cond small { display: block; font-size: 13px; color: #9a6a62; margin-top: 4px; }
.now-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 10px; margin-top: 12px; }
.now-item { background: #fdeae7; border-radius: 10px; padding: 10px 12px; text-align: center; }
.now-item .k { font-size: 12px; color: #a06a63; }
.now-item .v { font-size: 16px; font-weight: 600; color: #8e0e0e; margin-top: 2px; }
.updated-tag { font-size: 12px; color: #b0877f; }

/* ---------- 24 小时 ---------- */
.hourly-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hourly-list { display: flex; gap: 6px; min-width: 640px; padding-bottom: 4px; }
.hourly-item { flex: 1; min-width: 46px; background: #fdeae7; border-radius: 8px; padding: 8px 4px; text-align: center; }
.hourly-item b { display: block; font-size: 14px; color: #c62828; }
.hourly-item span { font-size: 11px; color: #a06a63; }

/* ---------- 表格（15 天 / 榜单） ---------- */
.forecast-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.forecast-table th { background: linear-gradient(135deg,#c62828,#e53935); color: #fff; padding: 9px 8px; text-align: center; font-weight: 600; }
.forecast-table th:first-child { border-radius: 8px 0 0 0; }
.forecast-table th:last-child { border-radius: 0 8px 0 0; }
.forecast-table td { padding: 8px; text-align: center; border-bottom: 1px solid #f6d7d2; }
.forecast-table tr:nth-child(even) td { background: #fff7f5; }
.forecast-table tr:hover td { background: #ffe3de; }
.forecast-table td.hi { color: #e53935; font-weight: 600; }
.forecast-table td.lo { color: #4a7fb5; }
.cond-ico { font-size: 15px; }

/* ---------- 地图 ---------- */
.map-wrap { border-radius: 10px; overflow: hidden; border: 1px solid #f2d0cb; }
#china-map { width: 100%; height: 560px; background: #fff8f6; }
.map-legend { display: flex; gap: 14px; align-items: center; margin-top: 8px; font-size: 13px; color: #8a6a64; }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.map-tip { font-size: 14px; color: #6b4a44; margin-top: 10px; }
.map-tip strong { color: #c62828; }

/* ---------- 榜单 ---------- */
.rank-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .rank-tables { grid-template-columns: 1fr; } }
.rank-list { list-style: none; counter-reset: rk; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px dashed #f3d8d3; counter-increment: rk; }
.rank-list li::before { content: counter(rk); width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: #f6cdc6; color: #a82822; font-weight: 700; font-size: 13px; flex: none; }
.rank-list li:nth-child(-n+3)::before { background: linear-gradient(135deg,#ffb300,#ff8f00); color: #fff; }
.rank-list a { flex: 1; color: #4a3a37; }
.rank-list a:hover { color: #c0392b; }
.rank-temp { font-weight: 700; color: #e53935; }

/* ---------- 省市县导航 ---------- */
.region-tree details { margin-bottom: 8px; border: 1px solid #f3d8d3; border-radius: 10px; overflow: hidden; }
.region-tree summary { padding: 10px 14px; background: #fdeae7; cursor: pointer; font-weight: 600; color: #8e0e0e; list-style: none; }
.region-tree summary::-webkit-details-marker { display: none; }
.region-tree summary::before { content: "▸ "; color: #e53935; }
.region-tree details[open] summary::before { content: "▾ "; }
.region-tree summary a { color: #8e0e0e; }
.region-tree summary a:hover { color: #e53935; }
.city-group { padding: 10px 14px; }
.city-line { margin-bottom: 6px; }
.city-line > a { font-weight: 600; color: #4a3a37; }
.city-line > a:hover { color: #c0392b; }
.county-links { margin: 4px 0 0 18px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 2px 0; }
.county-links a { color: #8a6a64; margin-right: 10px; }
.county-links a:hover { color: #c0392b; }

/* ---------- 工具链接 ---------- */
.prov-links { display: flex; flex-wrap: wrap; gap: 10px; }
.prov-links a { display: inline-block; padding: 8px 18px; background: #fdeae7; border: 1px solid #f2c9c2; border-radius: 22px; color: #8e0e0e; font-size: 14px; }
.prov-links a:hover { background: #e53935; color: #fff; text-decoration: none; }

/* ---------- 黄历 ---------- */
.lunar-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.lunar-main { min-width: 220px; }
.lunar-main .lunar-date { font-size: 26px; font-weight: 700; color: #c62828; }
.lunar-main .lunar-sub { font-size: 13px; color: #8a6a64; margin-top: 4px; }
.lunar-cols { display: flex; gap: 20px; flex-wrap: wrap; }
.lunar-col { min-width: 150px; }
.lunar-col h3 { font-size: 14px; margin-bottom: 8px; padding: 4px 10px; border-radius: 6px; color: #fff; }
.lunar-col h3.yi { background: linear-gradient(135deg,#2e7d32,#66bb6a); }
.lunar-col h3.ji { background: linear-gradient(135deg,#c62828,#ef5350); }
.lunar-col ul { list-style: none; }
.lunar-col li { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #f3d8d3; }
.lunar-col.yi li { color: #2e6b31; }
.lunar-col.ji li { color: #9b3b35; }

/* ---------- 城市 SEO 解读 ---------- */
.city-intro { color: #4a3a37; font-size: 14.5px; line-height: 2; text-align: justify; }
.city-intro strong { color: #c62828; }

/* ---------- 页脚 ---------- */
.site-footer { background: #4a0505; color: #e8c9c4; margin-top: 24px; }
.footer-inner { padding: 24px 15px 20px; }
.footer-inner .site-name { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.source-note { font-size: 12px; color: #d0a09a; margin: 10px 0; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 6px; margin: 12px 0; }
.footer-links .prov-links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-links a { font-size: 13px; color: #f2b8b0; }
.footer-links a:hover { color: #fff; }
.footer-links a::after { content: "·"; color: #a06a63; margin-left: 6px; }
.footer-links a:last-child::after { content: ""; }
.copyright { font-size: 12px; color: #c99; margin-top: 12px; }

/* ---------- 分享图弹窗 ---------- */
.share-modal-mask { position: fixed; inset: 0; background: rgba(60,5,5,.72); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 18px; }
.share-modal { background: #fff; border-radius: 16px; max-width: 480px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 18px 60px rgba(0,0,0,.4); animation: sharePop .22s ease; }
@keyframes sharePop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.share-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-weight: 700; font-size: 15px; color: #8e0e0e; border-bottom: 1px solid #f6e3e0; }
.share-modal-close { cursor: pointer; width: 28px; height: 28px; line-height: 26px; text-align: center; border-radius: 50%; background: #fdeae7; color: #a06a63; font-size: 14px; }
.share-modal-close:hover { background: #f6d7d2; }
.share-modal-body { padding: 14px 16px 6px; }
.share-modal-img { display: block; width: 100%; border-radius: 10px; }
.share-modal-foot { padding: 8px 16px 16px; }
.share-modal-tip { font-size: 12px; color: #a06a63; margin: 6px 0 10px; text-align: center; }
.share-modal-btns { display: flex; gap: 10px; }
.share-modal-save { flex: 1; text-align: center; background: linear-gradient(135deg, #e53935, #ff7043); color: #fff; border-radius: 10px; padding: 11px 0; font-size: 15px; font-weight: 700; text-decoration: none; }
.share-modal-save:hover { opacity: .9; }
.share-modal-site { flex: 1; text-align: center; background: #fdeae7; color: #8e0e0e; border-radius: 10px; padding: 11px 0; font-size: 14px; text-decoration: none; }
.share-modal-site:hover { background: #f6d7d2; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .header-search { max-width: 100%; }
  .now-temp { font-size: 46px; }
  #china-map { height: 420px; }
  .card { padding: 14px; }
  .forecast-table th, .forecast-table td { font-size: 12px; padding: 6px 3px; }
  .lunar-cols { gap: 10px; }
}
