/* ========================================
   于千万 YUQIANWAN - Brand Website Styles
   ======================================== */

:root {
  /* Colors */
  --ink-green: #1A3A2A;
  --ink-green-light: #2A5A3F;
  --ink-green-dark: #0F2619;
  --rice-white: #FAF8F3;
  --rice-white-dark: #F0EDE4;
  --gold: #B8965A;
  --gold-light: #D4B87A;
  --gold-dark: #9A7A42;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-tertiary: #8A8A8A;
  --border-light: #E5E2D8;

  /* Typography */
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Layout */
  --max-width: 1240px;
  --section-padding: 120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--rice-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--rice-white);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 2px 20px rgba(26, 58, 42, 0.06);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-green);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
}

.nav-menu a {
  font-size: 15px;
  color: var(--ink-green);
  position: relative;
  padding: 4px 0;
  font-weight: 500;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-menu a.active {
  color: var(--ink-green);
  font-weight: 600;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink-green);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--rice-white);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 40px;
  z-index: 999;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink-green);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 58, 42, 0.15) 0%,
    rgba(26, 58, 42, 0.1) 50%,
    rgba(26, 58, 42, 0.25) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}

.hero-title {
  font-family: var(--font-serif);
  color: white;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 6px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  margin-top: 24px;
  letter-spacing: 2px;
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ========== Selling Points Section ========== */
.selling-points {
  padding: 80px 0;
  background: var(--rice-white);
}

.selling-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.selling-point {
  text-align: center;
  padding: 20px;
}

.selling-point-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--ink-green);
}

.selling-point-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink-green);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.selling-point-en {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ========== Product Story Section ========== */
.product-story {
  padding: var(--section-padding) 0;
  background: var(--rice-white);
}

.product-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-story-label {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.product-story-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 24px;
  font-weight: 500;
}

.product-story-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 420px;
}

.product-story-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
}

.product-story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.product-story-vertical {
  position: absolute;
  top: 0;
  right: -60px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink-green);
  letter-spacing: 8px;
  line-height: 2;
  padding: 20px 0;
  border-top: 1px solid var(--ink-green);
  border-bottom: 1px solid var(--ink-green);
}

/* ========== Ritual Section ========== */
.ritual-section {
  padding: var(--section-padding) 0;
  background: var(--rice-white);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 60px;
  font-weight: 500;
  letter-spacing: 4px;
}

.ritual-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

/* ========== Product Cards Section ========== */
.product-cards-section {
  padding: var(--section-padding) 0;
  background: var(--rice-white);
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.product-card {
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--rice-white-dark);
  border-radius: 4px;
}

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

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

.product-card-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.product-card-price {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========== Footer ========== */
.footer {
  background: var(--ink-green);
  padding: 60px 0 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  color: white;
  letter-spacing: 6px;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

/* ========== Product List Page ========== */
.products-list-section {
  padding: var(--section-padding) 0 80px;
  background: var(--rice-white);
}

.product-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}

.product-list-item:last-child {
  border-bottom: none;
}

.product-list-item:nth-child(even) .product-list-image {
  order: 2;
}

.product-list-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--rice-white-dark);
  max-width: 480px;
}

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

.product-list-item:hover .product-list-image img {
  transform: scale(1.03);
}

.product-list-info {
  max-width: 420px;
}

.product-list-name {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.product-list-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.product-list-price {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

/* ========== Button Styles ========== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  letter-spacing: 2px;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
}

.btn-primary {
  background: var(--ink-green);
  color: white;
}

.btn-primary:hover {
  background: var(--ink-green-light);
}

.btn-outline {
  border: 1.5px solid var(--ink-green);
  color: var(--ink-green);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink-green);
  color: white;
}

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

.btn-gold:hover {
  background: var(--gold);
  color: white;
}

/* ========== Custom Section ========== */
.custom-section {
  padding: var(--section-padding) 0;
  background: var(--rice-white);
  text-align: center;
}

.custom-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  max-width: 600px;
  margin: 0 auto 60px;
}

.custom-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.custom-step {
  border: 1px solid var(--border-light);
  padding: 40px 30px;
  background: white;
  transition: all 0.3s ease;
}

.custom-step:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.custom-step-num {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.custom-step-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 2px;
}

/* ========== Product Detail Page ========== */
.breadcrumb {
  margin-top: var(--nav-height);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--rice-white);
}

