/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Gill Sans', 'Noto Sans SC', sans-serif;
  color: #efecea;
  background: #001522;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ===== Fonts ===== */
@font-face {
  font-family: 'Gill Sans';
  src: url('../fonts/Gill-Sans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== Colors ===== */
:root {
  --deep-blue: #001522;
  --gold: #af8061;
  --gold-light: #c9a07a;
  --light: #efecea;
  --dark: #252525;
  --white: #ffffff;
  --overlay: rgba(0, 21, 34, 0.6);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.site-header.scrolled {
  background: rgba(0, 21, 34, 0.95);
  padding: 10px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .logo img {
  height: 28px;
  width: auto;
  transition: height 0.3s;
}

.site-header.scrolled .logo img { height: 22px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: -10px;
  min-width: 200px;
  background: rgba(0, 21, 34, 0.95);
  padding: 12px 0;
  border-top: 2px solid var(--gold);
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.dropdown a:hover { background: rgba(175, 128, 97, 0.15); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--light);
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Footer ===== */
.site-footer {
  background: var(--deep-blue);
  border-top: 1px solid rgba(175, 128, 97, 0.2);
  padding: 50px 40px 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col p, .footer-col a {
  font-size: 14px;
  color: rgba(239, 236, 234, 0.7);
  line-height: 1.8;
  display: block;
}
.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(175, 128, 97, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep-blue);
}

.footer-logo img { height: 22px; margin-bottom: 10px; display: block; }
.footer-logo p { padding-left: 0; }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 236, 234, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(239, 236, 234, 0.4);
}

.footer-bottom a {
  color: rgba(239, 236, 234, 0.4);
  text-decoration: none;
  transition: color 0.3s;
  margin: 0 4px;
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom .icp-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.footer-bottom .icp-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom .icp-links img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* ===== ICP Floating Bar (首页单页滚动用) ===== */
.icp-floating-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: rgba(0, 21, 34, 0.85);
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
}
.icp-floating-bar a {
  color: rgba(239, 236, 234, 0.6);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.icp-floating-bar a:hover { color: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--light);
  transition: all 0.4s;
  cursor: pointer;
}

.btn:hover {
  background: var(--gold);
  color: var(--deep-blue);
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-blue);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--light);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.section-title .accent-line {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 0 auto;
}
.section-title p {
  margin-top: 15px;
  font-size: 15px;
  color: rgba(239, 236, 234, 0.6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Banner ===== */
.page-banner {
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 34, 0.7);
  z-index: 1;
}
.page-banner .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-banner .content {
  position: relative;
  z-index: 2;
}
.page-banner h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* ===== Utilities ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-padding { padding: 80px 0; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* ===== WeChat Float Button ===== */
.wechat-float {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wechat-float .float-btn {
  width: 56px; height: 56px;
  background: #07c160;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
  transition: transform 0.3s;
  cursor: pointer;
}
.wechat-float .float-btn:hover { transform: scale(1.1); }
.wechat-float .float-btn svg { width: 28px; height: 28px; fill: #fff; }
.wechat-float .float-label {
  font-size: 11px;
  background: rgba(0, 21, 34, 0.9);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

/* WeChat Modal */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}
.wechat-modal.active { display: flex; }
.wechat-modal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 320px;
  position: relative;
}
.wechat-modal .modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}
.wechat-modal .qr-placeholder {
  width: 200px; height: 200px;
  background: #f0f0f0;
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border: 2px dashed #ddd;
}
.wechat-modal h3 { color: var(--dark); font-size: 18px; margin-bottom: 5px; }
.wechat-modal p { color: #666; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header { padding: 12px 20px; }
  .site-header.scrolled { padding: 8px 20px; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 21, 34, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 25px;
  }
  .main-nav.active { display: flex; }
  .main-nav a { font-size: 18px; }
  .nav-item .dropdown {
    position: static;
    background: none;
    border: none;
    padding: 8px 0;
  }
  .nav-item .dropdown a { font-size: 15px; color: rgba(239, 236, 234, 0.6); }

  .hamburger { display: flex; }

  .footer-top { flex-direction: column; gap: 30px; }
  .section-title h2 { font-size: 26px; }
  .page-banner h1 { font-size: 32px; }
  .section-padding { padding: 50px 0; }
}
