/* 糖心vlog 企业官网（真正全新骨架）：左侧品牌轨 Rail + 右侧页面 */
:root{
  color-scheme: light;
  --bg: #f7f8fc;
  --paper:#ffffff;
  --ink:#0f172a;
  --muted: rgba(15,23,42,.70);
  --muted2: rgba(15,23,42,.56);
  --line: rgba(15,23,42,.10);
  --shadow: 0 18px 46px rgba(15,23,42,.10);
  --r1: 22px;
  --r2: 16px;
  --wrap: 1220px;
  --brand: #ff2d8d;
  --brand2:#4f46e5;
  --brand3:#00c2ff;
}

*{ 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(1000px 480px at 20% -10%, rgba(255,45,141,.14), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(79,70,229,.12), transparent 55%),
    radial-gradient(900px 520px at 55% 120%, rgba(0,194,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
  line-height: 1.65;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  overflow:hidden; clip: rect(1px,1px,1px,1px);
  white-space:nowrap;
}
.skip{
  position:absolute; left:-999px; top:10px;
  padding:10px 12px;
  background: var(--paper);
  border:1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.skip:focus{ left:12px; z-index: 99; }

/* 版式骨架：Rail + Page */
.shell{
  min-height: 100%;
  display:grid;
  grid-template-columns: 300px 1fr;
}
.rail{
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 16px;
  border-right: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(14px);
}
.rail-inner{ display:grid; gap: 14px; }
.rail-brand{
  display:flex; align-items:center; gap:12px;
  padding: 12px;
  border-radius: var(--r2);
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
}
.rail-mark{
  width: 44px; height:44px;
  border-radius: 16px;
  display:grid; place-items:center;
  font-weight: 900;
  letter-spacing:.6px;
  color:#fff;
  background: conic-gradient(from 210deg, var(--brand), var(--brand3), var(--brand2), var(--brand));
  box-shadow: 0 14px 36px rgba(255,45,141,.18);
}
.rail-brand small{ display:block; margin-top:2px; font-size: 12px; color: var(--muted2); }

.rail-nav{
  display:grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r1);
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
}
.rail-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 11px 12px;
  border-radius: 14px;
  border:1px solid transparent;
  color: rgba(15,23,42,.86);
}
.rail-nav a:hover{
  background: rgba(15,23,42,.03);
  border-color: rgba(15,23,42,.08);
}
.rail-nav a.on{
  background: linear-gradient(135deg, rgba(255,45,141,.12), rgba(0,194,255,.10));
  border-color: rgba(255,45,141,.22);
}
.rail-nav a span{ color: rgba(15,23,42,.56); font-size: 12px; }

.rail-search{
  padding: 12px;
  border-radius: var(--r1);
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
}
.rail-search form{ display:flex; gap:10px; }
.rail-search input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(15,23,42,.12);
  background: #fff;
  outline:none;
}
.rail-search input:focus{
  border-color: rgba(0,194,255,.55);
  box-shadow: 0 0 0 4px rgba(0,194,255,.12);
}
.rail-search button{
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  cursor:pointer;
}
.rail-search button:hover{ background: rgba(15,23,42,.03); }
.rail-note{
  padding: 12px;
  border-radius: var(--r1);
  border:1px dashed rgba(15,23,42,.18);
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: 13px;
}

.page{
  padding: 22px 22px 64px;
}
.wrap{
  width:100%;
  max-width: var(--wrap);
  margin:0 auto;
}

.crumb{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  font-size: 13px;
  color: rgba(15,23,42,.68);
  margin: 4px 0 14px;
}
.crumb a{ color: rgba(15,23,42,.86); }
.crumb i{ font-style:normal; color: rgba(15,23,42,.35); }

/* 首页：企业官网更“横向大片” */
.hero-slab{
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,.10);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 420px;
}
.hero-copy{
  padding: 26px 26px 22px;
}
.hero-copy h1{
  margin:0 0 10px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing:.2px;
}
.lead{ margin: 0; color: var(--muted); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 16px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color: rgba(15,23,42,.86);
}
.btn:hover{ background: rgba(15,23,42,.03); }
.btn.primary{
  border-color: rgba(255,45,141,.22);
  background: linear-gradient(135deg, rgba(255,45,141,.16), rgba(0,194,255,.12));
}
.hero-media{
  background:
    linear-gradient(135deg, rgba(255,45,141,.12), rgba(0,194,255,.10)),
    radial-gradient(520px 420px at 20% 10%, rgba(255,45,141,.16), transparent 60%);
  border-left: 1px solid rgba(15,23,42,.08);
  position: relative;
}
.hero-media img{
  position:absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
}

