:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #f9fbfc;
  --border: #e2e9ee;
  --border-strong: #cfdae2;
  --text: #172632;
  --muted: #64798a;
  --primary: #0d9488;
  --primary-deep: #0b6f66;
  --primary-soft: #e6f5f2;
  --accent: #c2740b;
  --red: #c53030;
  --shadow: 0 1px 2px rgba(23, 38, 50, .04), 0 8px 28px rgba(23, 38, 50, .05);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.1; }
.brand-text > span { color: var(--primary); }
.brand-text small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .4px; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item {
  border: 0; background: transparent; padding: 9px 14px; border-radius: 9px;
  color: var(--muted); font-size: 13px; transition: .16s;
}
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { color: var(--primary-deep); background: var(--primary-soft); font-weight: 600; }
.header-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34,160,107,.13); }

/* views */
.view { display: none; padding: 34px 0 60px; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { margin-bottom: 22px; }
.page-head h2, .section-head h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.page-head p, .section-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 34px; align-items: center;
  padding: 32px 36px; margin-bottom: 38px; border: 1px solid var(--border);
  border-radius: 20px; background: linear-gradient(135deg, #ffffff 0%, #f0f8f6 100%);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.hero:after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.10), transparent 70%);
}
.eyebrow { color: var(--primary-deep); font-size: 11px; letter-spacing: 1.3px; font-weight: 600; margin-bottom: 12px; }
.hero h1 { margin: 0 0 14px; font-size: 38px; line-height: 1.25; letter-spacing: -1.2px; }
.hero p { margin: 0; color: #4b6070; max-width: 520px; font-size: 14px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.btn {
  border-radius: 10px; padding: 10px 18px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; transition: .16s;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn.ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary-deep); }
.hero-panel { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  background: rgba(255,255,255,.85); border: 1px solid var(--border); border-radius: 13px; padding: 17px 18px;
}
.stat-card .num { font-size: 27px; font-weight: 700; letter-spacing: -.8px; line-height: 1.1; color: var(--primary-deep); }
.stat-card .lab { font-size: 11px; color: var(--muted); margin-top: 5px; }
.stat-card.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card.wide .num { font-size: 20px; }
.stat-card.wide .lab { margin: 0; }

