:root {
  --red: #b7000c;
  --red-2: #e41928;
  --red-3: #f6373b;
  --red-4: #dc2626;
  --gold: #ffdc80;
  --ink: #1e1e1e;
  --ink-2: #18181b;
  --muted: #777;
  --muted-2: #71717a;
  --stone: #f6f3f2;
  --stone-2: #f4f4f5;
  --line: #e4e4e7;
  --container: 1280px;
  --container-wide: 1440px;
}

/* ======== shared.css — header / footer / modal (auto-extracted) ======== */

.promo-bar {
  background: var(--red);
  color: #fff;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}

.promo-bar p {
  font-size: 16px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: .05em;
}

.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 32px);
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* 移动端三段式结构：桌面默认隐藏 head/foot，body 透明化让链接回到 flex 主轴 */
.main-nav .nav-mobile-head,
.main-nav .nav-mobile-foot { display: none; }
.main-nav .nav-mobile-body { display: contents; }

.header-actions {
  margin-left: auto;
}

.nav-link {
  color: #fff;
  font-size: 16px;
  letter-spacing: -.025em;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 2px;
  transition: color .2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--red);
}

.main-nav .nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.main-nav .nav-arrow {
  font-size: 9px;
  opacity: .7;
  transition: transform .25s;
}

.main-nav .nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.main-nav .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--ink);
  min-width: 160px;
  padding: 6px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 60;
  border: 1px solid rgba(255, 255, 255, .08);
}

.main-nav .nav-dropdown:hover .nav-dropdown-menu,
.main-nav .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.main-nav .nav-dropdown-menu a {
  display: block;
  padding: 10px 22px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
  text-transform: none;
  transition: background .15s, color .15s;
}

.main-nav .nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--red);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-icons {
  display: flex;
  gap: 12px;
}

.header-icons img {
  width: 20px;
  height: 20px;
  opacity: .85;
  transition: opacity .2s;
  cursor: pointer;
}

.header-icons img:hover {
  opacity: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  height: 38px;
  padding: 0 24px;
  white-space: nowrap;
  text-decoration: none;
  transition: filter .2s, transform .15s;
}

.header-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.asic-brand {
  color: #f5f5f5;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: .05em;
  white-space: nowrap;
}

.site-footer {
  background: #1c1b1b;
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding: 97px 0 96px;
  color: #fff;
}

.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: 50px;
}

.footer-cols {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 160px;
  min-width: 160px;
}

.brand-col {
  flex: 0 0 400px;
  width: 400px;
}

.brand-footer {
  margin: 0 0 30.8px;
}

.brand-footer .brand-logo {
  width: 56px;
  height: 56px;
}

.brand-footer .brand-name {
  font-size: 20px;
  letter-spacing: 1px;
}

.footer-addr p {
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  line-height: 22.75px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s, opacity .25s;
  opacity: .85;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.social-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-col h6 {
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col li a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: color .2s;
}

.footer-col li a:hover {
  color: var(--red-3);
}

.footer-subscribe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-wrap: wrap;
}

.subs-big {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 27px;
  letter-spacing: 1px;
}

.subs-small {
  font-size: 12px;
  color: #FFFFFF;
  line-height: 27px;
  letter-spacing: .04em;
  margin-top: 15px;
}

.subs-form {
  width: 283px;
  max-width: 100%;
  height: 39px;
  border: 1px solid #454545;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 2px;
  background: rgba(0, 0, 0, .3);
}

.subs-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0 17px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.subs-form input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.subs-form button,
.subs-form > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 109px;
  height: 33px;
  min-height: 33px;
  max-height: 33px;
  padding: 0;
  margin: 0;
  border: none;
  background: #f53439;
  border-radius: 5px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 33px;
  text-decoration: none !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  transition: filter .2s;
}

.subs-form button:hover,
.subs-form > a:hover {
  filter: brightness(1.1);
}