.kpi{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi .tile{
  background: rgba(255,255,255,.86);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--r2);
  padding: 14px;
}
.kpi .tile strong{ display:block; }
.kpi .tile span{ display:block; margin-top:6px; font-size: 13px; color: var(--muted2); }

.section{ margin: 20px 0; }
.section h2{ margin:0 0 10px; font-size: 20px; }
.sub{ margin:0 0 12px; color: var(--muted2); }

/* 企业内容区：不是卡片流，而是“模块矩阵” */
.mosaic{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 12px;
}
.block{
  border-radius: 22px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  padding: 16px;
}
.block h3{ margin:0 0 8px; font-size: 16px; }
.block 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; }

/* 列表页：企业“资源中心”列表（像目录表，不像卡片） */
.hub{
  border-radius: 26px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hub-head{
  display:flex; flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.hub-head h2{ margin:0; font-size: 18px; }
.hub-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.76);
  font-size: 12px;
}
.chip.key{ border-color: rgba(255,45,141,.22); background: rgba(255,45,141,.08); }
.chip.pro{ border-color: rgba(0,194,255,.22); background: rgba(0,194,255,.08); }
.hub-list{ display:grid; }
.row{
  display:grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(15,23,42,.08);
  align-items: center;
}
.row:first-child{ border-top: none; }
.row .thumb{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
}
.row .thumb img{ width:100%; height:90px; object-fit: cover; }
.row h3{ margin:0 0 6px; font-size: 15px; }
.row p{ margin:0; color: rgba(15,23,42,.72); font-size: 13px; }
.meta{
  display:grid;
  gap: 6px;
  justify-items: end;
  color: rgba(15,23,42,.62);
  font-size: 12px;
}

/* 内容页：正文更像企业白皮书 */
.doc{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}
.paper{
  border-radius: 28px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.94);
  padding: 22px;
  box-shadow: var(--shadow);
}
.paper h1{ margin:0 0 10px; font-size: 28px; line-height:1.24; }
.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); }
.aside{ display:grid; gap: 12px; }
.card{
  border-radius: 22px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  padding: 16px;
}
.card h3{ margin:0 0 8px; font-size: 14px; color: rgba(15,23,42,.86); letter-spacing:.2px; }
.card p{ margin:0; color: rgba(15,23,42,.74); }
.card .img{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  margin-top: 10px;
}

.foot{
  margin-top: 22px;
  border-top: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.55);
}
.foot-inner{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(15,23,42,.72);
}

/* 移动端：Rail 变底部导航（非常不一样） */
.bottom{
  display:none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  border-radius: 18px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 10px;
}
.bottom nav{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
}
.bottom a{
  text-align:center;
  padding: 10px 8px;
  border-radius: 14px;
  border:1px solid transparent;
  color: rgba(15,23,42,.78);
  font-size: 12px;
}
.bottom a.on{
  background: rgba(255,45,141,.10);
  border-color: rgba(255,45,141,.18);
}

@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; }
  .rail{ display:none; }
  .page{ padding: 18px 14px 86px; }
  .hero-slab{ grid-template-columns: 1fr; min-height: 0; }
  .hero-media{ min-height: 260px; border-left: none; border-top: 1px solid rgba(15,23,42,.08); }
  .hero-media img{ position: static; inset:auto; width:100%; height: 260px; border-radius: 0; border:none; }
  .kpi{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .doc{ grid-template-columns: 1fr; }
  .row{ grid-template-columns: 1fr; }
  .row .thumb img{ height: 180px; }
  .meta{ justify-items: start; }
  .mosaic{ grid-template-columns: repeat(6, minmax(0,1fr)); }
  .span-7,.span-6,.span-5,.span-4,.span-12{ grid-column: span 6; }
  .bottom{ display:block; }
}
