:root {
  --red: #8d171b;
  --red-bright: #b52b30;
  --ink: #191b1c;
  --charcoal: #242728;
  --gray: #697072;
  --line: #dcdedc;
  --paper: #f5f5f2;
  --white: #ffffff;
  --jade: #567065;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.65; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

.topbar { color: #cbd0cd; background: #171919; font-size: 12px; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar p { margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 28px; }
.topbar-actions a { color: #fff; }

.site-header { position: relative; z-index: 50; background: #fff; }
.header-main { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 56px; height: 56px; position: relative; border: 2px solid var(--red); border-radius: 50%; }
.brand-mark::before { content: ""; width: 36px; height: 15px; position: absolute; left: 8px; top: 9px; border: solid var(--red); border-width: 4px 0 0; transform: rotate(-5deg); }
.brand-mark::after { content: ""; width: 35px; height: 3px; position: absolute; left: 9px; top: 25px; background: var(--red); box-shadow: 0 8px 0 var(--red), 0 16px 0 var(--red); }
.brand-mark i { width: 3px; height: 28px; position: absolute; z-index: 2; left: 16px; top: 21px; background: var(--red); box-shadow: 10px 0 0 var(--red), 20px 0 0 var(--red); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--red); font-family: "STKaiti", "KaiTi", serif; font-size: 29px; line-height: 1.15; }
.brand-copy small { margin-top: 4px; color: #747a77; font-size: 10px; }
.header-contact { text-align: right; display: flex; flex-direction: column; }
.header-contact span { color: var(--gray); font-size: 12px; }
.header-contact a { color: var(--red); font-family: Georgia, serif; font-size: 25px; line-height: 1.25; font-weight: 700; }
.menu-toggle { width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; display: none; }
.menu-toggle span { height: 2px; margin: 5px 0; background: var(--ink); display: block; transition: .25s; }

.main-nav { color: #fff; background: var(--charcoal); border-bottom: 3px solid var(--red); }
.nav-inner { min-height: 54px; display: flex; align-items: stretch; justify-content: center; }
.nav-inner a { min-width: 152px; display: grid; place-items: center; font-size: 14px; transition: background .2s; }
.nav-inner a:hover, .nav-inner a.active { background: var(--red); }

.hero { height: calc(100vh - 128px); min-height: 650px; max-height: 760px; position: relative; overflow: hidden; color: #fff; background: #2d3231; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(18, 22, 21, .56); }
.hero-image { position: absolute; inset: 0; background: url("assets/ancient-hero-v2.png") center / cover no-repeat; }
.hero-inner { height: 100%; position: relative; z-index: 2; display: flex; align-items: center; }
.hero-copy { width: 650px; padding-bottom: 36px; }
.eyebrow { margin: 0 0 16px; color: #efc8c8; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.eyebrow.dark { color: var(--red); }
.hero h1 { margin: 0; font-family: "STSong", "SimSun", serif; font-size: 68px; line-height: 1.16; letter-spacing: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 570px; margin: 24px 0 30px; color: #eef0ef; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; }
.button { min-height: 48px; padding: 0 25px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red-bright); }
.button-primary:hover { background: var(--red); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(20,22,22,.2); }
.button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-stats { margin-top: 43px; display: flex; }
.hero-stats div { min-width: 145px; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.3); display: flex; flex-direction: column; }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { font-size: 20px; line-height: 1.3; }
.hero-stats span { color: #d2d8d4; font-size: 11px; }
.scroll-hint { width: 38px; height: 58px; position: absolute; z-index: 2; right: 38px; bottom: 30px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; display: grid; place-items: start center; }
.scroll-hint span { width: 4px; height: 8px; margin-top: 11px; border-radius: 4px; background: #fff; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(20px); } }

.advantages { color: #fff; background: var(--red); }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.advantage-grid article { min-height: 138px; padding: 30px 34px; border-left: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; gap: 22px; }
.advantage-grid article:last-child { border-right: 1px solid rgba(255,255,255,.18); }
.advantage-grid article > span { color: rgba(255,255,255,.38); font-family: Georgia, serif; font-size: 34px; }
.advantage-grid h2 { margin: 0 0 3px; font-size: 18px; }
.advantage-grid p { margin: 0; color: #ead0d1; font-size: 13px; }

.section { padding: 96px 0; }
.section-heading { margin-bottom: 45px; display: flex; align-items: end; justify-content: space-between; gap: 54px; }
.section-heading h2, .about-copy h2, .craft-content h2, .contact-copy h2 { margin: 0; font-family: "STSong", "SimSun", serif; font-size: 41px; line-height: 1.28; }
.section-heading > p { width: 445px; margin: 0; padding-bottom: 4px; color: var(--gray); font-size: 14px; }
.product-toolbar { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.filter-tabs { display: flex; gap: 8px; }
.filter-tabs button { height: 38px; padding: 0 18px; border: 1px solid var(--line); color: #505555; background: #fff; }
.filter-tabs button:hover, .filter-tabs button.is-active { border-color: var(--red); color: #fff; background: var(--red); }
.text-link { color: var(--red); font-size: 14px; font-weight: 700; }
.text-link span { margin-left: 5px; display: inline-block; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { overflow: hidden; border: 1px solid #e1e3e1; background: #fff; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(18,21,21,.11); }
.product-card.is-hidden { display: none; }
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: #ededea; }
.product-image img { height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover img { transform: scale(1.04); }
.product-info { padding: 23px 24px 25px; }
.product-info > span { color: var(--red); font-size: 11px; font-weight: 700; }
.product-info h3 { margin: 4px 0 8px; font-size: 20px; }
.product-info p { min-height: 44px; margin: 0 0 17px; color: var(--gray); font-size: 13px; }
.product-info a { font-size: 13px; font-weight: 700; }

.craft-band { min-height: 294px; color: #fff; background: #202323 url("assets/quality-banner.jpg") center / cover no-repeat; display: flex; align-items: center; }
.craft-content { display: grid; grid-template-columns: 1.08fr 1fr auto; align-items: center; gap: 50px; }
.craft-content h2 { font-size: 35px; }
.craft-content > p { margin: 0; color: #d1d5d2; font-size: 14px; }
.button-light { color: var(--ink); background: #fff; }

.cases { background: var(--paper); }
.case-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, 250px); gap: 20px; }
.case-card { position: relative; overflow: hidden; background: #222; }
.case-featured { grid-row: 1 / 3; }
.case-card::after { content: ""; position: absolute; inset: 0; background: rgba(15,17,16,.25); }
.case-card img { height: 100%; object-fit: cover; transition: transform .55s; }
.case-card:hover img { transform: scale(1.05); }
.case-card > div { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; padding-top: 70px; color: #fff; text-shadow: 0 2px 8px #000; }
.case-card span { color: #f0bfc1; font-size: 11px; }
.case-card h3 { margin: 3px 0 1px; font-size: 24px; }
.case-card p { margin: 0; color: #e1e4e2; font-size: 13px; }
.case-featured > div { left: 40px; bottom: 35px; }
.case-featured h3 { font-size: 31px; }

.about { overflow: hidden; }
.about-layout { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 78px; }
.about-image { height: 500px; position: relative; }
.about-image::before { content: ""; position: absolute; z-index: -1; width: 78%; height: 80%; right: -24px; bottom: -24px; background: var(--paper); }
.about-image img { height: 100%; object-fit: cover; }
.about-image > span { padding: 7px 11px; position: absolute; left: 14px; bottom: 14px; color: #fff; background: rgba(28,31,30,.82); font-size: 10px; }
.about-copy h2 { margin-bottom: 23px; font-size: 39px; }
.about-copy > p:not(.eyebrow) { margin: 0 0 15px; color: var(--gray); font-size: 14px; }
.company-facts { margin: 27px 0 25px; padding: 18px 0; border-block: 1px solid var(--line); display: grid; gap: 13px; }
.company-facts div { display: grid; grid-template-columns: 78px 1fr; gap: 15px; }
.company-facts dt { color: #858c89; font-size: 11px; }
.company-facts dd { margin: 0; font-size: 13px; font-weight: 700; }

.knowledge { background: #f6f6f4; }
.knowledge-list { border-top: 1px solid #cfd2cf; }
.knowledge-list article { min-height: 145px; padding: 24px 4px; border-bottom: 1px solid #d9dbd8; display: grid; grid-template-columns: 75px 1fr; align-items: center; gap: 30px; }
.knowledge-list article > span { color: var(--red); font-family: Georgia, serif; font-size: 28px; }
.knowledge-list small { color: var(--red); font-size: 11px; }
.knowledge-list h3 { margin: 2px 0 5px; font-size: 18px; }
.knowledge-list p { margin: 0; color: var(--gray); font-size: 13px; }

.contact { padding: 94px 0; color: #fff; background: #222627; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 96px; }
.contact-copy > p:not(.eyebrow) { max-width: 460px; margin: 19px 0 30px; color: #bcc3bf; font-size: 14px; }
.phone-block { padding-left: 19px; border-left: 3px solid var(--red-bright); display: flex; flex-direction: column; }
.phone-block span, .phone-block small { color: #adb5b1; font-size: 11px; }
.phone-block a { font-family: Georgia, serif; font-size: 34px; line-height: 1.25; }
.contact-panel { padding: 32px 36px; color: var(--ink); background: #fff; border-top: 4px solid var(--red); }
.contact-panel > div { min-height: 65px; padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-panel span { color: #7d8481; font-size: 11px; }
.contact-panel a:not(.button), .contact-panel strong { margin-top: 3px; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; }
.contact-panel .button { width: 100%; margin-top: 24px; }

.site-footer { color: #c9cdcb; background: #151817; }
.footer-main { min-height: 172px; display: grid; grid-template-columns: 1.2fr .8fr 1fr; align-items: center; gap: 44px; }
.footer-main strong { color: #fff; font-family: "STKaiti", "KaiTi", serif; font-size: 27px; }
.footer-main p { margin: 5px 0; font-size: 11px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; font-size: 12px; }
.footer-nav a:hover { color: #fff; }
.footer-address { padding-left: 32px; border-left: 1px solid #353936; }
.footer-bottom { min-height: 54px; border-top: 1px solid #303431; color: #79807c; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.floating-call { padding: 13px 17px; position: fixed; z-index: 30; right: 0; top: 52%; color: #fff; background: var(--red); box-shadow: 0 10px 28px rgba(0,0,0,.22); display: flex; flex-direction: column; }
.floating-call span { font-size: 10px; }
.floating-call strong { font-size: 14px; }
.back-top { width: 42px; height: 42px; position: fixed; z-index: 29; right: 20px; bottom: 20px; border: 0; opacity: 0; pointer-events: none; color: #fff; background: #303432; transition: opacity .2s; }
.back-top.is-visible { opacity: 1; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .header-main { height: 78px; }
  .header-contact { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { width: 100%; position: absolute; display: none; }
  .main-nav.is-open { display: block; }
  .nav-inner { padding: 12px 18px 18px; display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav-inner a { min-width: 0; min-height: 48px; }
  .hero { height: calc(100svh - 112px); min-height: 620px; }
  .hero-copy { width: 620px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-content { grid-template-columns: 1fr 1fr; gap: 28px; }
  .craft-content .button { grid-column: 1 / -1; justify-self: start; }
  .about-layout { gap: 48px; }
  .about-image { height: 430px; }
  .contact-layout { gap: 48px; }
  .floating-call { display: none; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topbar-inner { min-height: 32px; }
  .topbar p, .topbar-actions span { display: none; }
  .topbar-actions { width: 100%; justify-content: flex-end; }
  .header-main { height: 70px; }
  .brand { gap: 9px; }
  .brand-mark { width: 43px; height: 43px; transform: scale(.84); transform-origin: left center; margin-right: -5px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { font-size: 9px; }
  .hero { height: calc(100svh - 102px); min-height: 650px; max-height: 720px; }
  .hero::before { background: rgba(18,22,21,.68); }
  .hero-image { background-position: 68% center; }
  .hero-copy { width: 100%; padding-bottom: 10px; }
  .hero h1 { font-size: 45px; }
  .hero-copy > p:not(.eyebrow) { margin: 20px 0 25px; font-size: 14px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1; padding-inline: 10px; }
  .hero-stats { margin-top: 36px; }
  .hero-stats div { min-width: 0; flex: 1; padding: 0 12px; }
  .hero-stats strong { font-size: 16px; }
  .scroll-hint { display: none; }
  .advantage-grid { grid-template-columns: 1fr; padding-block: 7px; }
  .advantage-grid article { min-height: 104px; padding: 22px 18px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .advantage-grid article:last-child { border-right: 0; border-bottom: 0; }
  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 31px; display: block; }
  .section-heading h2, .about-copy h2, .contact-copy h2 { font-size: 32px; }
  .section-heading > p { width: 100%; margin-top: 12px; }
  .product-toolbar { align-items: flex-start; }
  .filter-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-tabs button { padding: 0 6px; font-size: 12px; }
  .product-toolbar > .text-link { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-info p { min-height: 0; }
  .craft-band { min-height: 380px; background-position: 63% center; }
  .craft-content { display: block; }
  .craft-content h2 { font-size: 30px; }
  .craft-content > p { margin: 17px 0 24px; }
  .case-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 255px); }
  .case-featured { grid-row: auto; }
  .case-featured > div { left: 28px; bottom: 24px; }
  .about-layout { grid-template-columns: 1fr; gap: 50px; }
  .about-image { height: 365px; }
  .knowledge-list article { grid-template-columns: 48px 1fr; gap: 15px; }
  .contact { padding: 70px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .phone-block a { font-size: 29px; }
  .contact-panel { padding: 25px 20px; }
  .footer-main { padding: 42px 0; grid-template-columns: 1fr; gap: 22px; }
  .footer-address { padding-left: 0; border-left: 0; }
  .footer-bottom { align-items: flex-start; justify-content: center; flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
