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

:root {
  --font-sans: 'Roboto', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-serif: var(--font-sans);

  /* Color Palette - Antolini-inspired Luxury Stone Theme */
  --vi-primary: #4B4B4E;
  --vi-secondary: #7A7376;
  --vi-muted: #9F9699;
  --vi-border: #C3BDC0;
  --vi-surface: #E3E1E2;
  --vi-base: #FFFFFF;
  --bg-primary: #f7f6f7;
  --bg-secondary: #fdfcfd;
  --text-primary: var(--vi-primary);
  --text-secondary: rgba(75, 75, 78, 0.72);
  --accent: var(--vi-secondary);
  --olive: #575054;
  --border: rgba(195, 189, 192, 0.72);
  --glass: rgba(253, 252, 253, 0.82);

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

  /* Transitions */
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
  --transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms var(--ease-out-strong), box-shadow 180ms ease;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  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.12em;
  background: var(--vi-primary);
  color: var(--vi-base);
  border: 1px solid var(--vi-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out-strong), box-shadow 160ms ease;
}

.btn:hover {
  background: var(--vi-secondary);
  border-color: var(--vi-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(75, 75, 78, 0.08);
}

.btn:active {
  transform: scale(0.98);
}

.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;
}

.btn-outline-dark,
.btn.btn-outline-dark {
  background: transparent;
  border-color: var(--vi-border);
  color: var(--vi-primary);
}

.btn-outline-dark:hover,
.btn.btn-outline-dark:hover {
  background: var(--vi-primary);
  border-color: var(--vi-primary);
  color: var(--vi-base);
}

/* Typography - Antolini Elevation */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  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);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 4px 20px rgba(75, 75, 78, 0.05);
}

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

.fade-in {
  animation: fadeIn 0.42s var(--ease-out-strong) 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);
}

/* Morandi VI layer for inner pages */
.page-header,
.section-header,
.products-page,
.projects-page,
.innovation-page,
.news-page,
.stores-page,
.cms-detail-layout,
.product-page {
  color: var(--vi-primary);
}

.section-header {
  text-align: left;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(195, 189, 192, 0.62);
  padding-bottom: 24px;
}

.section-header h2,
.page-title,
.cms-detail-hero-content h1 {
  color: var(--vi-primary);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header p,
.breadcrumb,
.page-header-content p,
.cms-detail-hero-content p {
  color: var(--text-secondary);
  max-width: 72ch;
}

.page-header {
  min-height: 360px;
  background: linear-gradient(135deg, rgba(227, 225, 226, 0.86), rgba(253, 252, 253, 0.96));
  border-bottom: 1px solid var(--border);
}

.page-header-bg {
  opacity: 0.22;
  filter: saturate(0.68) contrast(0.95);
}

.news-card,
.store-card,
.project-card,
.product-card,
.cms-detail-card,
.request-form,
.category-node,
.collections-empty,
.collections-load-sentinel,
.ub-empty {
  background: var(--vi-base);
  border: 1px solid rgba(195, 189, 192, 0.72);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(75, 75, 78, 0.05);
}

.news-card,
.store-card,
.project-card,
.product-card {
  transition: border-color 180ms ease, transform 180ms var(--ease-out-strong), box-shadow 180ms ease;
}

.news-card:hover,
.store-card:hover,
.project-card:hover,
.product-card:hover {
  border-color: rgba(122, 115, 118, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(75, 75, 78, 0.08);
}

.news-date,
.store-city,
.filter-group h4,
.mixfree-company-tag,
.mixfree-company-label {
  color: var(--vi-secondary) !important;
}

input,
textarea,
select,
.collections-search-input,
.search-input,
.newsletter-input {
  color: var(--vi-primary);
  border-color: var(--vi-border);
}

input::placeholder,
textarea::placeholder,
.collections-search-input::placeholder,
.search-input::placeholder,
.newsletter-input::placeholder {
  color: var(--vi-muted);
}

input:focus,
textarea:focus,
select:focus,
.collections-search-input:focus {
  border-color: var(--vi-secondary) !important;
  outline: 2px solid rgba(122, 115, 118, 0.16);
  outline-offset: 2px;
}

/* 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%;
  }
}
