/*
Theme Name: 知买推客网
Theme URI: https://laodad.com/zhimai/
Author: 老达
Description: 知买推客网专用主题，用于知买推客教程、选品清单、代理成长和省钱内容运营。
Version: 1.0.0
Text Domain: zhimai-tuike
*/

:root {
  --zt-orange: #ff6a00;
  --zt-orange-dark: #d84e00;
  --zt-ink: #1d2320;
  --zt-muted: #66736c;
  --zt-line: #e7ece8;
  --zt-bg: #fbfcf8;
  --zt-soft: #f5f8f1;
  --zt-green: #2f7d62;
  --zt-gold: #b8761a;
  --zt-radius: 8px;
  --zt-shadow: 0 16px 45px rgba(31, 41, 35, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--zt-ink);
  background: var(--zt-bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.zt-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.zt-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(231, 236, 232, .9);
  background: rgba(251, 252, 248, .92);
  backdrop-filter: blur(18px);
}

.zt-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.zt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.zt-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--zt-orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 106, 0, .25);
}

.zt-brand__name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.zt-brand__note {
  display: block;
  margin-top: 2px;
  color: var(--zt-muted);
  font-size: 12px;
  line-height: 1.2;
}

.zt-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #36413b;
  font-size: 14px;
  font-weight: 650;
}

.zt-nav .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zt-nav a {
  padding: 8px 0;
}

.zt-nav a:hover,
.zt-nav .current-menu-item > a {
  color: var(--zt-orange-dark);
}

.zt-menu-toggle {
  display: none;
  border: 1px solid var(--zt-line);
  background: #fff;
  color: var(--zt-ink);
  border-radius: 8px;
  padding: 8px 10px;
}

.zt-button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--zt-orange);
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 12px 28px rgba(255, 106, 0, .18);
}

.zt-button:hover,
.wp-block-button__link:hover {
  background: var(--zt-orange-dark);
}

.zt-button--ghost {
  background: #fff;
  color: var(--zt-ink);
  border-color: var(--zt-line);
  box-shadow: none;
}

.zt-button--ghost:hover {
  color: var(--zt-orange-dark);
  background: #fff7f0;
  border-color: rgba(255, 106, 0, .35);
}

.zt-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 58px;
  background:
    linear-gradient(110deg, rgba(255, 106, 0, .12), rgba(47, 125, 98, .06) 46%, rgba(255, 255, 255, 0) 78%),
    radial-gradient(circle at 84% 18%, rgba(255, 106, 0, .12), transparent 28%),
    var(--zt-bg);
}

.zt-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.zt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--zt-orange-dark);
  font-size: 14px;
  font-weight: 800;
}

.zt-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--zt-orange);
  border-radius: 999px;
}

.zt-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
}

.zt-hero__lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: #4d5b53;
  font-size: 19px;
}

.zt-hero__actions,
.zt-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.zt-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.zt-stat {
  border-left: 3px solid var(--zt-orange);
  padding: 8px 0 8px 14px;
}

.zt-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.zt-stat span {
  display: block;
  color: var(--zt-muted);
  font-size: 13px;
}

.zt-hero-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--zt-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--zt-shadow);
}

.zt-hero-card__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.zt-flow {
  display: grid;
  gap: 12px;
}

.zt-flow__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--zt-line);
  border-radius: 8px;
  background: #fff;
}

.zt-flow__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff2e7;
  color: var(--zt-orange-dark);
  font-weight: 900;
}

.zt-flow__item strong {
  display: block;
  line-height: 1.35;
}

.zt-flow__item span {
  display: block;
  margin-top: 2px;
  color: var(--zt-muted);
  font-size: 13px;
  line-height: 1.5;
}

.zt-section {
  padding: 68px 0;
}

.zt-section--soft {
  background: var(--zt-soft);
}

.zt-section__head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.zt-section__head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.zt-section__head p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--zt-muted);
}

.zt-grid {
  display: grid;
  gap: 18px;
}

.zt-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zt-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zt-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zt-card,
.zt-post-card {
  border: 1px solid var(--zt-line);
  border-radius: 8px;
  background: #fff;
}

.zt-card {
  padding: 22px;
}

.zt-card h3,
.zt-post-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.zt-card p,
.zt-post-card p {
  color: var(--zt-muted);
}

.zt-card p:last-child {
  margin-bottom: 0;
}

.zt-card__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #fff2e7;
  color: var(--zt-orange-dark);
  font-size: 12px;
  font-weight: 800;
}

.zt-post-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.zt-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(31, 41, 35, .08);
}

.zt-post-card__media {
  min-height: 10px;
  background: linear-gradient(90deg, var(--zt-orange), #ffb15c 52%, var(--zt-green));
}

.zt-post-card__body {
  padding: 20px;
}

.zt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--zt-muted);
  font-size: 12px;
}

.zt-meta a,
.zt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0f4ef;
  color: #435047;
  font-weight: 700;
}

.zt-cta-band {
  padding: 44px;
  border-radius: 8px;
  background: #1f2923;
  color: #fff;
}

.zt-cta-band h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
}

.zt-cta-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, .76);
}

.zt-footer {
  padding: 46px 0 34px;
  border-top: 1px solid var(--zt-line);
  background: #fff;
  color: var(--zt-muted);
  font-size: 14px;
}

.zt-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: start;
}

.zt-page-hero {
  padding: 58px 0 36px;
  background: linear-gradient(100deg, rgba(255, 106, 0, .11), rgba(47, 125, 98, .06));
  border-bottom: 1px solid var(--zt-line);
}

.zt-page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
}

.zt-page-hero p {
  max-width: 760px;
  color: var(--zt-muted);
  font-size: 18px;
}

.zt-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  padding: 46px 0 72px;
}

.zt-article {
  border: 1px solid var(--zt-line);
  border-radius: 8px;
  background: #fff;
  padding: min(6vw, 48px);
}

.zt-article h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
}

.zt-article h2 {
  margin-top: 34px;
  font-size: 26px;
  line-height: 1.28;
}

.zt-article h3 {
  margin-top: 26px;
}

.zt-article p,
.zt-article li {
  color: #3f4b45;
}

.zt-article blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--zt-orange);
  background: #fff7f0;
}

.zt-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.zt-article th,
.zt-article td {
  padding: 10px 12px;
  border: 1px solid var(--zt-line);
  text-align: left;
}

.zt-sidebar {
  display: grid;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.zt-widget {
  border: 1px solid var(--zt-line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.zt-widget h2,
.zt-widget h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.zt-widget ul {
  margin: 0;
  padding-left: 18px;
}

.zt-widget li {
  margin: 8px 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .zt-hero__grid,
  .zt-grid--2,
  .zt-grid--3,
  .zt-grid--4,
  .zt-content-layout {
    grid-template-columns: 1fr;
  }

  .zt-section__head,
  .zt-footer__grid {
    display: block;
  }

  .zt-sidebar {
    position: static;
  }

  .zt-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    padding: 16px;
    border: 1px solid var(--zt-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zt-shadow);
  }

  .zt-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .zt-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .zt-container {
    width: min(100% - 28px, 1120px);
  }

  .zt-hero {
    padding-top: 48px;
  }

  .zt-hero__stats {
    grid-template-columns: 1fr;
  }

  .zt-cta-band {
    padding: 28px;
  }

  .zt-brand__note {
    display: none;
  }
}