.footer-legal {
  border-left: 2px solid var(--red);
  padding: 21px 32px 21px 34px;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-legal h6 {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.footer-legal p {
  font-size: 10px;
  font-weight: 400;
  line-height: 16.25px;
  letter-spacing: -.5px;
  color: rgba(255, 255, 255, .3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-bottom p {
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.qr-modal.active {
  display: flex;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  animation: qrFade .2s ease;
}

.qr-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 20px;
  max-width: calc(100vw - 32px);
  text-align: center;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  animation: qrPop .2s ease;
}

@keyframes qrFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes qrPop {
  from {
    opacity: 0;
    transform: scale(.92) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 28px;
  height: 28px;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s;
}

.qr-close:hover {
  color: #000;
}

.qr-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  letter-spacing: .5px;
}

.qr-img {
  width: 400px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  display: block;
}

.qr-placeholder {
  width: 400px;
  height: 400px;
  max-width: 100%;
  margin: 0 auto;
  background: #f4f4f5;
  color: #aaa;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 4px;
}

.qr-placeholder small {
  font-size: 11px;
  color: #bbb;
}

.qr-hint {
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

button.social-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 1600px) {
  .site-footer {
    padding: 80px 0 72px;
  }
}

@media (max-width: 1440px) {
  .site-footer {
    padding: 64px 0 56px;
  }
  .footer-inner {
    max-width: 1200px;
  }
  .footer-cols {
    gap: 32px;
  }
  .brand-col {
    flex: 0 0 340px;
    width: 340px;
  }
  .footer-legal {
    padding: 18px 28px 18px 30px;
  }
}

@media (max-width: 1200px) {
  .main-nav {
    gap: 14px;
  }
  .nav-link {
    font-size: 14px;
  }
  .header-cta {
    font-size: 14px;
    padding: 0 18px;
    height: 34px;
  }
  .brand-logo {
    width: 48px;
    height: 48px;
  }
  .brand-name {
    font-size: 18px;
  }
  .footer-inner {
    max-width: 100%;
  }
  .brand-col {
    flex: 0 0 300px;
    width: 300px;
  }
  .footer-cols {
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
    padding: 0 16px;
  }

  /* 布局：Logo 靠左，立即开户 + 汉堡贴右 */
  .site-header .brand { margin-right: auto; flex-shrink: 0; }
  .site-header .header-actions { order: 2; gap: 10px; margin: 0; flex-shrink: 0; }
  .site-header .header-actions .header-icons { display: none; }

  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: 6px;
    z-index: 1002;
  }
  .nav-toggle span { background: #1c1b1b; }
  body.nav-open .nav-toggle { display: none; }

  /* 抽屉：全屏 fixed 覆盖（覆盖 shared.css 原 max-height 方案） */
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    max-height: none;
    order: 5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
    transform: none;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { display: flex; max-height: none; }

  /* 移动端顶栏：Logo + 品牌文字 + 关闭 X */
  .main-nav .nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .main-nav .nav-mobile-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .main-nav .nav-mobile-logo img { height: 34px; display: block; }
  .main-nav .nav-mobile-brand {
    color: #1c1b1b;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
  }
  .main-nav .nav-mobile-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #1c1b1b;
    cursor: pointer;
    padding: 0;
  }

  /* 中间链接区：居中纵向 */
  .main-nav .nav-mobile-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    gap: 6vw;
    padding: 6vw 4vw;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .main-nav .nav-mobile-body .nav-link {
    width: auto;
    height: auto;
    padding: 8px 0;
    border: none;
    color: #333;
    font-size: 4.5vw;
    text-transform: none;
    font-weight: 400;
    display: inline-flex;
    justify-content: center;
    gap: 4px;
  }
  .main-nav .nav-mobile-body .nav-link.active { color: #DC0000; }
  .main-nav .nav-link::after { display: none; }

  /* 下拉：点击 .active 展开（移动端） */
  .main-nav .nav-dropdown {
    position: relative;
    display: block;
    width: auto;
    height: auto;
    text-align: center;
    border: none;
  }
  .main-nav .nav-dropdown .nav-dropdown-toggle { justify-content: center; color: #333; }
  .main-nav .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .main-nav .nav-dropdown.active .nav-dropdown-menu {
    max-height: 80vw;
    padding: 2vw 0;
  }
  .main-nav .nav-dropdown.active .nav-arrow { transform: rotate(180deg); }
  /* 覆盖桌面 hover 的 opacity/visibility/transform，避免抽屉错位；max-height 由 .active 驱动 */
  .main-nav .nav-dropdown:hover .nav-dropdown-menu,
  .main-nav .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
  .main-nav .nav-dropdown-menu a {
    display: block;
    padding: 2vw 4vw;
    color: #666;
    font-size: 3.6vw;
    background: transparent;
    text-transform: none;
  }
  .main-nav .nav-arrow {
    font-size: 10px;
    color: inherit;
    opacity: 1;
    transition: transform .25s;
  }

  /* 底部行：下载 APP + 立即注册 */
  .main-nav .nav-mobile-foot {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .main-nav .nav-mobile-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
  }
  .main-nav .nav-mobile-btn-primary {
    background: #DC0000;
    color: #fff;
    border: 2px solid #DC0000;
  }
  .main-nav .nav-mobile-btn-outline {
    background: transparent;
    color: #DC0000;
    border: 2px solid #DC0000;
  }

  .footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .brand-col,
  .footer-col {
    width: auto;
    flex: none;
    min-width: 0;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .promo-bar {
    height: auto;
    min-height: 48px;
    padding: 8px 16px;
  }
  .promo-bar p {
    font-size: 12px;
    line-height: 18px;
  }
  .header-inner {
    height: 58px;
    padding: 0 16px;
    gap: 12px;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 16px;
  }
  .header-actions .header-icons {
    display: none;
  }
  .header-cta {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
  .asic-brand,
  .asic-license {
    font-size: 9px;
    line-height: 13px;
  }
  .prices-inner,
  .testimonials-inner,
  .why-grid,
  .footer-inner,
  .cta-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-footer {
    padding: 48px 0 32px;
  }
  .footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
  .brand-footer .brand-logo {
    width: 48px;
    height: 48px;
  }
  .footer-subscribe {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
  }
  .subs-form {
    width: 100%;
    max-width: 340px;
  }
  .footer-legal {
    padding: 16px 18px 16px 20px;
    margin-top: 16px;
    gap: 18px;
  }
  .footer-legal p {
    font-size: 9px;
    line-height: 14px;
    letter-spacing: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .brand-col {
    grid-column: 1;
  }
  .footer-col.brand-col {
    grid-column: 1;
  }
  .subs-big {
    font-size: 18px;
  }
}
