/* ============================================================
   便利店进销存系统 · 产品官网
   修改配色只需改下面的 CSS 变量
   ============================================================ */
:root {
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-soft: #eff6ff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 46px rgba(37, 99, 235, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #60a5fa;
    --brand-2: #38bdf8;
    --brand-soft: #14243c;
    --ink: #e6edf7;
    --ink-2: #b3c0d3;
    --ink-3: #94a3b8;
    --bg: #0b1220;
    --bg-soft: #111a2b;
    --line: #22304a;
    --card: #141d2e;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 46px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: .2px; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .92em;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================ 顶部导航 ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); /* 不支持 color-mix 的浏览器回退 */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 16px; font-weight: 700; white-space: nowrap; }
.brand-slogan {
  font-size: 11px; color: var(--ink-3); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu > a {
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  white-space: nowrap;
}
.nav-menu > a:hover { color: var(--brand); text-decoration: none; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--card); border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: var(--brand); background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn .ico, .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.is-pending { opacity: .75; }

/* ============================ 首屏 ============================ */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(1000px 420px at 12% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(700px 380px at 95% 0%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start;
}
.badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero-title { font-size: 40px; letter-spacing: .3px; margin-bottom: 16px; }
.hero-desc { color: var(--ink-2); font-size: 17px; margin-bottom: 20px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-tags li {
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  padding: 5px 12px; border-radius: 999px; font-size: 13px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 两个系统入口卡片 */
.hero-entries {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; box-shadow: var(--shadow);
}
.entries-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 2px 4px 14px;
}
.entries-title { font-size: 16px; }
.entries-hint { font-size: 12px; color: var(--ink-3); }
.entry-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-soft); color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.entry-card + .entry-card { margin-top: 12px; }
.entry-card:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: var(--brand); box-shadow: var(--shadow-lg);
}
.entry-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand); color: #fff;
}
.entry-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.entry-customer .entry-icon { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.entry-staff .entry-icon { background: linear-gradient(135deg, #2563eb, #6366f1); }
.entry-body { min-width: 0; flex: 1; }
.entry-body h3 { font-size: 16px; margin-bottom: 4px; }
.entry-body p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.entry-tags li {
  font-size: 12px; color: var(--ink-3); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}
.entry-go {
  flex: none; align-self: center; font-size: 13px; font-weight: 600; color: var(--brand);
}
.entry-go i { font-style: normal; display: inline-block; transition: transform .18s ease; }
.entry-card:hover .entry-go i { transform: translateX(3px); }
.entries-note { margin: 14px 4px 2px; font-size: 12.5px; color: var(--ink-3); }

/* 占位/失效链接标记 */
.pending-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d;
  vertical-align: middle;
}
.is-pending { border-style: dashed !important; }
.unreachable-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px;
  font-size: 11px; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line);
}

/* ============================ 通用区块 ============================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover, .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3, .feature h3 { font-size: 17px; margin-bottom: 8px; }
.card p, .feature p { color: var(--ink-2); font-size: 14.5px; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================ APP 下载 ============================ */
.app-card {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow);
}
.app-main { display: flex; gap: 20px; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; flex: none; box-shadow: var(--shadow); }
.app-meta { min-width: 0; }
.app-name { font-size: 22px; margin-bottom: 6px; }
.app-desc { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.app-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 20px; }
.app-info div { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.app-info dt { color: var(--ink-3); font-size: 13px; flex: none; width: 76px; }
.app-info dd { font-size: 14px; font-weight: 600; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.app-tip { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }

.app-side { border-left: 1px solid var(--line); padding-left: 26px; }
.changelog-title { font-size: 15px; margin-bottom: 10px; }
.changelog li {
  position: relative; padding-left: 16px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px;
}
.changelog li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand);
}

/* ============================ 底部 ============================ */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 52px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-brand strong { font-size: 16px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col em { font-size: 13.5px; color: var(--ink-2); font-style: normal; }
.footer-col a:hover { color: var(--brand); }
.contact-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.contact-list span { flex: none; width: 58px; font-size: 12.5px; color: var(--ink-3); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}
.footer-icp a { color: inherit; text-decoration: none; }
.footer-icp a:hover { color: var(--brand); text-decoration: underline; }

/* ============================ Toast 提示 ============================ */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 14px; line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; z-index: 100; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ 响应式 ============================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 34px; }
  .app-card { grid-template-columns: 1fr; }
  .app-side {
    border-left: 0; border-top: 1px solid var(--line);
    padding-left: 0; padding-top: 22px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 20px 16px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-menu > a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 12px; justify-content: center; }
  .hero { padding: 36px 0 44px; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 15.5px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .app-card { padding: 20px; }
  .app-main { flex-direction: column; gap: 14px; }
  .app-icon { width: 66px; height: 66px; }
  .app-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .btn-lg { width: 100%; }
  .hero-actions .btn-lg { width: auto; flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .brand-slogan { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .entry-card { flex-direction: column; gap: 10px; }
  .entry-go { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .nav-toggle, .toast, .hero-actions { display: none !important; }
  body { background: #fff; }
}
