/* 芮优晶 (Rieugen) Website Styles - Enhanced */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

:root {
  /* Primary palette - refined sage with depth */
  --sage-green: #8b9d83;
  --sage-light: #b8c7ae;
  --sage-lighter: #d4e0cc;
  --sage-dark: #5a6b52;
  --sage-darker: #4a5a45;

  /* Neutrals - warmer, more sophisticated */
  --cream: #faf8f5;
  --cream-dark: #f0ede8;
  --white: #ffffff;

  /* Text - improved contrast */
  --text-primary: #2a2a2a;
  --text-secondary: #5a5a5a;
  --text-tertiary: #8a8a8a;
  --text-muted: #b0b0b0;

  /* Accents - subtle warmth */
  --accent-gold: #c9a961;
  --border-subtle: #e8e5e0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  font-size: 14px;
  zoom: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.header {
  padding: 24px 40px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.logo {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 15px;
  color: var(--text-primary);
  display: block;
  text-decoration: none;
}

.logo img {
  height: 1.5em;
  display: block;
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage-green);
  transition: width 0.3s ease;
}

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

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero-carousel {
  position: relative;
  background: linear-gradient(135deg, var(--sage-lighter) 0%, var(--cream) 40%, var(--white) 100%);
  min-height: 500px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream) 50%, var(--white) 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  padding: 40px;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-product-img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

.hero-text {
  text-align: right;
}

.hero-subtitle {
  font-size: 11px;
  color: var(--sage-darker);
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 6px;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: var(--text-tertiary);
  transform: scale(1.2);
}

.dot.active {
  background: var(--sage-green);
  width: 24px;
  border-radius: 4px;
}

/* Product Grid */
.products-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: 2px;
}

.featured-products {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.featured-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  box-shadow: var(--shadow-sm);
}

.product-image-featured {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.product-img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

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

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-name-featured {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.product-subtitle {
  font-size: 13px;
  color: var(--sage-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 16px;
}

.product-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.feature-tag {
  background: var(--sage-lighter);
  color: var(--sage-dark);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.product-desc-featured {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.benefit-icon {
  font-size: 16px;
}

.brand-promise {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--sage-lighter) 0%, var(--cream) 100%);
  border-radius: 16px;
  margin-top: 40px;
}

.brand-promise h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.brand-promise p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* About Page */
.about-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero-image {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-lifestyle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 157, 131, 0.85) 0%, rgba(90, 107, 82, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.about-hero-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.about-hero-subtitle {
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 1px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
}

.about-intro {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 2;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.about-section p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 10px;
}

.about-info {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 2;
}

.about-info span {
  color: var(--text-primary);
  margin-right: 20px;
}

.timeline {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 2.2;
}

.timeline-year {
  color: var(--text-primary);
  font-weight: 500;
}

.awards-list {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 2.2;
}

/* Contact Page */
.contact-section {
  padding: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.location-box {
  margin-bottom: 60px;
}

.location-box h2 {
  margin-top: 60px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.location-box:first-of-type h2 {
  margin-top: 0;
}

.location-info {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.map-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f0f8 0%, #f0f5fa 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, #d0d8e0 49%, #d0d8e0 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, #d0d8e0 49%, #d0d8e0 51%, transparent 51%);
  background-size: 40px 40px;
  opacity: 0.5;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--sage-green);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Product Detail Pages */
.product-details-section {
  max-width: 1200px;
  margin: 0 auto;
}

.product-hero {
  background: linear-gradient(135deg, var(--sage-lighter) 0%, var(--cream) 50%, var(--white) 100%);
  padding: 80px 40px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.product-detail {
  padding: 80px 40px;
}

.product-detail.reverse .product-detail-container {
  direction: rtl;
}

.product-detail.reverse .product-detail-content {
  direction: ltr;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.product-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-detail-img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.1));
}

.product-detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-detail-name {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.product-detail-subtitle {
  font-size: 14px;
  color: var(--sage-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--sage-green);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.product-description h3,
.product-benefits-detailed h3,
.product-usage h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.product-description p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefits-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.benefits-list strong {
  color: var(--text-primary);
}

.usage-steps {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usage-steps li {
  counter-increment: step-counter;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  padding-left: 32px;
}

.usage-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--sage-green);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
}

.brand-philosophy {
  background: linear-gradient(135deg, var(--cream) 0%, var(--sage-lighter) 100%);
  padding: 80px 40px;
  text-align: center;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-content h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.philosophy-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.philosophy-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.highlight {
  text-align: center;
}

.highlight h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.highlight p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--text-primary);
  padding: 40px 40px;
  text-align: center;
  margin-top: 80px;
}

.footer-logo {
  font-size: 24px;
  color: var(--white);
  letter-spacing: 8px;
  opacity: 0.9;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .featured-product {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail.reverse .product-detail-container {
    direction: ltr;
  }

  .philosophy-highlights {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .about-hero-title {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .about-hero-subtitle {
    font-size: 14px;
  }

  .about-hero-image {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 20px;
  }

  .header {
    padding: 15px 20px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .products-section {
    padding: 40px 20px;
  }

  .featured-product {
    padding: 24px;
  }

  .product-detail {
    padding: 40px 20px;
  }

  .product-hero {
    padding: 40px 20px;
  }

  .brand-philosophy {
    padding: 40px 20px;
  }

  .page-title {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .product-detail-name {
    font-size: 22px;
  }

  .product-name-featured {
    font-size: 20px;
  }

  .about-hero-title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .about-hero-subtitle {
    font-size: 13px;
  }

  .about-hero-image {
    height: 300px;
  }

  .about-hero-overlay {
    padding: 20px;
  }
}