/* 定渊国际 — 企业官网样式 */
:root {
  --clay: #8b5a3c;
  --clay-dark: #5c3d2e;
  --clay-light: #c4a484;
  --ink: #1a1614;
  --ink-soft: #3d3530;
  --cream: #f7f3ee;
  --cream-dark: #ebe4da;
  --gold: #b8956a;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 22, 20, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 22, 20, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--cream-dark);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.logo-text small {
  font-size: 0.65rem;
  color: var(--clay);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--clay); }
.nav-links a:hover::after { width: 100%; }

.lang-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--clay-light);
  background: transparent;
  color: var(--clay-dark);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  background: var(--clay);
  color: var(--white);
  border-color: var(--clay);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 22, 20, 0.75) 0%, rgba(92, 61, 46, 0.6) 50%, rgba(139, 90, 60, 0.4) 100%),
    url("../assets/images/product-2.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
  color: var(--cream);
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(184, 149, 106, 0.4);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 540px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--clay);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 90, 60, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-full { width: 100%; }

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-header p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--ink-soft);
}

.section-header.center { text-align: center; }
.section-header.light h2,
.section-header.light .section-label { color: var(--cream); }
.section-header.light p { color: rgba(247, 243, 238, 0.8); }

/* About */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--clay);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-features {
  margin-top: 1.5rem;
}

.about-features li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--cream-dark);
}

.about-features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-size: 0.6rem;
  top: 0.85rem;
}

/* Products */
.products { background: var(--cream); }

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--cream-dark);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card.featured {
  background: linear-gradient(160deg, var(--clay-dark), var(--clay));
  color: var(--cream);
  border: none;
}

.product-card.featured .card-tier,
.product-card.featured p,
.product-card.featured li { color: rgba(247, 243, 238, 0.85); }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 90, 60, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 1.25rem;
}

.product-card.featured .card-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold);
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.product-card.featured h3 { color: var(--white); }

.card-tier {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-light);
  margin-bottom: 1rem;
}

.product-card > p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.product-card ul li {
  font-size: 0.9rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.product-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--clay);
}

.product-card.featured ul li::before { color: var(--gold); }

/* Gallery */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(26, 22, 20, 0.75));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover figcaption { transform: translateY(0); }

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide { grid-column: span 2; }

/* Why */
.why {
  background: linear-gradient(160deg, var(--ink) 0%, var(--clay-dark) 100%);
  color: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-item {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: var(--transition);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
}

.why-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.why-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.why-item p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Contact */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.contact-info > p { margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.contact-row strong {
  display: block;
  font-size: 0.8rem;
  color: var(--clay);
  margin-bottom: 0.15rem;
}

.contact-row a {
  color: var(--clay-dark);
  font-weight: 500;
}

.contact-row a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.contact-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--clay-light);
  margin-top: 0.75rem;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(247, 243, 238, 0.6);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
}

.footer-brand .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.footer-copy { font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1024px) {
  .product-cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .gallery-item, .gallery-item.wide { grid-column: span 1; }
  .gallery-grid .gallery-item { min-height: 200px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large,
  .gallery-item.wide { grid-column: span 1; }
}
