/* ==========================================================================
   盈联 YLINK ｜ 民鋒金融官网 —— 设计系统
   设计令牌提取自 www.manfordfin.com（Wix）
   ========================================================================== */

:root {
  /* ---- 品牌色（取自原站 --color_N 变量） ---- */
  --ink:        #33343F;   /* color_45 主文字 / 深板岩蓝 */
  --ink-2:      #434459;   /* color_3 次级深色 */
  --ink-3:      #22232A;   /* color_19 更深 */
  --muted:      #5F6176;   /* color_9 次要文字 */
  --muted-2:    #9293A6;   /* color_13 弱化文字 */
  --line:       #C8C9D3;   /* color_12 描边 */
  --gold:       #F8BD26;   /* color_32 品牌金 */
  --gold-light: #FCDE93;   /* color_31 浅金 */
  --gold-dark:  #D09707;   /* color_33 深金 */
  --green:      #333F36;   /* 期货按钮深墨绿 */
  --surface:    #F7F7F7;   /* color_27 浅灰底 */
  --white:      #FFFFFF;

  /* ---- 版式（比例取自 --font_N） ---- */
  --font: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "PingFang SC",
          "Hiragino Sans GB", "Heiti SC", "Noto Sans SC", sans-serif;

  --fs-display: 88px;   /* font_3 页面主标题 */
  --fs-h1:      72px;   /* font_4 */
  --fs-h2:      50px;   /* font_5 */
  --fs-h3:      40px;   /* font_6 */
  --fs-h4:      28px;   /* font_2 */
  --fs-lead:    22px;   /* font_0 */
  --fs-body:    18px;   /* font_8 */
  --fs-sm:      15px;   /* font_9 */
  --fs-xs:      14px;   /* font_10 */

  /* ---- 布局 ---- */
  --container: 1280px;
  --gutter: 80px;
  --logo-h: 46px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--white); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 118px;
}

/* ---- 品牌组合：民鋒 LOGO ＋ 盈联 LOGO（等高并排） ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.brand img { height: var(--logo-h); width: auto; }
.brand-sep {
  width: 1px;
  height: calc(var(--logo-h) - 12px);
  background: var(--line);
  flex: 0 0 auto;
  margin: 0 4px;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink);
}

/* ---- 导航 ---- */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  display: block;
  padding: 10px 13px;
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  transition: color .18s ease;
}
.nav a:hover { color: var(--gold-dark); }
.nav a.active { font-weight: 700; }

/* ---- 右侧功能区 ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: 26px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
}
.lang img { width: 20px; height: 20px; border-radius: 50%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 12px 28px;
  font-size: var(--fs-body);
  line-height: 1.3;
  cursor: pointer;
  background: none;
  text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid   { background: var(--ink);   color: #fff; }
.btn-solid:hover { background: #22232A; }
.btn-green   { background: var(--green); color: #fff; }
.btn-green:hover { background: #29332C; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-gold   { background: var(--gold); color: var(--ink); font-weight: 500; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: var(--fs-sm); }

/* ---- 移动端汉堡 ---- */
.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s ease;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--surface);
  font-size: 17px;
}
.mobile-menu .mm-actions {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 26px;
}
.mobile-menu .lang { height: 42px; }

/* ==========================================================================
   Page hero / titles
   ========================================================================== */
.hero img { width: 100%; }
.hero-home img   { aspect-ratio: 1280 / 540; object-fit: cover; }
.hero-banner img { aspect-ratio: 1280 / 365; object-fit: cover; }

.page-title {
  font-size: clamp(38px, 6.1vw, var(--fs-display));
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .01em;
}
.page-title.center { text-align: center; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 78px 0; }
.section.tight { padding: 52px 0; }
.section.center { text-align: center; }

.eyebrow {
  font-size: var(--fs-sm);
  color: var(--ink);
  letter-spacing: .04em;
}

