/* ============================================================
   WinWay Machinery — 黑/银主色 + 金色辅助
   ============================================================ */
:root {
  --black: #0b0b0d;
  --black-2: #131316;
  --black-3: #1b1b1f;
  --silver: #c9cdd4;
  --silver-dim: #9aa0a8;
  --gold: #d4af37;
  --gold-soft: #e8c96a;
  --gold-dark: #a8842a;
  --line: rgba(201, 205, 212, .14);
  --radius: 6px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--silver);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.gold { color: var(--gold); }

/* ---------- 语言切换 ---------- */
body.lang-zh .en { display: none !important; }
body.lang-en .zh { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(11, 11, 13, .92);
  backdrop-filter: blur(10px);
  padding: 8px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; color: #fff; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: .92rem; letter-spacing: .05em; color: var(--silver);
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 12px; color: var(--silver-dim);
  font-size: .82rem; font-weight: 600; transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle .lang-opt { transition: color .2s; }
body.lang-zh .lang-zh-opt { color: var(--gold); }
body.lang-en .lang-en-opt { color: var(--gold); }
.lang-sep { opacity: .4; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--silver); transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(10px) brightness(.85);
  transform: scale(1.06); /* 抵消模糊产生的边缘透边 */
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,11,13,.95) 0%, rgba(11,11,13,.78) 46%, rgba(11,11,13,.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }

.hero-kicker {
  display: inline-block;
  font-size: .8rem; letter-spacing: .32em; font-weight: 600;
  color: var(--gold); text-transform: uppercase;
  border-left: 3px solid var(--gold); padding-left: 14px; margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.18; color: #fff; font-weight: 800; letter-spacing: .01em;
  max-width: 16em;
}
.hero-sub {
  margin-top: 20px; max-width: 620px;
  font-size: 1.02rem; color: var(--silver-dim);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(18px, 4vw, 56px);
  margin-top: 46px; padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block; font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold); font-weight: 800; line-height: 1.1;
}
.stat strong span { font-size: .55em; margin-left: 2px; }
.stat small { font-size: .8rem; color: var(--silver-dim); letter-spacing: .05em; }

.hero-cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 34px;
  font-size: .92rem; font-weight: 700; letter-spacing: .08em;
  border-radius: var(--radius); transition: all .25s; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #141208; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,.28); }
.btn-ghost { border-color: var(--line); color: var(--silver); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: .72rem; letter-spacing: .3em; color: var(--silver-dim);
  animation: floatY 2.2s ease-in-out infinite;
}
@keyframes floatY { 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections 通用 ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--black-2); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: .76rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(212,175,55,.4); border-radius: 20px;
  padding: 5px 18px; margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; font-weight: 800;
}
.section-desc { max-width: 720px; margin: 16px auto 0; color: var(--silver-dim); font-size: .95rem; }

