/*
Theme Name: 岳人布鞋
Theme URI: https://yrshoes.com
Author: 岳人布鞋
Author URI: https://yrshoes.com
Description: 岳人布鞋品牌官网主题 - 大别山纯手工千层底布鞋，非遗技艺传承品牌。简约高端设计，山绿+暖金配色。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yrshoes
Tags: custom-menu, featured-images, one-column, blog
*/

/* ============================================
   岳人布鞋 · 品牌官网主题
   Design System: 简约高端 · 山绿+暖金
   ============================================ */

:root {
  /* Brand Colors */
  --forest: #2d5a3d;
  --forest-light: #3d7a52;
  --forest-dark: #1e3d29;
  --gold: #b8923a;
  --gold-light: #d4ad5a;
  --gold-muted: #d4c49a;
  --gold-pale: #e8dcc4;

  /* Neutrals */
  --ink: #1a1a18;
  --ink-light: #4a4a45;
  --body: #3d3d38;
  --stone: #6b6b63;
  --mist: #9a9a90;
  --linen: #e8e4db;
  --cream: #f2efe8;
  --warm-white: #f8f6f1;
  --white: #fdfcfa;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26,26,24,0.04);
  --shadow-md: 0 4px 20px rgba(26,26,24,0.06);
  --shadow-lg: 0 8px 36px rgba(26,26,24,0.08);

  /* Fonts */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

/* ---- Utilities ---- */
.text-gold { color: var(--gold); }
.text-forest { color: var(--forest); }
.text-stone { color: var(--stone); }
.text-mist { color: var(--mist); }

.tracking-wide { letter-spacing: 0.15em; }
.tracking-wider { letter-spacing: 0.25em; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
}

.divider-center {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Scroll-triggered animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s;
}

/* Default state: transparent (for front-page hero) */
.site-header .logo-text,
.site-header .nav-link { color: rgba(255,255,255,0.92); }
.site-header .logo-sub { color: rgba(255,255,255,0.5); }
.site-header .logo-icon {
  filter: brightness(0) invert(1);
}

.site-header.scrolled {
  background: rgba(253,252,250,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linen);
}

.site-header.scrolled .logo-text { color: var(--ink); }
.site-header.scrolled .logo-sub { color: var(--mist); }
.site-header.scrolled .logo-icon {
  filter: brightness(0) saturate(100%) invert(28%) sepia(15%) saturate(1200%) hue-rotate(95deg) brightness(95%);
}
.site-header.scrolled .nav-link { color: var(--body); }
.site-header.scrolled .nav-cta {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.site-header.scrolled .nav-cta:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
}
.site-header.scrolled .menu-toggle { color: var(--ink); }

/* Inner pages: header starts with white bg (no hero) */
.site-header.header-inner-page {
  background: rgba(253,252,250,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linen);
}
.site-header.header-inner-page .logo-text { color: var(--ink); }
.site-header.header-inner-page .logo-sub { color: var(--mist); }
.site-header.header-inner-page .logo-icon {
  filter: brightness(0) saturate(100%) invert(28%) sepia(15%) saturate(1200%) hue-rotate(95deg) brightness(95%);
}
.site-header.header-inner-page .nav-link { color: var(--body); }
.site-header.header-inner-page .nav-cta {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.site-header.header-inner-page .menu-toggle { color: var(--ink); }

.header-inner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .header-inner-wrap { padding: 0 40px; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

@media (min-width: 768px) {
  .logo-icon { height: 36px; }
}

.logo-textgroup {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: color 0.3s;
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: color 0.3s, opacity 0.3s;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 36px;
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 0.3s, opacity 0.3s;
}
.nav-link:hover { opacity: 0.65; }

.nav-link.current-menu-item,
.nav-link.current_page_item {
  opacity: 0.65;
}

.nav-cta {
  margin-left: 12px;
  padding: 8px 22px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.92);
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* Mobile menu */
.menu-toggle {
  display: flex;
  padding: 8px;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(253,252,250,0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  padding: 32px 24px;
  animation: fadeIn 0.25s ease-out;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  color: var(--body);
  border-bottom: 1px solid var(--linen);
}

.mobile-nav .nav-cta-mobile {
  display: block;
  margin-top: 24px;
  padding: 14px;
  text-align: center;
  background: var(--forest);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  border: none;
}

/* ============================================
   HERO (front page)
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,26,24,0.25) 0%,
    rgba(26,26,24,0.45) 60%,
    rgba(26,26,24,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

.hero-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.15em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.btn-outline-light {
  padding: 13px 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

.btn-gold {
  display: inline-block;
  padding: 13px 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 3px;
  background: var(--gold);
  color: var(--white);
  transition: all 0.3s;
}
.btn-gold:hover { background: var(--gold-light); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  animation: bounceDown 2s infinite;
  cursor: pointer;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section { padding: 96px 0; }
.section-lg { padding: 112px 0; }

@media (min-width: 768px) {
  .section { padding: 112px 0; }
  .section-lg { padding: 128px 0; }
}

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

.section-tag {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.1em;
}

.bg-cream { background: var(--cream); }
.bg-warm { background: var(--warm-white); }

/* ============================================
   VALUE PROPS
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}

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

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.value-item:hover .value-icon {
  background: var(--gold);
  border-color: var(--gold);
}

.value-item:hover .value-icon svg { stroke: var(--white); }

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s;
}

.value-title {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.value-desc {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.8;
}

/* ============================================
   BRAND STORY
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

@media (min-width: 1024px) {
  .story-grid { gap: 80px; }
}

.story-image {
  overflow: hidden;
  border-radius: 4px;
}

.story-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-image:hover img { transform: scale(1.04); }

.story-tag {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

.story-title {
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.story-text {
  color: var(--stone);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 14px;
}

.story-quote {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  margin-top: 8px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  margin-top: 24px;
  transition: color 0.3s;
}
.link-arrow:hover { color: var(--gold-light); }
.link-arrow svg {
  width: 16px; height: 16px;
  transition: transform 0.3s;
}
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================
   CRAFT PROCESS
   ============================================ */
.craft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .craft-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.craft-steps { list-style: none; }

.craft-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.craft-step:last-child { margin-bottom: 0; }

.step-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-pale);
  flex-shrink: 0;
  width: 40px;
  transition: color 0.3s;
}

.craft-step:hover .step-num { color: var(--gold); }

.step-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.8;
}

.craft-image {
  overflow: hidden;
  border-radius: 4px;
}

.craft-image img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.craft-image:hover img { transform: scale(1.04); }

/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.product-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  overflow: hidden;
  aspect-ratio: 5/4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-body { padding: 24px 28px 28px; }

.product-series {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.product-name {
  font-size: 19px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
}

.product-link {
  font-size: 12px;
  color: var(--mist);
  transition: color 0.3s;
}
.product-card:hover .product-link { color: var(--gold); }

.section-cta {
  text-align: center;
  margin-top: 48px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 1px solid var(--linen);
  border-radius: 3px;
  color: var(--body);
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline svg { width: 14px; height: 14px; }

.btn-forest {
  display: inline-block;
  padding: 13px 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 3px;
  background: var(--forest);
  color: var(--white);
  transition: all 0.3s;
}
.btn-forest:hover { background: var(--forest-light); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.testimonial-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--gold-pale);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-meta {
  border-top: 1px solid var(--linen);
  padding-top: 16px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.testimonial-detail {
  font-size: 12px;
  color: var(--mist);
  margin-top: 4px;
}

/* ============================================
   PURCHASE CHANNELS
   ============================================ */
.channels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .channels-grid { grid-template-columns: repeat(3, 1fr); }
}

.channel-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--linen);
  border-radius: 4px;
  transition: all 0.3s;
}

.channel-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.channel-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.channel-title {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.channel-desc {
  font-size: 13px;
  color: var(--stone);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.footer-brand-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.12em;
}

.footer-brand-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}
.footer-col a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---- Responsive order utilities ---- */
@media (min-width: 768px) {
  .md-order-1 { order: 1; }
  .md-order-2 { order: 2; }
}

/* ============================================
   INNER PAGE HERO BANNER (sub-pages)
   ============================================ */
.page-hero {
  padding-top: 72px; /* offset for fixed header */
  background: var(--forest-dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  padding: 72px 24px 64px;
  position: relative;
  z-index: 2;
}

.page-hero-tag {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(45,90,61,0.4) 0%, transparent 70%);
}

/* ============================================
   BLOG LIST (home.php)
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }
}

.blog-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body {
  padding: 24px 24px 28px;
}

.blog-card-cat {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  display: inline-block;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--mist);
}

/* Blog category filter */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.blog-cat-link {
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--linen);
  border-radius: 20px;
  color: var(--stone);
  transition: all 0.3s;
}

