:root {
  --bg: #faf9f7;
  --bg-white: #ffffff;
  --accent: #b8860b;
  --accent-light: #d4a843;
  --accent-soft: rgba(184, 134, 11, 0.12);
  --text-main: #1a1a1a;
  --text-sub: #666666;
  --text-light: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Montserrat", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.logo-mark--footer {
  width: 48px;
  height: 48px;
}

.logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header-overlay .logo-text {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.header-overlay .logo-mark {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-scrolled .logo-text {
  color: var(--text-main);
}

.header-overlay {
  background: transparent;
}

.header-overlay .main-nav a {
  color: #fff;
}

.header-overlay .nav-toggle span {
  background: #fff;
}

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

.header-scrolled .main-nav a {
  color: var(--text-main);
}

.header-scrolled .nav-toggle span {
  background: var(--text-main);
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.main-nav a {
  color: var(--text-sub);
  transition: color 0.2s;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-overlay .main-nav a:hover {
  color: var(--accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Fullscreen Carousel ===== */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 24px;
  padding-top: var(--header-h);
}

.hero-company {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
  margin: 0 0 48px;
  font-weight: 400;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
  margin-top: auto;
  margin-bottom: 80px;
}

.hero-overlay-content.overlay-minimal {
  justify-content: flex-end;
  padding-bottom: 100px;
}

.hero-overlay-content.overlay-minimal .scroll-hint {
  margin-bottom: 0;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.hero-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  padding-bottom: 2px;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 12px;
  font-weight: 700;
}

.section-header p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

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

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

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

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

.advantage-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.advantage-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.advantage-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.advantage-card-tag {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.advantage-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.advantage-card-body p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
}

.advantage-card-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.equipment-page-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.equipment-page-header h1 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 4vw, 36px);
}

.equipment-page-header .article-lead {
  margin: 0;
}

.equipment-page-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.workshop-grid {
  margin-bottom: 8px;
}

.workshop-grid .advantage-card-image {
  height: 180px;
}

.workshop-highlights {
  margin: 0 0 28px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
}

.workshop-nav {
  margin-top: 28px;
  justify-content: space-between;
}

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

.product-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-item-image {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-item-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(4px);
}

.product-item-body {
  padding: 20px;
}

.product-item-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.product-item-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-info-item {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.contact-info-label {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.5;
}

.contact-info-note {
  font-size: 13px;
  color: var(--text-sub);
}

a.contact-info-value:hover {
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 24px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 13px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-logo .logo-text {
  color: #fff;
}

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

.footer-links h4 {
  margin: 0 0 12px;
  font-size: 13px;
  color: #fff;
}

.footer-links a {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

/* ===== Detail Pages ===== */
.page-detail main {
  padding-top: var(--header-h);
}

.detail-page {
  padding: 32px 0 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 32px;
}

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

/* Article Detail (Advantage pages) */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
}

.article-hero {
  height: 360px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 40px;
}

.article-content {
  padding: 0 8px;
}

.article-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
}

.article-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 8px 0 16px;
}

.article-lead {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.8;
  margin: 0 0 32px;
}

.article-content h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin: 0 0 12px;
}

.article-content ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.process-step {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.process-step span {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  margin-bottom: 8px;
}

.process-step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.equipment-grid,
.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.equipment-item,
.quality-item {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.equipment-item h3,
.quality-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.equipment-item p,
.quality-item p {
  margin: 0;
  font-size: 13px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-nav-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.article-nav-link:hover {
  text-decoration: underline;
}

/* Product Detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.product-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
}

.product-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.product-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}

.product-carousel-prev {
  left: 12px;
}

.product-carousel-next {
  right: 12px;
}

.product-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.product-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.product-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}

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

.product-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.detail-category {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.detail-info h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 8px 0 12px;
}

.detail-summary {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0 0 28px;
}

.detail-params-title {
  font-size: 16px;
  margin: 0 0 12px;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 28px;
}

.params-table th,
.params-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.params-table th {
  width: 120px;
  color: var(--text-sub);
  font-weight: 500;
  white-space: nowrap;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-empty {
  text-align: center;
  padding: 80px 0;
}

.detail-empty h2 {
  margin: 0 0 8px;
}

.detail-empty p {
  color: var(--text-sub);
  margin: 0 0 24px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .advantage-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a {
    color: var(--text-main) !important;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .advantage-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .equipment-grid,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    height: 240px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 14px;
  }

  .hero-controls {
    bottom: 20px;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 56px 0;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .product-item-image {
    height: 220px;
  }
}
