:root {
  --black: #080604;
  --brown: #21150e;
  --brown-2: #382417;
  --gold: #c89a5f;
  --gold-light: #f1d5a5;
  --text: #f7efe7;
  --muted: #b8a99b;
  --line: rgba(255, 255, 255, .12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #080604 0%, #19100b 48%, #090604 100%);
  line-height: 1.7;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 6, 4, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 28px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 132px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 38px);
  font-size: 15px;
  color: #f4e7da;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 84px;
  white-space: nowrap;
  transition: color .2s ease;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width .2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-light);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
/* =========================
   移动端菜单按钮
========================= */
.menu-trigger {
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.menu-text {
  color: var(--gold-light);
  font-size: 15px;
  letter-spacing: 2px;
  user-select: none;
  transition: color .25s;
}

.menu-trigger:hover .menu-text {
  color: var(--gold);
}

.menu-trigger:hover .menu-btn {
  border-color: var(--gold);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold-light);
  transition: .2s ease;
}

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

.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

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

.home-banner {
  position: relative;
  min-height: calc(100vh - 84px - 132px);
  overflow: hidden;
  background: var(--black);
}

.home-banner-mobile {
  display: none;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 5s ease;
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
}

.banner-slide.active img {
  animation: bannerDrift 8s ease-out both;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.banner-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

/*.home-banner::after,*/
/*.page-hero::after {*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  content: "";*/
/*  background:*/
/*    linear-gradient(90deg, rgba(8, 6, 4, .9), rgba(8, 6, 4, .46), rgba(8, 6, 4, .18)),*/
/*    linear-gradient(0deg, rgba(8, 6, 4, .72), rgba(8, 6, 4, .08));*/
/*}*/

.banner-text {
  position: absolute;
  z-index: 2;
  left: max(20px, calc((100vw - var(--max)) / 2));
  top: 50%;
  max-width: 620px;
  transform: translateY(-50%);
}

.banner-text p,
.page-hero-text p {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 5px;
}

.banner-text h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: 0;
}

.banner-text span {
  display: block;
  color: #e8d7c4;
  font-size: clamp(17px, 2vw, 22px);
}

.banner-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.banner-dots button {
  width: 38px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}

.banner-dots button.active {
  background: var(--gold-light);
}

.site-footer {
  padding: 34px 0;
  background: #070503;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.footer-inner img {
  width: 120px;
  height: auto;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.news-card,
.product-card,
.contact-card,
.contact-panel {
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.news-card:hover,
.product-card:hover,
.contact-card:hover,
.contact-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 213, 165, .38);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
  transition-delay: 0s;
}

.page-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: var(--black);
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-text {
  position: absolute;
  z-index: 2;
  left: max(20px, calc((100vw - var(--max)) / 2));
  top: 50%;
  transform: translateY(-50%);
}

.page-hero-text h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.2;
}

.section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  line-height: 2;
   min-height: 500px;
}

.about-img {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--brown);
}

.about-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy h2 {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.about-copy p {
  margin: 0 0 16px;
  color: #ffffff!important;
}

.about-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.about-list li::before {
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.news-list {
  display: grid;
  gap: 24px;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}

.news-card.reveal {
  transition: opacity .7s ease, transform .7s ease, border-color .28s ease, box-shadow .28s ease;
}

.news-card::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  content: "";
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  transition: height .35s ease;
}

.news-card:hover::after {
  height: 100%;
}

.news-card.reveal:nth-child(2) {
  transition-delay: .08s;
}

.news-card.reveal:nth-child(3) {
  transition-delay: .16s;
}

.news-img {
  display: block;
  height: 220px;
  min-height: 100%;
  overflow: hidden;
  background: var(--brown);
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.news-card:hover .news-img img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.06);
}

.news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.news-card time {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
}

.news-card h2 {
  margin: 8px 0 10px;
  color: var(--gold-light);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.28;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.news-detail-section {
  padding-top: clamp(42px, 7vw, 82px);
}

.news-detail {
  max-width: 920px;
}

.news-detail-head {
  padding-bottom: clamp(24px, 4vw, 38px);
  margin-bottom: clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.news-detail-head h1 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(28px, 4.8vw, 46px);
  line-height: 1.28;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.news-detail-content {
  color: #ffffff!important;
  font-size: 17px;
  line-height: 2;
  
  overflow-wrap: break-word;
}

.news-detail-content > *:first-child {
  margin-top: 0;
}

.news-detail-content > *:last-child {
  margin-bottom: 0;
}

.news-detail-content p {
  margin: 0 0 18px;
 
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
  margin: 1.4em 0 .55em;
  color: var(--gold-light);
  line-height: 1.35;
}

.news-detail-content img,
.news-detail-content video {
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 8px;
}

.news-detail-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.news-detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(34px, 6vw, 58px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.news-detail-nav a,
.news-detail-nav .is-disabled {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.news-detail-nav a {
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.news-detail-nav a:hover {
  border-color: rgba(241, 213, 165, .42);
  background: rgba(255, 255, 255, .07);
  transform: translateY(-2px);
}

.news-detail-nav span span,
.news-detail-nav a span {
  color: var(--gold);
  font-size: 13px;
}

.news-detail-nav strong {
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.news-detail-nav .is-disabled {
  opacity: .58;
}

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

.product-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, .04);
  cursor: zoom-in;
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.product-card:hover img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}

.product-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 50% 35%, rgba(241, 213, 165, .2), rgba(241, 213, 165, 0) 48%);
  opacity: 0;
  transition: opacity .3s ease;
}

.product-card:hover::before,
.product-card:focus-visible::before {
  opacity: 1;
}

.product-card:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

body.product-viewer-open {
  overflow: hidden;
}

.product-viewer {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 32px 96px;
  background:
    radial-gradient(circle at 50% 24%, rgba(200, 154, 95, .16), rgba(8, 6, 4, 0) 38%),
    rgba(8, 6, 4, .92);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.product-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-viewer-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 1120px);
}

.product-viewer-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  border: 1px solid rgba(241, 213, 165, .22);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .52);
  transform: scale(.97);
  transition: transform .28s ease, opacity .2s ease;
}

