/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (max-width: 640px) {
  html { font-size: 14px; }
}
@media (min-width: 1200px) {
  html { font-size: 18px; }
}

body {
  font-family: -apple-system, "Helvetica Neue", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== 浮动导航 ===== */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 68rem; margin: 0 auto;
  padding: 0.6rem 1.5rem;
}
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-bottom {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.2em;
  color: var(--text);
}
.nav-right {
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-links { list-style: none; display: flex; gap: 1.7rem; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-dropdown-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.75em;
  padding: 0.25em 0.5em;
  letter-spacing: 0.06em;
  color: var(--text3);
  transition: color 0.3s;
  border-radius: 0.1rem;
  font-family: inherit;
  min-width: 3em;
  text-align: left;
}
.lang-dropdown-btn:hover { color: var(--text); }
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--bg2);
  border: 1px solid var(--text4);
  border-radius: 0.3rem;
  min-width: 4.5em;
  display: none;
  z-index: 200;
  overflow: hidden;
}
.lang-dropdown-menu.open { display: block; }
.lang-dropdown-menu li {
  padding: 0.35em 0.7em;
  cursor: pointer;
  font-size: 0.78em;
  letter-spacing: 0.05em;
  color: var(--text2);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-dropdown-menu li:hover {
  background: var(--bg3);
  color: var(--text);
}
.lang-dropdown-menu li.active {
  color: var(--accent);
  background: rgba(201,169,110,0.1);
}
.nav-links a {
  text-decoration: none; color: var(--text3);
  font-size: 0.82em;
  letter-spacing: 0.06em;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -0.25rem; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.4s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ===== Section 通用 ===== */
.section {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.04) 3px,
      rgba(255,255,255,0.04) 5px
    );
  pointer-events: none;
  z-index: 0;
}
.hero::before { display: none; }

html.light .section::before {
  background-image:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.04) 3px,
      rgba(0,0,0,0.04) 5px
    );
}

.section-inner {
  max-width: 56rem; width: 100%;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero(heng)web.jpg') center center / cover no-repeat fixed;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.06) 2px,
      rgba(0,0,0,0.06) 4px
    ),
    linear-gradient(
      135deg,
      rgba(13,13,13,0.65) 0%,
      rgba(42,27,27,0.45) 50%,
      rgba(13,13,13,0.65) 100%
    );
}
.hero-particles {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.hero-particles span {
  position: absolute;
  bottom: -0.6rem;
  width: 3px; height: 3px;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 50%;
  animation: particleUp linear infinite;
}
.hero-particles span:nth-child(1)  { left: 5%;   width: 2px; height: 2px; animation-duration: 7s;  animation-delay: 0s; }
.hero-particles span:nth-child(2)  { left: 15%;  width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 1s; }
.hero-particles span:nth-child(3)  { left: 25%;  width: 2px; height: 2px; animation-duration: 6s;  animation-delay: 2s; }
.hero-particles span:nth-child(4)  { left: 35%;  width: 4px; height: 4px; animation-duration: 8s;  animation-delay: 0.5s; }
.hero-particles span:nth-child(5)  { left: 45%;  width: 2px; height: 2px; animation-duration: 10s; animation-delay: 3s; }
.hero-particles span:nth-child(6)  { left: 55%;  width: 3px; height: 3px; animation-duration: 7.5s; animation-delay: 1.5s; }
.hero-particles span:nth-child(7)  { left: 65%;  width: 2px; height: 2px; animation-duration: 9.5s; animation-delay: 0.2s; }
.hero-particles span:nth-child(8)  { left: 72%;  width: 3px; height: 3px; animation-duration: 6.5s; animation-delay: 2.5s; }
.hero-particles span:nth-child(9)  { left: 82%;  width: 2px; height: 2px; animation-duration: 8.5s; animation-delay: 1.8s; }
.hero-particles span:nth-child(10) { left: 92%;  width: 4px; height: 4px; animation-duration: 11s; animation-delay: 0.8s; }
.hero-particles span:nth-child(11) { left: 10%;  width: 2px; height: 2px; animation-duration: 12s; animation-delay: 4s; }
.hero-particles span:nth-child(12) { left: 30%;  width: 3px; height: 3px; animation-duration: 8s;  animation-delay: 0.3s; }
.hero-particles span:nth-child(13) { left: 50%;  width: 2px; height: 2px; animation-duration: 7s;  animation-delay: 2.2s; }
.hero-particles span:nth-child(14) { left: 68%;  width: 3px; height: 3px; animation-duration: 10s; animation-delay: 1.2s; }
.hero-particles span:nth-child(15) { left: 88%;  width: 2px; height: 2px; animation-duration: 6s;  animation-delay: 3.5s; }
@keyframes particleUp {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: left;
  padding: 2rem 3rem;
  border-radius: 1rem;
}
.hero-content::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 1rem;
  background: rgba(10,10,10,0.6);
  z-index: -1;
}
html.light .hero-content::before {
  background: rgba(255,255,255,0.6);
}
.hero-title {
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}
.hero-content .hero-sub-line1 {
  color: var(--text2);
  letter-spacing: 0.15em;
  font-size: 0.95em;
  margin-bottom: 0.3rem;
}
.hero-content .hero-sub-line2 {
  color: var(--text2);
  letter-spacing: 0.1em;
  font-size: 0.85em;
}
.hero-content .hero-btn {
  display: block;
  width: fit-content;
  margin: 1.5rem 0 0;
}
.hero-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.85em;
  transition: all 0.4s;
  box-shadow: 0 0 0.7rem var(--accent-glow);
}
.hero-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 1.5rem var(--accent-glow);
}
.scroll-hint {
  position: absolute; bottom: 2rem;
  font-size: 1.5rem;
  color: var(--text3);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.5rem); }
}

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.section-title {
  font-size: 1.5em;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: ''; position: absolute;
  bottom: -0.5rem; left: 0;
  width: 3rem; height: 1.5px;
  background: var(--accent);
}
.about-text p {
  font-size: 1em;
  color: var(--text2);
  margin-bottom: 1rem;
  max-width: 42rem;
}

