/* ============================================================
   FigAlchemy — clean artistic theme
   PC wide-screen first: outer container 1900px, min font 15px
   ============================================================ */
:root {
  --ink: #26241f;
  --ink-soft: #5a564d;
  --paper: #faf8f4;
  --card: #ffffff;
  --line: #e7e1d4;
  --accent: #8a5a3b;        /* warm bronze */
  --accent-soft: #f3e9df;
  --gold: #c9a86a;
  --me: #2a6df4;
  --client: #e8772e;
  --ok: #1e9e6a;
  --shadow: 0 2px 14px rgba(60, 50, 30, .07);

  /* 字形兜底链：系统字体全部落空时，由自托管 Noto 接手，避免豆腐块。
     字体文件只在「页面出现了该文字 + 设备缺该文字字体」时才下载，
     由 assets/js/font-fallback.js 按需注入对应 CSS。 */
  --fb-serif:
    "FigSerifSC", "FigSerifJP", "FigSansKR",
    "FigArabic", "FigHebrew", "FigThai", "FigDevanagari", "FigBengali",
    "FigTamil", "FigTelugu", "FigKannada", "FigMalayalam", "FigGujarati",
    "FigGurmukhi", "FigSinhala", "FigMyanmar", "FigKhmer", "FigLao",
    "FigGeorgian", "FigArmenian", "FigEthiopic", "FigGreek", serif;
  --fb-sans:
    "FigSerifSC", "FigSerifJP", "FigSansKR",
    "FigArabic", "FigHebrew", "FigThai", "FigDevanagari", "FigBengali",
    "FigTamil", "FigTelugu", "FigKannada", "FigMalayalam", "FigGujarati",
    "FigGurmukhi", "FigSinhala", "FigMyanmar", "FigKhmer", "FigLao",
    "FigGeorgian", "FigArmenian", "FigEthiopic", "FigGreek", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", var(--fb-serif);
  font-size: 15px;
  line-height: 1.65;
}
.sans { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 1900px; max-width: 100vw; margin: 0 auto; padding: 0 60px; }

