/* ============================================
   宁王造物 WangMaker - Global Styles
   Apple-inspired minimalist design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e6e;
  --color-border: #d2d2d7;
  --color-border-light: #f2f2f2;
  --color-accent: #ffc600;
  --color-btn-bg: #1d1d1f;
  --color-btn-text: #ffffff;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --max-width: 1080px;
  --nav-height: 52px;
  --radius-card: 16px;
  --radius-btn: 980px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --transition-base: 0.3s ease;
  --section-padding: 100px;
  --section-padding-mobile: 60px;
}

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

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

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-text-secondary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  line-height: 1.8;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-base);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  text-decoration: none;
}

.nav-logo .nav-logo-text > span {
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-left: 4px;
  font-size: 0.875rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-text-secondary);
}

.nav-links a.active {
  color: var(--color-text);
  font-weight: 500;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 40px 24px;
}

.nav-mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile-menu a {
  font-size: 1.25rem;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

/* --- Page Hero --- */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
}

.btn-primary:hover {
  background-color: #333;
  color: var(--color-btn-text);
}

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

.btn-outline:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--color-text-secondary);
}

.btn-link::after {
  content: "\203A";
  font-size: 1.2em;
  transition: transform var(--transition-base);
}

.btn-link:hover::after {
  transform: translateX(3px);
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* --- Image Placeholder --- */
.img-placeholder {
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
}

.img-placeholder--square {
  aspect-ratio: 1 / 1;
}

.img-placeholder--landscape {
  aspect-ratio: 16 / 9;
}

.img-placeholder--product {
  aspect-ratio: 4 / 3;
}

/* Real images inside placeholder containers */
img.img-placeholder {
  border: none;
  padding: 0;
  background: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

img.hero-image-placeholder {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}

/* --- Hero Section (Homepage) --- */
.hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  background-color: var(--color-bg-alt);
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 24px 40px 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.hero .hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero .hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.hero .hero-credentials {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}

.hero .hero-credentials span {
  display: inline-block;
}

.hero .hero-credentials span + span::before {
  content: "\00B7";
  margin: 0 8px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

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

.product-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.product-card .card-img {
  margin-bottom: 24px;
}

.product-card h3 {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.product-card .card-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.product-card .card-lines {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.product-card .card-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 12px;
}

/* --- Trust Section --- */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  text-align: center;
  flex-wrap: wrap;
}

.trust-item {
  flex: 1;
  min-width: 200px;
}

.trust-item h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* --- Story Intro --- */
.story-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.story-intro p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* --- CTA Section（浅灰底，苹果风标准 CTA） --- */
.cta-section {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  color: var(--color-text);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.cta-phone {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-btn-bg);
  margin-bottom: 24px;
  display: block;
  text-decoration: none;
}

/* --- Accordion (FAQ) --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border-light);
}

.accordion-item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.accordion-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-stack);
  line-height: 1.5;
}

.accordion-question:hover {
  color: var(--color-text-secondary);
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform var(--transition-base);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--color-text-secondary);
  transition: transform var(--transition-base);
}

.accordion-icon::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 1.5px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-item.open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-answer-inner {
  padding: 0 0 24px;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Process Timeline --- */
.process-timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.process-step {
  flex: 0 0 auto;
  width: 120px;
  text-align: center;
  position: relative;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -10px;
  width: 20px;
  height: 1px;
  background: var(--color-border);
}

.process-step:last-child::after {
  display: none;
}

.process-step .step-img {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
}

.process-step h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Craft Photo Gallery --- */
.craft-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.craft-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.craft-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.craft-photo:hover img {
  transform: scale(1.03);
}

.craft-photo figcaption {
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.craft-note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .craft-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .craft-gallery {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* --- People Cards --- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.people-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.people-card .card-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.people-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.people-card .card-title {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.people-card .card-bio {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

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

.contact-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.contact-card .img-placeholder {
  width: 160px;
  height: 160px;
  margin: 16px auto 0;
}

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

.news-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.news-card .card-img {
  aspect-ratio: 16 / 9;
}

.news-card .card-body {
  padding: 24px;
}

.news-card .card-date {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card .card-excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Product Section (Products page) --- */
.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.product-section:last-child {
  border-bottom: none;
}

.product-section.reverse {
  direction: rtl;
}

.product-section.reverse > * {
  direction: ltr;
}

.product-section .product-img {
  aspect-ratio: 1 / 1;
}

.product-section .product-info h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.product-section .product-info .subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
}

.product-section .product-info p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.product-section .product-info .categories {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.product-section .product-info .note {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 24px;
}

.product-section .product-info .heritage-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 20px;
}

/* --- Certificate Cards --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.cert-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  text-align: center;
}

.cert-card .cert-level {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.cert-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.cert-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* --- Knowledge Section --- */
.knowledge-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px;
}

.knowledge-box h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.knowledge-box p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* --- Customization Bar --- */
.custom-bar {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 60px auto 0;
}

.custom-bar p {
  font-size: 1rem;
  color: var(--color-text);
}

.custom-bar .phone {
  font-weight: 600;
  color: var(--color-text);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-brand .slogan {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.footer-brand .company {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.footer-bottom a {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.footer-bottom a:hover {
  color: var(--color-text);
}

/* --- 404 Page --- */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 600;
  color: var(--color-border);
  margin-bottom: 8px;
}

.error-page h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* --- Scroll Animation --- */
/* 仅在 JS 可用时才隐藏，无 JS / 爬虫 / 全页截图默认可见，避免空白 */
.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Separator --- */
.separator {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 16px auto;
}

/* --- Story Page Specific --- */
.story-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.story-section h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.story-section h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  margin-top: 32px;
}

.story-section p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.company-block {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: 40px;
  margin: 40px auto;
  max-width: 720px;
}

.company-block h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.company-block p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

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

.workshop-item {
  text-align: center;
}

.workshop-item .img-placeholder {
  margin-bottom: 12px;
}

.workshop-item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.contact-qr {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin: 16px auto 0;
  display: block;
}

/* --- Map Placeholder --- */
.map-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-card);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-top: 24px;
}

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

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

  .product-section {
    gap: 40px;
  }

  /* 平板及以下：工序时间轴改纵向，避免横向截断（桌面端保持横向） */
  .process-timeline {
    flex-direction: column;
    gap: 32px;
    overflow-x: visible;
    max-width: 340px;
    margin: 0 auto;
    padding-bottom: 0;
  }

  .process-step {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .process-step .step-img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .process-step h4 {
    margin-bottom: 2px;
  }

  .process-step::after {
    top: auto;
    bottom: -24px;
    left: 31px;
    right: auto;
    width: 1px;
    height: 20px;
  }

  .process-step:last-child::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero .hero-desc {
    font-size: 1rem;
  }

  /* Grids */
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .people-grid {
    grid-template-columns: 1fr;
  }

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

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  /* Product sections */
  .product-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0;
  }

  .product-section.reverse {
    direction: ltr;
  }

  /* Trust */
  .trust-row {
    gap: 32px;
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

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

  /* Custom bar */
  .custom-bar {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  /* Page hero */
  .page-hero h1 {
    font-size: 2.25rem;
  }

  /* Knowledge box */
  .knowledge-box {
    padding: 32px 24px;
  }

  /* 404 */
  .error-page h1 {
    font-size: 4rem;
  }

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Logo image in nav */
.site-logo-img {
  height: 36px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: 1px;
}
.nav-logo-text > span {
  font-size: 11px;
  font-weight: 400;
  color: #6e6e6e;
  margin-left: 4px;
}


/* === Article section (宁王手记) === */
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6e6e6e;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 0.875rem;
  color: #6e6e6e;
  margin-top: 8px;
}
.article-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #1d1d1f;
}
.article-body p {
  margin-bottom: 1.5em;
}
.article-lead {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: #1d1d1f;
  font-weight: 400;
}
.article-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  letter-spacing: 0.5px;
}
.article-figure {
  margin: 2em -40px;
  text-align: center;
}
.article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.article-figure figcaption {
  font-size: 0.8125rem;
  color: #6e6e6e;
  margin-top: 10px;
  font-style: italic;
}
.article-end {
  text-align: center;
  font-size: 1.125rem;
  margin-top: 2em;
}

@media (max-width: 768px) {
  .article-figure {
    margin: 1.5em 0;
  }
  .article-body {
    font-size: 1rem;
  }
  .article-lead {
    font-size: 1.0625rem;
  }
}

/* === Article cards & listing === */
.news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.news-card .card-img {
  position: relative;
  overflow: hidden;
}
.section-more {
  text-align: center;
  margin-top: 40px;
}
.section-more .btn-link {
  font-size: 1rem;
  font-weight: 500;
}
.article-nav-back {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #f2f2f2;
}

/* Article: highlight box */
.article-highlight {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}
.article-highlight p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #6e6e6e;
}
.article-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-highlight li {
  padding: 6px 0;
  font-size: 1rem;
  color: #1d1d1f;
}
.article-highlight li strong {
  color: #1d1d1f;
}

/* Article: list */
.article-list {
  padding-left: 1.2em;
  margin: 20px 0;
}
.article-list li {
  padding: 4px 0;
  color: #1d1d1f;
  line-height: 1.7;
}

/* Article: table */
.article-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.article-table th,
.article-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #d2d2d7;
}
.article-table th {
  font-weight: 600;
  color: #6e6e6e;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom-color: #1d1d1f;
}
.article-table td {
  color: #1d1d1f;
}
.article-table tr:last-child td {
  border-bottom: none;
}

/* Article: about block */
.article-about {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 28px;
  margin-top: 40px;
}
.article-about h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px;
}
.article-about p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #6e6e6e;
  line-height: 1.7;
}
.article-about p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section-more {
    margin-top: 24px;
  }
  .article-nav-back {
    margin-top: 40px;
    padding-top: 24px;
  }
  .article-highlight {
    padding: 20px;
  }
  .article-about {
    padding: 20px;
  }
  .article-table th,
  .article-table td {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}

/* --- Compact section for story page --- */
.section--compact {
  padding: 20px 0 30px 0;
}

.page-hero--compact {
  padding-bottom: 20px;
}
