/* Roboto Font Faces */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../assets/fonts/roboto/roboto-v32-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/roboto/roboto-v32-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/roboto/roboto-v32-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/roboto/roboto-v32-latin-700.woff2') format('woff2');
}

:root {
  /* Color Palette - Antolini-inspired Luxury Stone Theme */
  --bg-primary: #f8f8f8; /* Light stone grey for base */
  --bg-secondary: #ffffff;
  --text-primary: #333333;
  --text-secondary: rgba(51, 51, 51, 0.7);
  --accent: #C29C77; /* Kept Sand Gold / Olive accents */
  --olive: #41432f;
  --border: rgba(65, 67, 47, 0.1);
  --glass: rgba(255, 255, 255, 0.8);

  /* Spacing */
  --spacing-sm: 1.25rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 5rem;
  --spacing-xl: 10rem;

  /* Transitions */
  --transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Language Switch (teamwork mix 对齐：只显示当前语言) */
html[lang="en"] .lang-cn {
  display: none !important;
}
html[lang="zh-CN"] .lang-en,
html[lang="zh"] .lang-en {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Shared Buttons (teamwork mix style baseline) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--accent);
  color: #111;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(194, 156, 119, 0.25);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.btn-sm {
  min-height: 36px;
  padding: 0.45rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

/* Typography - Antolini Elevation */
h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

h4, h5, h6 {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Glassmorphism utility */
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Header / Footer Base */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo img {
  height: 34px;
  width: auto;
}

.main-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.9;
}

.nav-link .lang-en,
.nav-link .lang-cn {
  display: block;
  line-height: 1.15;
}

.nav-link.active {
  color: var(--accent);
  opacity: 1;
}
.nav-list > li {
  position: relative;
}
.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dropdown-arrow {
  font-size: 10px;
  line-height: 1;
  color: var(--text-secondary);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: rgba(65, 67, 47, 0.06);
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
}

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: var(--spacing-xl);
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px 24px 30px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 24px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.footer-text,
.footer-links li,
.footer-links a {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.newsletter-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  height: 42px;
  max-width: 320px;
}

.newsletter-input {
  flex: 1;
  border: 0;
  height: 100%;
  min-width: 0;
  padding: 0 14px;
  font-size: 0.82rem;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(51, 51, 51, 0.55);
}

.newsletter-btn {
  border: 0;
  height: 100%;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  filter: brightness(0.95);
}

/* Responsive */
@media (max-width: 1100px) {
  .container {
    padding: 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .menu-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 14px 20px 20px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 1001;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .dropdown-menu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 2px 0 0 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown-menu li a {
    padding: 6px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
  }
  .dropdown-arrow {
    display: none;
  }

  .header-actions .search-icon {
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .header-container {
    min-height: 66px;
    padding: 0 14px;
  }

  .main-nav {
    top: 66px;
    max-height: calc(100vh - 66px);
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo img {
    height: 28px;
  }

  .lang-switch {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 14px 20px;
    gap: 16px;
  }

  .footer-bottom {
    padding: 0 14px 16px;
  }

  .newsletter-form {
    max-width: 100%;
  }
}
