/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 页面级修正：避免固定头部与页面首屏内容发生重叠 */
  --site-header-height: 64px;
  /* 通用文本颜色变量 */
  --text-dark: #1a1a1a;
  --text-body: #444444;
  --text-light: #666666;
}
@media (min-width: 1024px) {
  html {
    --site-header-height: 70px;
  }
}
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
input {
  font-family: inherit;
}
.font-oswald {
  font-family: 'Oswald', sans-serif;
}
/* ========== Container ========== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1480px;
  }
}
/* ========== Scrollbar Hide ========== */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========== Header / Navbar ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) {
  .header-inner { height: 70px; }
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.logo-image {
  height: 38px;
  width: auto;
}
.logo-extra {
  height: 38px;
  width: auto;
  margin-right: 10px;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text {
  color: #f0a500;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.05em;
  font-family: 'Oswald', sans-serif;
}
@media (min-width: 1024px) {
  .logo-text { font-size: 1.25rem; }
}
.logo-accent { color: #f0a500; }
.logo-tagline {
  color: #888;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
@media (min-width: 1024px) {
  .logo-tagline { font-size: 0.8rem; }
}
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0;
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: #d1d5db;
  transition: color 0.2s;
  white-space: nowrap;
}
@media (min-width: 1280px) {
  .nav-link { padding: 8px 18px; }
}
.nav-link:hover {
  color: #fff;
}
.nav-link--active {
  color: #fff;
  font-weight: 500;
}
.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #f0a500;
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-btn {
  color: #d1d5db;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-btn:hover { color: #fff; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #d1d5db;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s;
  position: relative;
}
.lang-switch:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}
.lang-code {
  font-weight: 500;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px;
  min-width: 140px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.lang-dropdown.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #d1d5db;
  font-size: 0.8125rem;
  transition: all 0.15s;
}
.lang-option:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.lang-option--active {
  background: rgba(240,165,0,0.15);
  color: #f0a500;
}
.mobile-lang-switch {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}
.mobile-lang-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.8125rem;
  background: rgba(255,255,255,0.05);
  transition: all 0.15s;
}
.mobile-lang-option:hover,
.mobile-lang-option--active {
  background: rgba(240,165,0,0.15);
  color: #f0a500;
}
.mobile-toggle {
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* ===== Mobile: scale down both logos to fit alongside the menu toggle ===== */
@media (max-width: 1023px) {
  /* 两个 logo 图标都缩小，保留 SOTY */
  .logo-image {
    height: 24px;
  }
  .logo-extra {
    height: 24px;
    margin-right: 0;
  }
  /* 缩小中文名称字号 */
  .logo-text {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
  }
  /* 隐藏英文副标语，节省宽度 */
  .logo-tagline {
    display: none;
  }
  /* 缩小 logo 区域间距 */
  .logo-wrap {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
  /* 防止 header-actions（含菜单按钮）被压缩 */
  .header-actions {
    flex-shrink: 0;
  }
}

/* Search Bar */
.search-bar {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid transparent;
  transform: translateY(-8px);
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.32s ease, transform 0.32s ease, border-color 0.32s ease;
}
.search-bar.active {
  max-height: 84px;
  opacity: 1;
  padding: 12px 0;
  border-top-color: rgba(255,255,255,0.05);
  transform: translateY(0);
}
.search-input-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}
.search-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 16px 10px 40px;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
}
.search-input::placeholder { color: #6b7280; }
.search-input:focus { border-color: rgba(240,165,0,0.5); }
/* Mobile Menu */
.mobile-menu {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: #0a0a14;
  border-top: 1px solid rgba(255,255,255,0.05);
  transform: translateY(-10px);
  transition: max-height 0.36s ease, opacity 0.26s ease, transform 0.36s ease;
}
.mobile-menu.active {
  max-height: 85vh;
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu nav {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-link {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #d1d5db;
  transition: all 0.2s;
}
.mobile-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.mobile-nav-link--active {
  color: #f0a500;
  font-weight: 500;
}

/* ========== Desktop Nav Dropdown ========== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link--has-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  color: #9ca3af;
  transition: transform 0.25s ease, color 0.2s;
  flex-shrink: 0;
}

.nav-item:hover > .nav-link,
.nav-item:hover .nav-arrow {
  color: #fff;
}
.nav-item:hover > .nav-link .nav-arrow,
.nav-item.open > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(15, 15, 28, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 148px;
  white-space: nowrap;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item.open > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 顶部小三角 */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(255,255,255,0.1);
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(15,15,28,0.97);
}

.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  color: #c9cdd6;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-item:hover {
  background: rgba(240,165,0,0.12);
  color: #f0a500;
}

.nav-dropdown-item.active {
  background: rgba(240,165,0,0.15);
  color: #f0a500;
  font-weight: 500;
}

/* ========== Mobile Nav Sub-menu ========== */
.mobile-nav-item {
  border-radius: 8px;
  overflow: hidden;
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-toggle .mobile-nav-link {
  flex: 1;
}

.mobile-nav-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  margin-right: 4px;
}

.mobile-nav-arrow:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.mobile-nav-arrow svg {
  transition: transform 0.25s ease;
}

.mobile-nav-item.open .mobile-nav-arrow svg {
  transform: rotate(180deg);
}

.mobile-nav-item.open .mobile-nav-arrow {
  color: #f0a500;
}

.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid rgba(240,165,0,0.35);
  margin: 0 16px 6px 16px;
  border-radius: 0 0 6px 6px;
  padding: 0;
  transform: translateY(-6px);
  transition: max-height 0.3s ease, opacity 0.24s ease, padding 0.3s ease, transform 0.3s ease;
}

.mobile-nav-item.open .mobile-nav-sub {
  max-height: 320px;
  opacity: 1;
  padding: 4px 0;
  transform: translateY(0);
}

.mobile-nav-sub-link {
  padding: 9px 16px;
  font-size: 0.8125rem;
  color: #9ca3af;
  transition: color 0.15s, background 0.15s;
  border-radius: 4px;
}

.mobile-nav-sub-link:hover {
  color: #f0a500;
  background: rgba(240,165,0,0.08);
}

/* ========== Mobile: Hide search & lang-switch ========== */
@media (max-width: 1023px) {
  #searchToggle,
  .lang-switch {
    display: none !important;
  }
}

/* ========== Utility ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== Footer ========== */
.site-footer {
  background: #080810;
  color: #9ca3af;
}
.footer-main {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 1024px) {
  .footer-main { padding: 72px 0; }
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;
    align-items: start;
  }
}
.footer-brand {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 768px) {
  .footer-brand { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .footer-brand { grid-column: span 1; }
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand-info {
  display: flex;
  flex-direction: column;
}
.footer-brand-name {
  color: #f0a500;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  font-family: 'Oswald', sans-serif;
}
.footer-brand-tagline {
  color: #888;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #9ca3af;
  margin: 24px 0 24px;
  max-width: 280px;
}
.social-icons {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.6875rem;
  transition: all 0.2s;
}
.social-icon:hover {
  background: rgba(240,165,0,0.1);
  border-color: rgba(240,165,0,0.3);
  color: #f0a500;
}
.footer-col h4,
.footer-col .footer-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col a {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.2s;
}
.footer-col a:hover { color: #f0a500; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact li svg {
  width: 15px;
  height: 15px;
  color: #9ca3af;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact li span {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
}
.footer-contact li a {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-contact li a:hover {
  color: #f0a500;
}
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: #6b7280;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-legal a {
  font-size: 0.8125rem;
  color: #6b7280;
  transition: color 0.2s;
}
.footer-legal a:hover { color: #9ca3af; }
.footer-legal .sep { color: #374151; }

/* ========== Motion Enhancements ========== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(240,165,0,0.22);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(240,165,0,0);
  }
}

.site-header {
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: fadeSlideUp 0.55s ease both;
}

.logo-wrap,
.header-btn,
.lang-switch,
.mobile-toggle,
.nav-link {
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.logo-wrap:hover,
.header-btn:hover,
.lang-switch:hover,
.mobile-toggle:hover {
  transform: translateY(-2px);
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: #f0a500;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link--active::before {
  display: none;
}

.nav-dropdown-item,
.lang-option,
.mobile-nav-link,
.mobile-nav-sub-link,
.footer-col a,
.footer-contact li a,
.footer-legal a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.22s ease;
}

.nav-dropdown-item:hover,
.lang-option:hover,
.mobile-nav-link:hover,
.mobile-nav-sub-link:hover,
.footer-col a:hover,
.footer-contact li a:hover,
.footer-legal a:hover {
  transform: translateX(4px);
}

.social-icon:hover {
  transform: translateY(-3px) rotate(4deg);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========== Page Banner (通用内页 Banner) ========== */
.page-banner {
  position: relative;
  background: #2d2d3d;
  overflow: hidden;
  margin-top: var(--site-header-height);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a3a4a;
}

.page-banner-bg .placeholder-icon {
  opacity: 0.15;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-banner-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgb(0, 0, 0), rgba(18, 18, 20, 0.9), rgba(26, 26, 46, 0));
}

.page-banner-content {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1480px);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 0 60px;
}

.page-banner-content h1 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.page-banner-content p {
  font-size: 17px;
  color: #c0c0c8;
  margin-bottom: 28px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .page-banner-content h1 {
    font-size: 28px;
  }

  .page-banner-content p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-banner-content {
    width: calc(100% - 32px);
    padding: 40px 0;
  }

  .page-banner-content h1 {
    font-size: 24px;
  }
}

/* ========== Page Top Offset (固定导航后的首屏内容避让) ========== */
.site-header + .container.breadcrumb,
.site-header + .container.page-title-section {
  margin-top: var(--site-header-height);
}

.site-header + .container.breadcrumb {
  gap: 6px;
  padding-top: 16px;
  padding-bottom: 8px;
  color: #888;
}

.site-header + .container.breadcrumb a:hover {
  color: #f0a500;
}

.site-header + .container.breadcrumb span {
  color: #333;
}

.container.breadcrumb + .container.page-title-section {
  margin-top: 0;
}

/* ========== Page Title Section (通用内页标题区) ========== */
.page-title-section {
  padding-bottom: 24px;
}

.page-title {
  font-size: 36px;
  font-weight: 900;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-desc {
  color: #666;
  font-size: 15px;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 30px;
  }
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999;
}

.breadcrumb a {
  color: #999;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  display: flex;
  align-items: center;
}

.breadcrumb .sep svg {
  width: 14px;
  height: 14px;
  color: #666;
}

.breadcrumb .current,
.breadcrumb .separator {
  color: #ddd;
}
