*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-warm: #FAF7F2;
  --bg-warm-dark: #F2EDE4;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #AEAEB2;
  --accent: #C8945C;
  --accent-dark: #B07D45;
  --accent-light: #F5EDE0;
  --accent-bg: #FDF8F3;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --max-width: 1200px;
  --nav-height: 52px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --font-logo: "HuXiaoBoSaoBaoTi", cursive;
}

/* ===== Custom Font ===== */
@font-face {
  font-family: "HuXiaoBoSaoBaoTi";
  src: url("../fonts/HuXiaoBoSaoBaoTi.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 101;
  width: 0%; transition: width 0.1s linear;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

::selection { background: var(--accent-light); color: var(--text); }

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

h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 600; letter-spacing: -1.5px; line-height: 1.1; }
h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.8px; line-height: 1.15; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }

.section-label {
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc {
  font-size: 17px; color: var(--text-secondary); max-width: 560px; line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ===== Navigation ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--border);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 30px; font-weight: 400; letter-spacing: 1px; color: var(--text);
  flex-shrink: 0; font-family: var(--font-logo);
  -webkit-text-stroke: 0.4px var(--text);
}
.nav-logo span { color: var(--accent); font-family: var(--font-logo); -webkit-text-stroke: 0.4px var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary); font-size: 13px;
  font-weight: 450; transition: color 0.2s; padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--text); color: #fff; border: none;
  padding: 7px 20px; border-radius: 20px; font-size: 12px;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  font-family: inherit; flex-shrink: 0;
}
.nav-cta:hover { background: #333; transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); margin: 5px 0; transition: 0.3s; border-radius: 1px; }

/* ===== Buttons ===== */
.btn-primary {
  background: var(--text); color: #fff; border: none;
  padding: 13px 30px; border-radius: 28px; font-size: 15px;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  font-family: inherit; text-decoration: none; display: inline-block;
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-primary.accent { background: var(--accent); }
.btn-primary.accent:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
  padding: 13px 30px; border-radius: 28px; font-size: 15px;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  font-family: inherit; text-decoration: none; display: inline-block;
  letter-spacing: -0.1px;
}
.btn-secondary:hover { border-color: var(--text); }

/* ===== Footer ===== */
footer {
  background: var(--bg-warm); border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { font-size: 22px; font-weight: 400; letter-spacing: 1px; margin-bottom: 12px; font-family: var(--font-logo); -webkit-text-stroke: 0.4px var(--text); }
.footer-brand span { color: var(--accent); font-family: var(--font-logo); -webkit-text-stroke: 0.4px var(--accent); }
.footer-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.3px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-secondary); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: 12px; color: var(--text-tertiary);
}
.footer-bottom a { color: var(--text-tertiary); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

/* ===== Scroll Animation ===== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--text); color: #fff; border: none; cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); transition: all 0.3s;
  pointer-events: none; font-family: inherit;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: #333; }

/* ===== Page hero (subpages) ===== */
.page-hero {
  padding: 140px 0 72px; text-align: center;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px; gap: 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { font-size: 15px; padding: 10px 0; }
  .nav-cta { font-size: 11px; padding: 6px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-desc { font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════════════════════
 * 表单与「联系 / 申请」页的版式（2026-10-30 搬进来）
 *
 * ★ 这一段原本写在 `contact.html` 的内联 `<style>` 里，只服务那一页。
 *   而「免费申请使用」（`apply.html`）用的是**同一套表单** ——
 *   两份各写一遍，第一件事就是分叉：改了边框颜色只改了一处，
 *   而症状是"两个页面的输入框长得不一样"，谁都不会报。
 *   ⇒ 提到这里，两个页面共用一份。
 *
 * ⚠️ 类名（`.form-row` / `.form-group` / `.btn-submit` / `.info-card` …）
 *   一律**保持原样**，一个字没改 —— 搬家不是重构。
 * ══════════════════════════════════════════════════════════════════════════ */

.contact-section { padding: 64px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.contact-form {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 40px;
}
.contact-form h2 { font-size: 24px; margin-bottom: 8px; }
.contact-form .subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px;
  color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: inherit;
  transition: border-color 0.2s; background: var(--bg);
  color: var(--text); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; margin-top: 8px;
  background: var(--accent); color: #fff; border: none;
  padding: 14px; border-radius: 28px; font-size: 15px;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  font-family: inherit; letter-spacing: -0.1px;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-info { padding-top: 20px; }
.info-card {
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 20px;
}
.info-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.info-label { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 4px; }

/* ⚠️ 原 HTML 里写成 `trust-budges`（样式名是 badges），所以那块一直没样式。
   已在 contact.html 里改正拼写，这里保留正名。 */
.trust-badges {
  margin-top: 32px; padding: 24px;
  background: var(--bg-warm); border-radius: var(--radius); border: 1px solid var(--border);
}
.trust-badges h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.trust-badges p { font-size: 12px; color: var(--text-secondary); line-height: 1.7; }

/* ── 申请页（`apply.html`）专用 ───────────────────────────────────────────
   ★ 一律带 `ap-` 前缀：这是官网里唯一一块业务表单，
     与 `.contact-*` 分开，免得将来改申请页时动到联系页。 */
.ap-required { color: var(--accent); margin-left: 2px; }
.ap-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; line-height: 1.6; }
.ap-optional { font-size: 12px; color: var(--text-tertiary); font-weight: 400; margin-left: 4px; }

/* 蜜罐：真人看不见，脚本会填。不能用 display:none —— 有些脚本认识它。 */
.ap-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* 结果区（成功 / 失败共用一个容器，靠 data-state 切） */
.ap-result { display: none; padding: 28px 24px; border-radius: var(--radius); margin-top: 20px; }
.ap-result[data-state="ok"] {
  display: block; background: var(--accent-bg); border: 1px solid var(--accent-light);
}
.ap-result[data-state="err"] {
  display: block; background: #FDF3F3; border: 1px solid #F3D6D6;
}
.ap-result h3 { font-size: 17px; margin-bottom: 8px; }
.ap-result p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.ap-result .ap-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--accent-dark); letter-spacing: 0.5px;
}

/* 申请页左栏「说明」列表 */
.ap-steps { list-style: none; margin: 20px 0 0; padding: 0; }
.ap-steps li {
  position: relative; padding-left: 34px; margin-bottom: 20px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.ap-steps li::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent-dark);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ap-steps li b { color: var(--text); font-weight: 600; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 22px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   平台登录入口（design/40 §14）
   ★ 只在官网做一个"入口"，**不做登录表单** —— 票必须写在门店子域上，
     放在父域会让 A 店员工的登录态在 B 店也有效（跨店串号，不报错、最难查）。
   ══════════════════════════════════════════════════════════════════════════ */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 桌面：右上角 ghost 按钮（次要），不抢新客注意力 */
.nav-login {
  font-size: 12px; color: var(--text-secondary); text-decoration: none;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.nav-login:hover { color: var(--text); border-color: var(--border-strong); }

/* 移动端专用的那一份（菜单内，桌面不渲染） */
.nav-li-login { display: none; }

@media (max-width: 768px) {
  .nav-login { display: none; }
  .nav-li-login {
    display: block; padding-bottom: 12px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   门店码入口页（app.easyzone.cloud → go.html）
   ══════════════════════════════════════════════════════════════════════════ */
.go-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 64px 24px 48px; background: var(--bg);
}
.go-card { width: 100%; max-width: 460px; }
/* ★★ 商标：这里**只给外层容器**排间距，绝不碰 .nav-logo 本身。
   2026-10-31 阳哥纠正：Easyzone 是注册商标，字体与样式不许改。
   上一版在这里写过 `.go-card .nav-logo { display; margin }` —— 已删。 */
.go-brand { margin-bottom: 34px; display: flex; }
   /* ↑ flex 不是装饰：官网上 logo 是 nav 的 flex 子项（display 会被 blockify），
      这里对齐成同样的盒模型，否则两处差 6px 高（2026-10-31 实测 48 vs 42）。 */

.go-title { font-size: 25px; font-weight: 400; letter-spacing: -0.3px; margin-bottom: 10px; }
.go-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 26px; }

.go-field label {
  display: block; font-size: 12px; color: var(--text-secondary);
  margin-bottom: 8px; letter-spacing: .3px;
}
.go-input {
  width: 100%; padding: 13px 16px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); transition: border-color .2s;
}
.go-input:focus { outline: none; border-color: var(--text); }
.go-input::placeholder { color: var(--text-tertiary); }

.go-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; line-height: 1.6; }

.go-actions { display: flex; gap: 10px; margin-top: 22px; }
.go-btn {
  flex: 1; display: block; text-align: center; padding: 13px 14px;
  border-radius: 10px; font-size: 14px; font-family: inherit; cursor: pointer;
  border: 1px solid var(--text); background: var(--text); color: #fff;
  transition: background .2s, color .2s; text-decoration: none;
}
.go-btn:hover { background: #333; border-color: #333; }
.go-btn.ghost { background: #fff; color: var(--text); }
.go-btn.ghost:hover { background: var(--bg-warm); }

.go-err { color: #C0392B; font-size: 13px; margin-top: 12px; min-height: 20px; }

.go-foot {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-tertiary); line-height: 1.9;
}
.go-foot a { color: var(--accent); }

@media (max-width: 480px) {
  .go-actions { flex-direction: column; }
  .go-title { font-size: 22px; }
}
