/* ============================================================
   2026 可持续全球领导者大会 · PC 即刻参会二级页(登录通道)
   头尾与 pc-2026 首页一致;中间双卡片参数取自
   「pc即刻参会-二级页面(1).psd」(1920×1586)实测值
   卡片:630×408 圆角 20px,间距 38px,内容区 1298px(x310-1609)
   观众卡渐变:#2CB3D3(右上)→#7ADE89(左下),底条 #61D271
   尊享卡渐变:#F9A235→#FBC34D(垂直),底条 #F9B53A
   ============================================================ */

:root {
  --green: #00A300;
  --green-text: #3DB63D;
  --green-cta: #00BB0C;
  --green-footer: #3E753B;
  --ink: #4B524B;
  --header-h: clamp(64px, 5.2083vw, 100px);  /* PSD 实测 100px @1920 */
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font); color: var(--ink); background: #E3E5E3;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 1500px; max-width: 94%; margin: 0 auto; }

/* ---------- 入场动效 ---------- */
body.anim .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
body.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================== 头部导航(PSD:0-101,与首页一致) ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: #202020; transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.header-inner {
  width: 1500px; max-width: 94%; height: 100%; margin: 0 auto;
  display: flex; align-items: center;
}
.logo { flex: none; display: flex; align-items: center; }
.logo-img { width: clamp(44px, 3.3854vw, 65px); height: clamp(44px, 3.3854vw, 65px); }