.prose {
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--ink);
  max-width: 1000px;
  margin-inline: auto;
}
.prose p + p { margin-top: 1.5em; }
.prose strong { font-weight: 700; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--ink);
}

/* ---- 开户页 ---- */
.stack-center { display: flex; flex-direction: column; align-items: center; }
.link-list { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.link-list a, .text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link-list a:hover, .text-link:hover { color: var(--gold-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.note {
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--ink);
}

/* ---- 服务卡片 ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 41px;
}
.card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(51,52,63,.10); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 30px 22px 40px; text-align: center; }
.card-title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
.card-sub {
  margin-top: 16px;
  font-size: var(--fs-h4);
  color: var(--ink);
  line-height: 1.5;
}

/* ---- 两栏（产品页） ---- */
.split {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 82px;
  align-items: center;
}
.split-media img { width: 100%; aspect-ratio: 640 / 700; object-fit: cover; }
.split-body { text-align: center; }
.split-body .stack-sm {
  display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 26px;
}
.plain-list { font-size: var(--fs-body); line-height: 2; }

/* ---- 资产管理页 ---- */
.panel-media img { width: min(940px, 100%); aspect-ratio: 940 / 545; object-fit: cover; margin-inline: auto; }

/* ---- 表格下载 ---- */
.doc-list { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.doc-list li { position: relative; padding-left: 28px; font-size: var(--fs-h4); line-height: 1.7; }
.doc-list li::before {
  content: ""; position: absolute; left: 6px; top: .78em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
}
.doc-list a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.doc-list a:hover { color: var(--gold-dark); }

/* ==========================================================================
   联系我们（金色区块）
   ========================================================================== */
.contact-block {
  background: var(--gold);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 66px 58px 84px;
}
.contact-info h1 { font-size: clamp(38px, 6.1vw, var(--fs-display)); line-height: 1.2; }
.contact-info address {
  font-style: normal;
  margin-top: 34px;
  display: flex; flex-direction: column; gap: 20px;
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.contact-info a { border-bottom: 1px solid rgba(51,52,63,.35); }
.contact-info a:hover { border-bottom-color: var(--ink); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field .req { color: #A32A17; }
.field input, .field textarea {
  border: 0;
  border-bottom: 1px solid rgba(51,52,63,.55);
  background: transparent;
  padding: 6px 0 8px;
  font-size: var(--fs-body);
  color: var(--ink);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(51,52,63,.62); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form-actions { grid-column: 1 / -1; margin-top: 10px; }
.form-actions .btn { width: 100%; padding: 15px; }
.form-msg {
  grid-column: 1 / -1; font-size: var(--fs-sm); min-height: 1.6em; color: #1F5B33;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 84px 0 66px; text-align: center; }
.footer-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.footer-mail {
  display: inline-block;
  margin-top: 26px;
  font-size: 20px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-mail:hover { color: var(--gold-dark); }
.footer-line {
  margin-top: 22px;
  font-size: var(--fs-sm);
  color: var(--ink);
  letter-spacing: .01em;
}
.footer-addr { margin-top: 18px; font-size: var(--fs-sm); color: var(--ink); }
.footer-copy { margin-top: 30px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  :root { --gutter: 48px; --logo-h: 42px; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .nav a { padding: 10px 9px; font-size: 14px; }
  .brand-name { font-size: 19px; }
}

@media (max-width: 1024px) {
  .nav, .header-actions { display: none; }
  .burger { display: inline-flex; }
  .header-inner { min-height: 92px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-block { grid-template-columns: 1fr; gap: 44px; padding: 48px 34px 60px; }
}

@media (max-width: 820px) {
  :root { --gutter: 24px; --logo-h: 38px; --fs-body: 17px; }
  .section { padding: 56px 0; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split-media img { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 60px 0 48px; }
  .footer-name { font-size: 21px; }
  .doc-list li { font-size: 22px; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .brand-sep { display: none; }
  .brand { gap: 10px; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .mobile-menu, .form-actions { display: none; }
  .reveal { opacity: 1; transform: none; }
}
