/* =========================================================
   三亚吉阳区宏建专业技术服务中心 · 企业官网
   设计系统 / 全局样式  —  简约大气 · 专业可信
   ========================================================= */

:root {
  /* 主色：深海军蓝（专业、可信） */
  --ink: #0d2440;
  --ink-2: #14365e;
  --ink-3: #1e4a7d;
  /* 强调色：暖琥珀金（工程、活力） */
  --accent: #e6a23c;
  --accent-strong: #d4881f;
  /* 辅助色：青绿（工具、生态） */
  --teal: #1f8a70;
  --teal-soft: #e6f4f0;
  /* 中性 */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-softer: #eef2f7;
  --line: #e3e9f0;
  --text: #1f2933;
  --muted: #5b6b7b;
  --muted-2: #8a98a8;
  /* 其他 */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(13, 36, 64, 0.06);
  --shadow: 0 12px 30px rgba(13, 36, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 36, 64, 0.16);
  --maxw: 1180px;
  --nav-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #2a1c05;
  box-shadow: 0 8px 20px rgba(230, 162, 60, 0.32);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  display: grid; place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 15px; color: var(--ink); letter-spacing: 0.2px; }
.brand-text span { font-size: 11px; color: var(--muted-2); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--bg-softer); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px auto; border-radius: 2px; transition: 0.25s;
}

.account-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 14px; cursor: pointer;
}
.account-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--ink-3));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

/* ---------------- 区块通用 ---------------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent-strong); text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(230,162,60,0.18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  color: #fff;
  overflow: hidden;
  padding: 116px 0 104px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 380px at 80% 20%, #000, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: 46px; line-height: 1.18; margin-bottom: 22px; letter-spacing: 0.5px; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 44px; }
.hero-meta .m b { display: block; font-size: 26px; color: #fff; }
.hero-meta .m span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Hero 装饰卡 */
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-card ul li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px; color: rgba(255,255,255,0.9);
}
.hero-card ul li:last-child { border-bottom: none; }
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--bg-softer); }

.service-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--teal-soft); color: var(--teal);
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: var(--ink-3); font-weight: 600; font-size: 14px;
}
.service-card .more:hover { gap: 10px; }

