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

:root {
  --accent: #d4846b;
  --accent-dark: #b56a54;
  --accent-light: #f5e8e2;
  --dark: #1a1a1a;
  --text: #3a3a3a;
  --text-light: #7a7a7a;
  --bg: #ffffff;
  --bg-alt: #f9f7f5;
  --border: #e8e5e2;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === Navigation === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition);
}

nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: height var(--transition);
}

nav.scrolled .logo-img {
  height: 38px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(175deg, #fdfaf7 0%, #f7efe8 25%, #efe2d8 55%, #f5ebe2 80%, #fbf7f3 100%);
  position: relative;
  overflow: hidden;
}

/* Hero background decorative elements */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,132,107,0.12);
}

.hero-circle--1 {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(212,132,107,0.04) 0%, transparent 70%);
}

.hero-circle--2 {
  width: 380px;
  height: 380px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(212,132,107,0.05) 0%, transparent 60%);
}

.hero-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212,132,107,0.25);
}

.hero-dot--1 { top: 18%; left: 8%; }
.hero-dot--2 { top: 28%; right: 12%; width: 3px; height: 3px; }
.hero-dot--3 { bottom: 32%; left: 18%; width: 5px; height: 5px; }

.hero-line-deco {
  position: absolute;
  background: rgba(212,132,107,0.08);
}

.hero-line-deco--1 {
  width: 1px;
  height: 180px;
  top: 12%;
  right: 8%;
  transform: rotate(15deg);
}

.hero-line-deco--2 {
  width: 1px;
  height: 120px;
  bottom: 20%;
  left: 10%;
  transform: rotate(-10deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 32px;
  animation: heroFadeIn 1s ease-out;
}

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

.hero-overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-overline-line {
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(212,132,107,0.4);
}

.hero-overline-text {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--accent);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 200;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-line { display: block; }

.hero-line em {
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}

.hero-comma {
  color: var(--accent);
  font-weight: 400;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.hero-divider span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.hero-divider span:nth-child(2) {
  width: 18px;
  border-radius: 3px;
  opacity: 0.8;
}

.hero-divider span:nth-child(3) {
  opacity: 0.35;
}

.hero-en {
  font-size: 17px;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 28px;
}

.hero-en-dot {
  margin: 0 10px;
  color: var(--accent);
  opacity: 0.6;
}

.hero-desc {
  font-size: 13px;
  color: #999;
  line-height: 2;
  margin-bottom: 48px;
  letter-spacing: 0.5px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(196,129,107,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,132,107,0.3);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}

.btn-light:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* === Sections === */
.section {
  padding: 120px 32px;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--dark);
}

.section-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
}

.about-text .lead-en {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 36px;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.about-stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}

.stat-label small {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visual-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
}

.visual-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.visual-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.visual-card p {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
}

.visual-card small {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* === Products === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: transform 0.4s ease;
}

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

.product-emoji {
  font-size: 48px;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.product-card:hover .product-emoji {
  opacity: 1;
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

.product-info small {
  color: #aaa;
}

/* === Product Detail Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--accent);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.modal-gallery {
  position: relative;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.modal-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.modal-info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}

.modal-info h2 {
  font-size: 28px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 12px;
}

.modal-desc-en {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.feature-tag {
  font-size: 11px;
  padding: 4px 14px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 100px;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    border-radius: 16px 16px 0 0;
    max-height: 250px;
  }

  .modal-info {
    padding: 24px 20px;
  }
}

/* === Why Us === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-item {
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.why-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.why-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.why-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
}

.why-item p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

.why-en {
  margin-top: 8px;
}

.why-en small {
  color: var(--text-light);
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #a86d5a 100%);
  padding: 80px 32px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 8px;
  line-height: 1.8;
}

.cta-en small {
  font-size: 13px;
  opacity: 0.7;
}

.cta-banner .btn {
  margin-top: 32px;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

.contact-en small {
  color: var(--text-light);
}

.contact-link {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.contact-link:hover {
  border-color: var(--accent);
}

/* === Footer === */
footer {
  background: var(--dark);
  color: #999;
  padding: 60px 32px 32px;
}

.footer-inner {
  text-align: center;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 auto 8px;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 13px;
}

.footer-en small {
  font-size: 11px;
  color: #666;
}

.footer-links {
  margin: 28px 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: #999;
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 12px;
  color: #666;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  line-height: 2;
}

.footer-copy p {
  margin: 0;
}

.footer-beian a,
.footer-gaba a {
  color: #666;
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
}

.ghs-icon {
  width: 18px;
  height: auto;
  margin-right: 4px;
  display: inline-block;
}

.footer-beian a:hover,
.footer-gaba a:hover {
  color: var(--accent);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 32px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .menu-btn { display: block; }

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-stats {
    justify-content: center;
  }

  .section {
    padding: 80px 20px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  .about-stats {
    gap: 24px;
  }
}
