/* minimal extra styles, main layout lives in style.css */
.primary-nav { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.primary-nav a { text-decoration: none; color: #222; padding: 8px 6px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; transition: transform .2s; }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* Limit header logo size (handles both custom logo and fallback image) */
.site-brand img { max-height: 40px !important; width: auto; height: auto !important; display: block; }
.site-header .custom-logo, .site-header .custom-logo-link img { max-height: 40px !important; width: auto; height: auto !important; display: block; }

/* merged from wp-theme-yijinfang/style.css */
/* Base reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Microsoft YaHei", Arial, "simsun", Helvetica, sans-serif; color: #666; }
/* Layout */
.container { width: 1480px; max-width: 1480px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.section > .container { width: 1480px; max-width: 1480px; margin: 0 auto; padding: 0 20px; }
main.section .container { width: 1480px; max-width: 1480px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 24px; margin: 0 0 24px; font-weight: 600; color: #333; }
.muted { color: #666; }

/* Typography normalization */
body, p, li, dd, dt { color: #666; line-height: 1.5; }
p { margin: 0 0 16px; }

/* Mobile first base font-size and scaling */
html { font-size: 16px; }
@media (max-width: 900px) {
  html { font-size: 15px; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
}
/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-right: auto; }
.site-title { font-size: 18px; color: #222; text-decoration: none; }
.site-brand__link { display: inline-flex; align-items: center; }
.site-nav { margin-left: auto; }
.mobile-nav-toggle { display: none; appearance: none; background: transparent; border: none; padding: 8px; margin-left: auto; cursor: pointer; }
.mobile-nav-toggle .bar { display: block; width: 22px; height: 2px; background: #666; margin: 5px 0; transition: transform .2s, opacity .2s; }
.site-brand img { height: 36px; width: auto; display: block; }
/* Full-width header container */
.site-header .container { width: 1480px; max-width: 1480px; margin: 0 auto; padding: 0 20px; }
.site-brand { margin-left: 0 !important; text-align: left; justify-content: flex-start; }
/* Nav */
.primary-nav { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-nav > li { display: flex; align-items: center; }
.primary-nav a { text-decoration: none; color: #222; padding: 8px 6px; display: flex; align-items: center; line-height: 1; }
.primary-nav a:hover { color: #b8860b; }

/* Dropdown menu styles */
.primary-nav .dropdown { position: relative; }
.primary-nav .dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.primary-nav .dropdown-arrow { font-size: 10px; transition: transform 0.2s; line-height: 1; }
.primary-nav .dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.primary-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px 0;
}

.primary-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .dropdown-menu li {
  list-style: none;
  margin: 0;
}

.primary-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #222;
  text-decoration: none;
  transition: background-color 0.2s;
}

.primary-nav .dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: #b8860b;
}

/* Nested submenu support */
.primary-nav .dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 1px;
}
/* Hero */
.root, html, body { height: 100%; }
body { --header-h: 64px; }
.hero { position: relative; /*min-height: calc(100vh - var(--header-h));*/ display: flex; align-items: stretch; }
.hero .swiper { width: 100%; height: calc(100vh - var(--header-h)); }
.hero .swiper-slide { position: relative; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; }
.hero .swiper-slide img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero .caption { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 20px; }
.hero .caption h1 { font-size: 40px; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; transition: transform .2s; }
.card:hover { transform: translateY(-2px); }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 20px; }
.card-title { font-size: 18px; margin: 0 0 10px; line-height: 1.4; }
.card-title a { text-decoration: none; color: #222; }
.card-title a:hover { color: #b8860b; }
/* Footer */
.site-footer { background: #111; color: #eee; padding: 40px 0; margin-top: 60px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
/* Responsive */
@media (max-width: 1250px) {
  .container, .site-header .container { width: 95%; max-width: 95%; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero .swiper { height: 360px; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-text { padding-right: 0; }
  .mobile-nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid #eee; display: none; }
  .site-nav.is-open { display: block; }
  .primary-nav { flex-direction: column; gap: 0; padding: 8px 12px; }
  .primary-nav > li { width: 100%; }
  .primary-nav a { padding: 12px 6px; }
  .primary-nav .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0; }
  .primary-nav .dropdown-menu .dropdown-menu { position: static; margin-left: 0; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .hero .swiper { height: 260px; }
  .container, .site-header .container { width: 98%; max-width: 98%; padding: 0 10px; }
}

/* About section layout */
.about-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: flex-start; min-height: calc(100vh - var(--header-h)); }
.about-text { padding-right: 20px; }
.about-text .section-title { margin-top: 0; margin-bottom: 40px; font-size: 36px; font-weight: 700; }
.about-text p { line-height: 2; margin-bottom: 24px; max-width: 95%; font-size: 16px; }
.about-video { display: flex; align-items: flex-start; justify-content: center; height: 100%; padding-top: 80px; }
.about-video video { width: 100%; height: auto; border-radius: 12px; object-fit: cover; background: #000; }
.about-video .video-js { width: 100%; height: auto; border-radius: 12px; overflow: hidden; background: #000; }
.about-video .vjs-control-bar { font-size: 12px; }
.about-video .vjs-big-play-button { top: 50%; left: 50%; transform: translate(-50%, -50%); border: none; }

/* Fallback video styles when Video.js is not available */
.about-video video:not(.video-js) { 
  width: 100%; 
  height: auto; 
  border-radius: 12px; 
  background: #000; 
  max-height: 400px;
}

/* Products section title matches About/News */
#products .section-title { font-size: 36px; font-weight: 700; margin-bottom: 30px; }

/* Hero Tabs Section */
.hero-tabs { padding: 60px 0; min-height: calc(100vh - var(--header-h)); }
.hero-tabs .container { width: 1480px; max-width: 1480px; padding: 0 20px; display: block; }
.hero-tabs__inner { position: relative; width: 100%; }
.hero-tabs__stage { position: relative; height: calc(100vh - var(--header-h)); border-radius: 12px; overflow: hidden; }
.hero-tabs__media { position: absolute; inset: 0; background: #000; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.hero-tabs__media.is-active { opacity: 1; visibility: visible; }
.hero-tabs__media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.hero-tabs__overlay { position: absolute; inset: 0; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-left: 40px; padding-right: 40px; max-width: 720px; }
.hero-tabs__title { font-size: 48px; margin: 0; font-weight: 700; }
.hero-tabs__subtitle { font-size: 22px; margin: 0; opacity: .95; color: #fff; }
.hero-tabs__desc { line-height: 1.9; max-width: 640px; margin: 10px 0 0; opacity: .9; color: #fff; }
.hero-tabs .btn { display: inline-block; margin-top: 14px; padding: 10px 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); color: #fff; text-decoration: none; border-radius: 4px; }
.hero-tabs__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #111; color: #fff; border-radius: 8px; overflow: hidden; margin-top: 12px; }
.hero-tab { appearance: none; background: transparent; color: #fff; border: none; padding: 16px 20px; font-size: 18px; border-right: 1px solid rgba(255,255,255,.08); cursor: pointer; position: relative; }
.hero-tab:last-child { border-right: none; }
.hero-tab.is-active, .hero-tab:hover { background: #b4161b; }

@media (max-width: 900px) {
  .hero-tabs { min-height: auto; }
  .hero-tabs__stage { height: calc(100vh - var(--header-h)); max-height: 360px; }
  .hero-tabs__overlay { padding-left: 24px; padding-right: 24px; }
  .hero-tabs__title { font-size: 34px; }
  .hero-tabs__subtitle { font-size: 18px; color: #fff; }
  .hero-tab { font-size: 16px; padding: 14px; }
}

/* Hide video controls - stronger rules */
.about-video video::-webkit-media-controls-download-button { display: none !important; }
.about-video video::-webkit-media-controls-picture-in-picture-button { display: none !important; }
.about-video video::-webkit-media-controls-playback-rate-button { display: none !important; }
.about-video video::-webkit-media-controls-fullscreen-button { display: none !important; }

/* Responsive about section */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-text { padding-right: 0; }
}

/* News section - featured left, list right */
.news-layout .section-title { font-size: 36px; font-weight: 700; margin-bottom: 30px; }
.news-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

/* Featured */
.news-featured .featured-link { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.news-featured img { width: 100%; height: 520px; object-fit: cover; display: block; }
.featured-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); color: #fff; }
.featured-title { font-size: 18px; font-weight: 600; display: inline-block; }

/* List */
.news-list { background: transparent; }
.news-item { display: grid; grid-template-columns: 1fr 90px; gap: 20px; padding: 18px 0; border-bottom: 1px solid #eee; }
.news-item:first-child { border-top: 1px solid #eee; }
.news-item-title { font-size: 18px; margin: 0 0 10px; line-height: 1.4; }
.news-item-title a { color: #222; text-decoration: none; }
.news-item-title a:hover { color: #b8860b; }
.news-item-excerpt { color: #666; line-height: 1.8; font-size: 14px; }
.news-item-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 90px; min-width: 90px; background: #f7f7f7; border-radius: 8px; color: #333; }
.news-item-date .day { font-size: 32px; font-weight: 700; line-height: 1; }
.news-item-date .ym { font-size: 12px; color: #888; margin-top: 8px; }

/* Responsive for news */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-featured img { height: 360px; }
}
@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item-date { width: 100%; flex-direction: row; gap: 10px; padding: 8px 0; }
}

/* Page Templates: About, Contact, News, Products */
#page-about .section-title,
#page-contact .section-title,
#page-news .section-title,
#page-products .section-title { font-size: 36px; font-weight: 700; margin-bottom: 30px; }

/* Ensure these pages top-align their content (not vertically centered) */
#page-products.section,
#page-news.section,
#page-contact.section { align-items: flex-start; }

/* About page reuses about-content two-column layout */
#page-about .about-content { grid-template-columns: 1.2fr 1.8fr; gap: 40px; align-items: start; }
#page-about .about-video { padding-top: 0; display: block; }
#page-about .about-video img { max-height: 380px; object-fit: cover; }
#page-about .about-text { padding-right: 0; }
#page-about .about-text p:first-child { margin-top: 0; }

/* Responsive: Page About */
@media (max-width: 900px) {
  #page-about .about-content { grid-template-columns: 1fr; gap: 30px; min-height: auto; }
  #page-about .section-title { font-size: 32px; margin-bottom: 30px; }
  #page-about .about-video img { max-height: 300px; }
}
@media (max-width: 768px) {
  #page-about .section-title { font-size: 28px; margin-bottom: 28px; }
  #page-about .about-video img { max-height: 260px; }
}
@media (max-width: 600px) {
  #page-about .about-text p { font-size: 14px; line-height: 1.6; }
}
@media (max-width: 480px) {
  #page-about .section-title { font-size: 24px; margin-bottom: 24px; }
  #page-about .about-video img { max-height: 220px; }
}

/* Contact page: form left, info card right */
#page-contact .about-content { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
#page-contact .wpcf7 { display: block; }
#page-contact .wpcf7 form { margin: 0; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
#page-contact .wpcf7 form p { margin: 0 0 14px; }
#page-contact .wpcf7 input[type="text"],
#page-contact .wpcf7 input[type="email"],
#page-contact .wpcf7 input[type="tel"],
#page-contact .wpcf7 textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; font-size: 14px; }
#page-contact .wpcf7 textarea { min-height: 120px; resize: vertical; }
#page-contact .wpcf7 input[type="submit"] { background: #b4161b; border: none; color: #fff; padding: 10px 18px; border-radius: 8px; cursor: pointer; }
#page-contact .wpcf7 input[type="submit"]:hover { opacity: .9; }

#page-contact .contact-info { align-self: flex-start; }
#page-contact .contact-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 24px; }
#page-contact .contact-list li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eee; }
#page-contact .contact-list li:last-child { border-bottom: none; }
#page-contact .contact-list span { color: #666; }
#page-contact .contact-list strong { color: #222; font-weight: 600; }

/* Contact page links: follow global link patterns */
#page-contact a { color: #222; text-decoration: underline; }
#page-contact a:hover { color: #b8860b; }
#page-contact a:visited { color: #222; }

/* Responsive: Page Contact */
@media (max-width: 900px) {
  #page-contact .about-content { grid-template-columns: 1fr; gap: 24px; }
  #page-contact .section-title { font-size: 32px; margin-bottom: 24px; }
}
@media (max-width: 768px) {
  #page-contact .wpcf7 input[type="text"],
  #page-contact .wpcf7 input[type="email"],
  #page-contact .wpcf7 input[type="tel"],
  #page-contact .wpcf7 textarea { font-size: 14px; }
  #page-contact .contact-list { padding: 16px; }
  #page-contact .contact-list li { grid-template-columns: 70px 1fr; }
}
@media (max-width: 600px) {
  #page-contact .section-title { font-size: 28px; margin-bottom: 20px; }
  #page-contact .wpcf7 form { padding: 16px; }
}
@media (max-width: 480px) {
  #page-contact .contact-list li { grid-template-columns: 64px 1fr; }
}

/* News page: list full-width and pagination */
#page-news .news-grid { grid-template-columns: 1fr; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; color: #333; }
.pagination span.current { background: #222; color: #fff; border-color: #222; }
.pagination a:hover { background: #f5f5f5; }

/* Products page: spacing for pagination already shared */
#page-products .pagination { margin-top: 20px; }

/* Page PPGS - 品牌故事 */
#page-ppgs .section-title { font-size: 36px; font-weight: 700; margin-bottom: 30px; }
#page-ppgs.section { align-items: flex-start; }

#page-ppgs .brand-overview { margin-bottom: 40px; }
#page-ppgs .brand-intro { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 24px; }
#page-ppgs .brand-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
#page-ppgs .info-item { display: flex; gap: 8px; padding: 12px; background: #f8f9fa; border-radius: 8px; }
#page-ppgs .info-item .label { color: #666; font-weight: 600; }
#page-ppgs .info-item .value { color: #222; }

#page-ppgs .brand-section { margin-bottom: 40px; }
#page-ppgs .section-subtitle { font-size: 24px; font-weight: 600; margin: 0 0 16px; color: #222; }
#page-ppgs .brand-description { font-size: 16px; line-height: 1.8; color: #333; margin: 0; }

#page-ppgs .production-bases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#page-ppgs .base-item { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px; }
#page-ppgs .base-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: #b4161b; }
#page-ppgs .base-location { font-size: 14px; color: #666; margin: 0 0 12px; }
#page-ppgs .base-description { font-size: 14px; line-height: 1.7; color: #333; margin: 0; }

#page-ppgs .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#page-ppgs .product-card { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: transform 0.2s; }
#page-ppgs .product-card:hover { transform: translateY(-2px); }
#page-ppgs .product-image { height: 200px; overflow: hidden; }
#page-ppgs .product-image img { width: 100%; height: 100%; object-fit: cover; }
#page-ppgs .product-info { padding: 16px; }
#page-ppgs .product-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: #222; }
#page-ppgs .product-excerpt { font-size: 14px; line-height: 1.6; color: #666; margin: 0; }
#page-ppgs .product-placeholder { grid-column: 1 / -1; text-align: center; padding: 40px; color: #666; }

#page-ppgs .culture-tabs { margin-top: 20px; }
#page-ppgs .culture-content { position: relative; height: 300px; background: #f8f9fa; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
#page-ppgs .culture-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.1; }
#page-ppgs .culture-text { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: flex-start; height: 100%; padding: 40px; text-align: left; }
#page-ppgs .culture-text p { font-size: 18px; line-height: 1.8; color: #b4161b; margin: 0; }
#page-ppgs .culture-nav { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
#page-ppgs .culture-tab { appearance: none; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px 8px; font-size: 14px; color: #666; cursor: pointer; transition: all 0.2s; }
#page-ppgs .culture-tab:hover { border-color: #b4161b; color: #b4161b; }
#page-ppgs .culture-tab.is-active { background: #b4161b; border-color: #b4161b; color: #fff; }

/* Culture panels */
#page-ppgs .culture-panel { 
  position: relative; 
  height: 300px; 
  background: #fff7f7; 
  border: 1px solid #f1d5d7; 
  border-radius: 12px; 
  box-shadow: 0 6px 18px rgba(180, 22, 27, 0.06);
  overflow: hidden; 
  margin-bottom: 20px;
  display: none;
}
#page-ppgs .culture-panel.is-active { display: block; }
#page-ppgs .culture-panel .culture-bg { 
  display: none; 
}
#page-ppgs .culture-panel .culture-text { 
  position: relative; 
  z-index: 1; 
  display: flex; 
  align-items: flex-start; 
  justify-content: flex-start; 
  height: 100%; 
  padding: 40px; 
  text-align: left; 
  border-left: 4px solid rgba(180, 22, 27, 0.15);
}
#page-ppgs .culture-panel .culture-text p { 
  font-size: 18px; 
  line-height: 1.8; 
  color: #b4161b; 
  margin: 0; 
}

@media (max-width: 900px) {
  #page-ppgs .brand-info-grid { grid-template-columns: 1fr; }
  #page-ppgs .production-bases { grid-template-columns: 1fr; }
  #page-ppgs .products-grid { grid-template-columns: repeat(2, 1fr); }
  #page-ppgs .culture-nav { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  #page-ppgs .products-grid { grid-template-columns: 1fr; }
  #page-ppgs .culture-nav { grid-template-columns: repeat(2, 1fr); }
}

/* Single Post */
#single-post .post-title { font-size: 36px; margin: 0 0 30px; font-weight: 700; color: #333; }
#single-post .post-meta { margin: 0 0 20px; }
#single-post .post-thumb { max-width: 900px; margin: 0 auto; }
#single-post .post-thumb img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; display: block; }
#single-post .post-content { margin-top: 20px; line-height: 1.9; }
#single-post .post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 16px; border-top: 1px solid #eee; }

/* ensure details sections top-align like other pages */
#single-post.section, #single-product.section { align-items: flex-start; }

/* Single pages content typography and links */
#single-post .post-content h2, #single-post .post-content h3, #single-post .post-content h4,
#single-product .product-details h2, #single-product .product-details h3, #single-product .product-details h4 { margin: 24px 0 12px; }
#single-post .post-content p, #single-product .product-details p { margin: 0 0 16px; }
#single-post .post-content img, #single-product .product-details img { max-width: 100%; height: auto; border-radius: 8px; }
#single-post .post-content a, #single-product .product-details a { color: #222; text-decoration: underline; }
#single-post .post-content a:hover, #single-product .product-details a:hover { color: #b8860b; }
#single-post .post-content a:visited, #single-product .product-details a:visited { color: #222; }
#single-post .post-nav a, #single-product .post-nav a { color: #222; text-decoration: none; }
#single-post .post-nav a:hover, #single-product .post-nav a:hover { color: #b8860b; }

/* Single Product */
#single-product .product-title { font-size: 36px; font-weight: 700; margin: 0 0 30px; color: #333; }
#single-product .product-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; margin-bottom: 36px; }
#single-product .breadcrumbs { font-size: 14px; margin-bottom: 24px; color: #666; }
#single-product .breadcrumbs a { color: #222; text-decoration: none; }
#single-product .breadcrumbs a:hover { color: #b8860b; }
#single-product .product-gallery { position: relative; }
#single-product .product-gallery .gallery-main img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
#single-product .product-gallery .gallery-thumbs { display: flex; flex-wrap: nowrap; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
#single-product .product-gallery .thumb { appearance: none; border: none; background: transparent; padding: 0; cursor: pointer; }
#single-product .product-gallery .thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
#single-product .product-summary { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px; }
#single-product .product-summary { align-self: start; }
#single-product .product-intro { margin-bottom: 16px; }
#single-product .product-intro p { margin: 0; font-size: 14px; color: #333; }
#single-product .product-attrs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px 20px; }
#single-product .product-attrs li { display: flex; align-items: baseline; gap: 6px; background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 8px 10px; }
#single-product .product-attrs .label { color: #666; font-size: 14px; }
#single-product .product-attrs .value { color: #222; font-weight: 600; font-size: 14px; }
#single-product .product-attrs .value-accent { color: #b4161b; font-size: 18px; }
#single-product .product-details { margin-top: 24px; line-height: 1.9; }
#single-product .post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 16px; border-top: 1px solid #eee; }

#single-product .product-stores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
#single-product .product-stores .store { display: flex; flex-direction: column; align-items: center; gap: 6px; }
#single-product .product-stores .store img { width: 72px; height: 72px; object-fit: contain; }
#single-product .product-stores .store span { font-size: 14px; color: #333; }

#single-product .product-sections { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 48px; }
#single-product .section-subtitle { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
#single-product .related-list { display: grid; gap: 0; }
#single-product .related-item { padding: 14px 0; border-bottom: 1px solid #eee; }
#single-product .related-item:last-child { border-bottom: none; }
#single-product .related-item a { display: block; color: #222; text-decoration: none; text-align: center; }
#single-product .related-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
#single-product .related-item .title { display: block; margin-top: 8px; font-size: 14px; }

/* Responsive: Single Product */
@media (max-width: 900px) {
  #single-product .product-hero { grid-template-columns: 1fr; gap: 24px; }
  #single-product .product-gallery .gallery-main img { height: 360px; }
  #single-product .product-attrs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #single-product .product-sections { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  #single-product .breadcrumbs { font-size: 13px; }
  #single-product .product-title { font-size: 28px; }
  #single-product .product-gallery .gallery-main img { height: 320px; }
  #single-product .product-gallery .gallery-thumbs { grid-template-columns: repeat(4, 1fr); grid-auto-flow: column; overflow-x: auto; white-space: nowrap; }
  #single-product .product-stores { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #single-product .product-gallery .gallery-main img { height: 280px; }
  #single-product .product-attrs { grid-template-columns: 1fr; }
  #single-product .product-stores { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  #single-product .product-gallery .gallery-main img { height: 240px; }
  #single-product .product-stores { grid-template-columns: 1fr; }
  #single-product .related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Page PPTY - 品酒体验 */
#page-ppty .section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
}

.tasting-row {
  display: flex;
  gap: 40px;
  margin-bottom: 80px;
}

.tasting-row:last-child {
  margin-bottom: 0;
}

.tasting-step {
  flex: 1;
  text-align: center;
}

.tasting-step.single-step {
  flex: 1;
}

.tasting-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.tasting-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.tasting-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  min-width: 280px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tasting-overlay-bottom {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.tasting-overlay-right {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  text-align: left;
  max-width: 400px;
}

.tasting-overlay-left {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  text-align: left;
  max-width: 400px;
}

.tasting-title {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 15px 0;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tasting-description {
  margin-top: 15px;
}

.tasting-description p {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tasting-text {
  padding: 0;
  text-align: left;
}

.tasting-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0;
  text-align: justify;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .tasting-row {
    gap: 30px;
  }
  
  .tasting-image img {
    height: 350px;
  }
  
  .tasting-overlay {
    min-width: 240px;
    padding: 16px 24px;
  }
  
  .tasting-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .tasting-row {
    flex-direction: column;
    gap: 40px;
  }
  
  .tasting-step.single-step {
    max-width: 100%;
  }
  
  .tasting-image img {
    height: 320px;
  }
  
  .tasting-overlay {
    min-width: 200px;
    padding: 12px 20px;
  }
  
  .tasting-title {
    font-size: 18px;
  }
  
  .tasting-row {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  #page-ppty .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .tasting-image img {
    height: 280px;
  }
  
  .tasting-overlay {
    min-width: 180px;
    padding: 10px 16px;
  }
  
  .tasting-title {
    font-size: 16px;
  }
  
  .tasting-row {
    gap: 30px;
    margin-bottom: 50px;
  }
}

/* Page NZGY - 酿造工艺 */
#page-nzgy .section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
}

/* 第一行：端午制曲和重阳下沙 */
.craft-row {
  display: flex;
  gap: 40px;
  margin-bottom: 80px;
}

.craft-panel {
  flex: 1;
}

.craft-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.craft-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.craft-content {
  text-align: center;
}

.craft-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
}

.craft-description {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin: 0;
  text-align: justify;
}

/* 第二行：12987工艺 */
.craft-section {
  margin-bottom: 80px;
}

.craft-main-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  color: #333;
  margin: 0 0 50px 0;
}

.craft-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.craft-steps-row {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.craft-steps-row-center {
  justify-content: center;
  gap: 40px;
}

.craft-step {
  flex: 1;
  width: 320px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.step-content {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.step-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  width: 280px;
  height: 230px;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-description {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin: 0;
  text-align: justify;
  flex: 1;
}

/* 第三行：十必古法 */
.craft-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin: 0 0 50px 0;
}

.ancient-methods {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.methods-row {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.method-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  max-width: 280px;
}

.method-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.method-image img {
  width: 216px;
  height: 216px;
  object-fit: cover;
  display: block;
}

.method-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .craft-row {
    gap: 30px;
  }
  
  .methods-row {
    gap: 20px;
  }
  
  .method-item {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .craft-row {
    flex-direction: column;
    gap: 40px;
  }
  
  .craft-steps {
    gap: 30px;
  }
  
  /* NZGY: stack steps vertically and relax fixed sizes */
  .craft-steps-row,
  .craft-steps-row-center {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .craft-step {
    width: 100%;
    max-width: 480px;
    height: auto;
  }
  .step-image {
    width: 100%;
    max-width: 320px;
    height: auto;
  }
  .step-image img {
    height: auto;
    max-height: 200px;
  }
  .craft-image img {
    height: 260px;
  }
  
  .craft-step {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .step-number {
    align-self: center;
  }
  
  .methods-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .method-item {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .craft-main-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .craft-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  #page-nzgy .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .craft-image img {
    height: 220px;
  }
  
  .step-image img {
    height: 180px;
  }
  
  .method-image img {
    height: 100px;
  }
  
  .method-circle {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  
  .method-title {
    font-size: 14px;
  }
  
  .craft-title {
    font-size: 20px;
  }
  
  .step-title {
    font-size: 18px;
  }
}

/* Page SQJY - 诗情酒意 */
#page-sqjy .section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

.about-video {
  max-width: 800px;
  width: 100%;
}

.about-video video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: #000;
  display: block;
}

.about-video .video-js {
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
}

/* 确保原生视频播放器在Edge中正常显示 */
.about-video video:not(.video-js) {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: #000;
}

.vjs-control-bar {
  background: rgba(0, 0, 0, 0.8);
}

.vjs-big-play-button {
  background: rgba(139, 69, 19, 0.8);
  border-color: #8b4513;
}

.vjs-big-play-button:hover {
  background: rgba(139, 69, 19, 1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .about-video {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  #page-sqjy .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .about-video {
    max-width: 100%;
  }
  
  .video-container {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  #page-sqjy .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .video-container {
    margin-bottom: 30px;
  }
}