.feature .ficon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--ink); color: var(--accent);
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------------- 数据概览 ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 42px; font-weight: 800; color: var(--ink); line-height: 1; }
.stat .num .u { color: var(--accent-strong); font-size: 24px; }
.stat .label { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------------- 资源列表（产品服务） ---------------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab {
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-weight: 600; font-size: 15px; transition: 0.2s;
}
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.searchbar {
  display: flex; max-width: 560px; margin: 0 auto 36px;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
}
.searchbar input { flex: 1; border: none; outline: none; padding: 14px 22px; font-size: 15px; font-family: inherit; }
.searchbar button { border: none; background: var(--ink); color: #fff; padding: 0 26px; cursor: pointer; font-weight: 600; }

.resource-list { display: grid; gap: 0; }

/* ---------------- 资源卡片（缩略图 + 徽章 + 星级 + 元信息 + 标签 + 彩色按钮） ----------------
   配色取自参考样式：免费按钮 #00b389、付费按钮 #e0ae5e、星级 #ffc529、
   标题 #3d464d、元信息 #a4b0bd、标签 #51779d */
.res-card {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px;
  background: #fff; border-bottom: 1px solid #edf0f3;
  padding: 20px 4px 22px; transition: background 0.2s;
}
.res-card:first-child { border-top: 1px solid #edf0f3; }
.res-card:hover { background: #fafbfc; }

.res-thumb {
  position: relative; display: block; width: 128px; height: 128px;
  border: 1px solid #e7ecf0; border-radius: 6px; background: #f7f8fa;
  overflow: hidden; cursor: pointer; transition: 0.2s;
}
.res-thumb:hover { border-color: #cbd6e0; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-thumb .res-ext {
  position: absolute; right: 0; bottom: 0; padding: 2px 7px;
  background: rgba(61, 70, 77, 0.82); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  border-radius: 6px 0 0 0;
}

.res-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.res-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 16px; font-weight: 600; color: #3d464d; line-height: 1.45;
}
.res-title .res-name { min-width: 0; }
.res-badge {
  flex: none; font-size: 12px; font-weight: 700; line-height: 1.7;
  padding: 1px 8px; border-radius: 3px; border: 1px solid; white-space: nowrap;
}
.res-badge.free { color: #00a67e; border-color: #a5e5d2; background: #f2fdfa; }
.res-badge.vip { color: #c08a2e; border-color: #ecd3a6; background: #fffbf2; }

.res-meta {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  font-size: 13px; color: #a4b0bd;
}
.res-meta b { color: #ffc529; font-weight: 700; }
.stars { position: relative; display: inline-block; color: #dfe4ea; letter-spacing: 1px; font-size: 13px; vertical-align: -1px; }
.stars i { position: absolute; left: 0; top: 0; color: #ffc529; overflow: hidden; white-space: nowrap; font-style: normal; }

.res-tags { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: #51779d; }
.res-tags svg { flex: none; margin-right: 8px; }
.res-tag { white-space: nowrap; }
.res-tag + .res-tag::before { content: "·"; margin: 0 7px; color: #bcc7d2; }

.res-foot { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.res-btn {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; color: #fff;
  padding: 9px 24px; border-radius: 4px; transition: 0.18s;
}
.res-btn-free { background: #00b389; }
.res-btn-free:hover { background: #00a17c; }
.res-btn-gold { background: #e0ae5e; }
.res-btn-gold:hover { background: #d09f4e; }
.res-btn-ghost {
  background: #fff; border: 1px solid #d9e1e8; color: #51779d;
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 22px; border-radius: 4px; transition: 0.18s;
}
.res-btn-ghost:hover { border-color: #51779d; background: #f6fafc; }

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  border-radius: 22px; padding: 56px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 28px; font-size: 17px; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,162,60,0.35), transparent 70%);
}

/* ---------------- 关于我们 ---------------- */
.about-hero { background: var(--bg-soft); padding: 80px 0 70px; }
.about-hero h1 { font-size: 40px; }
.about-hero p { color: var(--muted); max-width: 760px; margin-top: 18px; font-size: 17px; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { text-align: center; padding: 36px 26px; }
.value .vic { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ink); color: var(--accent); }
.value h3 { font-size: 19px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15px; }

.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 32px 28px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.tl-item .yr { font-weight: 800; color: var(--ink-3); }
.tl-item h4 { font-size: 17px; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 15px; }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.contact-info .ci { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci b { display: block; font-size: 15px; color: var(--ink); }
.contact-info .ci span { font-size: 14px; color: var(--muted); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; outline: none; transition: 0.2s; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(30,74,125,0.12); }
.form textarea { resize: vertical; min-height: 110px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 4px; }

.map-box {
  height: 280px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    linear-gradient(rgba(13,36,64,0.04), rgba(13,36,64,0.04)),
    repeating-linear-gradient(45deg, #eef2f7 0 14px, #e7edf4 14px 28px);
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px;
}

/* ---------------- 登录页 ---------------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 60px 0; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 26px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.auth-card .field { margin-bottom: 16px; }
.demo-box { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.demo-box b { color: var(--ink); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--ink-3); font-weight: 600; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer .brand-text b { color: #fff; }
.footer .brand-text span { color: rgba(255,255,255,0.5); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 14px; display: block; padding: 6px 0; transition: 0.2s; }
.footer a:hover { color: var(--accent); }
.footer p { font-size: 14px; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------------- 提示条 / Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: 0.3s; z-index: 200; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .grid-3, .grid-4, .values { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .grid-3, .grid-4, .grid-2, .values, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 27px; }
  .cta-band { padding: 40px 24px; }
  .form .row2 { grid-template-columns: 1fr; }
  .res-card { grid-template-columns: 1fr; gap: 14px; padding: 18px 2px 20px; }
  .res-thumb { width: 100%; height: 168px; }
  .res-thumb img { object-fit: contain; padding: 6px 0; }
  .res-meta { gap: 5px 18px; }
  .res-foot { flex-wrap: wrap; }
}

/* ---------------- 天气记录页 ---------------- */
.wx-hero { background: linear-gradient(160deg, var(--ink), var(--ink-3)); color: #fff; padding: 72px 0 60px; text-align: center; }
.wx-hero h1 { color: #fff; font-size: 38px; }
.wx-hero p { color: rgba(255,255,255,0.8); margin-top: 14px; font-size: 17px; }
.wx-wrap { max-width: 880px; margin: -34px auto 0; padding: 0 24px 90px; position: relative; }
.wx-searchbar {
  display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px;
}
.wx-searchbar input { flex: 1; border: none; outline: none; padding: 16px 24px; font-size: 16px; font-family: inherit; }
.wx-searchbar button { border: none; background: var(--ink); color: #fff; padding: 0 30px; font-weight: 600; cursor: pointer; font-size: 15px; }
.wx-status { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; min-height: 20px; }
.wx-status.ok { color: var(--teal); }
.wx-status.err { color: #c0392b; }

.wx-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.wx-panel h3 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.wx-panel h3 .tag { font-size: 12px; font-weight: 600; color: var(--accent-strong); background: #fdeede; padding: 4px 10px; border-radius: 999px; margin-left: auto; }

.wx-now { display: flex; align-items: center; gap: 22px; }
.wx-ic { font-size: 60px; line-height: 1; }
.wx-temp { font-size: 54px; font-weight: 800; color: var(--ink); line-height: 1; }
.wx-temp span { font-size: 22px; font-weight: 600; color: var(--muted); }
.wx-cond { color: var(--muted); margin-top: 6px; font-size: 15px; }
.wx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.wx-grid div { text-align: center; }
.wx-grid span { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 6px; }
.wx-grid b { font-size: 16px; color: var(--ink); }
.wx-update { margin-top: 16px; font-size: 12px; color: var(--muted-2); text-align: right; }

.wx-svg { width: 100%; height: auto; }
.wx-axis { stroke: var(--line); stroke-width: 1; }
.wx-x { fill: var(--muted-2); font-size: 11px; text-anchor: middle; }
.wx-legend { fill: var(--muted); font-size: 11px; }
.wx-dot-hi { fill: var(--accent-strong); }
.wx-dot-lo { fill: var(--teal); }

.wx-log ul { display: grid; gap: 10px; }
.wx-log li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); font-size: 14px; }
.wx-li-ic { font-size: 18px; }
.wx-li-region { color: var(--ink); font-weight: 600; }
.wx-li-date { color: var(--muted-2); font-size: 13px; }
.wx-li-temp { color: var(--ink-3); }
.wx-empty { color: var(--muted); text-align: center; padding: 18px; }
.wx-note { font-size: 13px; color: var(--muted); background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 4px; }

/* 天气：区间选择 / 汇总 / 明细表 */
.wx-range { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.wx-range-fields { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.wx-range-fields label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.wx-range-fields input[type=date] { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; color: var(--ink); }
.wx-tilde { color: var(--muted-2); padding-bottom: 10px; }
.wx-quick-row { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.wx-quick { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: 14px; color: var(--ink); font-weight: 600; transition: .2s; }
.wx-quick:hover { border-color: var(--ink-3); background: var(--bg-soft); }

.wx-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.wx-summary div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; }
.wx-summary span { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 6px; }
.wx-summary b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); }
.wx-summary b.hi { color: var(--accent-strong); }
.wx-summary b.lo { color: var(--teal); }
.wx-summary i { display: block; font-size: 12px; color: var(--muted-2); margin-top: 6px; font-style: normal; }

.wx-table-wrap { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wx-tbl { width: 100%; min-width: 600px; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.wx-tbl th { position: sticky; top: 0; background: var(--ink); color: #fff; padding: 11px 10px; text-align: left; font-weight: 600; font-size: 13px; white-space: nowrap; z-index: 1; }
.wx-tbl td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 列宽固定：日期 17% / 天气 21% / 最高温 11% / 最低温 11% / 降水时长 12% / 最大风速 14% / 主导风向 14% */
.wx-tbl .w-date { width: 17%; }
.wx-tbl .w-wx { width: 21%; }
.wx-tbl .w-tmax { width: 11%; }
.wx-tbl .w-tmin { width: 11%; }
.wx-tbl .w-ph { width: 12%; }
.wx-tbl .w-ws { width: 14%; }
.wx-tbl .w-wd { width: 14%; }
.wx-tbl th.c, .wx-tbl td.c { text-align: center; }
.wx-tbl td.c-date { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.wx-tbl tbody tr:nth-child(even) { background: var(--bg-soft); }
.wx-tbl td.hi { color: var(--accent-strong); font-weight: 700; }
.wx-tbl td.lo { color: var(--teal); font-weight: 700; }

@media (max-width: 640px) {
  .wx-summary { grid-template-columns: 1fr; }
  .wx-range-fields { flex-direction: column; align-items: stretch; }
}

/* ---------------- 授权弹窗 / 授权中心 ---------------- */
.modal { position: fixed; inset: 0; background: rgba(13,36,64,0.55); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; max-width: 440px; width: 100%; padding: 30px; position: relative; box-shadow: var(--shadow-lg); }
.modal-x { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-box h3 { font-size: 22px; margin-bottom: 10px; }
.modal-name { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.modal-price { color: var(--muted); margin-bottom: 10px; }
.modal-price b { color: var(--accent-strong); font-size: 18px; }
.modal-desc { color: var(--muted); font-size: 14px; line-height: 1.7; }

.lic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lic-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.lic-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lic-top b { font-size: 16px; color: var(--ink); }
.lic-badge { font-size: 12px; font-weight: 700; color: var(--accent-strong); background: #fdeede; padding: 4px 10px; border-radius: 999px; }
.lic-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lic-row span { color: var(--muted-2); width: 64px; flex-shrink: 0; }
.lic-row code { background: var(--bg-soft); padding: 4px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-3); letter-spacing: 1px; }
.lic-row b.lic-on { color: var(--teal); }
.lic-card .btn { margin-top: 14px; width: 100%; }
@media (max-width: 640px) { .lic-grid { grid-template-columns: 1fr; } }

/* ---------------- 积分 / 账户 ---------------- */
.account-chip .uname { font-weight: 600; color: var(--ink); }
.account-chip .pts {
  font-size: 12px; font-weight: 700; color: var(--accent-strong);
  background: #fdeede; padding: 3px 9px; border-radius: 999px; margin-left: 2px;
}
.lic-card .lic-act { display: flex; gap: 10px; margin-top: 14px; }
.lic-card .lic-act .btn { margin-top: 0; width: auto; flex: 1; }

/* ---------------- 预览弹窗 ---------------- */
.pv-box { max-width: 860px; width: 100%; max-height: 90vh; overflow: auto; }
.pv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 26px; }
.pv-head .badge {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 8px;
  background: var(--teal-soft); color: var(--teal); white-space: nowrap;
}
.pv-head h3 { font-size: 20px; }
.pv-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pv-meta b { color: var(--ink); }
.pv-meta .pv-price { color: var(--accent-strong); }
.pv-desc { font-size: 14px; color: var(--muted); line-height: 1.7; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.pv-body { min-height: 180px; }
.pv-frame { width: 100%; height: 62vh; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: block; }
.pv-tip { font-size: 12px; color: var(--muted-2); margin-top: 10px; }
.pv-table-wrap { max-height: 55vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pv-table th { position: sticky; top: 0; background: var(--ink); color: #fff; padding: 9px 12px; text-align: left; font-weight: 600; }
.pv-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pv-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.pv-text {
  max-height: 55vh; overflow: auto; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px; font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--text);
}
.pv-lock { text-align: center; padding: 34px 20px; background: var(--bg-soft); border-radius: var(--radius); }
.pv-lock-ic { font-size: 44px; margin-bottom: 10px; }
.pv-lock p { color: var(--muted); font-size: 15px; max-width: 460px; margin: 0 auto; line-height: 1.8; }
.pv-lock b { color: var(--accent-strong); }
.pv-act { display: flex; gap: 12px; margin-top: 18px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------- 天气：实况补充 / 生活指数 / 区间解读 ---------------- */
.wx-now { position: relative; }
.wx-cond-sub { color: var(--muted-2); font-size: 13px; margin-top: 4px; }
.wx-daytag {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-3);
  background: var(--bg-softer); padding: 5px 12px; border-radius: 999px; align-self: flex-start;
}
.wx-grid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }

.wx-indices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wx-idx { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--bg-soft); border-left: 4px solid var(--muted-2); }
.wx-idx.ok { border-left-color: var(--teal); }
.wx-idx.warn { border-left-color: var(--accent-strong); }
.wx-idx.hot { border-left-color: #d9534f; }
.wx-idx.cold { border-left-color: var(--ink-3); }
.wx-idx-name { font-size: 13px; color: var(--muted-2); }
.wx-idx-val { font-size: 20px; font-weight: 800; color: var(--ink); margin: 4px 0; }
.wx-idx-tip { font-size: 13px; color: var(--muted); }

.wx-insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.wx-insight-card { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.wx-insight-card span { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 6px; }
.wx-insight-card b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); }
.wx-insight-card i { display: block; font-size: 12px; color: var(--muted-2); margin-top: 6px; font-style: normal; }
.wx-insight-text { font-size: 14px; color: var(--ink-2); background: var(--teal-soft); border-radius: var(--radius-sm); padding: 12px 16px; line-height: 1.8; }
.wx-insight-dist { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; line-height: 1.8; }
.wx-insight-dist b { color: var(--ink); }
.wx-insight-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); background: var(--bg-softer); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 10px 14px; line-height: 1.75; }
.wx-insight-note b { color: var(--ink-2); }
.wx-tbl tr.wx-rainy td { background: rgba(31, 138, 112, 0.05); }
.wx-tbl tr.wx-rainy td:nth-child(2) { color: var(--teal); font-weight: 600; }

@media (max-width: 640px) {
  .wx-indices { grid-template-columns: 1fr 1fr; }
  .wx-insight-grid { grid-template-columns: 1fr 1fr; }
  .pv-frame { height: 52vh; }
  .pv-act .btn { flex: 1; }
  .wx-tbl { min-width: 520px; font-size: 13px; }
  .wx-tbl th, .wx-tbl td { padding: 9px 6px; }
}