.blog-cat-link:hover,
.blog-cat-link.active {
  border-color: var(--forest);
  color: var(--forest);
  background: rgba(45,90,61,0.06);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid var(--linen);
  color: var(--stone);
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .current {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.pagination .dots {
  border: none;
  color: var(--mist);
}

/* ============================================
   SINGLE POST (single.php)
   ============================================ */
.single-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

@media (min-width: 768px) {
  .single-article { padding: 72px 40px 96px; }
}

.single-header {
  text-align: center;
  margin-bottom: 48px;
}

.single-cat {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: inline-block;
}

.single-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 16px;
}

.single-meta {
  font-size: 13px;
  color: var(--mist);
}

.single-featured-img {
  margin-bottom: 40px;
  border-radius: 6px;
  overflow: hidden;
}

.single-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Article content typography */
.single-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--body);
}

.single-content p {
  margin-bottom: 20px;
}

.single-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--linen);
}

.single-content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.single-content img {
  border-radius: 4px;
  margin: 24px 0;
}

.single-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--cream);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.7;
}

.single-content ul, .single-content ol {
  margin: 16px 0 20px 24px;
}

.single-content li {
  margin-bottom: 8px;
}

.single-content a {
  color: var(--forest);
  border-bottom: 1px solid var(--gold-pale);
  transition: border-color 0.3s;
}

