diff --git a/web/assets/legal-toc.js b/web/assets/legal-toc.js new file mode 100644 index 0000000..c536b71 --- /dev/null +++ b/web/assets/legal-toc.js @@ -0,0 +1,28 @@ +// 法律/信息页左侧目录滚动高亮 +(function () { + var toc = document.getElementById('legalToc'); + if (!toc) return; + var links = Array.prototype.slice.call(toc.querySelectorAll('a')); + var sections = links + .map(function (a) { return document.getElementById(a.getAttribute('href').slice(1)); }) + .filter(Boolean); + if (!sections.length || !window.IntersectionObserver) return; + + var active = null; + function setActive(id) { + if (id === active) return; + active = id; + links.forEach(function (a) { + a.classList.toggle('active', a.getAttribute('href') === '#' + id); + }); + } + + var observer = new IntersectionObserver(function (entries) { + entries.forEach(function (e) { + if (e.isIntersecting) setActive(e.target.id); + }); + }, { rootMargin: '-15% 0px -75% 0px', threshold: 0 }); + + sections.forEach(function (s) { observer.observe(s); }); + setActive(sections[0].id); +})(); diff --git a/web/assets/legal.css b/web/assets/legal.css new file mode 100644 index 0000000..b525e75 --- /dev/null +++ b/web/assets/legal.css @@ -0,0 +1,105 @@ +/* ========================================================================= + 岩美 — 信息/法律页通用样式(隐私政策 / 服务条款 / 系统要求) + 单列 prose 布局,复用 color.css 的 token,独立于 app 原型。 + ========================================================================= */ + +.legal-hero { + background: + radial-gradient(720px 360px at 82% -10%, rgba(37,99,172,0.07), transparent 60%), + linear-gradient(180deg, var(--gray-50) 0%, var(--gray-0) 100%); + border-bottom: 1px solid var(--border-subtle); + padding: 56px 0 40px; +} +.legal-hero .container { max-width: 860px; } +.legal-breadcrumb { + display: flex; align-items: center; gap: 8px; + font-size: var(--text-sm); color: var(--fg-subtle); margin-bottom: 18px; +} +.legal-breadcrumb a { color: var(--fg-muted); text-decoration: none; } +.legal-breadcrumb a:hover { color: var(--brand-500); } +.legal-breadcrumb .sep { color: var(--gray-300); } +.legal-hero h1 { + font-size: var(--text-4xl); font-weight: var(--weight-bold); + letter-spacing: var(--tracking-cn-display); color: var(--brand-900); + margin: 0 0 12px; line-height: var(--leading-tight); +} +.legal-hero .lead { + font-size: var(--text-lg); color: var(--fg-muted); + line-height: var(--leading-normal); margin: 0; +} +.legal-meta { + display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; + font-size: var(--text-sm); color: var(--fg-subtle); + background: var(--gray-0); border: 1px solid var(--border-default); + border-radius: var(--radius-pill); padding: 6px 14px; +} +.legal-meta .icon { width: 15px; height: 15px; color: var(--brand-500); } + +/* prose 主体 */ +.legal-body { padding: 48px 0 80px; } +.legal-body .container { max-width: 860px; } +.prose { color: var(--fg-default); font-size: var(--text-lg); line-height: var(--leading-loose); } +.prose > :first-child { margin-top: 0; } +.prose h2 { + font-size: var(--text-2xl); font-weight: var(--weight-semibold); + color: var(--brand-900); letter-spacing: var(--tracking-cn-display); + margin: 44px 0 14px; padding-top: 8px; + scroll-margin-top: 80px; +} +.prose h3 { + font-size: var(--text-xl); font-weight: var(--weight-semibold); + color: var(--gray-900); margin: 28px 0 10px; +} +.prose p { margin: 0 0 16px; color: var(--fg-default); } +.prose a { color: var(--fg-link); text-decoration: none; border-bottom: 1px solid var(--brand-200); } +.prose a:hover { border-bottom-color: var(--brand-500); } +.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; } +.prose li { margin: 6px 0; } +.prose strong { font-weight: var(--weight-semibold); color: var(--gray-900); } +.prose code { + font-family: var(--font-mono); font-size: 0.9em; + background: var(--gray-100); padding: 1px 6px; border-radius: var(--radius-sm); color: var(--gray-800); +} +.prose hr { border: none; border-top: 1px solid var(--border-subtle); margin: 36px 0; } +.prose blockquote { + margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--brand-300); + background: var(--brand-50); border-radius: 0 var(--radius-md) var(--radius-md) 0; + color: var(--fg-muted); font-size: var(--text-md); +} + +/* 表格(系统要求页大量用到) */ +.prose table { + width: 100%; border-collapse: collapse; margin: 0 0 24px; + font-size: var(--text-md); border: 1px solid var(--border-default); + border-radius: var(--radius-lg); overflow: hidden; +} +.prose thead th { + background: var(--gray-50); color: var(--gray-700); font-weight: var(--weight-semibold); + text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border-default); +} +.prose tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--fg-default); } +.prose tbody tr:last-child td { border-bottom: none; } +.prose tbody tr:nth-child(even) { background: var(--gray-25); } + +/* 章节锚导航(隐私/条款页左侧) */ +.legal-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 48px; align-items: start; } +.legal-toc { position: sticky; top: 80px; } +.legal-toc .toc-title { + font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); + color: var(--fg-subtle); margin-bottom: 12px; +} +.legal-toc a { + display: block; font-size: var(--text-sm); color: var(--fg-muted); + text-decoration: none; padding: 7px 12px; border-radius: var(--radius-md); + border-left: 2px solid transparent; line-height: var(--leading-snug); +} +.legal-toc a:hover { background: var(--gray-50); color: var(--brand-600); } +.legal-toc a.active { color: var(--brand-600); background: var(--brand-50); border-left-color: var(--brand-500); font-weight: var(--weight-medium); } + +@media (max-width: 860px) { + .legal-layout { grid-template-columns: 1fr; gap: 0; } + .legal-toc { display: none; } + .legal-hero { padding: 40px 0 30px; } + .legal-hero h1 { font-size: var(--text-3xl); } + .prose { font-size: var(--text-md); } +} diff --git a/web/privacy.njk b/web/privacy.njk new file mode 100644 index 0000000..99d05a9 --- /dev/null +++ b/web/privacy.njk @@ -0,0 +1,83 @@ +--- +layout: base.njk +title: 隐私政策 +description: 岩美酒库管理系统隐私政策,说明我们如何收集、使用、存储与保护您的门店与个人信息。 +pageExtraCss: /assets/legal.css +permalink: /privacy/ +--- + + + + + + diff --git a/web/system-requirements.njk b/web/system-requirements.njk new file mode 100644 index 0000000..983d275 --- /dev/null +++ b/web/system-requirements.njk @@ -0,0 +1,31 @@ +--- +layout: base.njk +title: 系统要求 +description: 岩美酒库管理系统各平台(Web、Windows、macOS、iOS、Android)的系统要求与推荐配置。 +pageExtraCss: /assets/legal.css +permalink: /system-requirements/ +--- + + + + diff --git a/web/terms.njk b/web/terms.njk new file mode 100644 index 0000000..556d185 --- /dev/null +++ b/web/terms.njk @@ -0,0 +1,80 @@ +--- +layout: base.njk +title: 服务条款 +description: 岩美酒库管理系统服务条款,约定您与岩美科技之间使用本服务的权利与义务。 +pageExtraCss: /assets/legal.css +permalink: /terms/ +--- + + + + + +