/* ============================================================
   智慧糖医 H5 · 样式
   设计口径：
     1) 375 宽为基准，最大 480 居中（桌面预览时不至于铺满屏）；
     2) 只用系统字体 —— 公众号里加载自定义字体等于多等 1 秒白屏；
     3) 主色医疗蓝 #1E6FD9：品牌色系为蓝，饱和度比「科技蓝」压一点，长时间看不刺眼；
     4) 所有可点区域 ≥ 44px 高，拇指能点中。
   ============================================================ */

:root {
  /* 主色：医疗蓝。比常见的「科技蓝」压一点饱和度，长时间看不刺眼 */
  --brand: #1e6fd9;
  --brand-700: #14539f;
  --brand-500: #3a88ec;
  --brand-100: #e8f1fd;
  --brand-50: #f2f7fe;
  --accent: #e08a2e;
  --accent-100: #fdf1e3;
  --ink: #152238;
  --ink-2: #5a6884;
  --ink-3: #91a0b6;
  --line: #e7edf6;
  --bg: #f4f7fb;
  --card: #ffffff;
  --danger: #cf4444;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(22, 58, 120, 0.07);
  --shadow-sm: 0 2px 10px rgba(22, 58, 120, 0.06);
  --tab-h: 58px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #e3eaf4;
  overscroll-behavior-y: none;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

#app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------- 顶部 ---------- */
.hero {
  position: relative;
  padding: calc(18px + env(safe-area-inset-top)) 20px 54px;
  background: linear-gradient(148deg, var(--brand-500) 0%, var(--brand) 52%, var(--brand-700) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -66px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  right: 36px;
  top: 68px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.hero-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}

.hero-hi {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero-sub {
  margin: 0;
  font-size: 13px;
  opacity: 0.82;
}

.avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 游客头像放品牌 logo：白底 + contain，避免蓝色圆标在深蓝底上糊成一团 */
.avatar--brand {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.avatar--brand img {
  object-fit: contain;
  width: 88%;
  height: 88%;
}

/* ---------- 页面容器 ---------- */
.page {
  padding: 0 16px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));
  animation: pageIn 0.26s ease-out;
}

.page--pull {
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

@keyframes pageIn {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card + .card {
  margin-top: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.card-title .more {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-3);
}

/* ---------- 六宫格 ---------- */
.grid6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.grid-item:active {
  background: var(--brand-50);
}

.grid-ico {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint, var(--brand-100));
  color: var(--ic, var(--brand));
}

.grid-ico svg {
  width: 23px;
  height: 23px;
}

.grid-label {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.2;
}

.t-kepu {
  --tint: #e8f1fd;
  --ic: #1e6fd9;
}
.t-assess {
  --tint: #fdf1e3;
  --ic: #d98325;
}
.t-meeting {
  --tint: #e7edfb;
  --ic: #3d5bd9;
}
.t-academy {
  --tint: #efebfb;
  --ic: #6b52c9;
}
.t-reports {
  --tint: #e4f3fa;
  --ic: #2b87a8;
}
.t-advisor {
  --tint: #fceaf1;
  --ic: #c74b7a;
}
.t-devices {
  --tint: #e7edfb;
  --ic: #3d5bd9;
}
.t-charity {
  --tint: #fdede9;
  --ic: #d1683f;
}

/* ---------- 列表 ---------- */
.list {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 56px;
  position: relative;
}

.row + .row::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.row:active {
  background: var(--brand-50);
}

.row-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint, var(--brand-100));
  color: var(--ic, var(--brand));
}

.row-ico svg {
  width: 18px;
  height: 18px;
}

.row-main {
  flex: 1;
  min-width: 0;
  display: block;
}

.row-title {
  font-size: 14.5px;
  display: block;
}

.row-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  display: block;
}

.row-val {
  font-size: 13px;
  color: var(--ink-2);
}

.chev {
  flex: none;
  color: #c1cee0;
}

.chev svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 26px 10px 22px;
  color: var(--ink-3);
}

