/* AddMax Lab —— 公司官网样式表
 *
 * 设计约束（改之前先读）：
 *   1. 不引任何外部资源。字体走系统栈（含中文字体），没有 Google Fonts、
 *      没有 CDN、没有 jQuery。国内访问 + 苹果审核员在境外访问，两头都要快，
 *      而外链字体在国内经常直接超时。
 *   2. 中英对照是「中文主 + 英文次」，不是切换。苹果审核员可能不点语言开关，
 *      两种文字同时可见最稳。
 *   3. 单文件、无构建步骤。服务器上改一行就是改一行，不存在「源码没同步」。
 */

:root {
  --bg:        #ffffff;
  --soft:      #f6f7fa;
  --fg:        #16181d;
  --muted:     #5b6472;
  --line:      #e6e8ee;
  --accent:    #1c5bd8;
  --accent-bg: #eef3ff;
  --radius:    10px;
  --maxw:      940px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* 英文副标题统一走这个类：小一号、灰一点，但**始终可见** */
.en {
  display: block;
  font-size: 0.86em;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶栏 ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  flex-wrap: wrap;
}

header.site .brand { display: flex; align-items: center; gap: 10px; }
header.site .brand img { height: 30px; width: auto; display: block; }

header.site .brand .cn {
  font-size: 13px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.35;
}

header.site nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
header.site nav a { color: var(--fg); font-size: 15px; }
header.site nav a:hover { color: var(--accent); }

/* ---------- 通用段落 ---------- */

section { padding: 46px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h1 { font-size: 30px; line-height: 1.35; margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.005em; }
h3 { font-size: 16px; margin: 22px 0 6px; }

p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }

.lead { font-size: 17px; color: #2b3038; }

/* ---------- 首屏 ---------- */

.hero { padding: 58px 0 50px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 33px; }
.hero .tagline { font-size: 17px; color: #2b3038; max-width: 62ch; }

.hero .legal {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: #22304d;
}
.hero .legal strong { color: #14213d; }

/* ---------- 卡片网格 ---------- */

/* ★ 不要用 repeat(auto-fit, minmax(232px,1fr)) —— 这一屏正好是 4 张卡，
 *   在 1280 宽下 auto-fit 会排成 3+1，第四张孤零零掉到第二行，很难看。
 *   写死列数，每档都能整除：
 *     ≥1000px  → 4 列
 *     620~999  → 2 列
 *     <620px   → 1 列
 *   加卡片时记得同时改这里，否则又会出现孤儿卡。 */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 999px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  background: #fff;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .en { margin-top: 4px; }

/* ---------- 联系方式表 ---------- */

table.contact { width: 100%; border-collapse: collapse; margin-top: 12px; }
table.contact th,
table.contact td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
table.contact th {
  width: 140px;
  color: var(--muted);
  font-size: 14.5px;
  white-space: nowrap;
}
table.contact tr:last-child th,
table.contact tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋ "; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: "－ "; }
.faq details > *:not(summary) { margin-top: 10px; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- 经营范围 ---------- */

/* 8 条分组摘要：两列排版，条目用蓝色小方块做标记，跟卡片区的视觉语言一致 */
ul.scope {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
  columns: 2;
  column-gap: 36px;
}
ul.scope li {
  break-inside: avoid;
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
  font-size: 15px;
}
ul.scope li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
ul.scope strong { color: var(--fg); }
ul.scope .en { margin-top: 1px; }

/* 营业执照原文折叠块：灰底细边框，视觉上退居「法律附注」一层 */
details.scopefull {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
  color: var(--muted);
}
details.scopefull summary { cursor: pointer; font-weight: 600; color: var(--fg); }
details.scopefull p { margin: 10px 0 0; }

/* ---------- 法律条款页 ---------- */

.doc { padding: 40px 0 56px; }
.doc h2 { margin-top: 34px; padding-top: 4px; }
.doc h2:first-of-type { margin-top: 20px; }
.doc .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.doc ol { padding-left: 22px; }
.doc ol > li { margin-bottom: 10px; }

/* ---------- 页脚 ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 30px 0 38px;
  font-size: 14.5px;
  color: var(--muted);
}
footer.site .legalname { color: var(--fg); font-weight: 600; }
footer.site .row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
footer.site a { color: var(--muted); }
footer.site .icp { margin-top: 12px; }
footer.site .icp a { color: var(--muted); }

/* ---------- 窄屏 ---------- */

@media (max-width: 620px) {
  header.site .brand .cn { display: none; }
  header.site nav { margin-left: 0; width: 100%; gap: 14px; padding-bottom: 10px; }
  h1 { font-size: 25px; }
  .hero h1 { font-size: 27px; }
  .grid { grid-template-columns: 1fr; }   /* 窄屏单列，卡片不会被挤成竖条 */
  ul.scope { columns: 1; }                /* 经营范围窄屏单列，避免两栏挤在一起 */
  table.contact th { width: auto; display: block; border-bottom: 0; padding-bottom: 2px; }
  table.contact td { display: block; padding-top: 0; }
  table.contact tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.contact tr:last-child { border-bottom: 0; }
  table.contact th, table.contact td { padding-left: 0; padding-right: 0; }
}
