/* ============================================
   eSIMGO.cc — 全站样式
   设计语言：SIM 卡切角 / 芯片触点 / 信号格
   配色：纸白 墨青 芯片金 石板 认证绿
   ============================================ */

:root {
  --paper: #F7F6F2;
  --ink: #16283A;
  --ink-70: #3C4E60;
  --slate: #5C6B78;
  --gold: #C08A2D;
  --gold-soft: #F3E8D2;
  --green: #1E7A5A;
  --green-soft: #E4F0EA;
  --line: #DCD8CE;
  --card: #FFFFFF;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, "Segoe UI", sans-serif;
  --notch: 18px; /* SIM 卡切角尺寸 */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; color: var(--ink);
  letter-spacing: 0.5px;
}
.logo:hover { text-decoration: none; }
.logo .chip {
  width: 26px; height: 20px;
  background: var(--gold);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  position: relative;
  display: inline-block;
}
.logo .chip::after {
  content: "";
  position: absolute; inset: 4px 5px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 2px;
}
.logo .cc { color: var(--slate); font-weight: 400; font-size: 14px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink-70); font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
@media (max-width: 720px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a { font-size: 13px; }
}

/* ---------- SIM 切角卡片（全站签名元素） ---------- */
.sim-card {
  background: var(--card);
  border: 1px solid var(--line);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
  padding: 26px 28px;
  position: relative;
}
.sim-card::before {
  /* 切角描边 */
  content: "";
  position: absolute; top: 0; left: 0;
  width: var(--notch); height: var(--notch);
  background: linear-gradient(135deg, transparent 49%, var(--line) 49%, var(--line) 55%, transparent 55%);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.25;
  letter-spacing: 1px;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.sub {
  margin-top: 18px; color: var(--ink-70); font-size: 17px; max-width: 34em;
}
.hero .meta-line {
  margin-top: 26px; font-family: var(--mono); font-size: 13px; color: var(--slate);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.hero .meta-line span::before { content: "▪ "; color: var(--gold); }

/* Hero 右侧：大号 SIM 芯片图形 */
.hero-chip {
  aspect-ratio: 5 / 4;
  background: var(--ink);
  clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%, 0 48px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-chip .contacts {
  width: 58%; height: 52%;
  border: 2px solid var(--gold);
  border-radius: 10px;
  position: relative;
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 0 / 2px 33% no-repeat,
    linear-gradient(var(--gold), var(--gold)) 50% 100% / 2px 33% no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 50% / 33% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 50% / 33% 2px no-repeat;
}
.hero-chip .tag {
  position: absolute; bottom: 14px; right: 18px;
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.55);
  letter-spacing: 2px;
}

/* ---------- 区块标题 ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.section-head h2 { font-size: 24px; font-weight: 700; }
.section-head .en {
  font-family: var(--mono); font-size: 12px; color: var(--slate);
  letter-spacing: 2px; text-transform: uppercase;
}

/* ---------- 信号格评分 ---------- */
.signal { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.signal i {
  width: 5px; background: var(--line); display: inline-block;
}
.signal i:nth-child(1){height:5px} .signal i:nth-child(2){height:8px}
.signal i:nth-child(3){height:11px} .signal i:nth-child(4){height:13px}
.signal i:nth-child(5){height:16px}
.signal[data-level="1"] i:nth-child(-n+1),
.signal[data-level="2"] i:nth-child(-n+2),
.signal[data-level="3"] i:nth-child(-n+3),
.signal[data-level="4"] i:nth-child(-n+4),
.signal[data-level="5"] i:nth-child(-n+5) { background: var(--green); }

/* ---------- 平台卡片网格 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.brand-card h3 { font-size: 18px; margin-bottom: 6px; }
.brand-card .fit { font-size: 13px; color: var(--slate); margin-bottom: 12px; min-height: 2.6em; }
.brand-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-70); padding: 5px 0; border-top: 1px dashed var(--line); }
.brand-card .row .v { font-family: var(--mono); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 15px; font-weight: 600;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  border: none; cursor: pointer;
}
.btn:hover { background: #0E1B29; text-decoration: none; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: #A87A24; }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn.block { display: block; text-align: center; width: 100%; margin-top: 14px; }

/* ---------- 目的地入口 ---------- */
.dest { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; }
.dest .name { font-size: 17px; font-weight: 700; }
.dest .hint { font-size: 13px; color: var(--slate); }
.dest .code { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 2px; }
a.dest-link { color: inherit; }
a.dest-link:hover { text-decoration: none; }
a.dest-link:hover .sim-card { border-color: var(--gold); }

/* ---------- 对比表 ---------- */
.table-scroll { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  background: var(--card); border: 1px solid var(--line);
  min-width: 640px;
}
table.compare th, table.compare td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
table.compare th {
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
table.compare td.num { font-family: var(--mono); white-space: nowrap; }
table.compare tr:last-child td { border-bottom: none; }
table.compare td .win { color: var(--green); font-weight: 700; }
table.compare tbody tr:hover { background: #FBFAF6; }
.table-note { font-size: 12.5px; color: var(--slate); margin-top: 10px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 3px;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }

/* ---------- 文章列表 ---------- */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; }
.post-item .t { font-size: 17px; font-weight: 600; color: var(--ink); }
.post-item .d { font-size: 13.5px; color: var(--slate); margin-top: 4px; }
.post-item .date { font-family: var(--mono); font-size: 12px; color: var(--slate); white-space: nowrap; }
a.post-link { color: inherit; }
a.post-link:hover { text-decoration: none; }
a.post-link:hover .sim-card { border-color: var(--gold); }

/* ---------- 文章正文 ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 20px 40px; }
.article .eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--gold);
  letter-spacing: 3px; margin-bottom: 14px;
}
.article h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.35; font-weight: 800; }
.article .byline {
  margin: 16px 0 0; font-size: 13px; color: var(--slate);
  font-family: var(--mono);
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.article h2 {
  font-size: 22px; margin: 44px 0 16px; padding-left: 14px;
  border-left: 4px solid var(--gold);
  line-height: 1.4;
}
.article h3 { font-size: 18px; margin: 30px 0 12px; }
.article p { margin: 14px 0; }
.article ul, .article ol { margin: 14px 0 14px 24px; }
.article li { margin: 7px 0; }
.article strong { color: var(--ink); }
.article .callout {
  margin: 22px 0; padding: 18px 22px;
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  font-size: 15px;
}
.article .callout.green { background: var(--green-soft); border-left-color: var(--green); }
.article .cta-box { margin: 26px 0; text-align: left; }
.article .cta-box .why { font-size: 13.5px; color: var(--slate); margin-top: 8px; }
.article img { max-width: 100%; }

/* ---------- 联盟披露 ---------- */
.disclosure {
  font-size: 12.5px; color: var(--slate);
  background: #F0EEE7; border: 1px dashed var(--line);
  padding: 12px 16px; margin: 28px 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 56px;
  background: var(--ink); color: rgba(255,255,255,.75);
  padding: 40px 0 32px;
  font-size: 14px;
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; letter-spacing: 1px; }
.site-footer a { color: rgba(255,255,255,.75); display: block; margin: 6px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer .fine {
  margin-top: 32px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: rgba(255,255,255,.45);
  font-family: var(--mono);
}
