/* 青石云产品更新日志 · H5 友好页 */
:root {
  --ink: #152033;
  --muted: #5a6578;
  --line: #dce3ee;
  --bg: #f0f5fb;
  --card: #ffffff;
  --accent: #44a0ff;
  --accent-deep: #2080ff;
  --accent-soft: #e8f3ff;
  --ok: #2f7d4a;
  --ok-soft: #e8f5ec;
  --warn: #9a6b1f;
  --warn-soft: #f8f0e0;
  --new: #1a6bb5;
  --new-soft: #e6f1fb;
  --ship: #5b4d8a;
  --ship-soft: #f0edf7;
  --shadow: 0 8px 28px rgba(21, 32, 51, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 0% -10%, #d9ebff 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, #e4eef8 0%, transparent 50%),
    linear-gradient(180deg, #f5f9fd 0%, var(--bg) 40%, #eef3f9 100%);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover { color: #fff; filter: brightness(1.05); }

.hero {
  margin-bottom: 28px;
  animation: rise .55s ease both;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 32px);
  overflow: auto;
  animation: rise .55s ease .05s both;
}

.toc-title {
  margin: 0 0 8px;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  border-left: 2px solid transparent;
}

.toc a i { font-size: 15px; color: var(--accent); }

.toc a:hover,
.toc a.is-active {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.main-col { min-width: 0; }

.cat-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  animation: rise .55s ease .08s both;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(32, 128, 255, 0.12);
}

.cat-card i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 16px;
}

.cat-card strong {
  font-size: 14px;
  line-height: 1.3;
}

.cat-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.section {
  margin-bottom: 36px;
  scroll-margin-top: 20px;
  animation: rise .6s ease both;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-head h2 i {
  color: var(--accent-deep);
}

.section-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.section-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(68, 160, 255, 0.15));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin: 0 0 16px;
  padding: 16px 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease, border-color .2s;
}

.tl-item.is-in {
  opacity: 1;
  transform: none;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.tl-date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent-deep);
}

.tl-ver {
  padding: 1px 8px;
  border-radius: 999px;
  background: #f3f6fa;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.tl-mod {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}

.tl-mod:hover {
  filter: brightness(0.97);
  text-decoration: underline;
}

.tl-mod i { font-size: 13px; }

.tl-mod-inline {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.tl-mod-inline:hover {
  text-decoration: underline;
}

.tl-mod-sep {
  margin: 0 0.35em;
  color: var(--muted);
  font-weight: 500;
}

.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.tag-新功能,
.tag-new { background: var(--new-soft); color: var(--new); }
.tag-优化,
.tag-improve { background: var(--ok-soft); color: var(--ok); }
.tag-发布,
.tag-ship { background: var(--ship-soft); color: var(--ship); }
.tag-AI { background: #fff4e8; color: #b15b12; }

.tl-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.tl-items {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 14px;
}

.tl-items li { margin: 4px 0; }

.page-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.faq-block {
  margin: 32px 0 24px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.faq-block h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.faq-item + .faq-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.summary-block {
  margin: 24px 0 0;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.summary-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.summary-block p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.summary-block a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.summary-block a:hover {
  text-decoration: underline;
}

.seo-nav {
  margin: 8px 0 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}

.seo-nav p { margin: 0; line-height: 1.7; }
.seo-nav a { margin: 0 2px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(21, 32, 51, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 50;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-mask {
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 51, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}

.share-mask.open { display: flex; }

.share-sheet {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  padding: 20px 18px 16px;
  box-shadow: 0 16px 40px rgba(21, 32, 51, 0.2);
  animation: sheet-up .28s ease;
}

.share-sheet h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.share-sheet p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.share-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.share-url {
  word-break: break-all;
  font-size: 12px;
  color: var(--muted);
  background: #f5f8fc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .toc {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
  }
  .toc-title { width: 100%; margin-bottom: 4px; }
  .toc a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 10px;
  }
  .toc a.is-active,
  .toc a:hover { border-left: 0; border-bottom-color: var(--accent); }
  .section-head { flex-direction: column; align-items: stretch; }
  .section-actions { width: 100%; }
  .section-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .wrap { padding: 16px 14px 88px; }
  .hero h1 { font-size: 24px; }
  .cat-nav { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 18px; }
  .tl-item::before { left: -17px; width: 10px; height: 10px; }
}
