/* ==========================================================================
   中山市钛德检测检验认证服务有限公司 — 官网样式
   ========================================================================== */

:root {
  --navy: #0a2e52;
  --navy-2: #14416d;
  --navy-3: #1d5488;
  --accent: #c8a45c;
  --accent-soft: #f1e6cf;
  --ink: #17222e;
  --ink-2: #3d4d5e;
  --muted: #6b7c8d;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-soft-2: #eef3f9;
  --danger: #c0392b;
  --ok: #1f8a5c;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(10, 46, 82, 0.06);
  --shadow: 0 10px 30px rgba(10, 46, 82, 0.09);
  --shadow-lg: 0 24px 60px rgba(10, 46, 82, 0.14);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  min-width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  padding: 0 9px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.brand-text strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--navy); letter-spacing: 0.2px; }
.brand-text em {
  display: block; font-style: normal; font-size: 10.5px; letter-spacing: 1.6px;
  color: var(--muted); text-transform: uppercase; margin-top: 1px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 9px 15px;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  font-size: 14.5px; font-weight: 500;
  border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #2a1f06; }
.btn-accent:hover { background: #d7b46e; }
.btn-ghost { background: transparent; color: var(--navy); border-color: #cfd9e5; }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-soft); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 30px; font-size: 15.5px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn.is-loading { position: relative; }
.btn-link {
  background: none; border: none; padding: 0; color: var(--navy-3);
  cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- 区块 ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 60px 0; }
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--accent-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 32px; color: var(--navy); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(200, 164, 92, .22), transparent 60%),
    radial-gradient(900px 480px at 8% 110%, rgba(29, 84, 136, .55), transparent 62%),
    linear-gradient(135deg, #071f38 0%, #0a2e52 46%, #123f6b 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(760px 460px at 70% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 104px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.28; letter-spacing: -0.5px; }
.hero h1 .hl { color: var(--accent); }
.hero-lead { margin-top: 22px; font-size: 16.5px; line-height: 1.9; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-points div { font-size: 14px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.hero-points svg { flex: none; }

.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-panel h3 { font-size: 16px; margin-bottom: 6px; }
.hero-panel > p { font-size: 13.5px; color: rgba(255,255,255,.66); margin-bottom: 20px; }
.hero-panel-list { display: grid; gap: 12px; }
.hero-panel-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  transition: background .18s, transform .18s;
}
.hero-panel-item:hover { background: rgba(255,255,255,.13); transform: translateX(3px); }
.hero-panel-item span:first-child {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(200, 164, 92, .2); color: var(--accent); font-weight: 700; font-size: 13px;
}
.hero-panel-item strong { display: block; font-size: 14.5px; font-weight: 600; }
.hero-panel-item p { font-size: 12.8px; color: rgba(255,255,255,.6); margin-top: 2px; line-height: 1.6; }

/* ---------- 数据条 ---------- */
.stat-bar { background: var(--navy); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 34px 26px; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 32px; font-weight: 600; color: var(--accent); letter-spacing: -0.5px; }
.stat-item span { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255,255,255,.7); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.grid-5 .card { padding: 26px 22px; }
.grid-5 .card h3 { font-size: 16.5px; margin-bottom: 9px; }
.grid-5 .card p { font-size: 13.8px; line-height: 1.72; }
.grid-5 .card .card-link { margin-top: 15px; font-size: 13.5px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dfec; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-soft-2); color: var(--navy);
  margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--navy-3); font-size: 14px; font-weight: 500; }
.card .card-link:hover { gap: 10px; }

.card-dark { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); border-color: transparent; color: #fff; }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,.74); }
.card-dark .card-icon { background: rgba(255,255,255,.12); color: var(--accent); }

/* ---------- 特性列表 ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.6px; color: var(--ink-2); }
.feature-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8813a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 26px 0 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 14px;
}
.step::after {
  content: ""; position: absolute; top: 8px; left: 44px; right: 12px; height: 1px;
  background: linear-gradient(90deg, #d9e2ec, transparent);
}
.step:last-child::after { display: none; }
.step h4 { font-size: 16.5px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 拆分区 ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 64px; align-items: center; }
.split h2 { font-size: 30px; color: var(--navy); }
.split p { margin-top: 16px; color: var(--ink-2); }
.split-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.mini-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mini-stat div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.mini-stat strong { display: block; font-size: 26px; color: var(--navy); font-weight: 600; }
.mini-stat span { font-size: 13px; color: var(--muted); }

/* ---------- 页面横幅 ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #071f38 0%, #0a2e52 55%, #14416d 100%);
  color: #fff;
  padding: 76px 0 68px;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(700px 320px at 80% 10%, #000, transparent 76%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 36px; }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,.78); max-width: 680px; font-size: 16px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 16px; letter-spacing: .4px; }
.crumb a:hover { color: var(--accent); }

/* ---------- 服务列表 ---------- */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  padding: 14px 30px; border-radius: 999px; border: 1px solid var(--navy-3);
  background: var(--navy-3); color: #fff; font-size: 16.5px; font-weight: 500;
  letter-spacing: .5px; cursor: pointer; transition: all .18s;
}
.chip:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip.active {
  background: var(--navy); border-color: var(--navy); font-weight: 600;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), var(--shadow-sm);
}
@media (max-width: 860px) {
  .filter-bar { gap: 10px; margin-bottom: 30px; }
  .chip { padding: 11px 20px; font-size: 15px; }
}
@media (max-width: 560px) {
  .chip { padding: 10px 16px; font-size: 14px; }
}

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.service-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
/* 卡片右上角国旗（尺寸放大版） */
.service-card .sc-flag {
  position: absolute; top: 18px; right: 18px;
  width: 68px; height: 46px; object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(15, 40, 80, .12);
  box-shadow: 0 2px 7px rgba(15, 40, 80, .22);
}
/* 窄屏略收，避免与标题争位 */
@media (max-width: 560px) {
  .service-card .sc-flag { width: 54px; height: 37px; top: 16px; right: 16px; }
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdceb; }
.service-card .sc-tag {
  align-self: flex-start; font-size: 11.5px; letter-spacing: .6px;
  color: #8a6a26; background: var(--accent-soft); border-radius: 999px;
  padding: 3px 11px; margin-bottom: 14px;
}
/* 分类标签 + 热门标识同排 */
.service-card .sc-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding-right: 76px; }
.service-card .sc-tags .sc-tag { margin-bottom: 0; }
.service-card .sc-hot {
  font-size: 11.5px; letter-spacing: .6px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #cf5a4a, #a83a2b);
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}
.service-card h3 { font-size: 19px; color: var(--navy); line-height: 1.5; flex: 1; }
/* 首页热门卡片：保留副标题与摘要 —— 标题不再撑开，改由摘要吸收剩余空间，避免中间出现空洞 */
.service-card.has-sum h3 { flex: none; }
.service-card .sc-sub { font-size: 12.8px; color: var(--muted); margin-top: 7px; letter-spacing: .3px; }
.service-card .sc-sum { font-size: 14.3px; color: var(--ink-2); line-height: 1.75; margin-top: 13px; flex: 1; }
.service-card.is-clickable { cursor: pointer; }
.service-card.is-clickable:hover .sc-more { color: var(--navy); }
.service-card .sc-foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.service-card .sc-more { font-size: 14.5px; color: var(--navy-3); font-weight: 500; transition: color .18s; }
.service-card .sc-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9, 24, 40, .5);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: min(660px, 100%);
  max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: pop .22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { padding: 26px 30px 0; display: flex; align-items: flex-start; gap: 16px; }