.single-content a:hover {
  border-color: var(--gold);
}

/* Post tags */
.single-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--linen);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-tag {
  padding: 5px 14px;
  font-size: 12px;
  border: 1px solid var(--linen);
  border-radius: 16px;
  color: var(--stone);
  transition: all 0.3s;
}

.single-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--linen);
}

.post-nav-item {
  padding: 20px;
  border: 1px solid var(--linen);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.post-nav-item:hover {
  border-color: var(--gold);
}

.post-nav-label {
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.post-nav-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.post-nav-next {
  text-align: right;
}

/* ============================================
   INNER PAGE: ABOUT / CRAFT / PRODUCTS / CONTACT
   ============================================ */

/* About page */
.about-section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .about-section { padding: 96px 0; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.contact-info-item {
  margin-bottom: 32px;
}

.contact-info-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.contact-info-value {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
}

.contact-qr {
  width: 160px;
  height: 160px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  font-size: 13px;
}

/* No results */
.no-results {
  text-align: center;
  padding: 80px 24px;
}

.no-results-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}

.no-results-text {
  font-size: 14px;
  color: var(--stone);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404-content {
  text-align: center;
  padding: 120px 24px 80px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-404-num {
  font-family: var(--font-serif);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 700;
  color: var(--linen);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-404-text {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 32px;
}

/* ============================================
   FLOATING SIDEBAR - 简约圆形悬浮组件
   ============================================ */
.floating-sidebar {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floating-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(45, 90, 61, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.floating-item:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.15);
  transform: translateY(-2px);
}

.floating-icon {
  width: 20px;
  height: 20px;
  color: var(--forest);
  transition: color 0.25s ease;
}

.floating-item:hover .floating-icon {
  color: var(--gold);
}

/* 左侧提示标签 */
.floating-label {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  background: var(--forest);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.floating-label::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--forest);
}

.floating-item:hover .floating-label {
  opacity: 1;
  visibility: visible;
}

/* 二维码弹窗 */
.floating-qr-popup {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--linen);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(26, 26, 24, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
  min-width: 180px;
  text-align: center;
}

.floating-qr-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.floating-qr-popup::before {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: var(--linen);
}

.floating-qr-popup::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--white);
}

.floating-qr-title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.floating-qr-placeholder {
  width: 140px;
  height: 140px;
  background: var(--cream);
  border: 1px dashed var(--gold-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--stone);
  font-size: 11px;
  line-height: 1.5;
}

.floating-qr-text {
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.03em;
}

/* 返回顶部按钮 */
.floating-item.backtop {
  margin-top: 4px;
}

.floating-item.backtop .floating-icon {
  color: var(--gold);
}

.floating-item.backtop:hover .floating-icon {
  color: var(--forest);
}

/* 移动端隐藏 */
@media (max-width: 768px) {
  .floating-sidebar {
    display: none;
  }
}

.floating-qr-placeholder {
  width: 150px;
  height: 150px;
  background: var(--cream);
  border: 1px dashed var(--gold-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--stone);
  font-size: 12px;
  line-height: 1.6;
}

.floating-qr-text {
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.05em;
}

/* 返回顶部按钮 - 特殊样式 */
.floating-item.backtop {
  margin-top: 8px;
  border-color: var(--gold-pale);
}

.floating-item.backtop:hover {
  border-color: var(--gold);
}

.floating-item.backtop .floating-icon {
  color: var(--gold);
}

/* 分隔线 */
.floating-divider {
  width: 1px;
  height: 20px;
  background: var(--linen);
  margin: 0 auto;
}

/* 移动端隐藏 */
@media (max-width: 768px) {
  .floating-sidebar {
    display: none;
  }
}

/* ============================================
   WordPress Generated Classes
   ============================================ */
.alignnone { margin: 20px 0; }
.aligncenter { display: block; margin: 20px auto; }
.alignright { float: right; margin: 0 0 20px 20px; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--mist); margin-top: 8px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