/* section heads */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.legend { display: flex; gap: 12px; align-items: center; }
.tag {
  display: inline-block; font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 5px; font-weight: 600;
}
.tag.up { color: #b45309; background: #fef3c7; }
.tag.new { color: #0f766e; background: #ccfbf1; }
.tag.down { color: #64748b; background: #eef2f5; }
.tag.flat { color: #64748b; background: #eef2f5; }

/* heat grid */
.heat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.heat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: .18s; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.heat-card:hover { transform: translateY(-3px); border-color: #a9d5cf; box-shadow: 0 12px 30px rgba(13,148,136,.11); }
.heat-top { display: flex; align-items: center; gap: 9px; }
.rank {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.heat-card:nth-child(1) .rank { background: var(--primary); color: #fff; border-color: var(--primary); }
.heat-card:nth-child(2) .rank, .heat-card:nth-child(3) .rank { background: var(--primary-soft); color: var(--primary-deep); border-color: #b8ded8; }
.heat-name { font-size: 15px; font-weight: 650; }
.heat-en { font-size: 10px; color: var(--muted); margin-left: auto; text-align: right; }
.heat-num { display: flex; align-items: baseline; gap: 8px; }
.heat-num b { font-size: 26px; letter-spacing: -.8px; line-height: 1; }
.heat-num span { font-size: 11px; color: var(--muted); }
.heat-bar { height: 5px; border-radius: 5px; background: #edf2f5; overflow: hidden; }
.heat-bar i { display: block; height: 100%; border-radius: 5px; }
.heat-papers { border-top: 1px dashed var(--border); padding-top: 9px; display: flex; flex-direction: column; gap: 7px; }
.heat-paper { font-size: 11.5px; color: #405566; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.heat-paper em { font-style: normal; color: var(--muted); }
.heat-foot { display: flex; gap: 8px; align-items: center; margin-top: auto; font-size: 11px; color: var(--muted); }

/* home lower */
.home-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.link-btn { border: 0; background: none; color: var(--primary-deep); font-size: 12px; padding: 2px; }
.link-btn:hover { text-decoration: underline; }
.brief-line { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--surface-2); font-size: 12.5px; color: #405566; line-height: 1.65; }
.brief-line:last-child { border-bottom: 0; }
.brief-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 8px; }
.mini-paper { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.mini-paper:last-child { border-bottom: 0; }
.mini-paper .mini-score { font-size: 12px; color: var(--accent); font-weight: 700; min-width: 30px; }
.mini-paper .mini-title { font-size: 12.5px; line-height: 1.5; }
.mini-paper .mini-meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* filters */
.filter-bar { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(5, minmax(105px, 1fr)); gap: 10px; margin-bottom: 14px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #94a7b5; }
.search-wrap input, select {
  width: 100%; height: 40px; border: 1px solid var(--border-strong); background: #fff; border-radius: 9px;
  padding: 0 12px; font-size: 12.5px; outline: none; transition: .16s;
}
.search-wrap input { padding-left: 36px; }
.search-wrap input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.result-bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 12px; }

/* paper list */
.paper-list { display: flex; flex-direction: column; gap: 10px; }
.paper-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 17px 19px; box-shadow: var(--shadow); transition: .16s;
}
.paper-card:hover { border-color: #b9d9d5; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.journal-chip { color: var(--primary-deep); background: var(--primary-soft); padding: 2px 8px; border-radius: 5px; font-weight: 600; }
.jif-chip { color: #fff; background: #b45309; padding: 2px 8px; border-radius: 5px; font-weight: 600; }
.jif-chip.high { background: #a32d2d; }
.jif-chip.none { color: var(--muted); background: #eef2f5; font-weight: 400; }
.zone-chip { color: #1d6b57; background: #dfeee8; padding: 2px 8px; border-radius: 5px; }
.paper-title { margin: 0 0 7px; font-size: 15px; line-height: 1.5; font-weight: 650; }
.paper-title a:hover { color: var(--primary-deep); }
.paper-abstract { margin: 0; color: #526578; font-size: 12.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.paper-abstract.open { display: block; }
.zh-title { font-size: 12px; color: #4b6070; margin: 0 0 6px; line-height: 1.55; }
.zh-title.llm { color: #0f766e; }
.llm-abstract { font-size: 12.5px; color: #31475a; line-height: 1.85; margin-bottom: 10px; }
.zh-brief { font-size: 12.5px; color: #0f766e; background: #f0f8f6; border-left: 2px solid var(--primary); padding: 6px 10px; border-radius: 0 6px 6px 0; margin-bottom: 8px; }
.zh-detail { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; margin: 10px 0; }
.zh-facts { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.zh-kws { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.kw-chip { font-size: 10.5px; color: var(--primary-deep); background: #e6f5f2; padding: 2px 8px; border-radius: 5px; }
.zh-section { font-size: 12px; color: #405566; line-height: 1.7; margin-bottom: 6px; display: flex; gap: 9px; }
.zh-label { color: var(--primary-deep); min-width: 32px; flex-shrink: 0; font-weight: 500; }
.en-original { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 8px; font-size: 11px; color: var(--muted); }
.en-original summary { cursor: pointer; }
.en-original p { margin: 8px 0 0; line-height: 1.65; color: #526578; }
.paper-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 11px; }
.topic-chip { font-size: 10.5px; padding: 3px 8px; border-radius: 20px; color: #fff; }
.type-chip { font-size: 10.5px; color: #8a6315; background: #fdf5e4; padding: 3px 8px; border-radius: 5px; }
.paper-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 5px 9px;
  font-size: 11px; color: var(--muted); transition: .16s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary-deep); }
.icon-btn.saved { color: var(--accent); border-color: #ecd6ae; background: #fffaf0; }
.load-more-wrap { text-align: center; margin-top: 22px; }
.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 42px 20px; text-align: center; color: var(--muted); }

/* brief */
.brief-hero {
  background: linear-gradient(120deg, #0f766e, #115e59); color: #fff; border-radius: 16px;
  padding: 28px 32px; margin-bottom: 18px;
}
.brief-hero h3 { margin: 0 0 8px; font-size: 20px; }
.brief-hero p { margin: 0; opacity: .8; font-size: 12.5px; }
.brief-stats { display: flex; gap: 32px; margin-top: 20px; }
.brief-stats div span { display: block; font-size: 25px; font-weight: 700; }
.brief-stats div small { opacity: .75; font-size: 11px; }
.brief-section { margin-bottom: 18px; }
.brief-section h3 { font-size: 15px; margin: 0 0 12px; }
.brief-topic { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 15px; margin-bottom: 8px; }
.brief-topic .bt-rank { color: var(--muted); font-size: 12px; width: 20px; }
.brief-topic .bt-name { width: 130px; }
.brief-topic .bt-bar { flex: 1; height: 7px; background: #edf2f5; border-radius: 7px; overflow: hidden; }
.brief-topic .bt-bar i { display: block; height: 100%; }
.brief-topic .bt-val { color: var(--muted); font-size: 11px; min-width: 128px; text-align: right; }

/* about */
.about-grid, .legal-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 16px; align-items: start; }
.contact-box { margin-top: 18px; background: var(--primary-soft); border: 1px solid #b8ded8; border-radius: 9px; padding: 11px 14px; font-size: 12.5px; color: var(--primary-deep); }
.contact-box a { text-decoration: underline; }
.prose h3 { margin: 0 0 8px; font-size: 15px; }
.prose h3:not(:first-child) { margin-top: 24px; }
.prose p { margin: 0; color: #4b6070; font-size: 13px; line-height: 1.85; }
.prose code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; color: var(--primary-deep); }
.callout { margin-top: 22px; background: #fff8e8; border: 1px solid #f0dfba; color: #8a6315; padding: 11px 14px; border-radius: 9px; font-size: 12px; }

/* footer & toast */
.site-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; padding-bottom: 30px; color: var(--muted); font-size: 11px; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: #172632; color: #fff; padding: 9px 16px; border-radius: 9px; font-size: 12px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 26px; }
  .heat-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .about-grid, .legal-grid, .home-lower { grid-template-columns: 1fr; }
  .nav-item { padding: 8px 10px; }
  .header-meta { display: none; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { gap: 8px; }
  .brand-text small { display: none; }
  .nav { overflow-x: auto; }
  .nav-item { white-space: nowrap; font-size: 12px; }
  .heat-grid, .filter-bar { grid-template-columns: 1fr; }
  .hero h1 { font-size: 29px; }
  .brief-stats { gap: 18px; }
  .brief-topic { flex-wrap: wrap; }
  .brief-topic .bt-val { min-width: 0; }
}