.modal-head h3 { font-size: 21px; color: var(--navy); }
.modal-head .modal-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.modal-close { margin-left: auto; background: none; border: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px 30px 30px; }
.modal-body p.desc { color: var(--ink-2); }
.modal-body h4 { font-size: 15px; color: var(--navy); margin: 22px 0 12px; }
/* 弹窗「服务优势」区块：与「服务内容」之间加一条分隔线 */
.modal-body .modal-block { margin-top: 6px; border-top: 1px solid var(--line); }
.modal-body .modal-block h4 { margin-top: 20px; }
/* 弹窗配图（如摩洛哥 COC 四语长图） */
.modal-figure { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.modal-figure img { display: block; width: 100%; height: auto; }
.modal-actions { padding: 0 30px 30px; display: flex; gap: 12px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.field label .req { color: var(--danger); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid #d8e0ea; border-radius: 8px;
  font-size: 14.5px; color: var(--ink); background: #fff;
  font-family: inherit; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(29, 84, 136, .12);
}
.field .hint { font-size: 12.5px; color: var(--muted); }
.file-drop {
  border: 1px dashed #cfd9e5; border-radius: 10px; padding: 16px;
  display: flex; align-items: center; gap: 14px; background: var(--bg-soft);
  cursor: pointer; transition: border-color .18s, background .18s;
}
.file-drop:hover { border-color: var(--navy-3); background: var(--bg-soft-2); }
.file-drop.is-disabled { opacity: .6; cursor: not-allowed; }
.file-drop input[type=file] { display: none; }
.file-drop .fd-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy-3); }
.file-drop .fd-text strong { display: block; font-size: 14px; }
.file-drop .fd-text span { font-size: 12.5px; color: var(--muted); }

