/* 合营代理招商网站 - 通用样式 */

:root {
  --bg-pos-desktop: 50% 34%;
  --bg-pos-mobile: 50% 18%;
  --brand: #0b63a1;
  --brand-2: #2c7be5;
  --text: #0f2940;
  --muted: #10334d;
  --green: #28a745;
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .12);
  --glass-bd: 1px solid rgba(11, 99, 161, .10);
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-bg-weak: rgba(255, 255, 255, .38);
  --radius-xl: 22px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans SC", sans-serif;
  background: var(--bg-url) center/cover no-repeat;
  background-position: var(--bg-pos-desktop);
  line-height: 1.7;
}

@media (max-width: 640px) {
  body {
    background-position: var(--bg-pos-mobile);
  }
}

/* 头部导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(11, 99, 161, .1);
  box-shadow: 0 2px 20px rgba(15, 23, 42, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  opacity: .8;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  padding: 8px 16px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 20px;
  transition: all .2s ease;
  white-space: nowrap;
}

.menu a:hover {
  background: rgba(11, 99, 161, .1);
  color: var(--brand-2);
}

.menu a.active {
  background: linear-gradient(90deg, #2c7be5, #0b63a1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44, 123, 229, .3);
}

/* 手机端菜单 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--brand);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(11, 99, 161, .1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .12);
}

.mobile-menu a {
  display: block;
  padding: 16px 20px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(11, 99, 161, .05);
}

.mobile-menu a:hover {
  background: rgba(11, 99, 161, .05);
}

.mobile-menu a.active {
  background: linear-gradient(90deg, #2c7be5, #0b63a1);
  color: #fff;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav {
    padding: 10px 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu.show {
    display: block;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 8px 12px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 9px;
  }
}

/* 容器样式 */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* 页脚样式 - 智能定位 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

footer {
  text-align: center;
  padding: 24px 12px;
  font-size: 13px;
  color: #335;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .6);
  margin-top: auto;
}

/* 首页特定样式 */
.hero {
  position: relative;
  padding: 100px 0 26px;
  text-align: center;
  margin-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, .75), transparent 60%);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 20px rgba(255, 255, 255, .65);
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cta {
  display: inline-block;
  margin: 18px 6px 0;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(44, 123, 229, .25);
  transition: transform .15s, opacity .15s;
}

.cta:hover {
  opacity: .96;
  transform: translateY(-1px);
}

.cta--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid rgba(44, 123, 229, .35);
  box-shadow: none;
}

/* 方向条（玻璃拟态） */
.hintbar {
  margin: 18px auto;
  border-radius: var(--radius-xl);
  border: var(--glass-bd);
  background: var(--glass-bg);
  backdrop-filter: saturate(150%) blur(6px);
  -webkit-backdrop-filter: saturate(150%) blur(6px);
  box-shadow: var(--shadow-lg);
}

.hintbar .inner {
  padding: 16px 20px;
}

.hintbar p {
  margin: 0;
  color: #0f3554;
}

.hintbar .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  margin-right: 8px;
  vertical-align: middle;
}

/* 两张信息卡 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius-xl);
  border: var(--glass-bd);
  background: var(--glass-bg-weak);
  backdrop-filter: saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card__inner {
  padding: 18px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3 svg {
  width: 18px;
  height: 18px;
  opacity: .9;
}

/* 清单链接（更精致） */
.list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f3554;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(11, 99, 161, .08);
  transition: transform .12s, box-shadow .12s, background .12s;
}

.item a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.item svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #0ea5e9;
  opacity: .95;
}

.item .arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #8aa1b2;
}

/* 卡片底部按钮始终对齐 */
.card__footer {
  padding: 0 18px 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #28a745, #1e7e34);
  box-shadow: 0 10px 30px rgba(30, 126, 52, .22);
  transition: transform .12s, opacity .12s;
}

.btn:hover {
  opacity: .96;
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* 底部联系按钮 */
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 10px;
  flex-wrap: wrap;
}

.pill {
  border-radius: 30px;
  border: 1px solid rgba(11, 99, 161, .10);
  ;
  background: #ffffff;
  backdrop-filter: saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
  overflow: hidden;
  text-decoration: none !important;
  color: var(--brand);
}

.pill img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

.pill:hover {
  opacity: .8;
}

/* 强化版：联系方式强制居中 */
section.actions,
body section.actions {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body section.actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  text-align: center !important;
}

body section.actions .pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

/* 文章页面样式 */
.article-container {
  max-width: 960px;
  margin: 100px auto 28px;
  padding: 0 16px;
  background: transparent;
}

.article-container h1 {
  color: #0b63a1;
  text-shadow: 0 2px 6px rgba(255, 255, 255, .6);
}

.article-container h2 {
  color: #0b63a1;
  margin-top: 22px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, .6);
}

.article-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: rgba(255, 255, 255, .5);
}

.article-container th,
.article-container td {
  border: 1px solid rgba(15, 23, 42, .1);
  padding: 10px 12px;
  text-align: left;
}

.article-container .cta {
  display: inline-block;
  margin: 16px 0;
  background: linear-gradient(90deg, #28a745, #1e7e34);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

/* 代理注册页面样式 */
.agent-wrap {
  max-width: 1100px;
  margin: 100px auto 16px;
  display: grid;
  gap: 14px;
  padding: 0 12px;
}

.agent-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(11, 99, 161, .08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}

.agent-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.agent-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .10);
}

.agent-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.agent-name {
  font-size: 18px;
  font-weight: 800;
  color: #0b63a1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .8);
}

.agent-sub {
  display: block;
  font-size: 12px;
  color: #10334d;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .8);
  opacity: .9;
}

.agent-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.agent-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .18s;
}

.agent-btn-green {
  background: linear-gradient(90deg, #28a745, #1e7e34);
  color: #fff;
}

.agent-btn-green:hover {
  opacity: .92;
}

.agent-btn:active {
  transform: translateY(1px);
}

.agent-h1 {
  font-size: 28px;
  text-align: center;
  margin: 120px 0 10px;
  color: #0b63a1;
  text-shadow: 0 2px 6px rgba(255, 255, 255, .7);
}

.agent-hint {
  max-width: 980px;
  margin: 0 auto 22px;
  color: #10334d;
  text-align: center;
  padding: 0 12px;
}

.agent-back {
  display: block;
  width: max-content;
  margin: 22px auto 8px;
  padding: 12px 26px;
  background: #0ea5e9;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

.agent-back:hover {
  opacity: .92;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  display: block;
  z-index: 50;
}

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 680px;
  width: min(92%, 680px);
  background: #fff;
  color: #1f2937;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 22px 22px 16px;
  z-index: 51;
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #111827;
}

.modal-card p {
  margin: 8px 0;
}

.ack-row {
  display: flex;
  justify-content: center;
}

.ack-btn {
  margin-top: 14px;
}

/* 简易 Modal + 居中联系方式 */
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  z-index: 50;
}

.modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1000px;
  width: 92%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
  display: none;
  z-index: 51;
  overflow: hidden;
}

.modal__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(90deg, #2c7be5, #0b63a1);
  color: #fff;
  font-weight: 800;
}

.modal__bd {
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
  color: #0f2940;
  white-space: pre-wrap;
  line-height: 1.65;
}

.modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.modal--show .modal__backdrop {
  display: block;
}

.modal--show .modal__panel {
  display: block;
}

/* 手机端响应式调整 */
@media (max-width: 640px) {
  .agent-pill {
    padding: 12px 12px;
  }

  .agent-name {
    font-size: 16px;
  }

  .agent-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .agent-sub {
    display: none;
  }
}