@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;700&display=swap');
/* ============================================================
   InsureTourChina i18n base — RTL mirror + Arabic webfont
   @import MUST stay on line 1 (CSS spec: @import precedes all rules)
   ============================================================ */

/* InsureTourChina — 深青蓝 + 暖金 主题（light）
   站点通用样式规范见 lifetourchina-i18n-site SKILL.md
   卡片网格：合并选择器 + auto-fill，避免竖排/横排大卡 */
:root {
  --primary: #0e4a5f;
  --primary-700: #093545;
  --primary-500: #157a94;
  --primary-300: #4fa3b8;
  --accent: #c9a227;
  --accent-light: #e0bd55;
  --bg: #ffffff;
  --bg-alt: #f2f7f9;
  --bg-dark: #093545;
  --text: #1c2b33;
  --muted: #5b7180;
  --border: #dde8ed;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(14, 74, 95, 0.10);
  --shadow-sm: 0 3px 12px rgba(14, 74, 95, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--primary-500); text-decoration: none; }
a:hover { color: var(--primary-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--primary-700); margin: 0 0 .5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 22px; }
li { margin: 5px 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--accent); }
.center { text-align: center; }
.small { font-size: .9rem; }

/* ---------- 导航（唯一结构，main.js 处理汉堡菜单） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary-700); font-size: 1.15rem; flex: 0 0 auto; }
.nav-brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-300));
  display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 800;
}
.nav-brand small { display: block; font-weight: 500; font-size: .68rem; color: var(--accent); letter-spacing: .4px; }
/* 导航项多，必须允许收缩：min-width:0 + flex-shrink，否则 fallback 字体下会溢出容器 */
.nav-links {
  display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0;
  min-width: 0; flex: 0 1 auto; flex-wrap: nowrap;
}
.nav-links a {
  display: block; padding: 8px 8px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .88rem;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-alt); color: var(--primary-700); }
.nav-cta { background: var(--accent) !important; color: #1a1306 !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--accent-light) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary-700); margin: 4px 0; }

/* 中等桌面（1024–1360px）：导航项数量多，逐步收紧字号与内边距，保证不换行不溢出 */
@media (max-width: 1360px) {
  .nav-links a { padding: 8px 6px; font-size: .84rem; }
}
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 4px; font-size: .78rem; }
  .nav-brand { font-size: 1.05rem; }
}

/* ---------- 按钮 / CTA ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: .18s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-gold { background: var(--accent); color: #1a1306; }
.btn-gold:hover { background: var(--accent-light); color: #1a1306; }
.btn-outline { border-color: var(--primary-300); color: var(--primary-700); background: #fff; }
.btn-outline:hover { background: var(--bg-alt); }
/* hero 内的描边按钮：白字白框会不可见，必须给深色底 */
.btn-light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.btn-light:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.8); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary) 55%, var(--primary-500) 100%);
  color: #fff; padding: 76px 0 68px;
}
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero p { color: #d3e4ea; font-size: 1.1rem; max-width: 680px; }
.hero .accent-line { color: var(--accent-light); font-weight: 700; }
.hero .eyebrow-light {
  color: var(--accent-light); font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; font-size: .76rem; margin-bottom: 14px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* 信任条 */
.trust-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 26px; padding: 16px 20px; justify-content: center; }
.trust-bar .item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.trust-bar .item b { color: var(--primary-700); }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section.bg-white { background: #fff; }
.section.bg-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .8rem; }
.section-head p { color: var(--muted); }

/* ---------- 卡片网格（关键规范：合并选择器 + auto-fill） ---------- */
.cards-grid, .cards-grid-2, .cards-grid-3, .cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: .18s; height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 .4em; }
.card .tag {
  display: inline-block; font-size: .74rem; background: var(--bg-alt); color: var(--primary-500);
  padding: 3px 9px; border-radius: 20px; margin: 8px 6px 0 0;
}
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

