/* 糖心vlog · 2026 全新视觉：编辑部风格 + 轻量“仪表盘”结构 */
:root{
  color-scheme: light;
  --bg: #f6f7fb;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, .68);
  --line: rgba(15, 23, 42, .10);
  --shadow: 0 18px 42px rgba(15, 23, 42, .12);

  --navy: #0b1228;
  --violet: #6d28d9;
  --cyan: #06b6d4;
  --amber: #f59e0b;

  --r1: 22px;
  --r2: 16px;
  --container: 1160px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 12% 0%, rgba(109,40,217,.16), transparent 60%),
    radial-gradient(900px 520px at 92% -10%, rgba(6,182,212,.14), transparent 55%),
    radial-gradient(720px 520px at 55% 120%, rgba(245,158,11,.12), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg) 40%, #ffffff 100%);
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{ width:100%; max-width: var(--container); margin:0 auto; padding:0 18px; }
.skip{
  position:absolute; left:-999px; top:10px;
  padding:10px 12px; border-radius:12px;
  background: var(--paper); border:1px solid var(--line); box-shadow: var(--shadow);
}
.skip:focus{ left:12px; z-index:99; }

/* 顶部栏：更像产品而不是博客 */
.bar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.bar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding: 14px 0;
}
.mark{
  display:flex; align-items:center; gap:12px; min-width: 220px;
}
.sig{
  width: 44px; height:44px; border-radius: 14px;
  display:grid; place-items:center;
  color:#fff; font-weight:900; letter-spacing:.6px;
  background: conic-gradient(from 210deg, var(--violet), var(--cyan), var(--amber), var(--violet));
  box-shadow: 0 16px 40px rgba(109,40,217,.18);
}
.mark small{ display:block; margin-top:2px; color: var(--muted); font-size:12px; }

.tabs{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.tabs a{
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.86);
}
.tabs a:hover{ background: rgba(255,255,255,.95); }
.tabs a.active{
  background: linear-gradient(135deg, rgba(109,40,217,.12), rgba(6,182,212,.10));
  border-color: rgba(109,40,217,.22);
}

.finder{
  display:flex; gap:10px; align-items:center;
  min-width: 280px;
}
.finder input{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.85);
  outline:none;
}
.finder input:focus{
  border-color: rgba(6,182,212,.55);
  box-shadow: 0 0 0 4px rgba(6,182,212,.12);
}
.finder button{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.85);
  cursor:pointer;
}
.finder button:hover{ background:#fff; }

.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  overflow:hidden; clip: rect(1px,1px,1px,1px);
  white-space:nowrap;
}

main{ padding: 22px 0 44px; }

/* 版式：大标题 + 右侧“指标卡”，完全不同于之前的卡片网站 */
.mast{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: stretch;
  margin: 12px 0 18px;
}
.headline{
  background: var(--paper);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r1);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow:hidden;
}
.headline::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(109,40,217,.16), transparent 60%),
    radial-gradient(420px 260px at 92% 10%, rgba(6,182,212,.14), transparent 55%);
  pointer-events:none;
}
.headline > *{ position:relative; }
.headline h1{
  margin:0 0 10px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: .2px;
}
.lede{ margin:0 0 14px; color: var(--muted); }

.actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 14px; }
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.86);
  color: rgba(15,23,42,.86);
}
.pill:hover{ background:#fff; }
.pill.primary{
  border-color: rgba(109,40,217,.22);
  background: linear-gradient(135deg, rgba(109,40,217,.16), rgba(6,182,212,.12));
}

.shot{
  background: var(--paper);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r1);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.shot img{ width:100%; height:100%; object-fit:cover; min-height: 270px; }

.kpi{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.tile{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r2);
  padding: 14px;
}
.tile strong{ display:block; font-size: 16px; }
.tile span{ display:block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.crumb{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  font-size: 13px; color: rgba(15,23,42,.70);
  margin: 6px 0 14px;
}
.crumb a{ color: rgba(15,23,42,.86); }
.crumb i{ font-style:normal; color: rgba(15,23,42,.40); }

.sec{ margin: 18px 0; }
.sec h2{ margin: 0 0 10px; font-size: 20px; }
.sub{ color: var(--muted); margin: 0 0 12px; }

/* Bento 区块 */
.bento{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.box{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r2);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.box h3{ margin:0 0 8px; font-size: 16px; }
.box p{ margin:0; color: rgba(15,23,42,.74); }
.span-7{ grid-column: span 7; }
.span-5{ grid-column: span 5; }
.span-6{ grid-column: span 6; }
.span-4{ grid-column: span 4; }
.span-12{ grid-column: span 12; }

.list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
}
.pic{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
}
.pic img{ width:100%; height:100%; object-fit:cover; min-height: 96px; }
.row h3{ margin:0 0 6px; font-size: 16px; }
.row p{ margin:0 0 10px; color: rgba(15,23,42,.74); }

.chips{ display:flex; flex-wrap:wrap; gap: 8px; }
.chip{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.76);
}
.chip.pro{ border-color: rgba(6,182,212,.25); background: rgba(6,182,212,.08); }
.chip.key{ border-color: rgba(109,40,217,.25); background: rgba(109,40,217,.08); }
.chip.warn{ border-color: rgba(245,158,11,.28); background: rgba(245,158,11,.10); }

/* 内容页：左侧正文 + 右侧“参数卡”，更像教程平台 */
.doc{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}
.paper{
  background: var(--paper);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r1);
  padding: 20px;
  box-shadow: var(--shadow);
}
.paper h1{ margin:0 0 10px; font-size: 28px; line-height: 1.25; }
.paper h2{ margin: 18px 0 10px; font-size: 18px; }
.paper p{ margin: 10px 0; color: rgba(15,23,42,.78); }
.paper ul{ margin: 10px 0 10px 18px; color: rgba(15,23,42,.78); }

.side{ display:grid; gap: 12px; }
.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r2);
  padding: 14px;
}
.card h3{ margin:0 0 8px; font-size: 14px; letter-spacing: .2px; color: rgba(15,23,42,.86); }
.card p{ margin:0; color: rgba(15,23,42,.74); }

.foot{
  border-top: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.55);
}
.foot-inner{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; flex-wrap:wrap;
  padding: 18px 0;
  color: rgba(15,23,42,.74);
}
.muted{ color: var(--muted); }

@media (max-width: 980px){
  .mast{ grid-template-columns: 1fr; }
  .shot img{ min-height: 230px; }
  .doc{ grid-template-columns: 1fr; }
  .finder{ min-width: 220px; }
  .row{ grid-template-columns: 140px 1fr; }
}
@media (max-width: 640px){
  .finder{ display:none; }
  .headline h1{ font-size: 28px; }
  .kpi{ grid-template-columns: 1fr; }
  .bento{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-7,.span-6,.span-5,.span-4,.span-12{ grid-column: span 6; }
  .row{ grid-template-columns: 1fr; }
  .pic img{ min-height: 180px; }
}
