/*
Theme Name: Chenguang
Text Domain: chenguang
Version: 1.2.27
*/

:root {
  --bg: #f9f7f2;
  --text: #1a1a1a;
  --gold: #c5a059;
  --dark: #141414;
  --muted: #706b61;
  --line: rgba(26, 26, 26, 0.1);
  --card: #fffdf8;
  --shadow: 0 18px 45px rgba(26, 26, 26, 0.1);
  --serif: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.3; margin: 0; letter-spacing: 0.03em; }
p { margin: 0; color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(249,247,242,0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner, .section, .footer-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo-wrap { display: flex; align-items: center; line-height: 1; }
.site-logo-img { display: block; width: auto; height: 46px; max-width: 220px; object-fit: contain; }

.nav-toggle { display: none; }
.nav-button { display: grid; gap: 5px; cursor: pointer; }
.nav-button span { width: 24px; height: 2px; background: var(--text); }
.site-nav { position: absolute; left: 0; right: 0; top: 72px; display: none; flex-direction: column; gap: 18px; padding: 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a { font-size: 15px; letter-spacing: 0.08em; }

.hero { padding: 0 0 40px; }
.hero-card { min-height: 480px; display: grid; align-items: center; padding: 42px 24px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(197,160,89,0.35), transparent 28%), linear-gradient(135deg, #111, #2a2419); border-radius: 28px; }
.eyebrow { color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 12px; }
.hero h1 { margin: 18px 0 24px; font-size: clamp(26px, 6vw, 60px); white-space: nowrap; letter-spacing: 0.04em; }
.hero .tagline-en { font-size: clamp(14px, 2vw, 18px); color: rgba(255,255,255,0.55); font-family: var(--serif); letter-spacing: 0.15em; margin-bottom: 10px; }
.hero p { max-width: 560px; text-align: center; color: rgba(255,255,255,0.72); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 560px; margin-top: 96px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); background: transparent; cursor: pointer; }
.btn-primary { color: #111; background: var(--gold); }

.section { padding: 56px 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 7vw, 48px); }

.grid { display: grid; gap: 18px; }
.card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; transition: transform 0.25s ease, filter 0.25s ease; }
.card:hover { transform: scale(1.02); filter: drop-shadow(0 18px 45px rgba(26,26,26,0.1)); -webkit-filter: drop-shadow(0 18px 45px rgba(26,26,26,0.1)); }
.product-card { }
.product-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 20px; margin-bottom: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.placeholder { display: grid; place-items: center; min-height: 190px; margin-bottom: 20px; color: rgba(255,255,255,0.9); font-family: var(--serif); font-size: 24px; border-radius: 20px; background: linear-gradient(135deg, #1a1a1a, #c5a059); }
.placeholder.light { color: var(--text); background: linear-gradient(135deg, #efe8d7, #fffdf8); }
.card h3 { margin-bottom: 10px; font-size: 24px; }

.process { display: grid; gap: 12px; counter-reset: step; }
.process-item { counter-increment: step; padding: 18px; background: var(--card); border-left: 3px solid var(--gold); border-radius: 18px; }
.process-item::before { content: "0" counter(step); display: block; margin-bottom: 8px; color: var(--gold); font-family: var(--serif); }

.form { display: grid; gap: 14px; }
input, textarea, select { width: 100%; padding: 14px 16px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 14px; font: inherit; }
textarea { min-height: 130px; resize: vertical; }

.site-footer { padding: 36px 0; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }

.filters { display: grid; gap: 14px; margin-bottom: 28px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.search-input { width: 100%; grid-column: 1 / -1; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.no-result { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--muted); font-size: 16px; }
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pagination-wrap { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pagination-count { font-size: 14px; color: var(--muted); }
.pagination-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pagination-nav .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 12px;
    color: var(--text); text-decoration: none; font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}
.pagination-nav .page-numbers:hover { background: var(--card); border-color: var(--gold); }
.pagination-nav .page-numbers.current { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
.pagination-nav .page-numbers.dots { border: none; min-width: auto; padding: 0 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { padding: 5px 10px; color: var(--gold); border: 1px solid rgba(197,160,89,0.35); border-radius: 999px; font-size: 13px; }

.detail { display: grid; gap: 28px; }
.carousel { overflow: hidden; border-radius: 28px; }
.carousel img, .detail .entry-content img { cursor: default; }
.slides { display: flex; width: 300%; animation: slide 12s infinite; }
.slide { display: grid; place-items: center; width: 33.333%; min-height: 360px; color: #fff; font-family: var(--serif); font-size: 32px; background: linear-gradient(135deg, #161616, #c5a059); }
.slide:nth-child(2) { background: linear-gradient(135deg, #c5a059, #f2e7c9); }
.slide:nth-child(3) { background: linear-gradient(135deg, #2d2a25, #8d6f33); }
@keyframes slide { 0%,28%{transform:translateX(0)} 34%,62%{transform:translateX(-33.333%)} 68%,100%{transform:translateX(-66.666%)} }

.contact-layout { display: grid; gap: 24px; }
.qr { display: grid; place-items: center; margin-top: 20px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.wechat-qr-img { display: block; width: min(100%, 320px); height: auto; border-radius: 16px; }

.scene-row { display: flex; gap: 18px; }
.scene-row > * { flex: 1 1 0; min-width: 0; }

@media (min-width: 768px) {
  .nav-button { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; padding: 0; background: transparent; border: 0; }
  .hero { padding: 80px 0 56px; }
  .hero-card { padding: 72px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(5, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .detail, .contact-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

@media (max-width: 767px) {
  .header-inner { min-height: 60px; }
  .site-logo-img { height: 38px; max-width: 180px; }
  .site-nav { top: 60px; padding: 18px 24px; }
  .scene-row { flex-wrap: wrap; }
  .scene-row > * { flex: 1 1 260px; }
  .hero-card { min-height: 400px; padding: 34px 20px; border-radius: 22px; }
  .hero h1 { font-size: 28px; white-space: normal; }
  .hero .tagline-en { font-size: 13px; }
  .hero p { font-size: 14px; }
  .actions { margin-top: 64px; }
  .section { padding: 42px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 30px; }
  .card { padding: 20px; border-radius: 20px; }
  .card h3 { font-size: 21px; }
  .qr { padding: 14px; border-radius: 20px; }
  .wechat-qr-img { width: min(100%, 280px); border-radius: 14px; }
}
