/*
Theme Name: Xinzhao Trading
Theme URI: https://xinzhaotrading.com
Author: Xinzhao Trading
Description: B2B 展示型主题，为 Xinzhao Trading（舞蹈服饰 & 手工饰品出口）定制。纯展示 + WhatsApp 询盘转化，不依赖 WooCommerce。
Version: 1.12.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: xinzhao
*/

/* ============ Reset & Base ============ */
:root {
  --accent: #c2185b;        /* 主色：玫红（舞裙/亮片氛围） */
  --accent-dark: #8e1044;
  --gold: #c9a227;          /* 点缀：钉珠金 */
  --ink: #1f2430;
  --ink-soft: #5a6272;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --line: #ece7e1;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(31, 36, 48, .08);
  --wrap: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.logo .dot { color: var(--accent); }
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-soft); letter-spacing: 2px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; transition: .2s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta {
  background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: .2s;
}
.header-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #2a1020 0%, #4a1030 45%, #6b1030 100%);
  color: #fff; text-align: center; padding: 110px 20px 120px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(201,162,39,.28), transparent 42%),
              radial-gradient(circle at 15% 80%, rgba(194,24,91,.35), transparent 45%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero p { max-width: 640px; margin: 0 auto 34px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-trust { margin-top: 44px; display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-size: 24px; color: var(--gold); }
.hero-trust div span { font-size: 13px; color: rgba(255,255,255,.65); }

/* ============ Hero banner slider ============ */
section.hero-slider { position: relative; padding: 0; overflow: hidden; background: #1c1220; }
.hero-slider .slides { position: relative; width: 100%; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slider .slide.active { position: relative; opacity: 1; pointer-events: auto; }
.hero-slider .slide img { width: 100%; height: auto; display: block; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.22); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .2s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.45); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 5; display: flex; gap: 9px; justify-content: center; }
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); transition: .2s; padding: 0;
}
.slider-dots button.active { background: var(--gold); transform: scale(1.25); }
@media (max-width: 900px) {
  .hero-slider .slide img { height: 240px; object-fit: cover; }
  .slider-arrow { width: 36px; height: 36px; font-size: 16px; }
  .slider-arrow.prev { left: 10px; } .slider-arrow.next { right: 10px; }
}

/* ============ Sections ============ */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .kicker { color: var(--accent); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 36px); margin-top: 8px; }
.section-head p { color: var(--ink-soft); max-width: 560px; margin: 12px auto 0; }

/* Category / product grid */
.cat-grid, .prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.cat-card, .prod-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: block;
}
.cat-card:hover, .prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-thumb { aspect-ratio: 4/3.4; background: linear-gradient(135deg, #f3e3ea, #efe6d8); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .ph { font-size: 44px; opacity: .5; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 17px; margin-bottom: 6px; }
.card-body p { font-size: 14px; color: var(--ink-soft); }
.card-body .more { color: var(--accent); font-size: 13px; font-weight: 600; display: inline-block; margin-top: 10px; }
.card-main { display: block; text-decoration: none; color: inherit; }
.card-subs { padding: 0 20px 20px; margin-top: -12px; }
.cat-card .sub-list { list-style: none; border-top: 1px dashed var(--line); padding-top: 10px; }
.cat-card .sub-list li { font-size: 13px; padding-left: 16px; position: relative; margin-bottom: 5px; }
.cat-card .sub-list li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.cat-card .sub-list li a { color: var(--ink-soft); text-decoration: none; }
.cat-card .sub-list li a:hover { color: var(--accent); text-decoration: underline; }

/* Feature strip */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature { text-align: center; padding: 12px; }
.feature .icon { font-size: 34px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* About strip */
.about-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-strip .visual { border-radius: var(--radius); background: linear-gradient(135deg, #efd9e4, #e9ddc9); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 60px; overflow: hidden; }
.about-strip .visual img { width: 100%; height: 100%; object-fit: cover; }
.about-strip h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.about-strip p { color: var(--ink-soft); margin-bottom: 14px; }
.about-strip ul li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.about-strip ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; text-align: center; border-radius: var(--radius); padding: 64px 24px; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }

/* ============ Footer ============ */
.site-footer { background: #191520; color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

/* ============ WhatsApp float ============ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============ Content pages / posts ============ */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); }
.page-hero p { color: var(--ink-soft); margin-top: 10px; }
.content-area { padding: 64px 0; }
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content h2 { margin: 32px 0 14px; font-size: 24px; }
.entry-content h3 { margin: 24px 0 10px; font-size: 19px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 16px; color: #333; }
.entry-content ul { list-style: disc; padding-left: 22px; }
.entry-content img { border-radius: var(--radius); margin: 18px 0; }

/* Spec table (product pages) */
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--bg-soft); width: 180px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .about-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero-trust { gap: 28px; }
}

/* ---------- 移动端细化（手机竖屏） ---------- */
@media (max-width: 600px) {
  .logo small { display: none; }
  .hero { padding: 64px 18px 72px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-actions .btn { padding: 12px 22px; font-size: 14px; }
  .hero-trust { gap: 16px; }
  .hero-trust div strong { font-size: 20px; }
  section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .cat-card .card-body { padding: 16px; }
  .cat-card .card-subs { padding: 0 16px 16px; }
  .about-strip { gap: 26px; }
  .about-strip h2 { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 40px 18px; }
  .cta-band h2 { font-size: 22px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 28px; height: 28px; }
}
@media (max-width: 380px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 23px; }
}

/* ============ Accessibility & utilities (v1.12.4 / XZ-V1124) ============ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; }
.kicker-accent { color: var(--accent); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.mt-10 { margin-top: 10px; }
.cta-section { padding-top: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slider .slide { transition: none; }
  .btn, .cat-card, .prod-card, .wa-float, .slider-arrow, .slider-dots button { transition: none; }
  .btn-primary:hover, .cat-card:hover, .prod-card:hover, .wa-float:hover { transform: none; }
}
