/* ═══════════════════════════════════════════
   Alibaba国际站巡检日报 · 共享样式
   首页 index.html 和所有日报 .html 共用此文件
   版本: v2 · 2026-07-22
   ═══════════════════════════════════════════ */

:root {
  /* ── 品牌色 ── */
  --brand: #1e40af;
  --brand-light: #3b82f6;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;

  /* ── 语义色 ── */
  --success: #059669;
  --success-soft: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;

  /* ── 中性色 ── */
  --surface: #f8f9fb;
  --card: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  /* ── 排版 ── */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ═══════════════════════════════════════════
   Top Navigation Bar
   ═══════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 12px;
  z-index: 100;
}
.navbar-brand {
  font-size: 15px;
  font-weight: 650;
  color: var(--brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}
.navbar-brand-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.navbar-right {
  display: flex; align-items: center; gap: 6px;
}
.navbar-status {
  font-size: 12px; padding: 4px 10px; border-radius: 12px;
  font-weight: 500; margin-right: 8px;
}
.navbar-status.active { background: var(--success-soft); color: var(--success); }
.navbar-status.empty  { background: var(--border-light); color: var(--text-muted); }
.navbar-btn {
  font-size: 13px; color: var(--text-secondary); background: none; border: none;
  cursor: pointer; padding: 6px 10px; border-radius: 6px;
  transition: all 0.15s; font-family: var(--font); white-space: nowrap;
}
.navbar-btn:hover { color: var(--text); background: var(--border-light); }
.navbar-btn.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* ═══════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 40px 20px 36px;
  margin-bottom: 36px;
  background: linear-gradient(135deg, #f0f5ff 0%, #f8f9fb 40%, #f0fdf7 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--brand);
  background: var(--brand-soft); padding: 3px 12px; border-radius: 14px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 32px; font-weight: 750; letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--brand) 0%, #0891b2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.hero p {
  font-size: 14px; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 16px;
}
.hero-date {
  font-size: 13px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); padding: 5px 14px; border-radius: 16px;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   Quick Bar (今日日报入口)
   ═══════════════════════════════════════════ */
