/* ========== 天匯資本 APEX CAPITAL - 全局样式 ========== */
:root {
  --primary: #1b3c8c;
  --primary-dark: #122a66;
  --primary-light: #2f56b8;
  --accent: #e8a33d;
  --text: #1a2333;
  --text-gray: #5a6478;
  --bg-light: #f5f7fc;
  --border: #e4e8f2;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(27, 60, 140, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 防止页面横向溢出（移动端表格等宽内容不会撑破布局） */
html, body { overflow-x: hidden; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== 顶部导航 ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 232, 242, 0.8);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: color .2s, background .2s;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(27, 60, 140, 0.06); }
.nav-link .arrow { font-size: 10px; transition: transform .2s; }
.nav-item:hover .nav-link .arrow { transform: rotate(180deg); }

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(18, 42, 102, 0.14);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all .22s ease;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  transition: background .2s;
}
.dropdown a:hover { background: var(--bg-light); color: var(--primary); }
.dropdown a .d-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27, 60, 140, 0.08);
  color: var(--primary);
  border-radius: 8px;
  font-size: 17px;
}

.btn-login {
  flex-shrink: 0;
  padding: 9px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 14.5px;
  transition: background .2s, transform .2s;
}
.btn-login:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* 移动端汉堡 */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ========== Hero ========== */
.hero {
  padding: 170px 0 110px;
  --photo: url('../assets/mountain-summit.webp');
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  font-size: 13.5px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.25;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 22px;
}
.hero p.sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.76); background: rgba(255, 255, 255, 0.08); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.18); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 36px;
  border-radius: 999px;
  font-size: 15.5px;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(27, 60, 140, 0.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: rgba(27, 60, 140, 0.06); transform: translateY(-2px); }

/* hero 装饰线条 */
.hero-lines { position: relative; height: 90px; margin-top: 30px; }
.hero-lines::before, .hero-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 140%;
  height: 2px;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(90deg, transparent, rgba(27, 60, 140, 0.35), transparent);
}
.hero-lines::after {
  margin-top: 34px;
  background: linear-gradient(90deg, transparent, rgba(232, 163, 61, 0.45), transparent);
}

/* ========== 通用 Section ========== */
.section { padding: 90px 0; }
.section.gray { background: var(--bg-light); }
.section-title { text-align: center; font-size: 36px; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--text-gray); font-size: 16.5px; max-width: 760px; margin: 0 auto 56px; }

/* ========== 产品卡片 ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 34px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(27, 60, 140, 0.25);
}
.product-card .p-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #fff;
  background: var(--primary);
  margin-bottom: 22px;
}
.product-card:nth-child(even) .p-icon {
  background: var(--primary-dark);
}
.product-card h3 { font-size: 21px; margin-bottom: 12px; }
.product-card p { color: var(--text-gray); font-size: 15px; margin-bottom: 20px; }
.card-link { color: var(--primary); font-size: 15px; font-weight: 500; }
.card-link:hover { text-decoration: underline; }

/* ========== 为什么选择 ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px;
  transition: all .25s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-card .w-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(27, 60, 140, 0.08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 19px; margin-bottom: 12px; }
.why-card p, .why-card li { color: var(--text-gray); font-size: 14.5px; }
.why-card ul { padding-left: 18px; list-style: disc; }
.why-card .num { color: var(--primary); font-weight: 700; }

/* ========== 行业方案 Tabs ========== */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-gray);
  transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.solution-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.solution-box h3 { font-size: 24px; margin-bottom: 16px; }
.solution-box p { color: var(--text-gray); font-size: 15.5px; }
.solution-visual {
  height: 220px;
  border-radius: 14px;
  --photo: url('../assets/mountain-mist.webp');
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-visual.photo-dusk { --photo: url('../assets/mountain-dusk.webp'); }
.solution-visual.photo-summit { --photo: url('../assets/mountain-summit.webp'); }
.solution-mark {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(12, 32, 72, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}
.solution-mark .site-icon { width: 50px; height: 50px; stroke-width: 1.45; }

/* ========== 客户 Logo 墙 ========== */
.client-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.client-logo {
  height: 74px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-gray);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .2s;
}
.client-logo:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

/* ========== CTA 区块 ========== */
.cta {
  --photo: url('../assets/mountain-dusk.webp');
  border-radius: 20px;
  padding: 70px 60px;
  text-align: center;
  color: #fff;
}
.cta h2 { font-size: 32px; margin-bottom: 14px; }
.cta p { opacity: .85; margin-bottom: 32px; font-size: 16.5px; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.2); }

/* ========== 页头（子页面） ========== */
.page-hero {
  padding: 150px 0 80px;
  --photo: url('../assets/mountain-mist.webp');
  text-align: center;
}
.cta-spaced { padding-top: 56px; }
.page-hero h1 { font-size: 42px; color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255, 255, 255, 0.88); font-size: 17px; max-width: 720px; margin: 0 auto; }

/* ========== 模型页 ========== */
.model-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all .25s;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(27,60,140,.25); }
.model-card .m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.model-card .m-name { font-size: 17px; font-weight: 600; }
.model-card .m-tag {
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(27,60,140,.08);
  color: var(--primary);
}
.model-card p { font-size: 14px; color: var(--text-gray); margin-bottom: 16px; min-height: 44px; }
.model-card .m-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-gray); border-top: 1px solid var(--border); padding-top: 14px; }
.model-card .m-meta b { color: var(--text); font-weight: 600; }