.empty-ico {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-ico svg {
  width: 24px;
  height: 24px;
}

.empty-text {
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 按钮 ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.btn[disabled] {
  background: #c5d3e6;
  color: #fff;
  pointer-events: none;
}

.btn--ghost {
  background: var(--brand-100);
  color: var(--brand);
}

.btn--line {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.btn--sm {
  min-height: 38px;
  font-size: 13.5px;
  border-radius: 10px;
  width: auto;
  padding: 0 14px;
}

/* ---------- 表单 ---------- */
.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.field-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font-size: 15.5px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: var(--brand);
  background: #fff;
}

.field-input::placeholder {
  color: #b5c1d3;
}

.field-input--err {
  border-color: var(--danger);
  background: #fff7f7;
}

.field-err {
  min-height: 16px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--danger);
  line-height: 1.4;
}

.field-row {
  display: flex;
  gap: 8px;
}

.field-row .field-input {
  flex: 1;
}

.field-row .btn {
  flex: none;
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  height: 48px;
  font-size: 14px;
}

/* 分段选择 */
.seg {
  display: flex;
  gap: 8px;
}

.seg-item {
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
  font-size: 14.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}

.seg-item.is-on {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand);
  font-weight: 500;
}

/* 勾选 */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 20px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}

.check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid #c3cfe2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.check svg {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}

.agree.is-on .check {
  background: var(--brand);
  border-color: var(--brand);
}

.agree.is-on .check svg {
  opacity: 1;
}

.agree a {
  color: var(--brand);
}

/* ---------- 注册步骤 ---------- */
.reg-head {
  padding: calc(26px + env(safe-area-inset-top)) 22px 6px;
}

.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.step {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: #dbe4f1;
}

.step.is-on {
  background: var(--brand);
}

.reg-title {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.reg-sub {
  margin: 0 0 26px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.reg-body {
  padding: 0 22px 30px;
}

.hint {
  display: flex;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--accent-100);
  color: #9a6220;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.hint--ok {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid rgba(21, 34, 56, 0.06);
}

.tabbar[hidden] {
  display: none;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #93a2b5;
  font-size: 10.5px;
  position: relative;
}

.tab svg {
  width: 23px;
  height: 23px;
}

.tab.is-on {
  color: var(--brand);
}

.tab.is-on::after {
  content: "";
  position: absolute;
  top: 0;
  width: 18px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: var(--brand);
}

/* ---------- 二级页头 ---------- */
.subhead {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 12px;
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.subhead h1 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding-right: 34px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 50%;
}

.icon-btn:active {
  background: rgba(0, 0, 0, 0.05);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
}

/* ---------- 状态标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--brand-100);
  color: var(--brand-700);
}

.chip--grey {
  background: #edf1f8;
  color: #7d8ba3;
}

.chip--amber {
  background: var(--accent-100);
  color: #9a6220;
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 28px);
  transform: translate(-50%, 10px);
  z-index: 90;
  max-width: 78vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(21, 34, 56, 0.9);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 骨架 ---------- */
.skel {
  border-radius: 8px;
  background: linear-gradient(90deg, #eaf0f9 25%, #f5f9ff 37%, #eaf0f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------- 通用 ---------- */
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.mt24 {
  margin-top: 24px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}
.section-label {
  margin: 20px 4px 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 进度条（我的页计数） */
.stats4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-num {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* 大卡片（医学教育 / 慢病服务入口） */
.big-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.big-card:active {
  background: #fbfcfe;
}

.big-ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint, var(--brand-100));
  color: var(--ic, var(--brand));
}

.big-ico svg {
  width: 26px;
  height: 26px;
}

.big-main {
  flex: 1;
  min-width: 0;
  display: block;
}

.big-title {
  font-size: 16px;
  font-weight: 600;
  display: block;
}

.big-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
  display: block;
}

@media (min-width: 520px) {
  body {
    background: #dde5f0;
  }
  #app {
    box-shadow: 0 0 40px rgba(22, 58, 120, 0.14);
  }
}

/* ============ 二级 Tab 页（医学教育 / 慢病服务 / 我的） ============ */
.hero--slim {
  padding: calc(20px + env(safe-area-inset-top)) 20px 48px;
}

.hero--slim .hero-hi {
  font-size: 19px;
}

.hero--slim .hero-sub {
  margin-top: 3px;
}

.big-card + .big-card {
  margin-top: 12px;
}

.stat-card {
  padding: 18px 8px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
}

.profile-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(150deg, #3a88ec, #14539f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 17px;
  font-weight: 600;
}

.profile-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

/* 建设中页 */
.build-hero {
  text-align: center;
  padding: 30px 16px 22px;
}

.build-ico {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint, var(--brand-100));
  color: var(--ic, var(--brand));
}

.build-ico svg {
  width: 34px;
  height: 34px;
}

.build-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.build-sub {
  margin: 0 auto;
  max-width: 260px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.plan-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

.footer-note {
  padding: 22px 8px 6px;
  text-align: center;
  font-size: 11.5px;
  color: #a3b0c4;
  line-height: 1.7;
}

/* ============ 加载 / 错误 ============ */
.boot-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 90px 26px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.boot-inline p {
  margin: 0;
  line-height: 1.6;
}

.spin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--brand-100);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.boot-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fdecec;
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
}

