/* ====== 基础设置 ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-top: #f8f0ff;
  --bg-mid: #f3f7ff;
  --bg-deep: #dde5ff;
  --bg-bottom: #111a33;

  --accent-1: #ffb8c6;
  --accent-2: #b3c5ff;
  --accent-3: #f6d39b;
  --accent-deep: #7d8cff;

  --text-main: #1c1c26;
  --text-muted: #606070;
  --text-soft: #8c8ca0;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.65);

  --radius-card: 18px;
  --shadow-soft: 0 18px 40px rgba(12, 22, 54, 0.18);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.26s ease-out;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Noto Sans SC",
    system-ui, -system-ui, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 240, 240, 0.7) 0, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(214, 226, 255, 0.9) 0, transparent 45%),
    radial-gradient(circle at 10% 70%, rgba(214, 245, 255, 0.7) 0, transparent 45%),
    linear-gradient(
      180deg,
      var(--bg-top) 0%,
      var(--bg-mid) 40%,
      var(--bg-deep) 72%,
      var(--bg-bottom) 100%
    );
  background-attachment: fixed;
}

/* 云雾光影层 */
.page-aura {
  position: fixed;
  inset: -10vh 0;
  pointer-events: none;
  z-index: -1;
}

.page-aura::before,
.page-aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.page-aura::before {
  width: 520px;
  height: 520px;
  left: -120px;
  top: 10vh;
  background: radial-gradient(circle, #fff7f7 0%, rgba(255, 198, 198, 0) 70%);
}

.page-aura::after {
  width: 620px;
  height: 620px;
  right: -160px;
  bottom: 0;
  background: radial-gradient(circle, #c5d4ff 0%, rgba(157, 178, 255, 0) 70%);
}

/* ====== 通用布局 ====== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 1.75rem;
  margin: 0 auto;
}

/* ====== 顶部导航 ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.86),
    rgba(240, 245, 255, 0.94)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

/* 品牌区：细彩色环 + 柔白圆心 */
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 200deg,
    #ffd3d3,
    #ffe5c2,
    #f0f7ff,
    #cbe0ff,
    #f3d0ff,
    #ffd3d3
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 8px 22px rgba(96, 111, 177, 0.55);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 30% 20%,
    #ffffff,
    #fbf8ff 55%,
    #eef3ff 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    0 3px 8px rgba(150, 164, 210, 0.45);
}

.brand-initial {
  display: none;
}

.brand-text-main {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  position: relative;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0.25rem;
  transition: color var(--transition-fast);
}

.site-nav a .nav-label-cn {
  font-weight: 500;
}

.site-nav a .nav-label-en {
  font-size: 0.7rem;
  opacity: 0.75;
  display: block;
  margin-top: 0.04rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width var(--transition-med);
}

.site-nav a:hover {
  color: #30304a;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a.active {
  color: #252542;
}

/* 语言切换：胶囊轨道 + 渐变滑块 */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.4rem;
}

.lang-toggle-label {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.lang-toggle-buttons {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(220, 227, 255, 0.98),
    0 8px 18px rgba(148, 160, 214, 0.4);
  overflow: hidden;
}

.lang-toggle-buttons::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffbfd0, #f5d4a9, #c1c8ff);
  box-shadow: 0 8px 16px rgba(144, 144, 210, 0.4);
  transform: translateX(0%);
  transition: transform 0.25s ease-out;
}

html[data-lang="zh"] .lang-toggle-buttons::before {
  transform: translateX(0%);
}

html[data-lang="en"] .lang-toggle-buttons::before {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  padding: 0.24rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-soft);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

html[data-lang="zh"] #lang-zh,
html[data-lang="en"] #lang-en {
  color: #24243f;
  font-weight: 600;
  transform: translateY(-0.3px);
}

.lang-btn.active {
  color: #24243f;
  font-weight: 600;
}

/* 语言显示控制 */
html[data-lang="zh"] .lang-en {
  display: none;
}

html[data-lang="en"] .lang-zh {
  display: none;
}

/* ====== 主体结构 ====== */
main {
  flex: 1;
}

.section {
  padding: 2.6rem 0;
}

.section-narrow {
  padding: 1.8rem 0 2.6rem;
}

/* ====== Hero ====== */
.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

.hero-title {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

/* 按钮 */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-med), color var(--transition-med), opacity 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background-image: linear-gradient(
    120deg,
    rgba(255, 184, 198, 0.98),
    rgba(246, 211, 155, 0.96),
    rgba(179, 197, 255, 0.98)
  );
  box-shadow: 0 14px 32px rgba(77, 95, 156, 0.5);
  color: #2b283b;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 18px 40px rgba(25, 38, 90, 0.72);
  background-image: linear-gradient(
    130deg,
    rgba(255, 205, 211, 0.98),
    rgba(246, 199, 155, 0.98),
    rgba(165, 205, 255, 0.99)
  );
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #2e3148;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(39, 53, 110, 0.35);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

/* Hero 右侧卡片 */
.hero-panel {
  position: relative;
}

.isle-card {
  position: relative;
  border-radius: 30px;
  padding: 1.7rem 1.6rem;
  background: radial-gradient(circle at 10% 0%, #ffffff 0%, #f4f3ff 40%, #eef1ff 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.isle-card::before,
.isle-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
}

.isle-card::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -40px;
  background: radial-gradient(circle, #ffd8e4 0%, rgba(255, 184, 198, 0) 70%);
}

.isle-card::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -60px;
  background: radial-gradient(circle, #d4e4ff 0%, rgba(179, 197, 255, 0) 70%);
}

.isle-card-header {
  position: relative;
  margin-bottom: 1rem;
}

.isle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-size: 0.72rem;
  color: var(--text-soft);
  box-shadow: 0 10px 20px rgba(146, 159, 206, 0.4);
}

