/* =========================================================
   油价查询 · 主题样式  (Premium Navy + Gold)
   高端 / 专业 / 简约 / 协调
   ========================================================= */
:root {
  --c-bg: #eef2f8;
  --c-surface: #ffffff;
  --c-surface-2: #f6f9fd;
  --c-ink: #0f2747;
  --c-ink-2: #1b3a66;
  --c-ink-soft: #2c5282;
  --c-gold: #c9a24b;
  --c-gold-2: #e3c277;
  --c-text: #1a2b45;
  --c-muted: #6b7a99;
  --c-line: #e6ecf4;
  --c-up: #e0524b;     /* 涨 红（国内习惯） */
  --c-down: #1fa971;   /* 跌 绿 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(15, 39, 71, .10);
  --shadow-sm: 0 4px 14px rgba(15, 39, 71, .06);
  --shadow-gold: 0 8px 24px rgba(201, 162, 75, .28);
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(27,58,102,.08), transparent 55%),
    var(--c-bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, #0f2747 0%, #16365f 55%, #1b3a66 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(15,39,71,.20);
  backdrop-filter: blur(8px);
}
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--c-gold), var(--c-gold-2), transparent); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .5px; }
.brand .logo { width: 34px; height: 34px; color: var(--c-gold-2); }
.brand .brand-sub { font-size: 12px; font-weight: 400; color: #b9c8de; letter-spacing: 2px; display: block; margin-top: -4px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 15px; color: #d7e2f1;
  transition: background .2s, color .2s; display: flex; align-items: center; gap: 6px;
}
.nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav a.active { background: rgba(201,162,75,.18); color: var(--c-gold-2); }
.nav .icon { width: 18px; height: 18px; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-side .icon { width: 17px; height: 17px; }
.btn .icon { width: 16px; height: 16px; }
.card h3 .icon { width: 18px; height: 18px; }
/* ---------- 导航下拉（油品单页） ---------- */
.nav-drop { position: relative; }
.nav-drop > .nav-drop-toggle { padding: 8px 14px; border-radius: 10px; font-size: 15px; color: #d7e2f1; display: flex; align-items: center; gap: 6px; transition: background .2s, color .2s; cursor: pointer; }
.nav-drop > .nav-drop-toggle:hover, .nav-drop.open > .nav-drop-toggle { background: rgba(255,255,255,.10); color: #fff; }
.nav-drop.active > .nav-drop-toggle { background: rgba(201,162,75,.18); color: var(--c-gold-2); }
.nav-drop .caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop:hover .caret, .nav-drop.open .caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; z-index: 60;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15,39,71,.18);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--c-ink); font-weight: 600; }
.nav-drop-menu a:hover { background: rgba(201,162,75,.14); color: #8a6a1f; }

/* ---------- 页脚链接区 ---------- */
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; width: 100%; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.10); margin-bottom: 14px; }
.footer-col { min-width: 220px; }
.footer-title { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
.footer-row a:hover { color: var(--c-gold-2); }

/* ---------- 页内油品快捷入口 ---------- */
.oil-nav { padding: 18px; }
.oil-nav-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.oil-nav-row a {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--c-line);
  background: var(--c-surface-2); font-weight: 700; color: var(--c-ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.oil-nav-row a .icon { width: 18px; height: 18px; color: var(--c-gold); margin-bottom: 2px; }
.oil-nav-row a small { font-weight: 500; font-size: 12px; color: var(--c-muted); }
.oil-nav-row a:hover { transform: translateY(-2px); border-color: var(--c-gold); box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; }
.menu-btn { width: 26px; height: 26px; }

/* ---------- 通用区块 ---------- */
.section { margin-top: 26px; margin-bottom: 26px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; color: var(--c-ink); font-weight: 700; position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px; background: linear-gradient(var(--c-gold), var(--c-gold-2)); }
.section-head .more { margin-left: auto; color: var(--c-muted); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.section-head .more .icon { width: 15px; height: 15px; transition: transform .2s; }
.section-head .more:hover .icon { transform: translateX(3px); color: var(--c-gold); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line); padding: 20px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: all .2s; background: var(--c-surface-2); color: var(--c-ink);
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn-primary { background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2)); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(15,39,71,.30); }
.btn-gold { background: linear-gradient(135deg, var(--c-gold), var(--c-gold-2)); color: #3a2c08; }
.btn-gold:hover { box-shadow: var(--shadow-gold); }
.btn-ghost { background: transparent; border-color: var(--c-line); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn:active { transform: scale(.97); }

/* ---------- 涨跌标签 ---------- */
.up { color: var(--c-up); }
.down { color: var(--c-down); }
.chg { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.chg.up { background: rgba(224,82,75,.10); color: var(--c-up); }
.chg.down { background: rgba(31,169,113,.12); color: var(--c-down); }
.chg.flat { background: rgba(107,122,153,.12); color: var(--c-muted); }
.chg .icon { width: 13px; height: 13px; }

/* ---------- 省份选择 ---------- */
.province-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.province-select {
  appearance: none; border: 1px solid var(--c-line); background: var(--c-surface);
  padding: 10px 38px 10px 14px; border-radius: 12px; font-weight: 600; color: var(--c-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a24b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
.loc-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(201,162,75,.14); color: #8a6d1f; padding: 8px 14px; border-radius: 12px; font-weight: 600; }
.loc-pill .icon { width: 18px; height: 18px; color: var(--c-gold); }

/* ---------- Hero 今日油价 ---------- */
.hero {
  background: linear-gradient(135deg, #0f2747 0%, #1b3a66 60%, #244b80 100%);
  border-radius: var(--radius); color: #fff; padding: 26px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::before { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background: radial-gradient(circle, rgba(201,162,75,.30), transparent 70%); }
.hero-title { display: flex; align-items: center; gap: 10px; color: #dce6f4; font-size: 15px; }
.hero-title .icon { width: 20px; height: 20px; color: var(--c-gold-2); }
.hero-prov { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.hero-date { color: #aebfd6; font-size: 13px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.price-cell { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 14px; text-align: center; }
.price-cell .label { font-size: 13px; color: #b9c8de; }
.price-cell .val { font-size: 26px; font-weight: 800; margin: 4px 0; font-variant-numeric: tabular-nums; }
.price-cell .val small { font-size: 13px; font-weight: 600; color: #cdd9ea; }
.price-cell .chg { margin-top: 2px; }

/* ---------- 倒计时横幅 ---------- */
.countdown {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(201,162,75,.16), rgba(201,162,75,.06));
  border: 1px solid rgba(201,162,75,.4); border-radius: var(--radius); padding: 16px 20px;
}
.countdown .cd-icon { width: 42px; height: 42px; color: var(--c-gold); flex: none; }
.countdown .cd-text { font-size: 15px; color: var(--c-ink); }
.countdown .cd-days { font-size: 30px; font-weight: 800; color: var(--c-gold); font-variant-numeric: tabular-nums; }
.countdown .cd-date { font-weight: 700; color: var(--c-ink-2); }

/* ---------- 表格（各地区） ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); background: var(--c-surface); }
table.oil-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.oil-table th, .oil-table td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--c-line); font-variant-numeric: tabular-nums; }
.oil-table th { background: var(--c-surface-2); color: var(--c-muted); font-weight: 600; font-size: 13px; position: sticky; top: 0; }
.oil-table td:first-child, .oil-table th:first-child { text-align: left; font-weight: 600; color: var(--c-ink); }
.oil-table tbody tr { transition: background .15s; }
.oil-table tbody tr:hover { background: var(--c-surface-2); }
.oil-table .price-main { font-weight: 700; font-size: 16px; color: var(--c-ink); }

/* ---------- 国际油价 ---------- */
.intl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.intl-card { background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-line); padding: 18px; box-shadow: var(--shadow-sm); }
.intl-card .top { display: flex; align-items: center; gap: 10px; }
.intl-card .sym { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2)); color: var(--c-gold-2); font-weight: 800; }
.intl-card .name { font-weight: 700; color: var(--c-ink); }
.intl-card .ex { font-size: 12px; color: var(--c-muted); }
.intl-card .big { font-size: 30px; font-weight: 800; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.chart-frame { margin-top: 14px; border-radius: 12px; overflow: hidden; background: var(--c-surface-2); border: 1px solid var(--c-line); }
.chart-frame img { width: 100%; display: block; }
.chart-frame .cap { font-size: 12px; color: var(--c-muted); padding: 6px 10px; border-top: 1px solid var(--c-line); }
/* 国际油价：开/收/高/低 四宫格 */
.ohlc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ohlc > div { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: 10px; padding: 8px 4px; text-align: center; }
.ohlc > div span { display: block; font-size: 11px; color: var(--c-muted); }
.ohlc > div b { display: block; font-size: 14px; color: var(--c-ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-up); margin-right: 5px; vertical-align: middle; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 480px) { .ohlc { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.news-card { background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; cursor: pointer; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .cover {
  position: relative; height: 158px; overflow: hidden;
  background: linear-gradient(135deg, var(--c-ink-2), var(--c-ink));
  display: grid; place-items: center; color: var(--c-gold-2);
  border-bottom: 1px solid var(--c-line);
}
/* 无封面 / 图片加载失败时的占位图标（始终在底层，不依赖 onerror 注入 HTML） */
.news-card .cover .cover-ph { position: absolute; inset: 0; display: grid; place-items: center; opacity: .55; }
.news-card .cover img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .cover .icon { width: 46px; height: 46px; }
.news-card .body { padding: 16px 18px 18px; }
.news-card .body h3 {
  font-size: 17px; font-weight: 700; color: var(--c-ink); line-height: 1.5;
  margin-bottom: 10px; letter-spacing: .2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .body p { font-size: 13px; color: var(--c-muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { font-size: 12px; color: var(--c-muted); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--c-line); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 40px; background: linear-gradient(135deg, #0f2747, #16365f); color: #c7d4e6; padding: 28px 0; font-size: 13px; }
.site-footer a { color: #c7d4e6; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton { background: linear-gradient(90deg, #eef2f8 25%, #e2e9f3 37%, #eef2f8 63%); background-size: 800px 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(201,162,75,.15); }

/* ---------- 工具 ---------- */
.muted { color: var(--c-muted); }
.center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; background: var(--c-surface-2); color: var(--c-muted); border: 1px solid var(--c-line); }
.divider { height: 1px; background: var(--c-line); margin: 18px 0; }

/* ---------- 调价日历页 ---------- */
.cal-years { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-year {
  padding: 7px 18px; border-radius: 22px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: var(--c-surface); color: var(--c-ink-2); border: 1px solid var(--c-line);
  transition: all .22s;
}
.cal-year:hover { border-color: var(--c-gold); color: var(--c-gold); }
.cal-year.active { background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2)); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

.cal-month { margin-bottom: 22px; }
.cal-month-hd {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: 15px; font-weight: 700; color: var(--c-ink);
}
.cal-month-hd::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }
.cal-month-hd .cnt { font-size: 12px; font-weight: 500; color: var(--c-muted); }

.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cal-item {
  position: relative; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--c-surface); border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cal-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-gold-2); }
.cal-item.is-next { border-color: var(--c-gold); background: linear-gradient(150deg, #fffdf6, #fff); }
.cal-item.is-past { opacity: .72; }
.cal-day { font-size: 21px; font-weight: 800; color: var(--c-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.cal-week { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.cal-note { font-size: 12px; color: var(--c-muted); margin-top: 8px; min-height: 16px; }
.cal-status {
  position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.cal-status.s-next { background: rgba(201,162,75,.16); color: #a8802f; }
.cal-status.s-past { background: var(--c-surface-2); color: var(--c-muted); }
.cal-status.s-today { background: rgba(224,82,75,.14); color: var(--c-up); }

/* 省份链接：可点击跳转省份油价页 */
.prov-link { text-decoration: none; border-bottom: 1px dashed transparent; transition: color .2s, border-color .2s; }
.prov-link:hover { color: var(--c-gold) !important; border-bottom-color: var(--c-gold-2); }

/* ---------- 调价日历：动态特效 ---------- */
/* 页面环境光：两团缓慢漂移的柔光 */
.cal-aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cal-aurora i {
  position: absolute; display: block; border-radius: 50%; filter: blur(72px); opacity: .30;
}
.cal-aurora i:nth-child(1) {
  width: 460px; height: 460px; top: -140px; left: -100px;
  background: radial-gradient(circle, #c9a24b, transparent 68%);
  animation: driftA 19s ease-in-out infinite;
}
.cal-aurora i:nth-child(2) {
  width: 520px; height: 520px; top: 34%; right: -160px;
  background: radial-gradient(circle, #1b3a66, transparent 70%);
  animation: driftB 24s ease-in-out infinite;
}
@keyframes driftA {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(90px, 70px) scale(1.14); }
}
@keyframes driftB {
  0%,100% { transform: translate(0,0) scale(1.05); }
  50%     { transform: translate(-80px, 60px) scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  .cal-aurora i { animation: none; }
}

/* 倒计时数字：呼吸辉光 + 入场缩放 */
.cd-days.glow { animation: cdGlow 2.6s ease-in-out infinite; }
@keyframes cdGlow {
  0%,100% { text-shadow: 0 0 0 rgba(201,162,75,0); transform: scale(1); }
  50%     { text-shadow: 0 0 18px rgba(201,162,75,.55); transform: scale(1.06); }
}
.cd-pop { animation: cdPop .6s cubic-bezier(.22,1.2,.36,1) both; }
@keyframes cdPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

/* 倒计时卡：金色流光边框 */
.countdown.shine { position: relative; overflow: hidden; }
.countdown.shine::after {
  content: ''; position: absolute; top: 0; left: -140%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(201,162,75,.22), transparent);
  animation: sweep 4.2s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -140%; } 55%,100% { left: 160%; } }

/* 卡片扫光 + 3D 浮起 */
.cal-item { overflow: hidden; }
.cal-item::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.cal-item:hover::before { left: 130%; }
.cal-item.tilt { transition: transform .18s ease, box-shadow .22s, border-color .22s; }

/* 下次调价卡：金色呼吸光晕（入场后再启动，避免与入场动画冲突） */
.cal-item.is-next.in { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both, nextBreath 2.8s ease-in-out .6s infinite; }
@keyframes nextBreath {
  0%,100% { box-shadow: 0 4px 14px rgba(15,39,71,.06), 0 0 0 0 rgba(201,162,75,.42); }
  50%     { box-shadow: 0 4px 14px rgba(15,39,71,.06), 0 0 0 8px rgba(201,162,75,0); }
}
.cal-status.s-next { animation: badgePulse 1.8s ease-in-out infinite; }
@keyframes badgePulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.09); opacity: .82; }
}

/* 入场：卡片逐个浮现 */
.cal-item.in { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both; }
/* 月份标题渐入 */
.cal-month-hd.in { animation: slideIn .45s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* 年份切换 / 重渲染过渡 */
#calWrap { transition: opacity .22s ease, transform .22s ease; }
#calWrap.switching { opacity: 0; transform: translateY(10px); }

/* 年度统计数字滚动 */
.stat-num { font-variant-numeric: tabular-nums; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: linear-gradient(135deg, #0f2747, #16365f); padding: 12px; gap: 2px; transform: translateY(-150%); transition: transform .3s; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  /* 移动端：下拉改为内嵌展开，避免悬浮层在小屏不可用 */
  .nav-drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,.06); border: 0; display: none; grid-template-columns: 1fr 1fr;
  }
  .nav-drop.open .nav-drop-menu { display: grid; }
  .nav-drop-menu a { color: #dfe8f5; }
  .nav-drop-menu a:hover { background: rgba(255,255,255,.10); color: #fff; }
  .footer-links { gap: 18px; }
  .hero-prov { font-size: 24px; }
  .price-cell .val { font-size: 22px; }
  .cal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cal-day { font-size: 18px; }
}

/* ---------- 后台封面上传 ---------- */
.cover-picker {
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  padding: 12px; border: 1px dashed var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-surface-2); transition: border-color .2s, background .2s;
}
.cover-picker.dragover { border-color: var(--c-gold); background: rgba(201,162,75,.10); }
.cover-preview {
  width: 132px; height: 88px; flex: none; border-radius: var(--radius-sm);
  border: 1px solid var(--c-line); background: var(--c-surface);
  display: grid; place-items: center; overflow: hidden;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb { width: 46px; height: 32px; object-fit: cover; border-radius: 4px; border: 1px solid var(--c-line); flex: none; }
.upload-bar {
  margin-top: 8px; height: 6px; border-radius: 99px; background: var(--c-surface-2);
  border: 1px solid var(--c-line); overflow: hidden;
}
.upload-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--c-gold), #e8cf8d);
  transition: width .15s linear;
}
@media (max-width: 640px) {
  .cover-picker { flex-direction: column; }
  .cover-preview { width: 100%; height: 150px; }
}

/* ---------- 管理后台排版（admin.html） ---------- */
.admin-topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2));
  border-radius: var(--radius); box-shadow: var(--shadow); color: #fff;
}
.admin-topbar .at-title { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.admin-topbar .at-sub { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.admin-topbar .at-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.admin-topbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.admin-topbar .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.admin-layout { display: flex; gap: 20px; align-items: flex-start; }
.admin-side {
  width: 208px; flex: none; position: sticky; top: 80px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm);
}
.admin-side .side-title {
  font-size: 11px; color: var(--c-muted); letter-spacing: 1px;
  padding: 10px 12px 6px; text-transform: uppercase;
}
.admin-side a {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border-radius: 10px; color: var(--c-ink); cursor: pointer;
  font-weight: 600; font-size: 14px; margin-bottom: 2px; transition: background .2s, color .2s;
}
.admin-side a .icon { width: 18px; height: 18px; flex: none; opacity: .8; }
.admin-side a:hover { background: var(--c-surface-2); }
.admin-side a.active {
  background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2));
  color: #fff; box-shadow: 0 4px 12px rgba(15,39,71,.18);
}
.admin-side a.active .icon { opacity: 1; color: var(--c-gold-2); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 面板 */
.admin-panel {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.admin-panel .panel-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--c-line); background: var(--c-surface-2);
}
.admin-panel .panel-head h3 { font-size: 15px; color: var(--c-ink); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-panel .panel-head h3 .icon { width: 18px; height: 18px; color: var(--c-gold); }
.admin-panel .panel-head .ph-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.admin-panel .panel-body { padding: 18px; }
.admin-panel .panel-body.flush { padding: 0; }
.hint { font-size: 12px; color: var(--c-muted); line-height: 1.7; }

/* 后台 tab 切换面板（仅 .active 显示，切换靠 JS 加类） */
.tabpane { display: none; flex-direction: column; gap: 16px; }
.tabpane.active { display: flex; animation: fadeUp .4s; }

/* 统计卡 */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.admin-stats .stat {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.admin-stats .stat .ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(201,162,75,.18), rgba(201,162,75,.06)); color: var(--c-gold);
}
.admin-stats .stat .ic .icon { width: 22px; height: 22px; }
.admin-stats .stat .n { font-size: 24px; font-weight: 800; color: var(--c-ink); line-height: 1.2; }
.admin-stats .stat .l { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

/* 表单网格 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }

/* 采集结果 */
.collect-line {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  padding: 16px 0 4px; text-align: center;
}
.collect-line .btn { min-width: 150px; }
.collect-detail {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--c-surface-2); border: 1px dashed var(--c-line); font-size: 13px; line-height: 1.8;
  text-align: center;
}

/* 标签 */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.admin { background: linear-gradient(135deg, var(--c-gold), var(--c-gold-2)); color: #fff; }
.badge.member { background: var(--c-surface-2); color: var(--c-muted); border: 1px solid var(--c-line); }
.badge.on { background: rgba(31,169,113,.12); color: var(--c-down); }
.badge.off { background: rgba(224,82,75,.12); color: var(--c-up); }

/* 空状态 */
.empty { padding: 34px 16px; text-align: center; color: var(--c-muted); font-size: 13px; }
.empty .icon { width: 34px; height: 34px; opacity: .35; display: block; margin: 0 auto 8px; }

/* 模态框 */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200; padding: 16px;
  background: rgba(15,39,71,.5); backdrop-filter: blur(2px);
  align-items: center; justify-content: center;
}
.modal.open { display: flex; animation: fadeUp .22s ease; }
.modal-card {
  width: min(680px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  background: var(--c-surface); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15,39,71,.28); overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; padding: 14px 18px;
  border-bottom: 1px solid var(--c-line); background: var(--c-surface-2);
}
.modal-head h3 { font-size: 16px; color: var(--c-ink); font-weight: 700; }
.modal-head .x { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--c-muted); font-size: 22px; line-height: 1; }
.modal-body { padding: 18px; overflow: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px;
  border-top: 1px solid var(--c-line); background: var(--c-surface-2);
}
textarea { width: 100%; min-height: 150px; padding: 12px; border: 1px solid var(--c-line); border-radius: 12px; font-family: monospace; }

/* 后台表格 */
.admin-panel .oil-table th { background: var(--c-surface-2); }
.admin-panel .oil-table td, .admin-panel .oil-table th { padding: 10px 14px; }
.cell-title { display: flex; align-items: center; gap: 10px; }
.cell-title span { font-weight: 600; color: var(--c-ink); }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; }

@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-side {
    width: 100%; position: static; display: flex; gap: 8px; overflow-x: auto;
    padding: 8px; -webkit-overflow-scrolling: touch;
  }
  .admin-side .side-title { display: none; }
  .admin-side a { white-space: nowrap; margin-bottom: 0; }
  .admin-topbar { padding: 14px 16px; }
  .admin-topbar .at-title { font-size: 17px; }
}