.breadcrumb-inner {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.breadcrumb-inner a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.breadcrumb-inner a:hover {
  color: var(--ink-green);
}

.breadcrumb-sep {
  margin: 0 10px;
  color: var(--text-tertiary);
}

.breadcrumb-current {
  color: var(--ink-green);
}

.product-detail-section {
  padding: 80px 0;
  background: var(--rice-white);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.product-gallery-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--rice-white-dark);
  margin-bottom: 20px;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  gap: 12px;
}

.product-thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  background: var(--rice-white-dark);
}

.product-thumb.active {
  border-color: var(--gold);
}

.product-thumb:hover {
  border-color: var(--border-light);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-product-name {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.detail-product-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.detail-product-price {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 1px;
}

.detail-product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.detail-feature-tag {
  font-size: 13px;
  color: var(--ink-green);
  padding: 6px 16px;
  border: 1px solid rgba(26, 58, 42, 0.2);
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  width: fit-content;
  border-radius: 2px;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  background: transparent;
}

.quantity-btn:hover {
  background: var(--rice-white-dark);
  color: var(--ink-green);
}

.quantity-input {
  width: 60px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  text-align: center;
  font-size: 15px;
  color: var(--text-primary);
  background: transparent;
  font-family: inherit;
  outline: none;
}

.detail-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.detail-buttons .btn {
  flex: 1;
  min-width: 140px;
}

.detail-services {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.detail-service {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-service svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* ========== Tabs Section ========== */
.product-tabs-section {
  padding: 80px 0;
  background: var(--rice-white);
  border-top: 1px solid var(--border-light);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
}

.tab-nav-item {
  padding: 16px 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-tertiary);
  cursor: pointer;
  letter-spacing: 2px;
  position: relative;
  transition: color 0.3s ease;
  background: none;
  border: none;
  font-weight: 500;
}

.tab-nav-item::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-nav-item.active {
  color: var(--ink-green);
}

.tab-nav-item.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

.tab-detail-block {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.tab-detail-block:last-child {
  margin-bottom: 0;
}

.tab-detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 40px;
  border-radius: 4px;
}

.tab-detail-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 2px;
}

.tab-detail-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
}

/* Spec Table */
.spec-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-light);
}

.spec-table tr:first-child {
  border-top: 1px solid var(--border-light);
}

.spec-table th {
  padding: 18px 30px;
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  width: 30%;
  background: rgba(26, 58, 42, 0.03);
  font-size: 14px;
  letter-spacing: 1px;
}

.spec-table td {
  padding: 18px 30px;
  color: var(--text-primary);
  font-size: 14px;
}

/* Brand story tab */
.brand-story-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.brand-story-content .tab-detail-image {
  margin-bottom: 50px;
}

.brand-story-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 20px;
  text-align: justify;
  text-indent: 2em;
}

/* ========== Related Products ========== */
.related-products {
  padding: 80px 0 var(--section-padding);
  background: var(--rice-white);
  border-top: 1px solid var(--border-light);
}

.related-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 500;
  letter-spacing: 3px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .product-story-grid {
    gap: 50px;
  }

  .product-detail-grid {
    gap: 50px;
  }

  .product-story-vertical {
    right: -40px;
    font-size: 13px;
    letter-spacing: 6px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --nav-height: 60px;
  }

  .container,
  .nav-inner {
    padding: 0 20px;
  }

  .nav-menu {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: 4px;
    line-height: 2;
  }

  .selling-points-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

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

  .product-story-vertical {
    display: none;
  }

  .product-story-desc {
    max-width: 100%;
  }

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

  .product-list-item {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }

  .product-list-item:nth-child(even) .product-list-image {
    order: 0;
  }

  .product-list-image {
    max-width: 100%;
  }

  .custom-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .detail-product-price {
    font-size: 36px;
  }

  .tabs-nav {
    gap: 30px;
  }

  .tab-nav-item {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .detail-services {
    flex-wrap: wrap;
    gap: 16px;
  }

  .detail-buttons {
    flex-direction: column;
  }

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

  .spec-table th,
  .spec-table td {
    padding: 14px 16px;
    font-size: 13px;
  }

  .selling-points {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .selling-points-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero-title {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .product-thumbs {
    gap: 8px;
  }

  .product-thumb {
    width: 60px;
    height: 60px;
  }

  .tabs-nav {
    gap: 20px;
  }

  .custom-step {
    padding: 30px 20px;
  }
}
