/* KL.Studio — 黄黑主色调 · 简洁大方 */
:root {
  --yellow: #FFD500;
  --yellow-soft: #FFE34D;
  --black: #111111;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --grey: #f6f6f4;
  --grey-line: #e8e8e4;
  --text: #222;
  --text-sub: #777;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* 公告条 */
.announcement {
  background: var(--yellow); color: var(--black);
  text-align: center; font-size: 14px; font-weight: 600;
  padding: 10px 16px; letter-spacing: .02em;
}

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw; background: rgba(17,17,17,.92); backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.nav-logo img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: #ccc; font-size: 15px; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--yellow); }

/* Hero */
.hero { background: var(--black); color: #fff; overflow: hidden; position: relative; }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 90px 5vw 100px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  transition: opacity .35s;
}
.hero-inner.fading { opacity: 0; }
.hero-eyebrow { color: var(--yellow); font-weight: 700; letter-spacing: .3em; font-size: 13px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.2; font-weight: 900; white-space: pre-line; }
.hero-subtitle { margin-top: 18px; color: var(--yellow-soft); font-size: 19px; font-weight: 700; }
.hero-desc { margin-top: 14px; color: #b9b9b9; font-size: 16px; line-height: 1.9; max-width: 46ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #444;
  background: rgba(0,0,0,.35); color: #fff; font-size: 28px; cursor: pointer;
  transition: .2s; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.hero-arrow.left { left: 22px; }
.hero-arrow.right { right: 22px; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots span { width: 9px; height: 9px; border-radius: 50%; background: #555; cursor: pointer; transition: .2s; }
.hero-dots span.active { background: var(--yellow); width: 26px; border-radius: 999px; }
.btn { display: inline-block; padding: 14px 34px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s; cursor: pointer; border: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--black); box-shadow: 0 6px 24px rgba(255,213,0,.35); }
.btn-ghost { border: 1.5px solid #555; color: #eee; background: transparent; }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.hero-visual { aspect-ratio: 6 / 5; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); border: 1px solid #2a2a2a; background: #1c1c1c; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 板块 */
.section { padding: 90px 5vw; max-width: 1280px; margin: 0 auto; }
.section-dark { background: var(--grey); max-width: none; }
.section-dark > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: .02em;
  display: inline-block; padding-bottom: 12px;
  border-bottom: 5px solid var(--yellow);
}
.section-head p { margin-top: 16px; color: var(--text-sub); font-size: 15.5px; line-height: 1.8; max-width: 70ch; }

/* 产品网格 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--grey-line); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.card-img { position: relative; aspect-ratio: 1; background: var(--grey); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--black);
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.badge.sold-out { background: var(--black); color: #fff; }
.card-info { padding: 18px 18px 20px; }
.card-name { font-weight: 800; font-size: 16.5px; }
.card-name-en { font-size: 12px; color: var(--text-sub); letter-spacing: .08em; margin-top: 3px; }
.card-price { margin-top: 12px; font-weight: 900; font-size: 19px; }
.card-price .orig { color: #bbb; font-weight: 400; font-size: 14px; text-decoration: line-through; margin-left: 8px; }
.empty-tip { grid-column: 1 / -1; text-align: center; color: var(--text-sub); padding: 60px 0; font-size: 15px; }

/* About */
.about-inner { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.about-logo { width: 220px; border-radius: 20px; border: 1px solid var(--grey-line); }
.about-text { margin-top: 18px; color: #444; line-height: 2; font-size: 15.5px; white-space: pre-line; }
.about-contact { margin-top: 22px; color: var(--text-sub); font-size: 14.5px; }
.about-contact a { color: var(--black); font-weight: 700; border-bottom: 2px solid var(--yellow); }

/* Footer */
.footer { background: var(--black); color: #888; text-align: center; padding: 48px 5vw; font-size: 14px; }
.footer-logo { width: 52px; margin: 0 auto 16px; border-radius: 10px; }

/* 产品详情弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.modal-body {
  position: relative; max-width: 880px; margin: 4vh auto; background: #fff;
  border-radius: 18px; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.modal-close {
  position: sticky; top: 14px; margin-left: calc(100% - 54px); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--black); color: #fff; font-size: 22px; cursor: pointer;
}
.pd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pd-gallery { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pd-gallery img { border-radius: 12px; width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.pd-gallery img.active { border-color: var(--yellow); }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs img { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 8px; }
.pd-info { padding: 34px 34px 34px 8px; }
.pd-info h3 { font-size: 26px; font-weight: 900; }
.pd-info .en { color: var(--text-sub); font-size: 13px; letter-spacing: .1em; margin-top: 4px; }
.pd-price { margin: 20px 0; font-size: 30px; font-weight: 900; }
.pd-price .orig { font-size: 16px; color: #bbb; text-decoration: line-through; font-weight: 400; margin-left: 10px; }
.pd-short { color: #555; line-height: 1.9; font-size: 15px; }
.pd-status { margin-top: 18px; display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--grey); }
.pd-status.available { background: var(--yellow); color: var(--black); }
.pd-desc { padding: 10px 34px 34px; line-height: 2; color: #444; font-size: 15px; border-top: 1px solid var(--grey-line); }
.pd-detail-img { padding: 0 34px 40px; }
.pd-detail-img img { border-radius: 12px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 6vw; gap: 40px; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { gap: 20px; }
  .pd-hero { grid-template-columns: 1fr; }
  .pd-info { padding: 10px 24px 24px; }
  .hero-arrow { display: none; }
  .sub-panel { right: 12px; left: 12px; width: auto; }
}

/* ===== 导航右侧: 语言 + 会员 ===== */
.nav-right { display: flex; align-items: center; gap: 14px; position: relative; }
#lang-switch {
  background: #222; color: #ddd; border: 1px solid #3a3a3a; border-radius: 8px;
  padding: 7px 10px; font-size: 13.5px; cursor: pointer; outline: none;
}
#lang-switch:hover { border-color: var(--yellow); }
.btn-member {
  background: var(--yellow); color: var(--black); border: none; border-radius: 999px;
  padding: 9px 22px; font-weight: 800; font-size: 14px; cursor: pointer; transition: .15s;
}
.btn-member:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,213,0,.4); }
.member-menu {
  position: absolute; right: 0; top: calc(100% + 10px); background: #fff; color: #222;
  border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.25); min-width: 200px;
  padding: 8px; z-index: 60;
}
.member-menu .mm-email { padding: 10px 14px; font-size: 13px; color: #888; border-bottom: 1px solid #eee; word-break: break-all; }
.member-menu a { display: block; padding: 10px 14px; font-size: 14px; border-radius: 8px; cursor: pointer; }
.member-menu a:hover { background: var(--grey); }

/* ===== 订阅悬浮 ===== */
.sub-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  background: var(--yellow); color: var(--black); border: none; border-radius: 999px;
  padding: 15px 28px; font-weight: 900; font-size: 15px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: .2s; letter-spacing: .03em;
}
.sub-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,213,0,.45); }
.sub-panel {
  position: fixed; right: 26px; bottom: 92px; z-index: 81; width: 320px;
  background: #fff; border-radius: 16px; padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); border: 1px solid var(--grey-line);
  animation: subIn .22s ease;
}
@keyframes subIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sub-head b { font-size: 17px; font-weight: 900; }
.sub-head button { border: none; background: none; font-size: 22px; color: #999; cursor: pointer; }
.sub-desc { font-size: 13.5px; color: var(--text-sub); line-height: 1.7; margin-bottom: 14px; }
.sub-panel input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--grey-line); border-radius: 9px; font-size: 14px; margin-bottom: 10px; outline: none; font-family: inherit; }
.sub-panel input:focus { border-color: var(--yellow); }
.sub-submit {
  width: 100%; padding: 12px; border: none; border-radius: 9px;
  background: var(--yellow); color: var(--black); font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
}
.sub-msg { font-size: 13px; margin-top: 10px; min-height: 16px; text-align: center; }
.sub-msg.ok { color: #2e7d32; }
.sub-msg.err { color: #c62828; }

/* ===== 会员登录/注册弹窗 ===== */
.auth-card {
  position: relative; max-width: 420px; margin: 8vh auto; background: #fff;
  border-radius: 18px; padding: 36px 34px 28px; box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.auth-logo { width: 60px; margin: 0 auto 18px; border-radius: 12px; }
.auth-tabs { display: flex; background: var(--grey); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; padding: 10px; border: none; background: none; border-radius: 8px;
  font-size: 14.5px; font-weight: 700; color: #888; cursor: pointer; font-family: inherit;
}
.auth-tabs button.active { background: #fff; color: var(--black); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-card input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--grey-line); border-radius: 9px; font-size: 14px; margin-bottom: 12px; outline: none; font-family: inherit; }
.auth-card input:focus { border-color: var(--yellow); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.code-row { grid-template-columns: 1fr 130px; }
.btn-code {
  border: 1.5px solid var(--black); background: #fff; border-radius: 9px;
  font-weight: 700; font-size: 13.5px; cursor: pointer; margin-bottom: 12px; font-family: inherit;
}
.btn-code:disabled { color: #aaa; border-color: #ddd; cursor: not-allowed; }
.btn-code:not(:disabled):hover { background: var(--black); color: var(--yellow); }