.trial-card {
  margin: 1.7rem 0;
  padding: 1rem 1.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--accent);
  background: var(--bg3);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 0 1rem var(--accent-glow);
  max-width: 42rem;
}
.trial-icon { font-size: 1.6rem; line-height: 1; }
.trial-text {
  color: var(--accent);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.03em;
}
html.light .trial-card { background: rgba(194,75,77,0.06); }

.about-btn,
.works-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.8rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.8em;
  transition: all 0.4s;
}
.about-btn:hover,
.works-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.top-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--text4);
  color: var(--text3);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.8em;
  border-radius: 0.25rem;
  transition: all 0.3s;
}
.top-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.about-stats {
  display: flex; gap: 3rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.stat-label {
  font-size: 0.82em;
  color: var(--text3);
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ===== WORKS ===== */
.works { background: var(--bg3); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.work-card {
  position: relative;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: var(--bg2);
}
.work-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.7rem 2rem rgba(0,0,0,0.35);
}
.work-card-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card-img img { transform: scale(1.06); }
.work-card figcaption {
  padding: 0.5rem 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}
.work-card-desc {
  font-size: 0.82em;
  color: var(--text3);
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.tag {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-size: 0.72em;
  letter-spacing: 0.06em;
  border-radius: 0.1rem;
  align-self: flex-start;
}
.tag-jp { background: rgba(180,60,60,0.2); color: #e06c6c; border: 1px solid rgba(180,60,60,0.3); }
.tag-kr { background: rgba(60,100,180,0.2); color: #7c9ee0; border: 1px solid rgba(60,100,180,0.3); }
.tag-cn { background: rgba(60,160,100,0.2); color: #6cc99a; border: 1px solid rgba(60,160,100,0.3); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  animation: lbFadeIn 0.3s ease;
  touch-action: none;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow: 0 0.5rem 2.5rem rgba(0,0,0,0.7);
  transform-origin: center center;
  cursor: grab;
  transition: transform 0.28s ease, opacity 0.2s ease;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
  z-index: 10;
}
.lightbox-close:hover { color: #fff; transform: scale(1.15); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ddd;
  font-size: 2em;
  cursor: pointer;
  padding: 0.9rem 0.6rem;
  line-height: 1;
  transition: all 0.3s;
  z-index: 10;
  border-radius: 0.35rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  background: rgba(0,0,0,0.75);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lbZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== PRICING ===== */
.pricing {
  background: var(--bg2);
  text-align: left;
}
.pricing-title::after { left: 0; transform: none; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0;
}
.pricing-category {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pricing-cat-title {
  font-size: 1em;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.pricing-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--text4);
  background: var(--bg3);
  transition: all 0.3s;
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0.7rem var(--accent-glow);
}
.pricing-tier {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.2rem;
}
.pricing-level {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text);
}
.pricing-card-featured .pricing-level {
  color: var(--accent);
}
.pricing-includes {
  font-size: 0.78em;
  color: var(--text3);
  letter-spacing: 0.02em;
}
.pricing-amount {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.pricing-note {
  margin-top: 2rem;
  font-size: 0.82em;
  color: var(--text4);
  letter-spacing: 0.02em;
  max-width: 38rem;
}

/* How it works */
.pricing-how {
  margin-top: 2.5rem;
}
.pricing-how-title {
  font-size: 1em;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.pricing-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 32rem;
}
.pricing-step {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.step-num {
  font-size: 0.9em;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 1.2rem;
}
.step-text {
  font-size: 0.88em;
  color: var(--text2);
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .step-text {
    font-size: 0.8em;
  }
}
.pricing-cta {
  display: inline-block;
  margin-top: 1.5rem;
  margin-left: 0;
  margin-left: 0;
  padding: 0.6rem 1.8rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.82em;
  transition: all 0.4s;
}
.pricing-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .pricing-card {
    padding: 0.6rem 0.8rem;
  }
  .pricing-amount {
    font-size: 1.2em;
  }
  .pricing-note {
    font-size: 0.75em;
  }
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg);
  text-align: center;
}
.contact-title::after { left: 50%; transform: translateX(-50%); }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-info p {
  font-size: 1.1em;
  color: var(--text2);
  letter-spacing: 0.06em;
}
.contact-info a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  font-size: 1.1em;
}
.contact-info a:hover { border-bottom-color: var(--accent); }
.contact-footer {
  margin-top: 3.5rem;
  font-size: 1em;
  color: var(--text4);
  letter-spacing: 0.12em;
}

.contact-card {
  background: var(--bg2);
  border: 1px solid var(--text4);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}
.contact-card p {
  margin-bottom: 0.7rem;
  font-size: 1em;
  color: var(--text2);
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-card a:hover { border-bottom-color: var(--accent); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--text4);
  padding: 1.5rem 1rem;
  text-align: center;
}
.footer-inner { max-width: 56rem; margin: 0 auto; }
.site-footer p {
  font-size: 0.82em;
  color: var(--text4);
  letter-spacing: 0.06em;
}
.contact-discord {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.contact-discord iframe {
  max-width: 100%;
  border-radius: 0.5rem;
  border: none;
}

/* ===== 滚动出现动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 手机端响应式 ===== */
@media (max-width: 640px) {
  .nav-inner { padding: 0.4rem 0.8rem; }
  .nav-top { gap: 0.3rem; flex-wrap: wrap; }
  .nav-logo {
    font-size: 1em;
    letter-spacing: 0.12em;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-actions { gap: 0.1rem; flex-shrink: 0; }
  .nav-bottom {
    margin-top: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links { gap: 0.8rem; }
  .nav-links a {
    font-size: 0.82em;
    white-space: nowrap;
  }
  .lang-dropdown-btn {
    font-size: 0.68em;
    padding: 0.2em 0.35em;
  }
  .lang-dropdown-menu {
    min-width: 4em;
  }
  .lang-dropdown-menu li {
    font-size: 0.7em;
    padding: 0.3em 0.5em;
  }
  .theme-btn {
    font-size: 0.72em;
    padding: 0.2em 0.35em;
  }

  .hero-title {
    font-size: 2.2em;
    letter-spacing: 0.12em;
  }
  .hero-content {
    padding: 1.5rem 1.4rem;
    text-align: left;
  }
  .hero-content::before {
    display: block;
  }
  .hero-content .hero-sub-line1 {
    font-size: 1.1em;
  }
  .hero-content .hero-sub-line2 {
    font-size: 0.95em;
  }
  .hero-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.92em;
  }

  .section-title {
    font-size: 1.3em;
    margin-bottom: 1.7rem;
  }
  .section-inner {
    padding: 4rem 3rem 3.5rem;
  }
  .about-text p {
    font-size: 1.1em;
  }
  .trial-text { font-size: 1em; }
  .trial-card {
    padding: 0.7rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .trial-text { font-size: 0.92em; }
  .about-stats { gap: 1.7rem; }
  .stat-num { font-size: 1.3em; }
  .stat-label { font-size: 0.75em; }
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    padding: 0;
  }
  .work-card figcaption {
    padding: 0.4rem 0.4rem 0.5rem;
  }
  .work-card-desc { font-size: 0.72em; }
  .tag { font-size: 0.65em; padding: 0.15em 0.5em; }
  .about-btn,
  .works-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.72em;
  }
  .top-btn {
    padding: 0.35rem 1rem;
    font-size: 0.72em;
  }
  .contact-info p { font-size: 0.92em; }
  .contact-info a { font-size: 0.92em; }
  .contact-footer { font-size: 0.85em; }
  .contact-card { padding: 1rem 1.2rem; }
  .contact-card p { font-size: 0.88em; }
  .site-footer p { font-size: 0.72em; }
  .scroll-hint { font-size: 1rem; }
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5em;
    padding: 0.7rem 0.45rem;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close {
    font-size: 1.2em;
    top: 1rem;
    right: 1.2rem;
  }
}

/* 手机端 Hero 切换到竖版图 */
@media (max-width: 640px) {
  .hero-bg {
    background: url('images/heros.webp') center top / cover no-repeat fixed;
  }
}

/* ===== 白天/黑夜模式 ===== */
:root {
  --bg: #0d0d0d;
  --bg2: #151515;
  --bg3: #111;
  --text: #e0d6c9;
  --text2: #b8a99a;
  --text3: #8a8078;
  --text4: #5a524a;
  --accent: #e8c46a;
  --accent-glow: rgba(232,196,106,0.25);
  --nav-bg: rgba(13,13,13,0.75);
}
html.light {
  --bg: #f5f0eb;
  --bg2: #ebe4dc;
  --bg3: #e5ddd4;
  --text: #2a1b1b;
  --text2: #5a4a3a;
  --text3: #8a7a6a;
  --text4: #b0a090;
  --accent: #c24b4d;
  --accent-glow: rgba(194,75,77,0.2);
  --nav-bg: rgba(245,240,235,0.85);
}

body {
  background: var(--bg);
  color: var(--text);
}
.nav-bar { background: var(--nav-bg); }
.nav-logo { color: var(--text); }
.lang-dropdown-btn { color: var(--text3); }
.lang-dropdown-btn:hover { color: var(--text); }
.lang-dropdown-menu { background: var(--bg2); border-color: var(--text4); }
.lang-dropdown-menu li { color: var(--text2); }
.lang-dropdown-menu li:hover { background: var(--bg3); color: var(--text); }
.lang-dropdown-menu li.active {
  color: var(--accent);
  background: rgba(166,124,78,0.1);
}
.nav-links a { color: var(--text3); }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a::after { background: var(--accent); }
.about { background: var(--bg2); }
.about-text p { color: var(--text2); }
.stat-num { color: var(--accent); }
.stat-label { color: var(--text3); }
.works { background: var(--bg3); }
.contact { background: var(--bg); }
.contact-info p { color: var(--text2); }
.contact-info a { color: var(--accent); }
.contact-footer { color: var(--text4); }
.section-title::after { background: var(--accent); }
.hero-sub { color: var(--text2); }
.hero-btn {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-btn:hover {
  background: var(--accent);
  color: var(--bg);
}
.scroll-hint { color: var(--text3); }

html.light .hero-overlay {
  background-image:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.035) 2px,
      rgba(0,0,0,0.035) 4px
    ),
    linear-gradient(
      135deg,
      rgba(245,240,235,0.3) 0%,
      rgba(200,185,170,0.2) 50%,
      rgba(245,240,235,0.3) 100%
    );
}
html.light .hero-particles span { opacity: 0.4; }

.theme-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.78em;
  padding: 0.25em 0.6em;
  letter-spacing: 0.06em;
  color: var(--text3);
  transition: all 0.3s;
  border-radius: 0.1rem;
  font-family: inherit;
}
.theme-btn:hover { color: var(--accent); }

#logo-home {
  cursor: pointer;
  transition: opacity 0.3s ease, letter-spacing 0.3s ease;
}
#logo-home:hover {
  opacity: 0.7;
  letter-spacing: 0.3em;
}
#logo-home:active { opacity: 0.5; }

/* ===== 固定导航按钮 ===== */
.fixed-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
}
.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--text3);
  color: var(--text3);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--nav-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  scale: 1.1;
}
.nav-arrow:active { scale: 0.95; }
.nav-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 640px) {
  .fixed-nav { right: 0.7rem; }
  .nav-arrow {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.85rem;
  }
}