/* ---------- 流程步骤 ---------- */
.steps { counter-reset: step; max-width: 820px; margin: 0 auto; }
.step {
  display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- 页面横幅 ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  color: #fff; padding: 54px 0 46px;
}
.page-banner .breadcrumb { font-size: .85rem; color: #a8c9d4; margin-bottom: 10px; }
.page-banner .breadcrumb a { color: #a8c9d4; }
.page-banner .breadcrumb span { margin: 0 4px; opacity: .6; }
.page-banner h1 { color: #fff; margin: 0 0 10px; }
.page-banner p { color: #d3e4ea; max-width: 760px; margin: 0; }

/* ---------- 文章布局 ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 84px; }
.sidebar-cta { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-cta h4 { margin-top: 0; }
.sidebar-cta p { font-size: .92rem; color: var(--muted); }
.article-body h2 { margin-top: 1.5em; }
.article-body h3 { margin-top: 1.2em; }
.article-body p { color: var(--muted); }
.article-body p.lead { color: var(--text); font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.6em; }
.article-body ul { color: var(--muted); }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin: 8px 0; font-size: .92rem; }

/* 内容分块 */
.block { margin-bottom: 26px; }
.block h3 { margin-bottom: 8px; }
.block p { color: var(--muted); }

/* 结构示意卡 */
.shape-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.shape {
  background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--primary-300);
  border-radius: 10px; padding: 16px 18px;
}
.shape h4 { margin: 0 0 6px; font-size: 1rem; }
.shape p { margin: 0; color: var(--muted); font-size: .92rem; }

/* 清单 */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 9px 0; }
.checklist .check {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(14,74,95,.1); color: var(--primary); display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; margin-top: 3px;
}
.checklist-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4px 32px; }

.dot-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.dot-list li { display: flex; gap: 12px; align-items: flex-start; margin: 9px 0; }
.dot-list .dot {
  flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-top: 11px;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--primary); color: #fff; font-weight: 600; }
table.data tr:nth-child(even) td { background: var(--bg-alt); }
table.data td:first-child { font-weight: 600; color: var(--primary-700); }

/* ---------- 提示框 / 免责 ---------- */
.note { background: #fff8e8; border: 1px solid var(--accent-light); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; color: #5a4a1e; font-size: .93rem; }
.note.blue { background: #eef6f9; border-color: var(--primary-300); border-left-color: var(--primary); color: #17414f; }
.mt-disclaimer { background: #f0f3f8; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; padding: 8px 20px; text-align: center; }

/* 全站免责条 */
.disclaimer-bar {
  background: #eaf1f4; border-top: 1px solid var(--border); color: var(--muted);
  font-size: .8rem; line-height: 1.55; padding: 14px 20px; text-align: center;
}

/* ---------- 产品导流页 ---------- */
.exit-notice {
  background: #eef6f9; border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 28px;
}
.exit-notice strong { display: block; color: var(--primary-700); font-size: 1.02rem; margin-bottom: 8px; }
.exit-notice p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0; }
.source-note { color: var(--muted); font-size: .82rem; line-height: 1.6; margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px;
  font-size: 1.02rem; font-weight: 600; color: var(--primary-700); cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-q .plus { color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-item.open .faq-a { display: block; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); max-width: 680px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 1rem; font-family: inherit; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-300); border-color: var(--primary-300); }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-legal { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* 个人信息处理单独同意 */
.field.consent { margin-top: 4px; }
.check-row {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  font-size: .85rem; line-height: 1.55; color: var(--muted); font-weight: 400;
  margin: 0;
}
.check-row input[type="checkbox"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary);
  cursor: pointer;
}
.check-row > span { display: block; flex: 1 1 auto; min-width: 0; }
.check-row a { color: var(--primary-700); text-decoration: underline; }
.check-row b { color: var(--text); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--primary-700); color: #fff; padding: 13px 22px; border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100; font-size: .95rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #b42318; }

/* 联系四卡 */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.contact-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.contact-card .icon { font-size: 1.8rem; }
.contact-card a { font-weight: 700; }
.contact-card h4 { margin: 6px 0 8px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: #a8c9d4; padding: 46px 0 26px; }
.footer a { color: #a8c9d4; }
.footer a:hover { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin: 7px 0; font-size: .92rem; }
.footer .brand-logo { font-weight: 800; color: #fff; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.footer .brand-logo .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-300), var(--accent)); display: grid; place-items: center; color: #fff; }
.footer-about { margin-top: 12px; color: #7fa5b3; font-size: .92rem; max-width: 320px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #7fa5b3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-legal a { color: #9dc3d1; }
.footer-legal a:hover { color: #fff; }
/* 展业人三披露（姓名 / 执业证编号 / 所属机构全称）——非面对面销售法定要求 */
.footer-disclosure {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .78rem; line-height: 1.6; color: #8fb3c1;
}
.footer-disclosure b { color: #cfe4ec; font-weight: 600; }

/* 滚动动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav-links { font-size: .85rem; }
  .nav-links a { padding: 8px 7px; }
}
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; } .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: 80vh; overflow-y: auto;
  }
  .nav-links a { padding: 11px 12px; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .checklist-2col { grid-template-columns: 1fr; }
}

/* ============================================================
   RTL overrides (appended below)
   ============================================================ */
/* ============================================================
   LifeTourChina i18n base — add to the site's css/style.css

   *** IMPORTANT: the @import below MUST be the FIRST line of style.css. ***
   CSS requires @import to precede all other rules; if you "append" this file
   at the end of style.css the Arabic webfont is silently ignored and /ar
   pages fall back to a non-Arabic font. Move the @import to the very top,
   then append the rest of this file at the end.

   Also allow Google Fonts in _headers CSP:
     style-src ... https://fonts.googleapis.com
     font-src  ... https://fonts.gstatic.com

   Provides: machine-translation disclaimer bar,
             Arabic RTL mirror overrides,
             Noto Sans Arabic webfont for /ar pages.
   NOTE: the [dir="rtl"] selectors below target common class
   names; adjust them to match the target site's actual markup.
   ============================================================ */

/* Arabic webfont (loaded by browser at runtime; falls back to var(--font)) */

/* --- Machine-translation disclaimer bar (injected at top of <body>) --- */
.mt-disclaimer {
  background: #FFF8E1;
  color: #7a5b00;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  line-height: 1.5;
}
.mt-disclaimer a { color: #0D47A1; font-weight: 600; margin-left: 6px; }

/* === Multilingual: Arabic RTL overrides === */
[dir="rtl"] body { font-family: 'Noto Sans Arabic', var(--font); }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .mdt-column ul li { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] blockquote,
[dir="rtl"] .article-body blockquote {
  border-left: none;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
[dir="rtl"] .news-card-meta { flex-direction: row-reverse; }
[dir="rtl"] .doctor-info .doctor-tags { direction: rtl; }
[dir="rtl"] .article-meta { flex-direction: row-reverse; }
[dir="rtl"] .hero-buttons,
[dir="rtl"] .cta-buttons,
[dir="rtl"] .btn-group { flex-direction: row-reverse; }
[dir="rtl"] img { transform: none; }  /* keep logos/photos upright */

/* === Multilingual: language switcher bar (injected at top of <body>) === */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  padding: 6px 16px;
  background: var(--primary-dark, #004D40);
  font-size: 13px;
  line-height: 1.4;
}
.lang-switch a {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.lang-switch a:hover { opacity: 1; text-decoration: underline; }
.lang-switch a.active { opacity: 1; font-weight: 700; }
.lang-switch a.active::after { content: " \2022"; }
[dir="rtl"] .lang-switch { direction: rtl; }
