/* =========================================================
   茗想国际 MINGXIANG INTERNATIONAL — 视觉规范 / 基础样式
   基于 2021 VIS 2.0：茗想蓝 C45 M0 Y15 K60 / 茗想灰 C30 M25 Y40 K0
   点缀：香槟金 / 银（仅作点缀，不破 VI 禁例）
   ========================================================= */

:root {
  /* 品牌色（CMYK → RGB 近似，后续可微调） */
  --mx-blue: #386657;        /* 茗想蓝 / 深青蓝（主色） */
  --mx-blue-deep: #2c5044;   /* 主色加深，用于渐变与 hover */
  --mx-grey: #b3bf99;        /* 茗想灰 / sage 灰绿（辅助） */
  --mx-grey-soft: #e7eadf;  /* 灰绿浅调（表面） */
  --mx-gold: #b89968;        /* 香槟金（点缀） */
  --mx-gold-soft: #d8c4a0;
  --mx-silver: #c9cdd2;      /* 银（点缀） */
  --mx-bg: #f7f5f0;          /* 米白背景 */
  --mx-bg-warm: #fbfaf6;     /* 更浅暖白（卡片） */
  --mx-ink: #2a2e2c;         /* 墨色文字 */
  --mx-ink-soft: #5a605c;    /* 次级文字 */
  --mx-line: #e3e0d6;        /* 分割线 */

  --container: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(40, 56, 48, .06);
  --shadow-md: 0 14px 40px rgba(40, 56, 48, .10);
  --shadow-gold: 0 10px 30px rgba(184, 153, 104, .22);

  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--mx-ink);
  background: var(--mx-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 文字与标题 ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: .01em; margin: 0 0 .5em; }
.eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mx-gold); font-weight: 600; margin-bottom: 14px;
}
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: 34px; color: var(--mx-blue); }
.section-head p { color: var(--mx-ink-soft); font-size: 17px; margin: 0; }
.gold-rule { width: 56px; height: 3px; background: linear-gradient(90deg, var(--mx-gold), var(--mx-gold-soft)); margin: 18px auto 0; border-radius: 3px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--mx-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--mx-blue-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--mx-gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-ghost { border-color: var(--mx-blue); color: var(--mx-blue); background: transparent; }
.btn-ghost:hover { background: var(--mx-blue); color: #fff; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 240, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--mx-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand .mark { height: 42px; width: auto; display: block; }
.footer .brand .mark { height: 36px; }
.brand .name { font-size: 18px; color: var(--mx-blue); letter-spacing: .03em; }
.brand .name small { display: block; font-size: 10px; letter-spacing: .28em; color: var(--mx-gold); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--mx-ink); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--mx-gold); transition: width .22s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* 语言切换 */
.lang-toggle { display: inline-flex; border: 1px solid var(--mx-line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 14px; font-size: 13px; font-weight: 600;
  color: var(--mx-ink-soft); cursor: pointer; font-family: var(--font);
}
.lang-toggle button.active { background: var(--mx-blue); color: #fff; }

.menu-btn { display: none; background: transparent; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-btn span { width: 24px; height: 2px; background: var(--mx-blue); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184,153,104,.18), transparent 60%),
    linear-gradient(160deg, var(--mx-blue) 0%, var(--mx-blue-deep) 100%);
  color: #f4f1e8; padding: 120px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.hero .container { position: relative; }
.hero .eyebrow { color: var(--mx-gold-soft); }
.hero h1 { font-size: 46px; max-width: 880px; color: #fff; }
.hero p.lead { font-size: 19px; max-width: 620px; color: rgba(244,241,232,.86); margin: 22px 0 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-gold { background: var(--mx-gold); }
.hero-cta .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-stats { display: flex; gap: 46px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 30px; font-weight: 700; color: var(--mx-gold-soft); }
.hero-stats .stat .lab { font-size: 14px; color: rgba(244,241,232,.75); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid p { color: var(--mx-ink-soft); font-size: 16px; }
.about-cards { display: grid; gap: 18px; }
.info-card {
  background: var(--mx-bg-warm); border: 1px solid var(--mx-line); border-left: 3px solid var(--mx-gold);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.info-card h4 { color: var(--mx-blue); margin-bottom: 8px; font-size: 17px; }
.info-card p { margin: 0; font-size: 15px; color: var(--mx-ink-soft); }

/* ---------- 板块概览卡片 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-card {
  background: var(--mx-bg-warm); border: 1px solid var(--mx-line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--mx-gold); }
.p-card .idx { font-size: 13px; color: var(--mx-gold); font-weight: 700; letter-spacing: .1em; }
.p-card h3 { font-size: 20px; color: var(--mx-blue); margin: 10px 0 6px; }
.p-card .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mx-grey); }
.p-card p { color: var(--mx-ink-soft); font-size: 15px; margin: 12px 0 18px; flex: 1; }
.p-card .more { font-size: 14px; font-weight: 600; color: var(--mx-blue); display: inline-flex; align-items: center; gap: 6px; }
.p-card .more::after { content: "→"; transition: transform .2s ease; }
.p-card:hover .more::after { transform: translateX(4px); }

/* ---------- 为从业者解决什么 ---------- */
.solutions { background: var(--mx-bg-warm); }
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.sol-card {
  background: #fff; border: 1px solid var(--mx-line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.sol-card h3 { color: var(--mx-blue); font-size: 21px; display: flex; align-items: center; gap: 12px; }
.sol-card h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mx-gold); }
.sol-row { display: flex; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--mx-line); }
.sol-row .k { flex: 0 0 96px; color: var(--mx-gold); font-weight: 600; font-size: 14px; }
.sol-row .v { color: var(--mx-ink-soft); font-size: 15px; }

/* ---------- 加盟合作 ---------- */
.free-list { display: grid; gap: 14px; }
.free-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
.free-item { display: flex; gap: 14px; align-items: flex-start; background: var(--mx-bg-warm); border: 1px solid var(--mx-line); border-radius: 12px; padding: 18px 20px; }
.free-item .tick { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--mx-blue); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.free-item .txt strong { color: var(--mx-blue); }
.free-item .txt span { color: var(--mx-ink-soft); font-size: 15px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 14px; color: var(--mx-ink-soft); font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--mx-line); border-radius: 10px;
  font-family: var(--font); font-size: 15px; background: #fff; color: var(--mx-ink); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--mx-gold); box-shadow: 0 0 0 3px rgba(184,153,104,.15); }
.contact-info .info-card { border-left-color: var(--mx-blue); }
.note { font-size: 13px; color: var(--mx-ink-soft); background: #fff7e9; border: 1px solid var(--mx-gold-soft); border-radius: 10px; padding: 12px 14px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--mx-blue-deep); color: rgba(244,241,232,.82); padding: 54px 0 30px; }
.footer .f-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand .name { color: #fff; }
.footer .f-col h5 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer .f-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(244,241,232,.7); }
.footer .f-col a:hover { color: var(--mx-gold-soft); }
.footer .f-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(244,241,232,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 通用区块底色 ---------- */
.bg-soft { background: var(--mx-bg-warm); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .free-list.cols-2 { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .platform-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; background: var(--mx-bg);
    flex-direction: column; gap: 0; padding: 8px 24px 18px; border-bottom: 1px solid var(--mx-line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--mx-line); width: 100%; }
  .menu-btn { display: flex; }
  .hero { padding: 84px 0 72px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 26px; }
}

/* ---------- 双语切换辅助（静态双语片段） ---------- */
body.lang-en .lang-zh { display: none; }
body.lang-zh .lang-en { display: none; }

/* =========================================================
   详情页（七大板块子页）专属样式
   ========================================================= */
.detail-hero { padding: 96px 0 70px; }
.detail-hero .idx { font-size: 13px; letter-spacing: .22em; color: var(--mx-gold-soft); font-weight: 600; }
.detail-hero h1 { font-size: 40px; max-width: 760px; color: #fff; }
.detail-hero .tag {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mx-gold-soft); border: 1px solid rgba(216,196,160,.5); border-radius: 999px;
  padding: 5px 14px; margin: 16px 0 18px;
}
.detail-hero p.lead { font-size: 18px; max-width: 660px; color: rgba(244,241,232,.88); margin: 0; }

.lead-center { max-width: 820px; margin: 0 auto; text-align: center; color: var(--mx-ink-soft); font-size: 17px; line-height: 1.95; }

/* 运营模式 — 流程步骤 */
.flow { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.flow-step {
  display: flex; gap: 18px; align-items: flex-start; background: #fff;
  border: 1px solid var(--mx-line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm);
}
.flow-step .n {
  flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--mx-blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.flow-step .body h4 { color: var(--mx-blue); margin: 0 0 6px; font-size: 17px; }
.flow-step .body p { margin: 0; color: var(--mx-ink-soft); font-size: 15px; }

/* 亮点卡片 */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hl-card {
  background: var(--mx-bg-warm); border: 1px solid var(--mx-line); border-top: 3px solid var(--mx-gold);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.hl-card h4 { color: var(--mx-blue); font-size: 17px; margin-bottom: 8px; }
.hl-card p { margin: 0; color: var(--mx-ink-soft); font-size: 14px; }

/* CTA 区块 */
.cta-section { text-align: center; }
.cta-box {
  max-width: 760px; margin: 0 auto; background: linear-gradient(160deg, var(--mx-blue), var(--mx-blue-deep));
  color: #f4f1e8; border-radius: var(--radius); padding: 52px 38px; box-shadow: var(--shadow-md);
}
.cta-box h2 { color: #fff; font-size: 27px; }
.cta-box p { color: rgba(244,241,232,.86); margin: 12px 0 26px; font-size: 16px; }
.cta-box .btn-gold { background: var(--mx-gold); }

@media (max-width: 980px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .hl-grid { grid-template-columns: 1fr; }
  .detail-hero { padding: 76px 0 56px; }
  .detail-hero h1 { font-size: 30px; }
}
