/* ============================================================
   万事达投资集团 —— 主样式
   ============================================================ */
:root {
  --navy: #0b1f3a;
  --navy-2: #11294d;
  --navy-3: #16345f;
  --gold: #c9a24b;
  --gold-2: #e0c37e;
  --ink: #1c2740;
  --text: #3d4a63;
  --muted: #7a8699;
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e6eaf1;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea9a1f;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(11,31,58,.10);
  --shadow-sm: 0 4px 14px rgba(11,31,58,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,31,58,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #e8cd85); color: var(--navy); font-weight: 800; font-size: 20px;
}
.brand .name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.brand .name small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--gold-2); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #cfd8e8; font-size: 15px; }
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-right .btn { font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; transition: .22s; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #e2c478); color: #1c2333; box-shadow: 0 6px 18px rgba(201,162,75,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,75,.45); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #eef2f9; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger-o { border-color: #f3c6c6; color: var(--red); background: #fff; }
.btn-danger-o:hover { background: #fdf2f2; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; color: #eef2f9; font-size: 14px; }
.user-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* 移动端菜单 */
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--navy); flex-direction: column; gap: 6px; padding: 16px 24px 24px; transform: translateY(-130%); transition: .3s; box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  .nav-right .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(11,31,58,.92), rgba(22,52,95,.78)),
    radial-gradient(1000px 400px at 80% -10%, rgba(201,162,75,.28), transparent);
  color: #fff; padding: 92px 0 76px; position: relative; overflow: hidden;
}
.hero .eyebrow { color: var(--gold-2); letter-spacing: 4px; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.2; font-weight: 800; max-width: 720px; }
.hero h1 .hl { color: var(--gold-2); }
.hero .lead { margin-top: 20px; max-width: 640px; color: #d5deee; font-size: 16px; }
.hero .cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 20px; margin-top: 56px; }
.hero-stats .stat { border-left: 2px solid var(--gold); padding-left: 16px; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .num em { color: var(--gold-2); font-style: normal; }
.hero-stats .lab { color: #aebbd0; font-size: 13px; margin-top: 4px; }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-tag { color: var(--gold); letter-spacing: 3px; font-size: 12px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.section-title { font-size: clamp(24px,3.4vw,34px); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 36px; }

.friend-links { display:flex; flex-wrap:wrap; gap:12px 16px; margin-top:8px; }
.friend-links a { padding:10px 22px; background:#fff; border:1px solid var(--line); border-radius:999px; color:var(--ink); font-size:14px; box-shadow:var(--shadow-sm); transition:.2s; }
.friend-links a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
@media (max-width:820px){ .friend-links a { padding:8px 16px; font-size:13px; } }

.footer-slogan { color: var(--gold-2); font-size: 14px; letter-spacing: 3px; margin: 6px 0 12px; font-weight: 600; }
/* ---------- 首页轮播 ---------- */
.hero-slider { position: relative; overflow: hidden; height: 560px; background: var(--navy); }
.slider-track { display: flex; height: 100%; transition: transform .6s ease; }
.slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; }
.slide::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(11,31,58,.72) 0%, rgba(11,31,58,.25) 55%, rgba(11,31,58,.05) 100%); }
.slide .container { position: relative; z-index: 1; }
.slide-inner { max-width: 640px; color: #fff; }
.slide-inner h2 { font-size: clamp(24px,3.6vw,42px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.slide-inner p { color: #dbe4f3; font-size: 16px; max-width: 560px; }
.slide-inner h2 .hl { color: var(--gold-2); }
.slide-hero .eyebrow { color: var(--gold-2); letter-spacing: 4px; font-size: 13px; margin-bottom: 14px; }
.slide-hero .cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.slide-hero .hero-stats { margin-top: 30px; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; max-width: 780px; }
.slide-hero .hero-stats .stat { border-left: 2px solid var(--gold); padding-left: 14px; }
.slide-hero .hero-stats .num { font-size: 26px; font-weight: 800; color: #fff; }
.slide-hero .hero-stats .num em { color: var(--gold-2); font-style: normal; }
.slide-hero .hero-stats .lab { font-size: 13px; color: #cdd8ea; margin-top: 4px; }

.slide-btn { display:inline-block; margin-top:22px; padding:11px 26px; border-radius:999px; background:linear-gradient(135deg,var(--gold),#e2c478); color:#1c2333; font-weight:700; font-size:14px; }
.slider-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:46px; height:46px; border:none; border-radius:50%; background:rgba(0,0,0,.32); color:#fff; font-size:26px; line-height:1; cursor:pointer; transition:.2s; }
.slider-arrow:hover { background:rgba(0,0,0,.6); }
.slider-arrow.prev { left:18px; } .slider-arrow.next { right:18px; }
.slider-dots { position:absolute; bottom:18px; left:0; right:0; z-index:3; display:flex; justify-content:center; gap:9px; }
.slider-dots .dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; transition:.2s; }
.slider-dots .dot.on { background:#fff; width:26px; border-radius:6px; }
@media (max-width:700px){ .hero-slider { height: 540px; } .slide-inner h2{font-size:22px;} .slide-inner p{font-size:14px;} .slider-arrow{width:36px;height:36px;font-size:20px;} .slide-hero .hero-stats{grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px;} .slide-hero .hero-stats .num{font-size:20px;} .slide-hero .eyebrow{font-size:12px;letter-spacing:2px;} .slide-hero .cta{margin-top:18px;} }

/* ---------- 卡片网格（产品/服务） ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(430px,1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .25s; box-shadow: 0 2px 8px rgba(11,31,58,.04);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d8c9a2; }
.card .card-icon { font-size: 34px; }
.card h3 { color: var(--navy); font-size: 18px; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* 产品卡 */
.product-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.product-card .tag { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #eef3fb; color: var(--navy-2); }
.product-card .tag.gold { background: #f7efdc; color: #9c741e; }
.product-card .tag.red { background: #fdefef; color: var(--red); }
.product-card .tag.green { background: #e9f7ef; color: var(--green); }
.product-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.product-row:last-child { border-bottom: 0; }
.product-row .k { color: var(--muted); }
.product-row .v { color: var(--navy); font-weight: 600; }
.product-row .v.gold { color: #b07e1a; font-size: 16px; }

/* ---------- 按钮组 ---------- */
.card-foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; gap: 10px; }
.card-foot .btn { flex: 1; }

/* ---------- 徽标/数据 ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: #e9f7ef; color: var(--green); }
.badge-red { background: #fdecec; color: var(--red); }
.badge-orange { background: #fdf1e0; color: var(--orange); }
.badge-gray { background: #eef0f4; color: var(--muted); }
.badge-blue { background: #e8f1fc; color: #1f6fd6; }
.badge-gold { background: #f3e7c9; color: #9c741e; }
.gold-txt { color: #b07e1a; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #aebbd0; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-grid a { display: block; padding: 5px 0; color: #aebbd0; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-about { color: #93a1ba; font-size: 14px; margin-top: 12px; }
.footer-links { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0 4px; }
.footer-links h4 { color:#fff; font-size:14px; margin-bottom:12px; }
.footer-links-list { display:flex; flex-wrap:wrap; gap:8px 24px; }
.footer-links-list a { color:#aebbd0; font-size:13px; }
.footer-links-list a:hover { color: var(--gold-2); }
@media (max-width:820px){ .footer-links-list { gap:8px 18px; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; text-align: center; font-size: 13px; color: #7c8aa5; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 认证页 ---------- */
.auth-wrap { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding-top: max(26px, env(safe-area-inset-top)); padding-right: 20px; padding-bottom: max(26px, env(safe-area-inset-bottom)); padding-left: 20px; background:
  linear-gradient(135deg, rgba(11,31,58,.94), rgba(22,52,95,.86)),
  radial-gradient(700px 300px at 85% 10%, rgba(201,162,75,.25), transparent); }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); }
.auth-card .auth-head { text-align: center; margin-bottom: 26px; }
.auth-card .auth-logo { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #e8cd85); color: var(--navy); font-weight: 800; font-size: 26px; }
.auth-card h2 { color: var(--navy); font-size: 22px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fafbfd; color: var(--ink); transition: .2s; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,162,75,.15); }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--gold); font-weight: 600; }
.alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-error { background: #fdecec; color: var(--red); }
.alert-success { background: #e9f7ef; color: var(--green); }

/* ---------- 会员中心布局 ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 36px 0 72px; }
.dash-side { position: sticky; top: 92px; align-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.dash-side .u-head { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dash-side .avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #e2c478); color: var(--navy); font-size: 22px; font-weight: 800; }
.dash-side .uname { color: var(--navy); font-weight: 700; }
.dash-side nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--text); font-size: 14px; margin-bottom: 4px; transition: .2s; }
.dash-side nav a:hover { background: var(--bg); }
.dash-side nav a.active { background: #f3ead4; color: #9c741e; font-weight: 600; }
.dash-main { min-width: 0; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash-side { position: static; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 22px; }
.panel-title { font-size: 18px; color: var(--navy); font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }

.balance-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 18px; margin-bottom: 22px; }
.balance-card { border-radius: var(--radius); padding: 22px; color: #fff; position: relative; overflow: hidden; }
.balance-card.grad-navy { background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.balance-card.grad-gold { background: linear-gradient(135deg, #b07e1a, var(--gold-2)); color: #20190a; }
.balance-card.grad-gray { background: linear-gradient(135deg, #43506a, #6b7a97); }
.balance-card .lbl { font-size: 13px; opacity: .85; }
.balance-card .val { font-size: 28px; font-weight: 800; margin-top: 6px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; color: var(--muted); font-weight: 600; background: #f7f9fc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.table tr:hover td { background: #fafbfd; }
.table .amt-in { color: var(--green); font-weight: 700; }
.table .amt-out { color: var(--red); font-weight: 700; }

/* ---------- 工具性 ---------- */
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.right { text-align: right; }
.spin { display: inline-block; width: 40px; height: 40px; border: 4px solid #e3e8f1; border-top-color: var(--gold); border-radius: 50%; animation: rot 0.8s linear infinite; margin: 60px auto; }
@keyframes rot { to { transform: rotate(360deg); } }
.loading-wrap { display: grid; place-items: center; }
.modal-mask { position: fixed; inset: 0; background: rgba(11,31,58,.55); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: min(520px,100%); max-height: 90vh; overflow: auto; padding: 26px; box-shadow: var(--shadow); }
.modal-title { font-size: 18px; color: var(--navy); font-weight: 700; margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width:640px){ .two-col{grid-template-columns:1fr;} }

/* 收益提示小字 */
.disclaimer { font-size: 12px; color: #a06f1f; background: #fbf4e3; padding: 8px 12px; border-radius: 8px; margin-top: 14px; }

/* ---------- 友情链接卡片（带 logo） ---------- */
.friend-links { display: flex; flex-wrap: wrap; gap: 14px; }
.friend-links .friend-link { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: .2s; font-size: 14px; font-weight: 600; }
.friend-links .friend-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.09); border-color: var(--gold); }
.friend-links .fl-logo { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.friend-links .fl-name { white-space: nowrap; }
@media (max-width:700px){ .friend-links{gap:10px;} .friend-links .friend-link{padding:8px 14px 8px 9px;font-size:13px;} .friend-links .fl-logo{width:30px;height:30px;font-size:14px;} }
