- 官网源码归拢到 homepage/(index/pricing/license + docs.html + content/ + assets/ + docs-assets/),
删除程序内 go:embed 的 server/internal/{site,docs},后端只静态托管 homepage/dist 做本地预览
(dist 缺失时打 warn 日志,不再内置兜底;/home 别名保留供 GUI openExternal 使用)
- 文档 manifest 按现网口径重建:MCP 页标记 hidden(不再进侧栏与搜索)、补 快捷键 页、校正 updated 日期
- 新增独立静态页 /license:交付与激活四步(邮件交付授权码)、LIC- 在线 与 LICOFF- 离线 对比、
授权服务器 licence.rlwj.cn 通信范围说明、授权类型与价格、10 条授权 FAQ
- tools/homepage-build 支持 hidden 页与可选单页,产出 <name>.html 与 <name>/index.html
- 导航/页脚接入 /license,跨页锚点补 / 前缀,页脚底栏文案同步为静态站口径
- 产物零漂移:12 页文档与现网逐字节一致(仅 mcp 隐藏页自身侧栏/上下页行为随之收敛)
269 lines
14 KiB
CSS
269 lines
14 KiB
CSS
/* OpsxDB 官网 —— 营销单页样式(祖母绿 → 青家族色) */
|
||
:root {
|
||
--green: #059669;
|
||
--green-dark: #047857;
|
||
--green-soft: rgba(5, 150, 105, 0.08);
|
||
--cyan: #06b6d4;
|
||
--bg: #ffffff;
|
||
--bg-alt: #f5faf8;
|
||
--border: #e2ebe7;
|
||
--text: #101828;
|
||
--text-2: #52606d;
|
||
--text-3: #98a2b3;
|
||
--red: #dc2626;
|
||
--amber: #d97706;
|
||
--radius: 14px;
|
||
--shadow: 0 1px 3px rgba(6, 23, 18, .06), 0 12px 32px rgba(6, 23, 18, .08);
|
||
--mono: "JetBrains Mono", SFMono-Regular, Menlo, monospace;
|
||
}
|
||
* { box-sizing: border-box; scroll-behavior: smooth; }
|
||
body {
|
||
margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
|
||
color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.75;
|
||
}
|
||
a { color: var(--green-dark); text-decoration: none; }
|
||
h1,h2,h3 { letter-spacing: -0.015em; }
|
||
section[id] { scroll-margin-top: 76px; }
|
||
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
|
||
.wrap.narrow { max-width: 820px; }
|
||
/* ---------- SVG 图标 ---------- */
|
||
.i { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
|
||
.i-lg { width: 28px; height: 28px; vertical-align: middle; }
|
||
code { font-family: var(--mono); font-size: 13px; background: var(--green-soft); color: var(--green-dark); border-radius: 5px; padding: 1px 6px; }
|
||
|
||
/* ---------- 按钮 ---------- */
|
||
.btn {
|
||
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
||
border-radius: 10px; padding: 9px 20px; font-size: 14.5px; font-weight: 600; cursor: pointer;
|
||
transition: all .18s; border: 1px solid transparent; white-space: nowrap;
|
||
}
|
||
.btn-lg { padding: 12px 26px; font-size: 15.5px; }
|
||
.btn-primary { background: var(--green); color: #fff !important; box-shadow: 0 6px 18px rgba(5,150,105,.30); }
|
||
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
|
||
.btn-ghost { border-color: var(--border); color: var(--text) !important; background: #fff; }
|
||
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark) !important; }
|
||
.btn-inverse { background: #fff; color: var(--green-dark) !important; }
|
||
.btn-inverse:hover { transform: translateY(-1px); }
|
||
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff !important; }
|
||
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
|
||
|
||
/* ---------- 导航 ---------- */
|
||
.nav {
|
||
position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
|
||
backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
|
||
}
|
||
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
|
||
.brand { display: flex; align-items: center; gap: 9px; }
|
||
.brand-logo { display: inline-flex; }
|
||
.brand-logo svg { display: block; border-radius: 8px; }
|
||
.brand-name { font-size: 17px; font-weight: 800; color: var(--text) !important; }
|
||
.nav-links { display: flex; gap: 22px; }
|
||
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2) !important; }
|
||
.nav-links a:hover { color: var(--green-dark) !important; }
|
||
.nav-cta { margin-left: auto; }
|
||
|
||
/* ---------- Hero ---------- */
|
||
.hero {
|
||
position: relative; overflow: hidden;
|
||
background:
|
||
radial-gradient(1200px 500px at 85% -10%, rgba(5,150,105,.13), transparent 60%),
|
||
radial-gradient(800px 400px at -10% 10%, rgba(6,182,212,.09), transparent 55%),
|
||
linear-gradient(180deg, #f5fbf8 0%, #fff 100%);
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.hero-inner {
|
||
max-width: 1120px; margin: 0 auto; padding: 72px 24px 56px;
|
||
display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center;
|
||
}
|
||
.hero-badge {
|
||
display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green-dark);
|
||
background: #fff; border: 1px solid rgba(5,150,105,.25); border-radius: 999px; padding: 4px 14px;
|
||
box-shadow: 0 2px 8px rgba(5,150,105,.1); margin-bottom: 18px;
|
||
}
|
||
.hero h1 { font-size: 44px; line-height: 1.22; font-weight: 800; margin: 0 0 16px; }
|
||
.hero h1 em { font-style: normal; color: var(--green); }
|
||
.hero-sub { color: var(--text-2); font-size: 16px; margin: 0 0 26px; }
|
||
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
|
||
.hero-actions.center { justify-content: center; }
|
||
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
|
||
.hero-pills span {
|
||
font-size: 12px; color: var(--text-2); background: #fff; border: 1px solid var(--border);
|
||
padding: 3px 12px; border-radius: 999px;
|
||
}
|
||
|
||
/* ---------- 工作台 Mock(纯 CSS) ---------- */
|
||
.mock {
|
||
border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #1b2b26;
|
||
background: #0c1512; transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
|
||
}
|
||
.mock-titlebar {
|
||
display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
|
||
background: #0f1a16; border-bottom: 1px solid #1b2b26;
|
||
}
|
||
.mock-titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #37504a; }
|
||
.mock-titlebar i:nth-child(1) { background: #f87171; } .mock-titlebar i:nth-child(2) { background: #fbbf24; } .mock-titlebar i:nth-child(3) { background: #34d399; }
|
||
.mock-titlebar span { margin-left: 8px; color: #8aa39b; font-size: 11px; }
|
||
.mock-body { display: grid; grid-template-columns: 158px minmax(0,1fr); min-height: 330px; }
|
||
.mock-side { border-right: 1px solid #1b2b26; padding: 10px 8px; background: #0b1310; }
|
||
.mock-search { height: 22px; border-radius: 6px; background: #142019; margin-bottom: 10px; }
|
||
.mock-group { color: #8aa39b; font-size: 11px; padding: 8px 6px 3px; }
|
||
.mock-item { display: flex; align-items: center; gap: 6px; color: #a9c0b8; font-size: 11.5px; padding: 4px 6px; border-radius: 6px; }
|
||
.mock-item.active { background: rgba(5,150,105,.18); color: #6ee7b7; }
|
||
.mock-item.conn .dot { width: 7px; height: 7px; border-radius: 50%; background: #47564f; flex-shrink: 0; }
|
||
.mock-item.conn .dot.on { background: #34d399; }
|
||
.mi { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: .8; }
|
||
.mock-main { padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; }
|
||
.mock-tabs { display: flex; gap: 4px; }
|
||
.mock-tabs .tab { color: #5f7a70; font-size: 10.5px; padding: 4px 10px; border-radius: 6px 6px 0 0; }
|
||
.mock-tabs .tab.on { color: #6ee7b7; background: rgba(5,150,105,.12); border-bottom: 2px solid var(--green); }
|
||
.mock-sql { border: 1px solid #1b2b26; border-radius: 9px; padding: 10px 12px; background: #0b1310; }
|
||
.mock-sql pre {
|
||
margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.7; color: #c3d4cd; white-space: pre-wrap;
|
||
}
|
||
.mock-sql .kw { color: #6ee7b7; }
|
||
.mock-sql .str { color: #fcd34d; }
|
||
.mock-sql .num { color: #7dd3fc; }
|
||
.mock-grid {
|
||
display: grid; grid-template-columns: 52px 62px 1fr 68px; gap: 0 10px;
|
||
border: 1px solid #1b2b26; border-radius: 9px; padding: 8px 10px; background: #0b1310;
|
||
font-family: var(--mono); font-size: 10.5px; line-height: 1.9; color: #b7c8c1;
|
||
}
|
||
.mock-grid .gh { color: #7fe3c3; border-bottom: 1px solid #1b2b26; margin-bottom: 3px; font-weight: 600; }
|
||
.mock-grid .ok { color: #34d399; }
|
||
.mock-grid .warn { color: #fbbf24; }
|
||
.mock-status { display: flex; justify-content: space-between; color: #5f7a70; font-size: 10px; font-family: var(--mono); padding: 0 2px; }
|
||
.mock-status .ok { color: #34d399; }
|
||
|
||
/* ---------- 数据统计条 ---------- */
|
||
.stats { border-top: 1px solid var(--border); background: rgba(255,255,255,.7); }
|
||
.stats-inner {
|
||
max-width: 1120px; margin: 0 auto; padding: 18px 24px;
|
||
display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center;
|
||
}
|
||
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--green-dark); line-height: 1.2; }
|
||
.stat span { font-size: 12.5px; color: var(--text-2); }
|
||
|
||
/* ---------- 通用 Section ---------- */
|
||
.section { padding: 72px 0; }
|
||
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
|
||
.sec-title { font-size: 30px; font-weight: 800; text-align: center; margin: 0 0 8px; }
|
||
.sec-sub { text-align: center; color: var(--text-2); margin: 0 0 40px; }
|
||
.grid { display: grid; gap: 18px; }
|
||
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
|
||
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
|
||
|
||
/* ---------- 卡片 ---------- */
|
||
.card {
|
||
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
|
||
padding: 22px; box-shadow: 0 1px 2px rgba(6,23,18,.04); transition: all .18s;
|
||
}
|
||
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(5,150,105,.35); }
|
||
.card h3 { font-size: 16px; margin: 0 0 6px; }
|
||
.card p { color: var(--text-2); font-size: 13.5px; margin: 0; }
|
||
.card-icon { color: var(--green); margin-bottom: 10px; }
|
||
.card-icon .i-lg { width: 30px; height: 30px; }
|
||
.card.row { display: flex; gap: 14px; align-items: flex-start; }
|
||
.card.row .card-icon { margin: 2px 0 0; }
|
||
|
||
/* ---------- 驱动矩阵 ---------- */
|
||
.proto {
|
||
background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--green);
|
||
border-radius: 12px; padding: 18px 20px;
|
||
}
|
||
.proto h3 { margin: 0 0 6px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
|
||
.proto h3 .i { color: var(--green); width: 17px; height: 17px; }
|
||
.proto p { margin: 0; color: var(--text-2); font-size: 13.5px; }
|
||
.proto .port { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--green-dark); background: var(--green-soft); border-radius: 5px; padding: 1px 8px; white-space: nowrap; }
|
||
|
||
/* ---------- 徽章 / 脚注 ---------- */
|
||
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
|
||
.badges span {
|
||
background: #fff; border: 1px solid var(--border); border-radius: 999px;
|
||
padding: 6px 16px; font-size: 13px; font-weight: 500; color: var(--text);
|
||
}
|
||
.badges span.more { border-style: dashed; color: var(--text-2); }
|
||
.footnote { text-align: center; color: var(--text-3); font-size: 12.5px; margin: 10px 0 0; }
|
||
|
||
/* ---------- 形态卡(下载) ---------- */
|
||
.pricing.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1080px; margin: 0 auto; }
|
||
.price-card {
|
||
position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px;
|
||
padding: 30px 28px 26px; box-shadow: 0 1px 2px rgba(6,23,18,.04); display: flex; flex-direction: column;
|
||
}
|
||
.price-card.featured { border: 2px solid var(--green); box-shadow: 0 12px 36px rgba(5,150,105,.16); }
|
||
.price-card.enterprise {
|
||
background: linear-gradient(160deg, #0f1f1a 0%, #0c1512 70%);
|
||
border: 1px solid #22453a; box-shadow: 0 14px 40px rgba(12,21,18,.4);
|
||
}
|
||
.price-card.enterprise .plan { color: #8aa39b; }
|
||
.price-card.enterprise .price b { color: #fff; font-size: 34px; }
|
||
.price-card.enterprise .price span { color: #8aa39b; }
|
||
.price-card.enterprise .plan-sub { color: #8aa39b; }
|
||
.price-card.enterprise li { color: #a9c0b8; border-bottom-color: #1b2b26; }
|
||
.btn-dark { background: #fff; color: #0c1512 !important; }
|
||
.btn-dark:hover { transform: translateY(-1px); background: #e6f7f0; }
|
||
.plan-tag {
|
||
position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
|
||
background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
|
||
padding: 3px 14px; border-radius: 999px; white-space: nowrap;
|
||
}
|
||
.plan-tag.dark { background: #0c1512; border: 1px solid #22453a; }
|
||
.plan { font-size: 16px; font-weight: 700; color: var(--text-2); }
|
||
.price { margin: 8px 0 2px; }
|
||
.price b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
|
||
.price span { color: var(--text-3); font-size: 14px; margin-left: 4px; }
|
||
.plan-sub { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
|
||
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
|
||
.price-card li { font-size: 13.5px; color: var(--text-2); padding: 6px 0; border-bottom: 1px dashed var(--border); }
|
||
.price-card li:last-child { border-bottom: none; }
|
||
.price-card li code { font-size: 12px; }
|
||
.price-card .btn { width: 100%; }
|
||
|
||
/* ---------- FAQ ---------- */
|
||
.faq details {
|
||
background: #fff; border: 1px solid var(--border); border-radius: 12px;
|
||
padding: 16px 20px; margin-bottom: 12px;
|
||
}
|
||
.faq summary { font-weight: 600; cursor: pointer; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
|
||
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
|
||
.faq details[open] summary::after { content: "-"; }
|
||
.faq details p { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
|
||
|
||
/* ---------- CTA ---------- */
|
||
.cta {
|
||
background: linear-gradient(135deg, #047857 0%, #059669 55%, #0d9488 100%);
|
||
color: #fff; text-align: center; padding: 72px 24px;
|
||
}
|
||
.cta h2 { font-size: 32px; font-weight: 800; margin: 0 0 10px; }
|
||
.cta p { color: rgba(255,255,255,.85); margin: 0 0 28px; }
|
||
|
||
/* ---------- Footer ---------- */
|
||
.footer { background: #0c1512; color: #8aa39b; padding: 52px 0 0; font-size: 13.5px; }
|
||
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
|
||
.footer .brand-name { color: #fff !important; }
|
||
.footer .brand { display: flex; align-items: center; gap: 9px; }
|
||
.footer-desc { margin: 12px 0 0; font-size: 13px; line-height: 1.8; }
|
||
.footer h4 { color: #fff; font-size: 13.5px; margin: 4px 0 12px; }
|
||
.footer a { display: block; color: #8aa39b !important; padding: 4px 0; font-size: 13px; }
|
||
.footer a:hover { color: #fff !important; }
|
||
.footer-bar { border-top: 1px solid #1b2b26; text-align: center; padding: 18px; font-size: 12px; color: #5f7a70; }
|
||
|
||
/* ---------- 响应式 ---------- */
|
||
@media (max-width: 1020px) {
|
||
.hero-inner { grid-template-columns: 1fr; padding-top: 52px; }
|
||
.mock { transform: none; }
|
||
.g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
|
||
.g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
|
||
.pricing.three { grid-template-columns: minmax(0, 420px); }
|
||
.footer-grid { grid-template-columns: repeat(2, 1fr); }
|
||
.stats-inner { grid-template-columns: repeat(2, 1fr); }
|
||
}
|
||
@media (max-width: 680px) {
|
||
.nav-links { display: none; }
|
||
.hero h1 { font-size: 32px; }
|
||
.sec-title { font-size: 24px; }
|
||
.g3, .g4 { grid-template-columns: 1fr; }
|
||
.footer-grid { grid-template-columns: 1fr; }
|
||
.stats-inner { grid-template-columns: repeat(2, 1fr); }
|
||
}
|