/* 铭将软件分享小站 · 公共样式 */

:root {
  --red: #ff2442;
  --red-dark: #d81b36;
  --ink: #16181d;
  --ink-2: #4b5057;
  --ink-3: #8b9098;
  --line: #ebebef;
  --bg: #fbfbfc;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- 顶部广告位走马灯 ---------- */
.adbar {
  background: #16181d; color: #fff;
  overflow: hidden; position: relative;
  border-bottom: 1px solid #0d0e11;
}
.adbar-track {
  display: flex; align-items: center;
  width: max-content;
  animation: adslide 46s linear infinite;
  will-change: transform;
}
.adbar:hover .adbar-track { animation-play-state: paused; }
@keyframes adslide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ad-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0; font-size: 13px; color: #e9eaee;
  white-space: nowrap; letter-spacing: .2px;
}
.ad-item b {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 4px;
  background: var(--red); color: #fff;
}
.ad-item i { font-style: normal; color: #8b9098; }
.ad-sep { padding: 0 14px; font-size: 12px; color: #3d4148; }
@media (prefers-reduced-motion: reduce) { .adbar-track { animation: none; } }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(251, 251, 252, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.logo-img {
  width: 32px; height: 32px; flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(16, 18, 22, .12));
}
.logo-text { font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; font-size: 13px;
  transition: border-color .16s, box-shadow .16s;
}
.nav-cta:hover { border-color: #dcdce2; box-shadow: 0 4px 14px rgba(16,18,22,.06); }

/* ---------- 通用版心 ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---------- 首屏 ---------- */
.hero { padding: clamp(44px, 8vw, 84px) 0 clamp(30px, 5vw, 52px); text-align: center; }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: #fff1f3; color: var(--red-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  border: 1px solid #ffd8de;
}
h1 {
  margin: 20px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: 800;
}
.sub {
  margin: 16px auto 0; max-width: 620px;
  color: var(--ink-2); font-size: clamp(15px, 1.6vw, 17px);
  text-wrap: balance;
}
.meta-row {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 12px;
  font-size: 13px; color: var(--ink-3);
}
.meta-row b { color: var(--ink-2); font-weight: 600; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: #d5d6db; }

/* ---------- 按钮 ---------- */
.cta-row {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(255, 36, 66, .26);
  transition: transform .14s, box-shadow .18s, background .18s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255,36,66,.3); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .16s, color .16s;
}
.btn-ghost:hover { border-color: #dcdce2; color: var(--ink); }
.btn-sm {
  padding: 9px 18px; font-size: 13.5px;
  box-shadow: none;
}
.btn-sm.btn-primary { background: var(--red); box-shadow: 0 6px 16px rgba(255,36,66,.22); }
.btn-sm.btn-ghost { padding: 9px 16px; }
.tip { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 软件列表 ---------- */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 12px; margin: 0 0 16px;
}
.sec-head h2 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.2px; }
.sec-head span { font-size: 12.5px; color: var(--ink-3); }

.apps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-bottom: clamp(40px, 7vw, 68px);
}
.app-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(16,18,22,.03);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.app-card:hover {
  border-color: #e0e1e6;
  box-shadow: 0 12px 32px rgba(16,18,22,.07);
  transform: translateY(-2px);
}
.app-head { display: flex; align-items: flex-start; gap: 13px; }
.app-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 13px; object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}
.app-title { min-width: 0; }
.app-title h3 { margin: 0 0 3px; font-size: 16px; font-weight: 750; letter-spacing: -.2px; }
.app-title p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; line-height: 1.75; padding: 1px 8px; border-radius: 999px;
  background: #f3f4f7; color: var(--ink-2); white-space: nowrap;
}
.tag.red { background: #fff1f3; color: var(--red-dark); }
.app-desc { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.app-meta {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 12px; color: var(--ink-3);
  padding-top: 4px;
}
.app-meta b { color: var(--ink-2); font-weight: 600; }
.app-actions { display: flex; align-items: center; gap: 10px; }
.app-actions .btn-primary, .app-actions .btn-ghost { flex: none; }

.app-card.more {
  align-self: start;
  border-style: dashed; background: transparent;
  align-items: center; justify-content: center; text-align: center;
  color: var(--ink-3); box-shadow: none;
}
.app-card.more:hover { transform: none; box-shadow: none; border-color: #dcdce2; }

/* ---------- 特性卡片 ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 8px 0 clamp(36px, 6vw, 60px);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(16,18,22,.03);
}
.card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff1f3; color: var(--red);
  font-size: 17px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.card p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }

/* ---------- 界面速览走马灯 ---------- */
.shots { padding: 0 0 clamp(40px, 7vw, 68px); }
.rail {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 16px; }
.slide {
  flex: 0 0 calc(100% - 64px); scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,18,22,.03);
}
.slide-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafafb;
}
.slide-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e4e5ea; }
.slide-bar span { margin-left: 6px; font-size: 11.5px; color: var(--ink-3); }
.slide-body { padding: 16px; display: grid; gap: 10px; align-content: start; }