.product-viewer.is-open .product-viewer-stage img {
  transform: scale(1);
}

.product-viewer-stage p {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(16px, 2vw, 22px);
  text-align: center;
}

.product-viewer-close,
.product-viewer-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(241, 213, 165, .34);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.product-viewer-close:hover,
.product-viewer-arrow:hover {
  color: #160e09;
  background: var(--gold-light);
  transform: scale(1.06);
}

.product-viewer-close {
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 1;
}

.product-viewer-arrow {
  top: 50%;
  width: 58px;
  height: 58px;
  font-size: 46px;
  line-height: 1;
  transform: translateY(-50%);
}

.product-viewer-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.product-viewer-prev {
  left: 28px;
}

.product-viewer-next {
  right: 28px;
}

.contact-layout {
  display: grid;
  /*grid-template-columns: 1fr 1.15fr;*/
  gap: 28px;
  min-height: 500px!important;
  align-items: start;
}

.contact-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .028));
}

.contact-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.contact-item {
  display: grid;
  gap: 6px;
}

.contact-item span {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contact-item strong,
.contact-item a {
  color: var(--gold-light);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.28;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  overflow: hidden;
}

.contact-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-panel-content {
  padding: clamp(22px, 4vw, 34px);
}

.contact-panel-content h2 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.contact-panel-content p {
  margin: 0;
  color: #ddcfc0;
}

.contact-qrcode-panel {
  display: grid;
  justify-items: center;
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
}

.contact-qrcode-panel .qrcode-box {
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  padding: 18px;
  border: 1px solid rgba(241, 213, 165, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
}

.contact-qrcode-panel .qrcode-box img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.contact-qrcode-panel .contact-panel-content {
  padding: 24px 0 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(241, 213, 165, .38);
  border-radius: 4px;
  color: var(--gold-light);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.contact-actions a:hover {
  color: #160e09;
  background: var(--gold-light);
  transform: translateY(-2px);
}

@keyframes bannerDrift {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 72px;
  }

  .logo img {
    width: 112px;
  }

  .menu-trigger {
  display: flex;
  align-items: center;
}

.menu-btn {
  display: block;
}

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 120;
   
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(8, 6, 4, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .34);
    transition: max-height .3s ease;
  }

  .menu-open .nav {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
     width: 100vw;
    min-height: 48px;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .nav a::after {
    display: none;
  }

  .home-banner {
    min-height: calc(100vh - 72px - 126px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    min-height: 500px;
  }

  .news-card {
    grid-template-columns: minmax(220px, 36%) 1fr;
  }

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

  .product-viewer {
    padding: 28px 76px;
  }

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

@media (max-width: 768px) {
  .home-banner-pc {
    display: none;
  }

  .home-banner-mobile {
    display: block;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .home-banner {
    /*min-height: 560px;*/
      min-height: calc(100vh - 72px - 126px);
  }

  .home-banner::after,
  .page-hero::after {
    background:
      linear-gradient(90deg, rgba(8, 6, 4, .88), rgba(8, 6, 4, .58)),
      linear-gradient(0deg, rgba(8, 6, 4, .76), rgba(8, 6, 4, .1));
  }

  .banner-text {
    right: 20px;
  }

  .banner-text p,
  .page-hero-text p {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .banner-text h1 {
    font-size: 44px;
  }

  .banner-text span {
    font-size: 16px;
  }

  .banner-dots {
    bottom: 26px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }

  .page-hero {
    height: 260px;
  }

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

  .news-img img {
    min-height: 210px;
    aspect-ratio: 16 / 10;
  }

  .news-content {
    padding: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-card::before {
    opacity: 0;
  }

  .product-viewer {
    padding: 70px 14px 34px;
  }

  .product-viewer-stage {
    gap: 12px;
  }

  .product-viewer-stage img {
    max-height: calc(100dvh - 170px);
  }

  .product-viewer-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .product-viewer-arrow {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 34px;
    transform: none;
  }

  .product-viewer-arrow:hover {
    transform: scale(1.06);
  }

  .product-viewer-prev {
    left: 18px;
  }

  .product-viewer-next {
    right: 18px;
  }

  .contact-card {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