/* ---------- 产品概览 ---------- */
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px;
}
.product-card {
  background: var(--black-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.45); box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #000; }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11,11,13,.85); color: var(--gold);
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  padding: 5px 12px; border: 1px solid rgba(212,175,55,.5); border-radius: 3px;
}
.product-badge.badge-gold { background: var(--gold); color: #141208; border-color: var(--gold); }
.product-body { padding: 28px 30px 32px; }
.product-body h3 { color: #fff; font-size: 1.35rem; margin-bottom: 12px; }
.product-body p { font-size: .92rem; color: var(--silver-dim); }
.feature-list { list-style: none; margin: 18px 0 22px; }
.feature-list li {
  position: relative; padding-left: 22px; font-size: .88rem; margin-bottom: 8px; color: var(--silver);
}
.feature-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.link-gold { color: var(--gold); font-size: .9rem; font-weight: 600; letter-spacing: .04em; }
.link-gold:hover { color: var(--gold-soft); }

/* ---------- 型号系列 ---------- */
.models-nav {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 30px;
}
.model-tab {
  background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 6px; text-align: center; color: var(--silver-dim);
  transition: all .25s; position: relative; overflow: hidden;
}
.model-tab .mt-name { display: block; font-size: 1.05rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.model-tab .mt-force { display: block; font-size: .74rem; margin-top: 3px; }
.model-tab .mt-force b { color: var(--gold); }
.model-tab:hover { border-color: rgba(212,175,55,.5); transform: translateY(-3px); }
.model-tab.active {
  background: linear-gradient(160deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
}
.model-tab.active .mt-name, .model-tab.active .mt-force, .model-tab.active .mt-force b { color: #141208; }

.model-panel { display: none; animation: fadeIn .45s ease; }
.model-panel.active { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.mp-media { position: relative; background: #000; min-height: 380px; }
.mp-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mp-media .mp-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: #141208; font-weight: 800; font-size: .95rem;
  padding: 7px 16px; border-radius: 3px; letter-spacing: .06em;
}
.mp-body { padding: 34px 36px; }
.mp-body h3 { color: #fff; font-size: 1.6rem; }
.mp-body .mp-sub { color: var(--silver-dim); font-size: .9rem; margin: 4px 0 20px; }
.mp-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.mp-hl { background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.25); border-radius: 4px; padding: 10px 8px; text-align: center; }
.mp-hl b { display: block; color: var(--gold); font-size: 1.12rem; font-weight: 800; }
.mp-hl small { font-size: .68rem; color: var(--silver-dim); letter-spacing: .04em; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.spec-table th, .spec-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--silver-dim); font-weight: 600; white-space: nowrap; width: 40%; }
.spec-table td { color: #e8eaee; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- 粉碎钳 ---------- */
.pulverizer-hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; margin-bottom: 44px;
}
.pulv-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pulv-media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.pulv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pstat {
  background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 20px 10px; text-align: center;
}
.pstat strong { font-size: 1.6rem; color: var(--gold); font-weight: 800; }
.pstat strong span { font-size: .55em; margin-left: 2px; }
.pstat small { color: var(--silver-dim); font-size: .78rem; margin-top: 4px; }

.pulv-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pfeat {
  background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .3s, transform .3s;
}
.pfeat:hover { border-color: rgba(212,175,55,.45); transform: translateY(-4px); }
.pfeat-num {
  font-size: 2rem; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 10px;
}
.pfeat h4 { color: #fff; font-size: 1.02rem; margin-bottom: 10px; }
.pfeat p { font-size: .86rem; color: var(--silver-dim); }

/* ---------- 图库（无限轮播 从右往左） ---------- */
#gallery .gallery-viewport { width: min(1600px, 100vw); margin: 0 auto; }
.gallery-viewport {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.gallery-grid {
  display: flex; gap: 18px; width: max-content;
  animation: gallery-scroll 55s linear infinite;
}
.gallery-viewport:hover .gallery-grid { animation-play-state: paused; }
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  width: 340px; height: 420px; flex: 0 0 auto;
  cursor: pointer; border: 1px solid var(--line);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.06); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,13,.55), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.g-item:hover::after { opacity: 1; }

/* ---------- 应用场景 ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.app-card {
  text-align: center; background: var(--black-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 22px; transition: all .3s;
}
.app-card:hover { border-color: rgba(212,175,55,.45); transform: translateY(-5px); }
.app-ico { font-size: 2.2rem; margin-bottom: 14px; }
.app-card h4 { color: #fff; margin-bottom: 8px; font-size: 1.02rem; }
.app-card p { font-size: .84rem; color: var(--silver-dim); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.about-text h3 { color: #fff; font-size: 1.7rem; margin-bottom: 16px; }
.about-text p { color: var(--silver-dim); font-size: .95rem; margin-bottom: 14px; }
.about-text .feature-list { margin: 20px 0 0; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: stretch; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--black-3); display: flex; flex-direction: column; }
.about-photo img { width: 100%; flex: 1; object-fit: cover; min-height: 240px; }
.about-photo figcaption { padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; }
.about-photo figcaption .en { display: none; }
html[lang="en"] .about-photo figcaption .en { display: inline; }
html[lang="en"] .about-photo figcaption .zh { display: none; }
@media (max-width: 900px) { .about-media { grid-template-columns: 1fr; } .about-photo img { min-height: 200px; } }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; }
.contact-info {
  background: var(--black-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 38px;
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
}
.c-item { display: flex; flex-direction: column; gap: 3px; }
.c-label { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.c-value { color: #e8eaee; font-size: .96rem; }
.c-link:hover { color: var(--gold); }
.contact-cta {
  background: linear-gradient(150deg, rgba(212,175,55,.14), rgba(212,175,55,.03));
  border: 1px solid rgba(212,175,55,.35); border-radius: var(--radius);
  padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.contact-cta h3 { color: #fff; font-size: 1.5rem; }
.contact-cta p { color: var(--silver-dim); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #070708; border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-brand img { height: 30px; }
.footer-copy { font-size: .8rem; color: var(--silver-dim); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,7,8,.94); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border: 1px solid var(--line); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(27,27,31,.8); color: var(--silver);
  border: 1px solid var(--line); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; }
  .pulv-features { grid-template-columns: 1fr 1fr; }
  .g-item { width: 280px; height: 350px; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .model-panel.active { grid-template-columns: 1fr; }
  .mp-media { min-height: 300px; }
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .main-nav {
    position: fixed; top: 0; right: -260px; width: 240px; height: 100vh;
    background: rgba(11,11,13,.97); flex-direction: column;
    padding: 90px 30px; gap: 22px; transition: right .35s;
    border-left: 1px solid var(--line);
  }
  .main-nav.open { right: 0; }
  .nav-burger { display: flex; z-index: 110; }
  .models-nav { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pulverizer-hero { grid-template-columns: 1fr; }
  .pulv-features { grid-template-columns: 1fr; }
  .g-item { width: 220px; height: 280px; }
  .apps-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mp-body { padding: 24px 20px; }
  .mp-highlights { grid-template-columns: repeat(2, 1fr); }
  .brand-name { display: none; }
}