/* 返回上一步（注册第 2 步） */
.link-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 0 0 14px;
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

.link-back svg {
  width: 14px;
  height: 14px;
}

/* 注册页品牌头 */
.reg-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.reg-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.reg-brand span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--brand);
}

/* ============================================================
   科普：分类条 / 列表 / 详情
   ============================================================ */

.page--flush {
  padding-top: 10px;
}

/* 分类条贴在二级页头下面：长列表往下翻时还能换分类，不用回到顶部。
   top 必须是页头高度（52px），写 0 会被页头压住，等于没吸顶。 */
.art-cats {
  position: sticky;
  top: 52px;
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: rgba(244, 247, 251, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.art-cats::-webkit-scrollbar {
  display: none;
}

.art-chip {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.art-chip i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
}

.art-chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}

.art-chip.is-on i {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 首篇大卡 ---------- */
.art-hero {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.art-hero-bg {
  position: absolute;
  inset: 0;
}

.art-hero > span {
  position: relative;
  display: block;
}

.art-hero-tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.art-hero-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.art-hero-sub {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-hero-meta {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ---------- 列表 ---------- */
.art-list {
  margin-top: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.art-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  position: relative;
}

.art-row + .art-row::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: var(--line);
}

.art-row:active {
  background: var(--brand-50);
}

.art-row-main {
  flex: 1;
  min-width: 0;
  display: block;
}

.art-row-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.art-row-sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.art-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-size: 11.5px;
  color: #a3b0c4;
}

.art-row-meta em {
  font-style: normal;
  color: var(--brand);
  background: var(--brand-50);
  padding: 1px 7px;
  border-radius: 999px;
}

.art-row-thumb {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  overflow: hidden;
}

.art-thumb--img {
  background: var(--brand-50);
}

.art-thumb--blank svg {
  width: 26px;
  height: 26px;
  opacity: 0.88;
}

.art-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 置顶标 */
.art-top {
  display: inline-block;
  margin-right: 5px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--accent-100);
  color: #9a6220;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 17px;
  vertical-align: 1px;
}

.btn--more {
  margin: 14px auto 0;
  width: auto;
  padding: 0 26px;
  display: flex;
}

.list--flat {
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

/* ---------- 详情 ---------- */
.preview-bar {
  position: sticky;
  top: 52px;
  z-index: 26;
  padding: 8px 14px;
  background: var(--accent-100);
  color: #9a6220;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.art-doc {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
}

.art-doc-cat {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 11.5px;
}

.art-doc-title {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.art-doc-sub {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.art-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}

.art-content {
  padding-top: 6px;
  font-size: 16px;
  line-height: 1.85;
  color: #24334d;
  word-wrap: break-word;
}

.art-content p {
  margin: 14px 0;
}

.art-content h2 {
  margin: 26px 0 10px;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.art-content h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.art-content ul,
.art-content ol {
  margin: 12px 0;
  padding-left: 22px;
}

.art-content li {
  margin: 7px 0;
}

.art-content strong {
  font-weight: 600;
  color: var(--ink);
}

.art-content blockquote {
  margin: 16px 0;
  padding: 11px 14px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 14.5px;
  line-height: 1.7;
}

.art-content blockquote p {
  margin: 0;
}

.art-content img {
  width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 10px;
}

.art-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.art-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 13.5px;
}

.art-content th,
.art-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.art-content th {
  background: var(--brand-50);
  font-weight: 600;
}

/* 作者写的提示块：只放行这三个 class */
.art-content .art-note,
.art-content .art-tip,
.art-content .art-warn {
  margin: 18px 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  background: #f7f9fd;
  border: 1px dashed #dbe4f1;
}

.art-content .art-tip {
  background: var(--brand-50);
  border-color: #cfe0f8;
}

.art-content .art-warn {
  background: var(--accent-100);
  border-color: #f3d9b6;
  color: #8a5720;
}

.art-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.art-source {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* 平台级免责：比作者写的「说明块」更轻，避免两段几乎一样的话上下叠在一起 */
.art-disclaimer {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #a3b0c4;
}

.art-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- 登录未开通的说明页 ---------- */
/* 网站形态下「我的」还没有身份可展示，给一页说清楚现状，
   比把人踢到一个空白授权页要好：用户至少知道看什么还能看。 */
.gate {
  padding: 30px 22px 24px;
  text-align: center;
}

.gate-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: contain;
}

.gate-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.gate-sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.gate-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gate-note {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #a3b0c4;
}
