/* ========================================
   广州市乐莎美容用具有限公司 - 企业官网
   Dark Luxury Theme
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-deep: #0f1923;
  --bg-card: #1a2740;
  --bg-surface: #152032;
  --bg-footer: #0a121b;
  --banner-bg: #0f1923;
  --navbar-bg: #0f1923;
  --gold: #c9a96e;
  --gold-light: #d4af37;
  --gold-dim: #8b7848;
  --text-primary: #e8e3dc;
  --text-secondary: #8b9dc3;
  --text-muted: #5a6d8a;
  --border-subtle: rgba(201, 169, 110, 0.15);
  --border-gold: rgba(201, 169, 110, 0.35);
  --overlay-dark: rgba(15, 25, 35, 0.85);
  --font-serif: 'Noto Serif SC', 'Georgia', serif;
  --font-sans: 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  --radius: 6px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 40px rgba(201, 169, 110, 0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --content-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Background Texture --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 157, 195, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

/* --- Gold Accent Line --- */
.accent-line {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dim), transparent);
  margin: 0.8rem 0 1.5rem;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 25, 35, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: var(--banner-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 169, 110, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 157, 195, 0.05) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(201, 169, 110, 0.5) 2px, rgba(201, 169, 110, 0.5) 2.5px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(201, 169, 110, 0.5) 2px, rgba(201, 169, 110, 0.5) 2.5px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .gold-text {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(201, 169, 110, 0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   SECTION COMMONS
   ======================================== */

.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .accent-line {
  margin: 0.8rem auto 1rem;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--shadow-gold);
}

.product-card-image {
  width: 100%;
  height: 220px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-image .placeholder-icon {
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.4;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold);
  border: 1px solid var(--border-subtle);
}

.product-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-footer .btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Category filter */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ========================================
   ABOUT / STATS
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-gold);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-image {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.06), transparent 60%);
}

.about-image .placeholder-icon {
  font-size: 5rem;
  color: var(--text-muted);
  opacity: 0.3;
}

/* ========================================
   NEWS / BLOG
   ======================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.news-card-body {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.8rem;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
  display: block;
}

.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.news-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.news-card-footer a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--content-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   PAGE BANNER (sub-pages)
   ======================================== */

.page-banner {
  padding: 8rem 2rem 3rem;
  text-align: center;
  position: relative;
  background: var(--banner-bg);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 169, 110, 0.06), transparent 60%);
  pointer-events: none;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
}

.page-banner .accent-line {
  margin: 0.8rem auto 1rem;
}

/* ========================================
   LOADING / NO DATA
   ======================================== */

.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition);
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 25, 35, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
    padding: 5rem 1rem 3rem;
  }

  .hero-tag {
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }
}