/* ---------- Navbar (brand left, links left-aligned after brand, lang/currency right) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, .96);
  border-bottom: 1px solid var(--line);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
}
.nav .wrap { display: flex; align-items: center; position: relative; padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--ink); font-family: Georgia, "Noto Serif SC", var(--fb-serif); }
.brand .dot { color: var(--gold); }
.nav-links { display: flex; gap: 30px; margin-left: 46px; }
.nav-links a { color: var(--ink-soft); font-size: 16px; letter-spacing: .4px; white-space: nowrap; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-decoration: none; border-bottom-color: var(--gold); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-tools label { color: var(--ink-soft); margin-right: 6px; }
.nav-tools select {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 10px; font-size: 15px; cursor: pointer;
}

/* dropdown (定制手办) — parent groups process/pricing/queue/faq */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; color: var(--ink-soft); font-size: 16px; letter-spacing: .4px;
  white-space: nowrap; background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; padding-bottom: 3px;
}
.nav-dropdown-toggle::after {
  content: ""; width: 5px; height: 5px; margin-bottom: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown-toggle.active { color: var(--accent); border-bottom-color: var(--gold); }
.nav-dropdown.open .nav-dropdown-toggle::after { transform: rotate(225deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 8px; min-width: 168px; padding: 8px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 120;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a {
  color: var(--ink-soft); font-size: 15px; white-space: nowrap; text-decoration: none;
  border-bottom: none; padding: 9px 20px;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active {
  color: var(--accent); background: #f5f1e8; border-bottom: none;
}

/* ---------- Page head ---------- */
.page-head { padding: 58px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }

.page-head h1 { font-size: 40px; margin: 0 0 10px; font-weight: 600; }
.page-head p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding: 70px 0 60px; }
.hero h1 { font-size: 58px; line-height: 1.15; margin: 0 0 18px; font-weight: 600; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 30px; }
.hero-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: var(--accent-soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn {
  display: inline-block; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-size: 16px; padding: 12px 30px; border-radius: 999px; cursor: pointer;
  border: 1.6px solid var(--accent); transition: all .25s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #744a2e; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { color: var(--accent); background: transparent; margin-left: 14px; }
.btn-ghost:hover { background: var(--accent-soft); text-decoration: none; }

/* ---------- Sections / cards ---------- */
section.block { padding: 44px 0; }
h2.sec { font-size: 32px; font-weight: 600; margin: 0 0 8px; }
p.sec-sub { color: var(--ink-soft); margin: 0 0 26px; font-size: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; box-shadow: var(--shadow); transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 21px; margin: 0 0 10px; }
.card p { color: var(--ink-soft); margin: 0; }
.card .num { font-size: 15px; color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }

/* ---------- Portfolio grid ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.works-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.works-grid.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 22px; }
.work-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .3s ease;
  display: block; color: var(--ink);
}
.work-card:hover { transform: translateY(-5px); text-decoration: none; }
.work-card .thumb { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; background: var(--accent-soft); overflow: hidden; position: relative; border-radius: 14px; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.work-card:hover .thumb img { transform: scale(1.05); }

/* info overlay anchored at the bottom-left corner, inside the image */
.work-card .info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 34px 16px 14px; text-align: left; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.42) 52%, rgba(0,0,0,0) 100%);
}
.work-card .info .cat-line { margin-bottom: 5px; }
.work-card .info h3 { margin: 0; font-size: 18px; font-weight: 600; color: #fff; line-height: 1.2; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-card .info h3.en { font-size: 16px; }
.work-card .info .meta { margin-top: 5px; font-size: 13px; color: #f0e6d6; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }
.work-card .info .tag {
  display: inline-block; flex: none; padding: 2px 10px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 600;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
}

/* floating hover-zoom preview for portfolio cards (renamed to avoid clashing with .img-zoom on the detail page) */
.pf-zoom {
  position: fixed; z-index: 10000; pointer-events: none; display: none;
  background: #fff; padding: 8px; border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5); border: 1px solid rgba(0,0,0,.12);
}
.pf-zoom img { display: block; max-width: 700px; max-height: 700px; width: auto; height: auto; border-radius: 8px; object-fit: contain; }

/* type filter bar above the works grid */
.work-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; }
.work-filter .flabel { color: var(--ink-soft); font-size: 15px; margin-right: 4px; }
.work-filter button {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  padding: 7px 18px; border-radius: 999px; font-size: 15px; cursor: pointer;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); transition: all .2s ease;
}
.work-filter button:hover { border-color: var(--gold); }
.work-filter button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }
.pagination button {
  font-size: 15px; padding: 8px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; color: var(--ink-soft);
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination .pg { font-size: 16px; color: var(--ink-soft); }

/* ---------- Detail page ---------- */
/* 左列与大图同宽（600px），右侧文字紧贴大图；总宽 1474 保证右列文字行长与原设计一致 */
.detail-grid { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 54px; align-items: start; max-width: 1474px; }
.carousel { position: relative; width: 100%; max-width: 600px; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--accent-soft); box-shadow: var(--shadow); }
.carousel img.main { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.carousel .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(250,248,244,.92); font-size: 20px; color: var(--ink); box-shadow: var(--shadow);
}
.carousel .prev { left: 14px; } .carousel .next { right: 14px; }
/* 缩略图条：整体限制在大图宽度内（左列 600px），超出部分横向滚动，不溢出到文字列 */
.thumbs-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; width: 100%; }
.thumb-nav {
  flex: 0 0 26px; width: 26px; height: 110px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink-soft); font-size: 20px; line-height: 1; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.thumb-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.thumb-nav:disabled { opacity: .28; cursor: default; }
