/* ============================================
   YIZE 品牌官网样式
   Industrial × Oriental × AI × Restrained Force
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  /* 色彩系统 */
  --charcoal: #0B0B0C;
  --graphite: #151517;
  --warm-white: #F8F7F3;
  --paper-white: #F1EFE9;
  --silver-gray: #8F9295;
  --oxblood: #7D201D;
  --oxblood-hover: #9E2A26;
  --copper: #A07A5B;
  --patina: #5B7A7A;

  /* 字体 */
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* 间距 */
  --section-pad: clamp(80px, 12vh, 160px);
  --container: min(90%, 1200px);

  /* 缓动 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--charcoal);
  color: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--charcoal);
  background: var(--warm-white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

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

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

ul, ol {
  list-style: none;
}

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

/* ---- Layout Utilities ---- */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

/* ---- Typography ---- */
.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.heading-md {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.body-text {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  color: var(--silver-gray);
  max-width: 65ch;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-gray);
}

.label-en {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-gray);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease-out-expo), padding 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-logo span {
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--silver-gray);
  margin-left: 8px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--silver-gray);
  transition: color 0.3s var(--ease-out-quart);
  position: relative;
}

.nav-link:hover {
  color: var(--warm-white);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oxblood);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--warm-white);
  color: var(--warm-white);
  transition: all 0.3s var(--ease-out-quart);
}

.nav-cta:hover {
  background: var(--warm-white);
  color: var(--charcoal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--warm-white);
  transition: all 0.3s var(--ease-out-quart);
}

/* ---- Hero ---- */
.hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,0.92) 0%, rgba(11,11,12,0.5) 45%, rgba(11,11,12,0.1) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  max-width: 620px;
}

.hero-label {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--oxblood);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  color: var(--silver-gray);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  background: var(--oxblood);
  color: var(--warm-white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-out-quart);
  border-radius: 0;
}

.btn-primary:hover {
  background: var(--oxblood-hover);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out-quart);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ---- Section Variants ---- */
.section-dark {
  background: var(--charcoal);
}

/* ---- Services Section with Background ---- */
#services {
  position: relative;
  background: var(--graphite);
  overflow: hidden;
}

#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/services-bg-metal-canopy.png') center / cover no-repeat;
  opacity: 0.32;
  z-index: 0;
}

#services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(21,21,23,0.45) 50%, rgba(11,11,12,0.65) 100%);
  z-index: 1;
}

#services .container {
  position: relative;
  z-index: 2;
}

.section-graphite {
  background: var(--graphite);
}

.section-light {
  background: var(--paper-white);
  color: var(--charcoal);
}

.section-light .body-text {
  color: #555;
}

.section-light .label,
.section-light .label-en {
  color: #888;
}

/* ---- Asymmetric Layouts ---- */
.asymmetric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.asymmetric-reverse {
  direction: rtl;
}

.asymmetric-reverse > * {
  direction: ltr;
}

.asymmetric-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.asymmetric-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.asymmetric-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.asymmetric-image:hover img {
  transform: scale(1.03);
}

/* ---- Services ---- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  min-height: 300px;
  align-items: stretch;
  background: rgba(21, 21, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.service-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--oxblood);
  transition: height 0.5s var(--ease-out-expo);
}

.service-card:hover::before {
  height: 100%;
}

.service-card-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); }
.service-card-reverse .service-image { order: 2; }

.service-image { min-height: 300px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo); }
.service-card:hover .service-image img { transform: scale(1.04); }
.service-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); }

.service-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--oxblood);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--silver-gray);
  line-height: 1.7;
}

/* ---- Delivery ---- */
.delivery-section {
  position: relative;
  overflow: hidden;
}

.delivery-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.delivery-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.delivery-content {
  position: relative;
  z-index: 1;
}

.delivery-header {
  text-align: center;
  margin-bottom: 60px;
}

.delivery-header .heading-lg {
  max-width: 700px;
  margin-inline: auto;
}

.delivery-subtitle {
  color: var(--silver-gray);
  margin-top: 16px;
  font-size: 0.95rem;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.delivery-card {
  background: rgba(21, 21, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 36px 32px;
  transition: all 0.4s var(--ease-out-expo);
}

.delivery-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(21, 21, 23, 0.95);
}

.delivery-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.delivery-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--warm-white);
  fill: none;
  stroke-width: 1.5;
}

.delivery-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.delivery-card-desc {
  font-size: 0.82rem;
  color: var(--silver-gray);
  line-height: 1.7;
}

.delivery-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--silver-gray);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.delivery-card-topline span:first-child { color: var(--oxblood); }
.delivery-card-link { display: inline-block; margin-top: 22px; color: var(--warm-white); font-size: 0.8rem; }
.delivery-card-link.disabled { color: rgba(255,255,255,.32); }

/* ---- Method ---- */
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
}

.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(40px, 5vh, 60px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  align-items: start;
}

.method-step-num {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 200;
  color: var(--oxblood);
  line-height: 1;
  opacity: 0.6;
}

.method-step-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 12px;
  font-weight: 600;
}

.method-step-desc {
  color: var(--silver-gray);
  font-size: 0.9rem;
  max-width: 55ch;
  line-height: 1.8;
}

/* ---- Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s var(--ease-out-quart);
}

.stat-item:hover {
  border-color: rgba(255,255,255,0.12);
}

.stat-num {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-num span {
  font-size: 0.5em;
  color: var(--silver-gray);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--silver-gray);
  letter-spacing: 0.05em;
}

/* ---- About ---- */
.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.5;
  font-weight: 600;
  max-width: 800px;
  margin-bottom: 40px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--oxblood);
}

.about-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  margin-top: 40px;
}

.about-text p {
  color: var(--silver-gray);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ---- CTA ---- */
.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,0.95) 0%, rgba(11,11,12,0.6) 50%, rgba(11,11,12,0.3) 100%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-desc {
  color: var(--silver-gray);
  font-size: 0.95rem;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
}

/* ---- Footer ---- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--silver-gray);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--silver-gray);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--warm-white);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  margin-top: 32px;
  text-align: center;
  width: 100%;
}

.footer-icp {
  margin-top: 4px;
  text-align: center;
  width: 100%;
}

.footer-icp a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-icp a:hover {
  color: rgba(255,255,255,0.35);
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card:hover,
  .delivery-card:hover,
  .btn-primary:hover,
  .asymmetric-image:hover img {
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-text {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100dvh;
    background: var(--charcoal);
    flex-direction: column;
    padding: 80px 40px 40px;
    gap: 32px;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 99;
  }

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

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
  }

  .nav-overlay.open {
    display: block;
  }

  .asymmetric {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .asymmetric-image {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .service-card, .service-card-reverse { grid-template-columns: 1fr; }
  .service-card-reverse .service-image { order: 0; }
  .service-image { min-height: 220px; }

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

  .method-step {
    grid-template-columns: 60px 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }
}

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

  .stat-item {
    padding: 24px;
  }

  .method-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .method-step-num {
    font-size: 2rem;
  }
}

/* ---- Section specific alignments ---- */
.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .heading-lg {
  max-width: 700px;
  margin-inline: auto;
}

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--oxblood);
  margin: 20px 0;
}

.divider.center {
  margin-inline: auto;
}
