/*
Theme Name: 锦华名酒回收
Author: 锦华名酒回收
Description: 锦华名酒回收专用企业官网主题，面向北京名酒、洋酒、红酒与高端礼品回收业务。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: jinhua-recycle
*/

:root {
  --ink: #1f2320;
  --muted: #6d716c;
  --paper: #fffdf8;
  --soft: #f6f1e7;
  --line: #e5dccb;
  --red: #9f1d16;
  --red-dark: #5f1410;
  --gold: #d7a642;
  --green: #185541;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(58, 32, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 220, 203, 0.72);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 168px;
  gap: 12px;
}

.brand img {
  width: 82px;
  height: 58px;
  object-fit: contain;
  background: var(--red);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(159, 29, 22, 0.15);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--red-dark);
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  color: #343932;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--red);
  border-color: var(--gold);
}

.header-phone,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(159, 29, 22, 0.2);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--white);
}

.section {
  padding: 78px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: linear-gradient(135deg, var(--red-dark), #2c1511);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #2f1510;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(40, 16, 12, 0.9) 0%, rgba(65, 22, 15, 0.7) 48%, rgba(65, 22, 15, 0.2) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(760px, 100%);
  padding: 90px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 700px;
  margin: 0 0 30px;
  font-size: clamp(18px, 2.3vw, 23px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
}

.proof-item {
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.proof-num {
  display: block;
  font-size: 27px;
  font-weight: 900;
  color: var(--gold);
}

.proof-label {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 34px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  color: var(--red);
  font-weight: 900;
}

.dark .section-kicker {
  color: var(--gold);
}

.section-title {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.dark .section-intro {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  align-items: end;
  gap: 16px;
}

.media-stack img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-stack img:first-child {
  min-height: 430px;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.feature-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--red);
  background: #f1dfbd;
  font-weight: 900;
}

.feature-row h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(70, 46, 24, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: var(--red-dark);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.scope-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.scope-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scope-body {
  padding: 20px;
}

.scope-body h3 {
  margin: 0 0 10px;
  color: var(--red-dark);
}

.scope-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: process;
}

.process-item {
  position: relative;
  min-height: 190px;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.process-item::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.process-item h3 {
  margin: 0 0 8px;
}

.process-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-card h3 {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 20px;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(70, 46, 24, 0.05);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 20px 56px 20px 22px;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1dfbd;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(70, 46, 24, 0.06);
}

.post-card a {
  display: grid;
  min-height: 100%;
  padding: 24px;
}

.post-card time {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.post-card h3 {
  margin: 10px 0 12px;
  color: var(--red-dark);
  font-size: 22px;
  line-height: 1.35;
}

.post-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.read-more {
  align-self: end;
  color: var(--green);
  font-weight: 900;
}

.empty-posts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.empty-posts p {
  margin: 0;
  color: var(--muted);
}

.coverage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.districts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.districts span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(215, 166, 66, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.contact-panel {
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 0 0 16px;
  font-size: 32px;
  color: var(--red-dark);
}

.contact-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.contact-value {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer {
  padding: 34px 0;
  background: #1d1714;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.post-content {
  padding: 72px 0;
}

.post-content h1 {
  color: var(--red-dark);
}

@media (max-width: 1020px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0 16px;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .split,
  .coverage {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .scope-grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards,
  .case-grid,
  .faq-list,
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0 74px;
  }

  .hero-actions,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .header-phone {
    width: 100%;
  }

  .hero-proof,
  .cards,
  .scope-grid,
  .process,
  .case-grid,
  .faq-list,
  .posts-grid,
  .media-stack {
    grid-template-columns: 1fr;
  }

  .empty-posts {
    align-items: stretch;
    flex-direction: column;
  }

  .media-stack img,
  .media-stack img:first-child {
    min-height: 240px;
  }

  .contact-panel {
    padding: 24px;
  }

  .brand {
    width: 100%;
  }
}