.isle-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.isle-title {
  margin: 0.7rem 0 0.2rem;
  font-size: 1.05rem;
}

.isle-subtitle {
  font-size: 0.85rem;
  color: var(--text-soft);
  max-width: 260px;
}

.isle-list {
  position: relative;
  margin: 1rem 0 0.5rem;
  padding-left: 0.2rem;
}

.isle-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.isle-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 0.28rem;
  background: radial-gradient(circle at 30% 30%, #ffffff, #b3c5ff);
}

.isle-footer {
  position: relative;
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(184, 193, 230, 0.6);
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ====== 通用卡片 ====== */
.card {
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
  background: var(--surface-soft);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 32px rgba(32, 46, 96, 0.18);
}

.card-header {
  margin-bottom: 0.6rem;
}

.card-title-main {
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
}

.card-title-sub {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-soft);
}

.card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-body p {
  margin: 0 0 0.6rem;
}

/* 标题小 icon 胶囊 */
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(140, 155, 211, 0.35);
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.card-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffe2f0, #b9c9ff);
}

.card-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ====== 首页底部三卡布局 ====== */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.home-left-column {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.home-right-column {
  display: flex;
  flex-direction: column;
}

/* ====== 页脚 ====== */
.site-footer {
  margin-top: 3rem;
  padding: 2.6rem 0 1.6rem;
  border-top: 1px solid rgba(207, 215, 248, 0.9);
  background: linear-gradient(
    180deg,
    rgba(244, 246, 255, 0.88) 0%,
    rgba(9, 16, 35, 0.98) 100%
  );
  color: #f4f5ff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-contact-card {
  border-radius: 26px;
  padding: 1.5rem 1.7rem 1.6rem;
  background: radial-gradient(circle at 10% -10%, #313a75, #111630);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(87, 103, 181, 0.9);
}

.footer-contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.8rem;
}

.footer-contact-main {
  max-width: 520px;
}

.footer-contact-title {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.footer-contact-text {
  font-size: 0.86rem;
  color: rgba(226, 231, 255, 0.8);
  margin: 0.1rem 0;
}

.footer-contact-text + .footer-contact-text {
  margin-top: 0.2rem;
}

.footer-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.contact-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(169, 185, 255, 0.85);
  background: rgba(16, 24, 60, 0.95);
  color: #f5f7ff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.contact-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffe5ef, #9ac2ff);
}

.contact-pill:hover {
  background: rgba(37, 48, 100, 0.98);
  border-color: rgba(213, 222, 255, 0.98);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.7);
}

/* 精简脚注行 */
.footer-bottom-line {
  border-top: 1px solid rgba(90, 100, 150, 0.7);
  padding-top: 0.9rem;
  font-size: 0.76rem;
  color: rgba(214, 220, 255, 0.85);
  line-height: 1.6;
}

/* ====== 响应式 ====== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    display: none;
  }

  .site-header-inner {
    padding: 0.7rem 0;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-contact-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact-actions {
    align-items: flex-start;
  }

  .contact-pill-row {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.2rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ====== Mobile Nav Upgrade: hamburger + drawer + floating button ====== */

.nav-toggle{
  display:none;
  border:none;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(118,132,199,.18);
  border: 1px solid rgba(220,227,255,.9);
  align-items:center;
  justify-content:center;
  gap: 5px;
  padding: 10px;
}
.nav-toggle-line{
  display:block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #3a3a5b;
  opacity: .9;
}

.nav-scrim{
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 34, .38);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 60;
}

.nav-drawer{
  position: fixed;
  right: 14px;
  top: 14px;
  width: min(360px, calc(100vw - 28px));
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(203,209,248,.95);
  box-shadow: 0 28px 70px rgba(30, 34, 80, .35);
  transform: translateY(-6px) translateX(10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  z-index: 61;
  overflow: hidden;
}

html.nav-open .nav-scrim{
  opacity: 1;
  pointer-events: auto;
}
html.nav-open .nav-drawer{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) translateX(0) scale(1);
}

.nav-drawer-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: .9rem .95rem .7rem;
  background: radial-gradient(circle at 15% 0%, #fff4fd, #e4ecff);
  border-bottom: 1px solid rgba(205, 210, 248, .9);
}
.nav-drawer-title{
  font-weight: 650;
  color:#2b2b45;
}
.nav-close{
  border:none;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(220,227,255,.95);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor:pointer;
  box-shadow: 0 12px 28px rgba(118,132,199,.18);
}

.nav-drawer-links{
  padding: .8rem .95rem .65rem;
  display:flex;
  flex-direction: column;
  gap: .5rem;
}
.nav-drawer-links a{
  text-decoration:none;
  color:#2e2e4c;
  padding: .6rem .7rem;
  border-radius: 14px;
  border: 1px solid rgba(210, 213, 248, .9);
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 26px rgba(118,132,199,.16);
  font-size: .92rem;
}
.nav-drawer-links a:hover{
  transform: translateY(-1px);
}

.nav-drawer-lang{
  padding: .75rem .95rem .95rem;
  border-top: 1px solid rgba(210, 213, 248, .85);
}
.nav-drawer-mini{
  font-size: .78rem;
  color: #7a7c9b;
  margin-bottom: .5rem;
}

/* Floating action button: always available on mobile */
.nav-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 59;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(220,227,255,.95);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 44px rgba(118,132,199,.28);
  cursor:pointer;
  display:none;
  font-size: 18px;
  color:#2b2b45;
}

/* Mobile behavior: hide desktop nav, show hamburger + fab */
@media (max-width: 960px){
  .site-nav{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav-fab{ display:inline-flex; align-items:center; justify-content:center; }
}
