:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --card:#ffffff;
  --border:rgba(15,23,42,.12);
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --radius:16px;
  --container: 1100px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans"; color:var(--text); background:var(--bg); }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }

.container{
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand-logo{ height:34px; display:block; }

.nav-links{
  display:flex;
  align-items:center;
  gap:22px;
}

.lang-switch{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch .lang-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  transform: translateX(26px); /* ✅ 向右微调，数值你可改 */
  z-index: 100;
}

.lang-btn, .icon-btn, .menu-btn{
  background:transparent;
  border:1px solid transparent;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
}
.lang-btn:hover, .icon-btn:hover, .menu-btn:hover{
  border-color: var(--border);
}

.menu-btn{ display:none; }

.lang-menu{
  position:absolute;
  top: calc(100% + 8px); /* 在按钮下方一点点 */
  right: 0;              /* 与 EN 按钮右边对齐 */
  display:none;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow: var(--shadow);
  overflow:hidden;
  z-index: 100;
}

.lang-menu button{
  display:block;
  width:100%;
  padding:10px 14px;
  background:#fff;
  border:0;
  text-align:left;
  cursor:pointer;
}
.lang-menu button:hover{ background: rgba(15,23,42,.04); }

.hero{
  position:relative;
  min-height:320px;
  padding:72px 0 64px;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
}

/* 每一张图层 */
.hero-slide{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;

  opacity:0;
  transition: opacity 1200ms ease;
  transform: scale(1.01);
}

/* 当前显示的那张 */
.hero-slide.is-active{
  opacity:1;
}

/* 你原本的白色渐变遮罩：单独做一层盖在图上 */
.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,.92) 0%,
    rgba(255,255,255,.75) 45%,
    rgba(255,255,255,.55) 70%,
    rgba(255,255,255,.35) 100%
  );
}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero{
  position: relative;
  height: 140px;          /* 轻量，不抢内容 */
  overflow: hidden;
}

.page-hero-bg{
  position: absolute;
  inset: 0;
  background: url("../assets/hero-1.jpg") right center / cover no-repeat;
}

/* 白色渐隐遮罩，沿用首页语言 */
.page-hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,.95) 0%,
    rgba(255,255,255,.75) 45%,
    rgba(255,255,255,.45) 70%,
    rgba(255,255,255,.2) 100%
  );
}

.page-hero-inner{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-title{
  margin: 0 0 6px;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.02em;
}

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

/* 减少动效偏好：不做缩放动画 */
@media (prefers-reduced-motion: reduce){
  .hero-slide{ transition: none; }
  .hero-slide.is-animating{ animation: none; }
}

.hero-inner{
  position:relative;
}

.hero-title{
  margin:0 0 12px;
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing:-0.02em;
}

.hero-subtitle{
  margin:0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height:1.45;
}

.hero-cta{
  margin-top: 22px;
  display:flex;
  gap:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
}
.btn.primary{
  background: var(--text);
  color:white;
  border-color: transparent;
}
.btn.ghost{
  background: rgba(255,255,255,.6);
}

.section{ padding: 56px 0; }
.section-title{ margin:0 0 16px; font-size: 26px; }
.lead{ color: var(--muted); font-size: 18px; line-height:1.6; margin:0; }

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; }

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card h3{ margin:0 0 8px; }
.card p{ margin:0; color: var(--muted); line-height:1.55; }

.site-footer{
  border-top:1px solid var(--border);
  padding:18px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 860px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .nav-links{ display:none; }
  .menu-btn{ display:inline-flex; }
}

.page-hero{
  padding: 48px 0 8px;
}
.page-title{
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.02em;
}
.page-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.text-link{
  display:inline-block;
  margin-top: 10px;
  color: var(--text);
  opacity: .85;
}
.text-link:hover{ opacity: 1; }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.nav-links a.is-active{
  position: relative;
}
.nav-links a.is-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  background: currentColor;
  opacity:.35;
}

.page-hero .text-link{
  opacity: .75;
  margin-bottom: 10px;
}
.page-hero .text-link:hover{ opacity: 1; }