/* ========== 价格页 ========== */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 15px 22px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--primary); color: #fff; font-weight: 600; }
.price-table tr:hover td { background: var(--bg-light); }
.price-table .p-name { font-weight: 600; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 60px; }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  transition: all .25s;
}
.price-card.featured { border: 2px solid var(--primary); position: relative; }
.price-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  padding: 3px 18px;
  border-radius: 999px;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 20px; margin-bottom: 10px; }
.price-card .amount { font-size: 34px; color: var(--primary); font-weight: 700; margin: 12px 0; }
.price-card .amount small { font-size: 14px; color: var(--text-gray); font-weight: 400; }
.price-card ul { text-align: left; margin: 22px 0 28px; }
.price-card li { font-size: 14.5px; color: var(--text-gray); padding: 7px 0 7px 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ========== 关于页 ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid h2 { font-size: 30px; margin-bottom: 20px; color: var(--primary-dark); }
.about-grid p { color: var(--text-gray); font-size: 15.5px; margin-bottom: 14px; }
.about-visual {
  height: 340px;
  border-radius: 18px;
  --photo: url('../assets/mountain-summit.webp');
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92);
  font-size: 26px;
  letter-spacing: 4px;
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 34px 20px; }
.stat-item .s-num { font-size: 38px; font-weight: 700; color: var(--primary); }
.stat-item .s-label { color: var(--text-gray); font-size: 14.5px; margin-top: 6px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px 26px; text-align: center; transition: all .25s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .v-icon { font-size: 34px; margin-bottom: 14px; }
.value-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-gray); }

/* ========== 生态合作页 ========== */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ========== 时间线 ========== */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(27,60,140,.15);
}
.timeline-item .t-date { color: var(--primary); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.timeline-item h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-item p { color: var(--text-gray); font-size: 14.5px; }

/* ========== Footer ========== */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand .slogan { color: var(--text-gray); font-size: 15px; letter-spacing: 3px; }
.footer-col h4 { font-size: 15px; color: var(--text-gray); font-weight: 500; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; padding: 6px 0; color: var(--text); transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact p { font-size: 14.5px; padding: 5px 0; color: var(--text); }
.footer-contact p span { color: var(--text-gray); margin-right: 6px; }
.footer-contact a { color: var(--primary); }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-gray);
}

/* 回到顶部 */
.back-top {
  position: fixed;
  right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  z-index: 900;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary); color: #fff; }

/* Shared photographic panels and line icons */
.hero, .page-hero, .solution-visual, .cta, .about-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #132a55;
}
.hero::before, .page-hero::before, .solution-visual::before, .cta::before, .about-visual::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -2;
  background: var(--photo) center / cover no-repeat;
  filter: blur(4px);
}
.hero::after, .page-hero::after, .solution-visual::after, .cta::after, .about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 32, 72, 0.66);
}
.solution-visual::after { background: rgba(12, 32, 72, 0.38); }
.site-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-badge .site-icon { width: 16px; height: 16px; }
.p-icon .site-icon { width: 29px; height: 29px; }
.w-icon .site-icon { width: 26px; height: 26px; }
.v-icon .site-icon { width: 32px; height: 32px; }
.value-card .v-icon { color: var(--primary); height: 44px; display: flex; align-items: center; justify-content: center; }
.back-top .site-icon { width: 19px; height: 19px; }

/* ========== 卡片内容整体居中 ========== */
.product-card, .why-card { text-align: center; }
.product-card .p-icon { margin-left: auto; margin-right: auto; }
.why-card .w-icon { margin-left: auto; margin-right: auto; }
.why-card ul { list-style: none; padding-left: 0; }

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .price-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hamburger { display: flex; }
  .nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 0 16px; }
  .btn-login { margin-left: auto; display: none; }
  .hero h1 { font-size: 34px; }
  .product-grid, .about-grid { grid-template-columns: 1fr; }
  .why-grid, .model-grid, .price-cards, .eco-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr !important; }
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom > div { width: 100%; text-align: center !important; }
  .client-wall { grid-template-columns: repeat(3, 1fr); }
  .solution-box { grid-template-columns: 1fr; padding: 30px; }
  .stat-row, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 28px; }
}
@media (max-width: 560px) {
  .why-grid, .model-grid, .price-cards, .eco-grid { grid-template-columns: 1fr; }
  .client-wall { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 语言切换悬浮按钮 ========== */
.lang-switcher {
  position: fixed;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  font-size: 14px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.lang-btn .chev { font-size: 10px; color: var(--text-gray); transition: transform .2s; }
.lang-switcher.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;               /* 选项列表左边与按钮左边对齐 */
  min-width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(18, 42, 102, 0.14);
  padding: 6px;
  display: none;
}
.lang-switcher.open .lang-menu { display: block; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  text-align: left;
}
.lang-menu button:hover { background: var(--bg-light); color: var(--primary); }
.lang-menu button .tick { color: var(--primary); visibility: hidden; font-size: 12px; }
.lang-menu button.on .tick { visibility: visible; }