.thumbs {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumbs img { flex: 0 0 110px; width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.on { border-color: var(--gold); }
.detail-side h2 { font-size: 36px; margin: 0 0 16px; }
.spec { border-top: 1px solid var(--line); }
.spec .row { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec .k { width: 160px; color: var(--ink-soft); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); font-size: 15px; }
.spec .v { font-size: 16px; }
.detail-side .desc { margin-top: 26px; font-size: 16px; color: var(--ink-soft); }

/* ---------- Process page ---------- */
.anchor-bar {
  position: sticky; top: 66px; z-index: 90; background: var(--paper);
  border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: 10px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.anchor-bar a {
  font-size: 15px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px; background: var(--card);
}
.anchor-bar a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
/* on process.html drop the default head gap so the space above the pills
   (page-head border -> pills) equals the space below them (pills -> bar border) */
body[data-page="process"] .page-head { margin-bottom: 0; }
.module { padding: 40px 0 26px; border-bottom: 1px dashed var(--line); scroll-margin-top: 130px; }
.module h2 { font-size: 30px; margin: 0 0 18px; font-weight: 600; }
.module h2 .no { color: var(--gold); margin-right: 10px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); font-size: 20px; }
.module p, .module li { font-size: 16px; color: var(--ink-soft); }
.module p { white-space: pre-line; }
.back-top {
  display: inline-block; margin-top: 18px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-size: 15px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; background: var(--card);
}
.back-top:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Flowchart (pure HTML/CSS) ---------- */
.flow { display: flex; flex-direction: column; align-items: center; margin: 30px 0 10px; }
.fbox {
  flex: 1 1 auto; width: auto; max-width: none; margin: 0; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 16px 26px; text-align: center; box-shadow: var(--shadow);
  font-size: 16px; position: relative; z-index: 2;
}
.fbox b { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); color: var(--gold); margin-right: 10px; }

/* ---- each step = [time block | content box] laid out in a row ---- */
.fstep { display: flex; align-items: stretch; justify-content: center; gap: 18px; width: 100%; max-width: 1000px; }
.flow-wrap { width: 100%; max-width: 1000px; }
.ftime {
  flex: 0 0 150px; border-radius: 14px; padding: 12px 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; font-weight: 700; font-size: 16px; line-height: 1.35;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.fstep.me .ftime { background: #6b665d; }      /* gray = 我方 */
.fstep.client .ftime { background: #2f6fdb; }  /* blue = 买家 */

/* ---- who does this step: badge inside the box ---- */
.fstep.me .fbox { transform: none; text-align: left; padding-left: 160px; }
.fstep.client .fbox { transform: none; text-align: right; padding-right: 110px; }
.who-badge {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center;
  color: #fff;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-size: 16px; font-weight: 700; letter-spacing: .5px; white-space: nowrap;
  padding: 0 18px;
}
.fstep.me .who-badge { left: -1.5px; background: #6b665d; border-radius: 14px 0 0 14px; }
.fstep.client .who-badge { right: -1.5px; background: #2f6fdb; border-radius: 0 14px 14px 0; }

.farrow { width: 3px; height: 34px; background: #b3ab99; position: relative; margin: 2px auto; z-index: 5; }
.farrow::after {
  content: ""; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid #b3ab99;
}

/* ---------- Timeline bar ---------- */
.tl-wrap { margin: 34px 0 8px; }
.tl-bar { display: flex; width: 100%; height: 58px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tl-seg { position: relative; }
.tl-seg .pct { position: absolute; top: 4px; left: 8px; font-size: 13px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); opacity: .8; color: #fff; }
.tl-labels { display: flex; margin-top: 0; }
.tl-cell { position: relative; padding-top: 26px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }
.tl-cell::before { /* connector line */
  content: ""; position: absolute; top: 0; left: 12px; width: 2px; height: 26px; background: #b3ab99;
}
.tl-cell .txt { font-size: 15px; color: var(--ink-soft); line-height: 1.45; max-width: 250px; }

/* warning note placed right below the commission flow chart */
.flow-note {
  width: 1000px; max-width: 100%; margin: 26px auto 18px; padding: 14px 20px;
  background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 12px;
  color: #8a6d3b; font-size: 15px; line-height: 1.8; text-align: justify;
}

/* ---------- Pricing ---------- */
.video-slot {
  width: 1280px; max-width: 100%; height: 720px; border-radius: 16px; background: #26241f; color: #b7ae9c;
  display: flex; align-items: center; justify-content: center; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-size: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  margin: 0 auto;
}
.video-slot iframe { width: 100%; height: 100%; border: 0; }
.sim-center { text-align: center; margin: 44px 0 30px; }
.est-warn {
  width: 1280px; max-width: 100%; margin: 0 auto 22px; padding: 14px 20px;
  background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 12px;
  color: #8a6d3b; font-size: 15px; line-height: 1.8; text-align: justify;
}
.est-warn a { color: #b8762f; font-weight: 600; text-decoration: underline; }
.sim-btn {
  width: 600px; height: 150px; font-size: 28px; border-radius: 24px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #8a5a3b, #c9a86a); color: #fff; letter-spacing: 2px;
  box-shadow: 0 6px 20px rgba(138, 90, 59, .35); transition: transform .25s ease;
}
.sim-btn:hover { transform: translateY(-2px); }
/* pricing: tighten the oversized gap between the video box and the estimator hint */
body[data-page="pricing"] .page-head + section.block { padding-bottom: 16px; }
body[data-page="pricing"] .sim-center { margin-top: 0; padding-top: 16px; }
.expl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.expl-grid .card h3 { font-size: 20px; }

/* ---------- Quote modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30, 26, 18, .55); z-index: 300;
  display: none; align-items: center; justify-content: center;
}
.modal-mask.open { display: flex; animation: fade .25s ease; }
.modal {
  width: 860px; max-width: 92vw; background: var(--paper); border-radius: 20px;
  padding: 40px 46px; box-shadow: 0 24px 70px rgba(0,0,0,.35); position: relative;
}
.modal .close {
  position: absolute; top: 16px; right: 20px; font-size: 26px; line-height: 1; cursor: pointer;
  color: var(--ink-soft); background: none; border: none;
}
.modal h3 { margin: 0 0 24px; font-size: 26px; font-weight: 600; }
.modal .opts { display: flex; flex-direction: column; gap: 14px; }
.modal .opt-btn {
  text-align: left; font-size: 16px; padding: 15px 22px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); transition: all .2s ease;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.modal .opt-btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(4px); }
.modal .opt-btn .price-tag { color: var(--accent); font-weight: 600; white-space: nowrap; }
/* courier option: one rounded box wrapping both the option row and its description */
.modal .opt-item {
  display: flex; flex-direction: column; gap: 9px; width: 100%; text-align: left;
  font-size: 16px; padding: 15px 22px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); transition: all .2s ease;
}
.modal .opt-item:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(4px); }
.modal .opt-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal .opt-head .price-tag { color: var(--accent); font-weight: 600; white-space: nowrap; }
.modal .opt-desc {
  font-size: 14px; line-height: 1.65; color: var(--ink-soft);
  border-top: 1px dashed var(--line); padding-top: 9px;
}
.modal .total-line { font-size: 22px; margin: 26px 0 10px; }
.modal .total-line b { font-size: 34px; color: var(--accent); margin-left: 0; }
.modal .note { font-size: 15px; color: var(--ink-soft); background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin-top: 8px; }
/* trailing action buttons (contact link / previous / start over) share one row */
.modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
/* prominent contact CTA on the final total step (PC: pushed to the right; secondary buttons stay left) */
.modal-actions .contact-btn { font-weight: 700; margin-left: auto; box-shadow: 0 8px 22px rgba(140, 94, 60, .32); }
.modal-actions .contact-btn:hover { box-shadow: 0 10px 26px rgba(140, 94, 60, .4); }
.modal .btn-ghost { margin-left: 0; }
.modal .again { margin-top: 0; margin-left: 0; display: block; width: fit-content; }
.modal .prev { margin-top: 0; margin-left: 0; display: block; width: fit-content; }

/* ---------- country picker inside the estimator modal ---------- */
/* restyles the shared .ss component (css/search-select.css) to match .opt-btn */
.modal .ss-wrap { margin-top: 2px; }
.modal .ss { max-width: none; }
.modal .ss-trigger {
  padding: 15px 22px; border-radius: 12px; background: var(--card);
  border: 1.5px solid var(--line); font-size: 16px; color: var(--ink);
  transition: all .2s ease;
}
.modal .ss-trigger:hover { border-color: var(--accent); background: var(--accent-soft); }
.modal .ss-panel { border-radius: 12px; border-color: var(--line); }
.modal .ss-input { padding: 13px 20px; font-size: 15px; }
.modal .ss-list li { padding: 11px 20px; font-size: 16px; }
.modal .ss-list li:hover, .modal .ss-list li.on { background: var(--accent-soft); }
.modal .ss-zh { color: var(--ink); }
.modal .ss-en { color: var(--ink-soft); }

/* ---------- price breakdown on the final step ---------- */
.modal .bd {
  margin: 16px 0 4px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.modal .bd-row {
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 15px; color: var(--ink-soft); padding: 4px 0;
}
.modal .bd-row span:last-child { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Queue table ---------- */
.queue-notice {
  margin: 22px 0 18px; padding: 13px 18px;
  background: #fdf6e7; border: 1px solid #ecd9a8; border-left: 4px solid #c9a24a;
  border-radius: 10px; color: #6b5a33; font-size: 15px; line-height: 1.6;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
}
.queue-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.queue-table th, .queue-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.queue-table th {
  background: #f1ece1; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-weight: 600; color: var(--ink-soft); letter-spacing: .4px;
}
.queue-table tr:last-child td { border-bottom: none; }
.queue-table td img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--accent-soft); }
.status { display: inline-block; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); font-size: 15px; padding: 3px 14px; border-radius: 999px; }
.status.s1 { background: #eef2fd; color: #3b5bb5; }
.status.s2 { background: #fff3e6; color: #c05f14; }
.status.s3 { background: #e6f6ee; color: #157a4f; }

/* ---------- In-progress strip (queue page) ---------- */
.in-progress { margin-bottom: 34px; }
.in-progress .sec { margin-bottom: 6px; }
.ip-row { display: flex; gap: 20px; overflow-x: auto; padding: 6px 2px 12px; }
.ip-card {
  flex: 0 0 200px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.ip-img { width: 100%; height: 150px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.ip-img img { width: 100%; height: 100%; object-fit: cover; }
.ip-info { padding: 11px 14px 13px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }
.ip-nation { color: var(--gold); font-size: 13px; letter-spacing: .3px; }
.ip-buyer { color: var(--ink); font-weight: 600; font-size: 16px; margin: 1px 0 3px; }
.ip-ship { color: var(--ink-soft); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 1300px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 0 auto 16px; max-width: 1300px; overflow: hidden; box-shadow: var(--shadow); }
.faq-item .q {
  width: 100%; text-align: left; font-size: 17px; font-family: inherit; cursor: pointer;
  padding: 18px 24px; background: none; border: none; color: var(--ink);
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq-item .q .chev { color: var(--gold); font-size: 18px; transition: transform .3s ease; }
.faq-item.open .q .chev { transform: rotate(180deg); }
.faq-item .a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item .a p { margin: 0; padding: 0 24px 20px; color: var(--ink-soft); font-size: 16px; }
/* question text: bold when the item is open, normal weight when closed */
.faq-item .q span:first-child { font-weight: 500; transition: font-weight .15s ease; }
.faq-item.open .q span:first-child { font-weight: 700; }
/* horizontal rule between question and answer (only visible when open) */
.faq-item.open .a { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- About / contact ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.about-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: var(--accent-soft); }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-note { color: var(--ink-soft); font-size: 13px; margin: 14px 0 0; opacity: .8; }

/* about page — two-row layout (2026-10-08).
   Row 1: story + about-me side by side (images left, texts right).
   Row 2: the contact form spans the full width — it used to sit in a narrow
   right-hand column and looked cramped next to the long story column. */
.about-story-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.about-story-imgs { display: grid; gap: 24px; }
.about-story-texts { display: grid; gap: 46px; align-content: start; }
.about-story-texts .sec { margin-bottom: 8px; }
.about-story-texts p.sec-sub { margin-bottom: 0; }
.about-story-me .sec-sub { white-space: normal; }
.about-form-full { max-width: 1180px; margin: 0 auto; }

/* home: figure-category cards (all categories, each with a one-line description) */
.cat-chips { display: flex; flex-wrap: wrap; gap: 18px; }
.cat-card {
  flex: 1 1 200px; min-width: 180px; max-width: 260px;
  padding: 20px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.cat-card-name { font-size: 19px; font-weight: 600; color: var(--ink); }
.cat-card-line { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.cat-card-desc { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.contact-cards .card h3 { margin-bottom: 6px; }
.contact-cards .card .small { font-size: 15px; color: var(--ink-soft); }
form.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; box-shadow: var(--shadow); }
form.contact-form label { display: block; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); font-size: 15px; color: var(--ink-soft); margin: 16px 0 6px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; font-size: 16px; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink); font-family: inherit;
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--gold); }
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form .btn { margin-top: 22px; border: none; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }
.form-msg { margin-top: 14px; font-size: 15px; display: none; border-radius: 10px; padding: 10px 16px; }
.form-msg.ok { display: block; background: #e6f6ee; color: #157a4f; }

/* contact form: math CAPTCHA row */
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 760px; }
.captcha-row .captcha-img {
  height: 50px; width: auto; border: 1px solid var(--line); border-radius: 8px;
  background: #f3f1ea; cursor: pointer; flex: 0 0 auto;
}
.captcha-row input[type=text][name=captcha] {
  width: 150px; flex: 0 0 auto; text-align: center; letter-spacing: 1px;
}
.captcha-refresh {
  font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
}
.form-msg.err { display: block; background: #fdeaea; color: #b23a3a; }

/* ---------- Term popup ---------- */
.term { position: relative; color: var(--accent); border-bottom: 1px dotted var(--accent); cursor: pointer; font-weight: 600; }
.term .popup {
  display: none; position: absolute; left: 0; top: 140%; width: 360px; max-width: min(360px, 86vw); z-index: 200;
  background: #26241f; color: #f2ede2; font-size: 13px; line-height: 1.6; font-weight: 400;
  padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.term.open .popup { display: block; }

/* ---------- Footer ---------- */
footer { background: #26241f; color: #b7ae9c; margin-top: 60px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); }
footer .wrap { padding: 36px 60px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
footer .brand { color: #f2ede2; font-size: 20px; }

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Placeholder image ---------- */
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* ---------- Image zoom preview (hover) ---------- */
img.zoomable { cursor: zoom-in; transition: transform .15s ease; }
img.zoomable:hover { transform: scale(1.04); }
.img-zoom {
  display: none; position: absolute; z-index: 9999; width: 360px; height: 360px;
  background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.35);
  padding: 8px; pointer-events: none; border: 1px solid #e7e1d4;
}
.img-zoom img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #f7f4ee; }

/* ---------- Lightbox (full-size image viewer with zoom) ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(18, 16, 13, .93);
}
.lightbox.open { display: block; }
.lb-close {
  position: absolute; top: 20px; right: 26px; z-index: 10;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 46px;
  text-align: center; padding: 0; transition: background .2s ease;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-toolbar {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; gap: 10px;
}
.lb-toolbar button {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-size: 15px; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25);
  transition: background .2s ease;
}
.lb-toolbar button:hover { background: rgba(255,255,255,.3); }
.lb-toolbar button:disabled { opacity: .35; cursor: default; background: rgba(255,255,255,.1); }
.lb-stage {
  position: absolute; inset: 0; overflow: auto; display: flex;
  cursor: zoom-out;
}
.lb-stage img {
  margin: auto; display: block; max-width: none; user-select: none;
  box-shadow: 0 8px 50px rgba(0,0,0,.5);
}
/* prev / next image buttons inside the lightbox (use < and > as labels) */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 54px;
  text-align: center; padding: 0; transition: background .2s ease;
}
.lb-nav:hover { background: rgba(255,255,255,.32); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ---------- Nationality flag + hover tooltip ---------- */
.flag { display: inline-block; cursor: default; vertical-align: middle; line-height: 0; }
.flag img.flag-img { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }
.flag-raw { font-size: 15px; }
.nation-tip {
  display: none; position: fixed; z-index: 9999; pointer-events: none;
  background: #26241f; color: #f2ede2; font-size: 14px; line-height: 1.4;
  padding: 6px 12px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  white-space: nowrap;
}

/* ---------- Contact result modal (success / failure) ---------- */
.cm-mask {
  position: fixed; inset: 0; background: rgba(30, 26, 18, .55); z-index: 2000;
  display: none; align-items: center; justify-content: center;
}
.cm-mask.open { display: flex; animation: fade .25s ease; }
.cm-modal {
  width: 560px; max-width: 92vw; background: var(--paper); border-radius: 20px;
  padding: 36px 42px 30px; box-shadow: 0 24px 70px rgba(0,0,0,.35); position: relative; text-align: center;
}
.cm-modal .cm-close {
  position: absolute; top: 14px; right: 20px; font-size: 28px; line-height: 1; cursor: pointer;
  color: var(--ink-soft); background: none; border: none;
}
.cm-modal .cm-ico { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.cm-modal h3 { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
.cm-modal p { margin: 0 0 8px; color: var(--ink-soft); font-size: 16px; }
.cm-modal .cm-detail {
  margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); background: #f3e9df;
  border-radius: 10px; padding: 10px 14px; text-align: left; word-break: break-word; display: none;
}
.cm-modal.ok .cm-ico { color: var(--ok); }
.cm-modal.err .cm-ico { color: #b23a3a; }
.cm-modal .cm-count { margin: 18px 0 14px; font-size: 14px; color: var(--ink-soft); }
.cm-modal .cm-btn {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans); font-size: 16px;
  padding: 10px 34px; border-radius: 999px; cursor: pointer; border: 1.6px solid var(--accent);
  background: var(--accent); color: #fff; transition: all .25s ease;
}
.cm-modal .cm-btn:hover { background: #744a2e; }

/* ---------- Intent form (standalone, shared-only page) ---------- */
.intent-note {
  background: var(--accent-soft); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 10px; margin: 22px 0 30px;
  color: var(--ink-soft); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  line-height: 1.75; font-size: 15.5px;
}
.intent-form { max-width: 880px; }
/* 蜜罐字段：视觉/无障碍树存在，但真人看不到、不会去填 */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0.001; pointer-events: none;
}
.intent-form .field { margin-bottom: 26px; }
.intent-form label {
  display: block; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 6px;
}
.intent-form .hint {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; line-height: 1.55;
}
.intent-form input[type=text], .intent-form input[type=email], .intent-form textarea {
  width: 100%; max-width: 760px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 9px; font-size: 16px; font-family: inherit; box-sizing: border-box; background: #fff;
}
.intent-form textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
/* reference-image uploader */
.ref-upload { max-width: 760px; }
.ref-upload input[type=file] {
  display: block; width: 100%; padding: 11px 13px; border: 1.5px dashed var(--line);
  border-radius: 9px; font-size: 15px; font-family: inherit; box-sizing: border-box; background: #fff; cursor: pointer;
}
.ref-upload input[type=file]:hover { border-color: var(--gold); }
.ref-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.ref-item {
  position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #f4f1ea; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ref-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-item .ref-rm {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50%;
  background: rgba(38,36,31,.72); color: #fff; font-size: 15px; line-height: 22px; text-align: center;
  cursor: pointer; padding: 0;
}
.ref-item .ref-rm:hover { background: #b23b3b; }
.ref-count { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.intent-form input[type=text]:focus, .intent-form input[type=email]:focus, .intent-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.18);
}
.radio-group { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 4px; }
.radio-item {
  display: flex; align-items: flex-start; gap: 9px; max-width: 760px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", var(--fb-sans);
  font-size: 15.5px; color: var(--ink); cursor: pointer; line-height: 1.5;
}
.radio-item input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: 0 0 auto; }
/* intent submit result — explicit centered modal (replaces the inline .intent-msg line) */
.intent-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 22, 28, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  padding: 24px;
}
.intent-modal-overlay.open { display: flex; }
.intent-modal {
  position: relative; width: 100%; max-width: 460px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  padding: 26px 32px 22px; text-align: center;
  animation: intentPop .22s ease;
}
@keyframes intentPop {
  from { transform: translateY(12px) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.intent-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: #f0f0f0; color: #555; font-size: 20px; line-height: 1;
  cursor: pointer; transition: background .15s;
}
.intent-modal-close:hover { background: #e2e2e2; }
.intent-modal-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff;
}
.intent-modal-overlay.ok  .intent-modal-icon { background: #2eae6b; }
.intent-modal-overlay.err .intent-modal-icon { background: #e0574d; }
.intent-modal-title { margin: 0 0 6px; font-size: 20px; }
.intent-modal-overlay.ok  .intent-modal-title { color: #13623f; }
.intent-modal-overlay.err .intent-modal-title { color: #a33333; }
.intent-modal-msg { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: #444; }
.intent-modal-timer { font-size: 13px; color: #888; }
.intent-modal-timer b { color: #555; font-size: 15px; }
.intent-modal-bar { height: 5px; background: #eee; border-radius: 3px; overflow: hidden; margin-top: 12px; }
.intent-modal-bar > i { display: block; height: 100%; width: 100%; background: var(--accent); }
.intent-modal-overlay.ok  .intent-modal-bar > i { background: #2eae6b; }
.intent-modal-overlay.err .intent-modal-bar > i { background: #e0574d; }

/* intent page: tighten the space around the page-head divider (the visual <hr>) */
body[data-page="intent"] .page-head { padding-bottom: 16px; margin-bottom: 14px; }
body[data-page="intent"] section.block { padding-top: 14px; }
/* faq page: shrink the gap between the page-head divider (visual <hr>) and the first question */
body[data-page="faq"] .page-head { margin-bottom: 8px; }
body[data-page="faq"] section.block { padding-top: 12px; }

/* intent form: mark required fields with a red leading asterisk (optional fields excluded) */
.intent-form .field > label { position: relative; display: inline-block; }
.intent-form .field:not(.optional) > label::before {
  content: "*";
  color: #e23b3b;
  font-weight: 700;
  margin-right: 4px;
}

/* ============================================================
   Responsive — PC widescreen (>=1025px) keeps the original layout.
   Tablet (<=1024px) and phone portrait (<=760px) adapt below.
   No functionality changed; only layout / sizing.
   ============================================================ */

/* hamburger button — hidden on desktop, shown via the <=760 query */
.nav-toggle { display: none; }

/* ---------- Tablet (<=1024px) ---------- */
@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  footer .wrap { padding: 32px; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-chips { gap: 12px; }
  .cat-card { min-width: 160px; padding: 16px 18px; font-size: 14px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .works-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }

  /* 平板：回到等比两列，避免 600px 固定左列把文字列挤窄 */
  .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 100%; }

  .page-head h1 { font-size: 34px; }
  .hero h1 { font-size: 46px; }
}

/* ---------- Phone portrait (<=760px) ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  footer .wrap { padding: 28px 18px; flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Nav → hamburger dropdown */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0 11px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: .25s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav .wrap { flex-wrap: wrap; }
  .nav-links, .nav-tools {
    position: static; transform: none; margin: 0;
    flex-basis: 100%; display: none;
  }
  .nav.nav-open .nav-links, .nav.nav-open .nav-tools { display: flex; }
  .nav-links {
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 0 4px; border-top: 1px solid var(--line);
  }
  .nav-links a { font-size: 17px; padding: 11px 2px; border-bottom: none; }
  .nav-links a.active, .nav-links a:hover { border-bottom: none; color: var(--accent); }
  .nav-tools { flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 14px; }
  .nav-tools .tool { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .nav-tools select { flex: 1; max-width: 200px; }

  /* dropdown -> expanded sublist inside the open hamburger menu */
  .nav-dropdown { position: static; }
  .nav-dropdown-toggle { font-size: 17px; padding: 11px 2px; border-bottom: none; cursor: pointer; }
  .nav-dropdown-toggle::after { display: none; }
  .nav.nav-open .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; border-left: 2px solid var(--line);
    border-radius: 0; margin: 2px 0 6px 10px; padding: 0 0 2px 12px; min-width: 0;
  }
  .nav-dropdown-menu a { padding: 9px 2px; font-size: 16px; }

  /* Headings + hero */
  .page-head { padding: 34px 0 18px; margin-bottom: 26px; }
  .page-head h1 { font-size: 28px; }
  .page-head p { font-size: 15px; }


  .hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 30px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }

  h2.sec { font-size: 26px; }
  .module h2 { font-size: 24px; }

  /* Grids → single column */
  .card-grid,
  .works-grid,
  .works-grid.cols-4,
  .works-grid.cols-5 { grid-template-columns: 1fr; }
  .expl-grid { grid-template-columns: 1fr; }
  .about-grid,
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-story-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-story-texts { gap: 34px; }
  .about-form-full { max-width: 100%; }

  /* Contact / about */
  .contact-cards { grid-template-columns: 1fr; }
  form.contact-form { padding: 22px 20px; }

  /* Detail / carousel */
  .detail-side h2 { font-size: 28px; }
  .spec .k { width: 116px; font-size: 14px; }

  /* Process flowchart → stacked cards */
  .fstep { flex-direction: column; align-items: stretch; gap: 8px; }
  .fstep .ftime { flex: none; width: 100%; padding: 10px 14px; border-radius: 10px; }
  .fstep.me .fbox, .fstep.client .fbox { text-align: left; padding: 16px; }
  .fstep.me .who-badge, .fstep.client .who-badge {
    position: static; display: inline-block; border-radius: 8px;
    padding: 3px 12px; margin: 0 8px 6px 0; transform: none; left: auto; right: auto;
  }

  /* Process page: don't pin the in-page nav on mobile (it wastes too much space) */
  .anchor-bar { position: static; top: auto; padding: 14px 0; z-index: auto; }
  body[data-page="process"] .module { scroll-margin-top: 70px; }

  /* Pricing media */
  .video-slot { height: auto; aspect-ratio: 16 / 9; }
  .sim-btn { width: 100%; max-width: 100%; height: auto; padding: 22px 20px; font-size: 22px; }
  .sim-center { margin: 30px 0 20px; }

  /* Modals — keep the whole dialog inside one mobile screen */
  /* scroll the overlay (mask), NOT the .modal box, so the absolutely-positioned
     country dropdown (.ss-panel) is never clipped by the dialog */
  .modal-mask.open { align-items: flex-start; overflow-y: auto; padding: 16px 10px; }
  .modal { padding: 24px 20px; margin: auto; }
  .modal h3 { font-size: 20px; margin: 0 0 14px; }
  .modal .opt-btn, .modal .opt-item { padding: 12px 14px; font-size: 15px; }
  .modal .opt-item { gap: 0; }
  .modal .opts { gap: 8px; }
  .modal .opt-desc { display: none; }   /* hide courier descriptions so all options fit one screen */
  .modal .ss-panel { max-height: 42vh; max-height: 42dvh; }   /* keep the country dropdown fully on screen */
  .modal-actions { margin-top: 16px; }
  .modal-actions .contact-btn { width: 100%; text-align: center; order: -1; margin-left: 0; }

  /* FAQ */
  .faq-item .q { padding: 16px 18px; font-size: 16px; }
  .faq-item .a p { padding: 0 18px 18px; }

  /* Queue table → stacked cards on phones (no horizontal drag) */
  .table-scroll { width: 100%; overflow: visible; }
  .queue-table { width: 100%; min-width: 0; font-size: 14px; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .queue-table thead { display: none; }
  .queue-table, .queue-table tbody, .queue-table tr, .queue-table td { display: block; width: 100%; }
  .queue-table tr {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    margin-bottom: 14px; padding: 4px 2px; box-shadow: var(--shadow); overflow: hidden;
  }
  .queue-table td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: right;
  }
  .queue-table tr td:last-child { border-bottom: none; }
  .queue-table td::before {
    content: attr(data-label); font-weight: 600; color: var(--ink-soft);
    text-align: left; flex: 0 0 auto; margin-right: 10px;
  }
  .queue-table td img { width: 60px; height: 60px; }

  /* In-progress strip → 2-up grid, no horizontal drag */
  .ip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; padding: 6px 0 12px; }
  .ip-card { flex: none; width: 100%; }

  .in-progress .sec { font-size: 22px; }

  /* Intent form */
  .intent-form, .intent-note, .ref-upload { max-width: 100%; }
  .intent-form input[type=text], .intent-form input[type=email], .intent-form textarea { max-width: 100%; }

  /* Timeline */
  .tl-cell .txt { max-width: 100%; }
}

/* ---------- Small phone (<=480px) ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .page-head h1 { font-size: 24px; }
  .btn { font-size: 15px; padding: 11px 22px; }
  .work-filter button { padding: 7px 14px; }
  .radio-group { gap: 10px 16px; }
}