.form-msg { margin-top: 16px; font-size: 14px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #eaf7f1; color: #14603f; border: 1px solid #c4e6d5; }
.form-msg.err { background: #fdeeeb; color: #8f2c1e; border: 1px solid #f5cec6; }
.form-msg.info { background: var(--bg-soft-2); color: var(--navy-2); border: 1px solid #d5e2f0; }

/* ---------- 联系信息 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item .ii-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft-2); display: grid; place-items: center; color: var(--navy); }
.info-item strong { display: block; font-size: 14.5px; color: var(--navy); }
.info-item p, .info-item a { font-size: 14px; color: var(--ink-2); word-break: break-all; }
.info-item a:hover { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 76px); }
.auth-aside {
  position: relative; color: #fff; padding: 64px 56px; overflow: hidden;
  background: linear-gradient(150deg, #071f38 0%, #0a2e52 50%, #14416d 100%);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(560px 420px at 70% 30%, #000, transparent 78%);
}
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside h2 { font-size: 30px; line-height: 1.4; }
.auth-aside p { margin-top: 18px; color: rgba(255,255,255,.76); font-size: 15.5px; }
.auth-aside ul { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.auth-aside li { display: flex; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,.82); }
.auth-aside li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(200,164,92,.22) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a45c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 32px; background: var(--bg-soft); }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px 32px; }
.auth-card h2 { font-size: 23px; color: var(--navy); }
.auth-card .auth-sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.tabs { display: flex; gap: 4px; background: var(--bg-soft-2); padding: 4px; border-radius: 10px; margin: 22px 0 24px; }
.tabs button {
  flex: 1; padding: 9px 6px; border: none; background: transparent; border-radius: 7px;
  font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .18s;
}
.tabs button.active { background: #fff; color: var(--navy); font-weight: 600; box-shadow: var(--shadow-sm); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { flex: none; min-width: 116px; }
.auth-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-foot button { background: none; border: none; padding: 0; color: var(--navy-3); cursor: pointer; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 会员中心 ---------- */
.member-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.side-menu { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.side-user { display: flex; align-items: center; gap: 12px; padding: 12px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--bg-soft-2); display: grid; place-items: center;
  color: var(--navy); font-weight: 600; font-size: 17px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user strong { display: block; font-size: 14.5px; color: var(--navy); }
.side-user span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.side-menu nav { display: grid; gap: 3px; }
.side-menu nav button {
  text-align: left; padding: 10px 13px; border: none; background: none; border-radius: 8px;
  font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all .18s;
}
.side-menu nav button:hover { background: var(--bg-soft); color: var(--navy); }
.side-menu nav button.active { background: var(--navy); color: #fff; font-weight: 500; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.panel h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.panel .panel-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.avatar-row { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--bg-soft-2); display: grid; place-items: center; color: var(--navy); font-size: 28px; font-weight: 600; flex: none; border: 1px solid var(--line); }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.record-list { display: grid; gap: 14px; }
.record {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.record:hover { border-color: #cfdceb; box-shadow: var(--shadow-sm); }
.record-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.record-top strong { font-size: 15px; color: var(--navy); }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft-2); color: var(--navy-2); }
.badge.gold { background: var(--accent-soft); color: #8a6a26; }
.record time { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.record p { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.record .att { margin-top: 12px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; color: var(--navy-3); }
.record .att button { background: none; border: none; color: var(--navy-3); cursor: pointer; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty svg { margin-bottom: 14px; opacity: .5; }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; top: 92px; right: 24px; z-index: 300; display: grid; gap: 10px; }
.toast {
  min-width: 240px; max-width: 360px; padding: 13px 16px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; color: var(--ink); animation: slideIn .22s ease-out;
  border-left: 3px solid var(--navy-3);
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- 页脚 ---------- */
.site-footer { background: #071f38; color: rgba(255,255,255,.72); padding: 62px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { font-size: 14px; color: #fff; letter-spacing: .6px; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 13.8px; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer p { font-size: 13.5px; line-height: 1.9; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.1); }
.footer-brand strong { color: #fff; font-size: 15px; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 12.8px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.5); }

/* ---------- 管理后台 ---------- */
.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-toolbar .grow { margin-left: auto; }
.admin-search {
  padding: 8px 13px; border: 1px solid #d8e0ea; border-radius: 8px;
  font-size: 14px; color: var(--ink); font-family: inherit; min-width: 210px;
}
.admin-search:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29, 84, 136, .12); }

.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.admin-stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.admin-stat strong { display: block; font-size: 23px; color: var(--navy); font-weight: 600; letter-spacing: -0.4px; line-height: 1.3; }
.admin-stat span { font-size: 12.8px; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.data-table th {
  text-align: left; font-weight: 600; font-size: 12.8px; color: var(--navy);
  background: var(--bg-soft); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.65; }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover { background: var(--bg-soft); }
table.data-table .cell-title { color: var(--navy); font-weight: 600; }
table.data-table .cell-clamp { max-width: 300px; }
table.data-table .row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
table.data-table .cell-nowrap { white-space: nowrap; }
table.data-table .cell-idx { color: var(--muted); font-size: 12.8px; }

.tag {
  display: inline-block; font-size: 11.8px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft-2); color: var(--navy-2); white-space: nowrap; line-height: 1.7;
}
.tag.gold { background: var(--accent-soft); color: #8a6a26; }
.tag.ok { background: #eaf7f1; color: #14603f; }
.tag.warn { background: #fdf4e3; color: #8a6320; }
.tag.grey { background: #eef1f5; color: var(--muted); }
.tag.hot { background: #fdecea; color: #a83a2b; }

.btn-xs { padding: 5px 11px; font-size: 12.8px; border-radius: 7px; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c9c2; }
.btn-danger:hover { background: #fdeeeb; border-color: var(--danger); }

.mini-select {
  padding: 6px 10px; border: 1px solid #d8e0ea; border-radius: 7px;
  font-size: 13px; background: #fff; color: var(--ink); font-family: inherit;
}
.mini-select:focus { outline: none; border-color: var(--navy-3); }

.switch-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }

.admin-login-card { max-width: 520px; margin: 0 auto; text-align: center; }
.admin-login-card h2 { font-size: 21px; color: var(--navy); }
.admin-login-card p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
.admin-login-card .form-msg { text-align: left; }

@media (max-width: 1080px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auth-aside { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .member-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.active::after { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; color: var(--navy);
  }
  .header-inner { position: relative; min-height: 66px; }
  .brand-text strong { font-size: 14px; }
  .brand-text em { display: none; }
  .header-actions .btn-ghost { display: none; }
  .hero h1 { font-size: 31px; }
  .hero-inner { padding: 68px 0 60px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .section { padding: 58px 0; }
  .section-head h2, .split h2 { font-size: 25px; }
  .page-hero h1 { font-size: 27px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .step::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .toast-wrap { top: auto; bottom: 20px; right: 16px; left: 16px; }
  .toast { max-width: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-search { width: 100%; min-width: 0; }
  .admin-toolbar .grow { margin-left: 0; width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .grid-4, .grid-5, .mini-stat, .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .auth-main { padding: 32px 18px; }
  .auth-card { padding: 26px 22px; }
  .panel { padding: 22px 18px; }
}

/* ---------- 服务板块分组（产品服务页） ---------- */
.empty { padding: 46px 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.svc-state { margin-bottom: 26px; color: var(--muted); font-size: 14.5px; }
.svc-state strong { color: var(--navy); font-size: 17px; font-weight: 600; }
.svc-group { margin-bottom: 62px; }
.svc-group:last-child { margin-bottom: 0; }
.svc-group-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 2px solid var(--navy);
}
.svc-group-head h2 { font-size: 23px; color: var(--navy); letter-spacing: -0.2px; }
.svc-group-count {
  font-size: 13px; font-weight: 600; letter-spacing: .4px;
  color: var(--navy-3); background: var(--bg-soft-2);
  border-radius: 999px; padding: 3px 11px;
}
.svc-group-desc { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 840px; }
.svc-sub { margin-top: 30px; }
.svc-sub:first-of-type { margin-top: 24px; }
.svc-sub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.svc-sub-name {
  font-size: 16.5px; font-weight: 600; color: var(--navy);
  padding-left: 11px; border-left: 3px solid var(--accent);
}
.svc-sub-count { font-size: 12.5px; color: var(--muted); }
.svc-sub-desc { margin: 0 0 18px 14px; color: var(--muted); font-size: 13.8px; line-height: 1.8; max-width: 820px; }
.svc-sub .service-grid { margin-top: 18px; }
.svc-group .service-grid { margin-top: 24px; }

/* 板块分组的响应式 */
@media (max-width: 1100px) {
  .svc-group-head h2 { font-size: 21px; }
}
@media (max-width: 860px) {
  .svc-group { margin-bottom: 46px; }
  .svc-group-head h2 { font-size: 19.5px; }
  .svc-sub-name { font-size: 15.5px; }
}


/* ============================================================
   多语言：顶部语言切换器 / 首页 hero 语言入口 / RTL（阿拉伯语）
   ============================================================ */

/* ---------- 顶部语言切换器 ---------- */
.lang-switch { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid #cfd9e5; border-radius: 8px;
  background: #fff; color: var(--navy); font-size: 14px; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: border-color .18s, background .18s;
}
.lang-btn:hover { border-color: var(--navy); background: var(--bg-soft); }
.lang-btn > svg { flex: none; }
.lang-btn .lang-caret { transition: transform .18s; opacity: .6; }
.lang-switch.open .lang-btn .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 90;
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); display: none;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 9px 12px; border: none; background: none; border-radius: 7px;
  font-size: 14.5px; color: var(--ink-2); cursor: pointer; text-align: left;
  font-family: inherit; transition: background .16s, color .16s;
}
.lang-menu button:hover { background: var(--bg-soft); color: var(--navy); }
.lang-menu button.active { background: var(--bg-soft-2); color: var(--navy); font-weight: 600; }
.lang-menu button.active::after { content: "✓"; font-size: 13px; color: var(--navy-3); font-weight: 400; }

/* ---------- 首页 hero 语言入口 ---------- */
.hero-langs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.hero-langs-label {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-right: 2px;
}
.hero-lang {
  padding: 6px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.85);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.hero-lang:hover { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.13); }
.hero-lang.active {
  background: var(--accent); border-color: var(--accent);
  color: #17222e; font-weight: 600;
}

/* ---------- RTL（阿拉伯语） ---------- */
html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, "Traditional Arabic", "Simplified Arabic", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15.5px;
}
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .main-nav a.active::after { left: 15px; right: 15px; }
html[dir="rtl"] .hero-panel-item:hover { transform: translateX(-3px); }
html[dir="rtl"] .step { padding: 0 0 0 26px; }
html[dir="rtl"] .step::after {
  right: 44px; left: 12px;
  background: linear-gradient(270deg, #d9e2ec, transparent);
}
html[dir="rtl"] .card-link svg,
html[dir="rtl"] .crumb svg { transform: scaleX(-1); }
html[dir="rtl"] .record time { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .modal-close { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .admin-toolbar .grow { margin-left: 0; margin-right: auto; }
html[dir="rtl"] table.data-table th,
html[dir="rtl"] table.data-table td { text-align: right; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .section-head.center { text-align: center; }
html[dir="rtl"] .hero-lead,
html[dir="rtl"] .page-hero p { text-align: right; }
html[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .field label,
html[dir="rtl"] .field .hint { text-align: right; }
html[dir="rtl"] .auth-foot { flex-direction: row-reverse; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-menu button { text-align: right; }
html[dir="rtl"] .svc-group-head,
html[dir="rtl"] .svc-sub-head { flex-direction: row-reverse; }
html[dir="rtl"] .sc-foot { flex-direction: row-reverse; }
html[dir="rtl"] .hero-langs { flex-direction: row-reverse; }
html[dir="rtl"] .modal-actions { flex-direction: row-reverse; }

/* ---------- 手机端 ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .lang-switch { order: 3; }
  .lang-btn { padding: 7px 10px; font-size: 13.5px; }
  .lang-btn .lang-label { display: none; }
  .lang-menu { min-width: 150px; }
  .hero-langs { margin-top: 22px; }
}