.srow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scap { font-size: 12px; color: var(--ink-3); }
.scap b { color: var(--ink-2); font-weight: 600; }
.chip {
  font-size: 11px; line-height: 1.7; padding: 1px 8px; border-radius: 999px;
  background: #f3f4f7; color: var(--ink-2); white-space: nowrap;
}
.chip.red { background: #fff1f3; color: var(--red-dark); }
.chip.dark { background: #16181d; color: #fff; }
.chip.ok { background: #eefaf1; color: #12803f; }
.mini {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px;
  background: #fff; display: grid; gap: 7px;
}
.mini.sel { border-color: #ffc9d2; box-shadow: 0 0 0 3px #fff1f3; }
.mini b { font-size: 13px; font-weight: 700; }
.av {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
}
.av.dk { background: #16181d; }
.bar { height: 5px; border-radius: 999px; background: #f0f1f4; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--red); }
.bar > i.dk { background: #16181d; }
.thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.thumb { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); }
.t1 { background: linear-gradient(135deg, #ffe7de, #f7cfc0); }
.t2 { background: linear-gradient(135deg, #e9eef7, #ccd7e8); }
.t3 { background: linear-gradient(135deg, #f3ece2, #ded1bd); }
.t4 { background: linear-gradient(135deg, #f0eef7, #d6d1e8); }
.t5 { background: linear-gradient(135deg, #e7f0ee, #c9dcd7); }
.t6 { background: linear-gradient(135deg, #fbe9ef, #eecdd7); }
.t7 { background: linear-gradient(135deg, #eef0e8, #d3d8c6); }
.thumb.on { outline: 2px solid var(--red); outline-offset: 1px; }
.lines { display: grid; gap: 6px; }
.lines i { height: 8px; border-radius: 999px; background: #f0f1f4; display: block; }
.lines i.w1 { width: 92%; } .lines i.w2 { width: 78%; } .lines i.w3 { width: 60%; }
.task { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.task time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.task .tt { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-mini { border: 1px solid var(--line); border-radius: 10px; padding: 9px; background: #fff; }
.stat-mini span { display: block; font-size: 10.5px; color: var(--ink-3); }
.stat-mini b { font-size: 15px; font-weight: 750; letter-spacing: -.3px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 62px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.chart i { flex: 1; border-radius: 3px 3px 2px 2px; background: #ffd2da; }
.chart i.hi { background: var(--red); }

.rail-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.rail-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 15px; line-height: 1; cursor: pointer;
  transition: border-color .16s, color .16s, box-shadow .16s;
}
.rail-btn:hover { border-color: #dcdce2; color: var(--ink); box-shadow: 0 4px 14px rgba(16,18,22,.06); }
.dots { display: flex; align-items: center; gap: 7px; }
.dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: #dcdde2; cursor: pointer; transition: width .2s, background .2s;
}
.dots button.on { width: 18px; background: var(--red); }

/* ---------- 更新日志 ---------- */
.changelog {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: clamp(44px, 7vw, 72px);
}
.cl-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.cl-title h2 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.2px; }
.cl-title span { font-size: 12.5px; color: var(--ink-3); }
#notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
#notes li {
  position: relative; padding-left: 20px;
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
#notes li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); opacity: .55;
}
.sha { margin: 20px 0 0; font-size: 11.5px; color: #a8acb4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

/* ---------- 返回条 ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3); margin-bottom: 6px;
}
.back-link:hover { color: var(--ink-2); }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}
footer a { color: var(--ink-3); }
footer a:hover { color: var(--ink-2); text-decoration: underline; }
footer .frow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
footer .sep { color: #d5d6db; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
  .apps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .cta-row .btn-primary, .cta-row .btn-ghost { width: 100%; }
  .slide { flex: 0 0 calc(100% - 26px); }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .sg4 { grid-template-columns: 1fr 1fr; }
}