.nav-menu { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 48px); margin-left: auto; }
.nav-link {
  font-size: clamp(13px, 0.9375vw, 18px); color: #fff; padding: 8px 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--green-text); }
.nav-link.active { color: var(--green-text); }
.caret-wrap { position: relative; display: inline-block; width: .95em; height: .65em; vertical-align: baseline; perspective: 200px; }
.caret-ic {
  position: absolute; left: 0; top: 50%; width: .95em; height: auto;
  transform: translateY(-50%) rotateX(0deg);
  transition: transform .5s ease, opacity .3s ease;
  backface-visibility: hidden;
}
.caret-ic.ic-up { opacity: 0; transform: translateY(-50%) rotateX(180deg); }
.nav-item.has-drop:hover .nav-link { color: var(--green-text); }
.nav-item.has-drop:hover .caret-ic.ic-down { opacity: 0; transform: translateY(-50%) rotateX(-180deg); }
.nav-item.has-drop:hover .caret-ic.ic-up { opacity: 1; transform: translateY(-50%) rotateX(0deg); }

.nav-item.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 113px; background: #141414;
  padding: 12px 0; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown a { display: block; padding: 8px 12px; font-size: clamp(13px, 0.9375vw, 18px); line-height: 1.5; color: #D5D9D5; white-space: nowrap; text-align: center; }
.dropdown a:hover { color: var(--green-text); }
.nav-item.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ===================== 登录通道主体(PSD:101-877) ===================== */
.join-main {
  flex: 1;
  background: #E3E5E3 url(../img/bg-texture.jpg) center top / cover no-repeat;
  padding: calc(var(--header-h) + 131px) 0 161px;  /* 标题距导航 131px,卡片区距页脚 161px */
}
.join-container { width: 1298px; max-width: 94%; margin: 0 auto; }

.page-title { font-size: 44px; font-weight: 700; color: var(--ink); }

.channel-cards { display: flex; gap: 38px; margin-top: 36px; }

/* ---------- 通道卡片(630×408,圆角 20px) ---------- */
.channel-card {
  flex: 1; min-width: 0; height: 408px; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.channel-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }

.card-audience { background: linear-gradient(215deg, #2CB3D3 0%, #44C0BC 38%, #79DC8C 100%); }
.card-premium  { background: linear-gradient(180deg, #F9A235 0%, #FBC34D 100%); }

.card-body { flex: 1; padding: 34px 30px 0; }

.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 2px solid rgba(255, 255, 255, .5);
}
.card-title { font-size: 30px; font-weight: 700; }
.card-en { font-size: 16px; letter-spacing: 2px; color: rgba(255, 255, 255, .9); }

.card-main { display: flex; justify-content: space-between; padding-top: 20px; }

.card-text .lead { font-size: 28px; font-weight: 700; line-height: 1.35; }
.card-text .sub { margin-top: 30px; font-size: 20px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.card-text .plan { font-size: 20px; letter-spacing: 1px; color: rgba(255, 255, 255, .92); margin-bottom: 12px; }

.signup-link {
  display: inline-block; margin-top: 38px;
  font-size: 18px; font-weight: 700; color: #fff; text-decoration: underline;
  transition: opacity .2s ease, transform .2s ease;
}
.signup-link:hover { opacity: .85; transform: translateX(3px); }

/* 二维码框:白色四角标(PSD:卡1 框 207×207 / 图 167×167) */
.qr-frame {
  position: relative; flex: none;
  width: 207px; height: 207px;
  display: flex; align-items: center; justify-content: center;
}
.qr-frame .corner { position: absolute; width: 30px; height: 30px; border: 3px solid #fff; }
.qr-frame .tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.qr-frame .tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.qr-frame .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.qr-frame .br { bottom: 0; right: 0; border-left: none; border-top: none; }
.qr-img { width: 167px; height: 167px; }

/* 尊享卡:权益列表 */
.benefits-title { margin-top: 28px; font-size: 20px; font-weight: 600; }
.benefits { display: flex; gap: 56px; margin-top: 16px; list-style: none; }
.benefits li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 16px; white-space: nowrap; }
.bf-icon {
  width: 54px; height: 54px; border: 2px solid #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.bf-icon img { max-width: 32px; max-height: 32px; }

/* 尊享卡:右侧二维码区(框 189×189,设计稿中二维码为空,待替换) */
.card-premium .qr-side { display: flex; flex-direction: column; align-items: center; }
.card-premium .qr-frame { width: 189px; height: 189px; margin-top: -10px; }  /* QR 比左侧文字高 10px(PSD:框顶 404 / 文字顶 415) */
.qr-tip { margin-top: 8px; font-size: 20px; font-weight: 700; }
.qr-sub { margin-top: 6px; font-size: 16px; color: rgba(255, 255, 255, .72); }

/* 卡片底部备注条(56px) */
.card-note {
  flex: none; height: 56px; display: flex; align-items: center; padding: 0 24px;
  font-size: 14px; color: rgba(255, 255, 255, .82);
}
.card-audience .card-note { background: #61D271; }
.card-premium .card-note { background: #F9B53A; }

/* ===================== 页脚(与首页一致) ===================== */
.rainbow-strip {
  display: block; height: 6px;
  background: linear-gradient(90deg,
    #DCA63A 0 270px, #27BDE2 270px 540px, #FF3A20 540px 810px, #009F01 810px 1080px,
    #E5233B 1080px 1350px, #1A486A 1350px 1620px, #DD1367 1620px 1890px);
  background-size: 1890px 100%;
}
.site-footer { background: var(--green-footer); }
.footer-grid { display: flex; gap: 263px; padding: 83px 0 62px; }
.f-social { flex: none; }
.f-social h4, .f-contact h4 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 31px; }
.social-icons { display: flex; gap: 10px; margin-bottom: 30px; }
.social-icon { width: 54px; height: 54px; display: block; transition: transform .25s ease, opacity .25s ease; }
.social-icon img { width: 100%; height: 100%; }
.social-icon:hover { transform: translateY(-3px); }
.qr-box { width: 183px; height: 183px; border-radius: 16px; overflow: hidden; background: #fff; }
.qr-box img { width: 100%; height: 100%; object-fit: cover; }

.f-contact { flex: 1; min-width: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 60px; }
.contact-group h5 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.contact-group p { font-size: 18px; color: #fff; line-height: 1.56; }

.footer-bottom {
  background: var(--green); text-align: center; color: #fff;
  padding: 66px 0 70px; font-size: 16px; line-height: 2.4;
}
.footer-bottom .f-links a { padding: 0 14px; }

/* ===================== 右侧悬浮工具条(与首页一致) ===================== */
.float-bar {
  position: fixed; right: max(24px, calc(50% - 777px)); top: 80%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column;
}
.float-item {
  width: 50px; height: 50px; cursor: pointer; position: relative; flex: none;
}
.float-item .ic, .float-item .ic-on { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s ease; }
.float-item .ic-on { opacity: 0; }
.float-item:hover .ic-on { opacity: 1; }
.float-item:hover .ic { opacity: 0; }
.wechat-pop {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%) translateX(8px);
  width: 140px; background: #fff; border-radius: 8px; padding: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18); text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wechat-pop img { width: 116px; height: 116px; }
.wechat-pop p { font-size: 12px; color: var(--ink); margin-top: 6px; }
.float-wechat:hover .wechat-pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* ===================== 响应式(笔记本小屏) ===================== */
@media (max-width: 1560px) {
  .container { width: 1200px; }
  .header-inner { width: auto; padding: 0 30px; }
  .footer-grid { gap: 80px; }
  .join-container { width: 1200px; }
  .card-body { padding: 28px 24px 0; }
  .card-title { font-size: 26px; }
  .card-text .lead { font-size: 24px; }
  .card-text .sub { font-size: 18px; }
  .benefits { gap: 32px; }
  .qr-frame { width: 180px; height: 180px; }
  .qr-img { width: 145px; height: 145px; }
  .card-premium .qr-frame { width: 165px; height: 165px; }
}