.quick-bar {
  display: flex; align-items: center; gap: 12px;
  justify-content: center; margin-bottom: 32px; flex-wrap: wrap;
}
.quick-label { font-size: 13px; color: var(--text-muted); }
.quick-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 550; padding: 8px 18px;
  border-radius: 22px; border: 1px solid; cursor: pointer;
  transition: all 0.18s; font-family: var(--font);
}
.quick-btn-opp  { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-border); }
.quick-btn-opp:hover  { background: #dbeafe; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.quick-btn-store { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.quick-btn-store:hover { background: #d1fae5; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════════
   Cards Grid
   ═══════════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-header-bar {
  height: 4px;
}
.card-header-bar.opp  { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.card-header-bar.store { background: linear-gradient(90deg, var(--success), #34d399); }

.card-body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex; flex-direction: column; gap: 16px;
}
.card-head {
  display: flex; align-items: center; gap: 12px;
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.card-icon-opp  { background: var(--brand-soft); }
.card-icon-store { background: var(--success-soft); }
.card-title {
  font-size: 18px; font-weight: 650; letter-spacing: -0.3px;
}
.card-sub {
  font-size: 12px; color: var(--text-muted);
}
.card-dims {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.dim-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.45;
}
.dim-num {
  width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.dim-num-opp  { background: var(--brand-soft); color: var(--brand); }
.dim-num-store { background: var(--success-soft); color: var(--success); }
.dim-label { font-size: 12px; }

.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0;
  font-size: 13px;
}
.card-foot span { color: var(--text-muted); }
.card-foot .arrow {
  color: var(--brand); font-weight: 550; font-size: 13px;
}

/* ═══════════════════════════════════════════
   Settings Toggle
   ═══════════════════════════════════════════ */
.settings-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 32px; font-size: 13px; color: var(--text-muted);
}
.settings-row label {
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px; transition: background 0.15s;
}
.settings-row label:hover { background: var(--border-light); }
.settings-row input[type="checkbox"] {
  accent-color: var(--brand); width: 15px; height: 15px;
}

/* ═══════════════════════════════════════════
   Report List View
   ═══════════════════════════════════════════ */
.list-title-bar {
  font-size: 20px; font-weight: 650; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.list-section { margin-bottom: 24px; }
.list-section-title {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 0 0 10px 4px;
}
.list-switch {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: var(--border-light); border-radius: 10px; padding: 3px;
  width: fit-content;
}
.switch-btn {
  font-size: 13px; font-weight: 550; padding: 7px 16px; border-radius: 8px;
  border: none; background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: all 0.18s; font-family: var(--font);
}
.switch-btn.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }

.report-list { display: flex; flex-direction: column; gap: 8px; }
.report-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  transition: all 0.15s; color: inherit;
}
.report-item:hover { border-color: var(--brand-border); background: var(--brand-soft); }
.report-item.today {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf7 100%);
  border-color: var(--brand-border);
}
.report-date {
  font-size: 14px; font-weight: 550; display: flex; align-items: center; gap: 10px;
}
.report-arrow { color: var(--text-muted); font-size: 13px; transition: color 0.15s; }
.report-item:hover .report-arrow { color: var(--brand); }

.tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
}
.tag-today { background: #fef3c7; color: #b45309; }
.tag-opp   { background: var(--brand-soft); color: var(--brand); }
.tag-store { background: var(--success-soft); color: var(--success); }

/* ═══════════════════════════════════════════
   Empty State
   ═══════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 56px 20px;
  color: var(--text-muted); font-size: 14px;
}
.empty-state-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.6; }
.empty-state p { margin-bottom: 4px; }
.empty-state .sub { font-size: 12px; }

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.footer {
  text-align: center; margin-top: 40px; padding-top: 18px;
  border-top: 1px solid var(--border); color: var(--text-muted);
  font-size: 11px; letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════ */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   Report Content (日报正文样式)
   ═══════════════════════════════════════════ */
.report-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}
.report-article h1 {
  font-size: 26px; font-weight: 750; letter-spacing: -0.5px;
  margin-bottom: 6px; color: var(--text);
}
.report-article .report-meta {
  font-size: 13px; color: var(--text-muted); margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.report-article h2 {
  font-size: 18px; font-weight: 650; margin: 32px 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--brand-soft);
  color: var(--brand);
}
.report-article h3 {
  font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--text);
}
.report-article p {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 10px;
}
.report-article ul, .report-article ol {
  margin: 8px 0 16px 20px; font-size: 14px; color: var(--text-secondary);
}
.report-article li { margin-bottom: 4px; }
.report-article table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px;
}
.report-article th {
  background: var(--surface); text-align: left; padding: 10px 14px;
  font-weight: 600; color: var(--text); border-bottom: 2px solid var(--border);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.report-article td {
  padding: 10px 14px; border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.report-article tr:hover td { background: var(--brand-soft); }
.report-article .highlight {
  background: var(--warning-soft); padding: 2px 6px; border-radius: 4px;
  font-weight: 550; color: var(--warning);
}
.report-article .good {
  background: var(--success-soft); padding: 2px 6px; border-radius: 4px;
  font-weight: 550; color: var(--success);
}
.report-article .bad {
  background: var(--danger-soft); padding: 2px 6px; border-radius: 4px;
  font-weight: 550; color: var(--danger);
}
.report-article .kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin: 16px 0;
}
.report-article .kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.report-article .kpi-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.report-article .kpi-value { font-size: 22px; font-weight: 700; color: var(--text); }
.report-article .kpi-change { font-size: 12px; margin-top: 2px; }
.report-article .kpi-up   { color: var(--success); }
.report-article .kpi-down { color: var(--danger); }

.report-article .alert {
  border-left: 4px solid var(--warning); background: var(--warning-soft);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0; font-size: 13px;
}
.report-article .alert strong { color: var(--warning); }

@media (max-width: 640px) {
  .report-article { padding: 24px 18px 28px; }
  .report-article h1 { font-size: 22px; }
  .report-article .kpi-grid { grid-template-columns: 1fr 1fr; }
}
