/*
Theme Name: TopSalesCamp 销售铁军训练营
Description: 销售铁军训练营与原创文章的官网主题。
Version: 1.0.0
Requires at least: 5.2
Requires PHP: 7.3
Text Domain: topsalescamp
*/
:root {
    --sand: #f4f0e6;
    --ink: #171913;
    --ink-soft: #4e4d42;
    --light: #faf5e9;
    --ember: #be3d1b;
    --ember-hover: #9d2d11;
    --rule: #aaa393;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--sand); font: 16px/1.75 var(--sans); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #f3784b; outline-offset: 4px; }
img { display: block; height: auto; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; }
.wrap { width: min(1280px, calc(100% - 120px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; transform: translateY(-150%); z-index: 10; background: var(--light); color: var(--ink); padding: 10px; }
.skip:focus { transform: none; }
.masthead, .hero, .insights, .site-footer { background: var(--ink); color: var(--light); }
.masthead { border-bottom: 1px solid #736f61; }
.masthead-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 15px; align-items: center; white-space: nowrap; text-decoration: none; }
.brand strong { font-size: clamp(19px, 2.4vw, 30px); font-weight: 850; line-height: 1; letter-spacing: -.055em; }
.brand span { padding-left: 14px; border-left: 1px solid #787465; font-size: .9rem; font-weight: 700; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-weight: 700; }
nav a:not(.button) { text-decoration: none; }
nav a:not(.button):hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65em; padding: .66em 1.1em; border: 1px solid transparent; border-radius: 2px; min-height: 44px; font-size: .95rem; font-weight: 780; text-decoration: none; text-align: center; line-height: 1.35; }
.button.primary { background: var(--ember); color: white; }
.button.primary:hover { background: var(--ember-hover); }
.button.outline { border-color: var(--light); color: var(--light); }
.button.outline:hover { background: var(--light); color: var(--ink); }
.hero { display: grid; grid-template-columns: 49% 51%; min-height: 445px; }
.hero-copy { padding: clamp(50px, 6vw, 95px) clamp(26px, 4vw, 70px) clamp(48px, 5vw, 76px) max(60px, calc((100vw - 1280px) / 2)); align-self: center; }
.hero h1 { font: 800 clamp(2.5rem, 4.5vw, 4.75rem)/1.12 var(--serif); letter-spacing: -.055em; }
.hero p { max-width: 42ch; margin-top: 1.2rem; font-size: clamp(.95rem, 1.35vw, 1.14rem); color: #e5dfd2; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 1.6rem; }
.hero-media { position: relative; min-height: 360px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.training { padding-block: 46px 54px; }
.section-heading { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); }
.section-heading::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.section-heading h2, .section-heading h1 { font: 800 clamp(2rem, 4.1vw, 3.8rem)/1.12 var(--serif); letter-spacing: -.045em; }
.section-heading > a { order: 1; flex: 0 0 auto; font-weight: 730; text-decoration: none; }
.section-heading > a:hover { text-decoration: underline; }
.stage { display: grid; grid-template-columns: minmax(190px, .85fr) minmax(160px, 1fr) minmax(300px, 1.5fr); align-items: center; gap: clamp(20px, 2.5vw, 38px); padding: 23px 0; border-bottom: 1px solid var(--rule); }
.stage:first-of-type { margin-top: 14px; }
.stage:last-child { border-bottom: 0; padding-bottom: 0; }
.stage-title { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.stage-title span { color: var(--ember); font: italic 700 clamp(2.5rem, 4.25vw, 4.2rem)/1 Georgia, serif; font-variant-numeric: lining-nums; }
.stage-title h3 { font: 780 clamp(1.45rem, 2.4vw, 2.5rem)/1.2 var(--serif); }
.stage img { width: 100%; height: clamp(112px, 11vw, 162px); object-fit: cover; }
.stage-copy { border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.1vw, 32px); }
.stage-copy h4 { font-size: clamp(1.05rem, 1.65vw, 1.42rem); font-weight: 850; margin-bottom: 5px; }
.stage-copy p { color: var(--ink-soft); font-size: .94rem; }
.practices { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; padding-left: 0; margin: 8px 0 0; list-style: none; font-size: .83rem; font-weight: 700; }
.practices li::before { content: "·"; color: var(--ember); margin-right: .42em; }
.insights { padding: 43px 0 45px; }
.insights-intro { margin: 12px 0 22px; color: #e0d9c9; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.insight-grid a { display: block; text-decoration: none; }
.insight-grid a:hover h3 { text-decoration: underline; }
.insight-grid img { width: 100%; aspect-ratio: 2.65; object-fit: cover; }
.insight-grid time, .journal time { display: block; margin: 9px 0 4px; font-size: .83rem; font-variant-numeric: tabular-nums; }
.insight-grid h3 { font-size: 1.14rem; font-weight: 770; }
.consult { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 48px; }
.consult h2 { font: 800 clamp(1.65rem, 3vw, 2.8rem)/1.23 var(--serif); }
.consult p { margin-top: 9px; color: var(--ink-soft); }
.consult .button { flex-wrap: wrap; flex-shrink: 0; }
.consult small { font-size: .8rem; font-weight: 600; }
.site-footer { padding: 26px 0; color: #e2d8c5; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .82rem; }
.footer-inner .brand strong { font-size: 1.18rem; }
.journal { padding-block: 54px; min-height: 65vh; }
.article-body, .journal-list, .comments { max-width: 800px; margin-inline: auto; }
.article-body h1 { margin-top: 1rem; font: 800 clamp(1.95rem, 5vw, 3.45rem)/1.22 var(--serif); }
.byline { margin: 12px 0 24px; color: var(--ink-soft); }
.byline time { display: inline; }
.prose { margin-top: 26px; overflow-wrap: break-word; }
.prose p, .prose blockquote, .prose ul, .prose ol, .prose pre, .prose figure { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 { margin: 1.25em 0 .5em; }
.prose iframe { max-width: 100%; }
.prose pre { white-space: pre-wrap; }
.prose blockquote { border-left: 3px solid var(--ember); padding-left: 1em; }
.journal-list article { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.journal-list h2 { margin-bottom: 8px; font-size: clamp(1.18rem, 3vw, 1.65rem); }
.journal-list a { text-decoration: none; }
.journal-list a:hover { text-decoration: underline; }
.pagination { margin-top: 25px; }
.nav-links { display: flex; gap: 1em; flex-wrap: wrap; }
.comments { margin-top: 36px; }
.comments textarea { width: min(100%, 550px); }
.post-tags { margin-top: 22px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1000px) {
    .wrap { width: calc(100% - 56px); }
    .hero-copy { padding-left: 28px; }
    .stage { grid-template-columns: minmax(150px, .92fr) minmax(128px, .8fr) minmax(240px, 1.4fr); }
}
@media (max-width: 740px) {
    .wrap { width: calc(100% - 36px); }
    .masthead-inner { flex-wrap: wrap; gap: 10px 16px; padding-block: 13px; }
    .brand { gap: 9px; }
    .brand span { padding-left: 9px; font-size: .79rem; }
    nav { flex-wrap: wrap; gap: 7px 15px; font-size: .81rem; }
    nav .button { min-height: 36px; font-size: .8rem; padding: .45em .62em; }
    .hero { display: flex; flex-direction: column; min-height: 0; }
    .hero-copy { padding: 33px 18px 26px; align-self: stretch; }
    .hero h1 { font-size: clamp(2.35rem, 9vw, 3.7rem); }
    .hero p { margin-top: .8rem; }
    .hero-media { height: clamp(215px, 50vw, 350px); min-height: 0; }
    .actions { margin-top: 1.15rem; gap: 8px; }
    .actions .button { padding-inline: .68em; font-size: .83rem; }
    .training, .insights { padding-block: 30px; }
    .stage { grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 8px 13px; padding-block: 16px; }
    .stage-title { grid-column: 2; grid-row: 1; gap: 8px; }
    .stage-title span { font-size: 1.8rem; }
    .stage-title h3 { font-size: 1.45rem; }
    .stage img { grid-column: 1; grid-row: 1 / span 2; height: 80px; }
    .stage-copy { grid-column: 2; border: 0; padding: 0; }
    .stage-copy p { font-size: .86rem; }
    .practices { font-size: .81rem; }
    .section-heading > a { font-size: .82rem; }
    .insight-grid { grid-template-columns: 1fr; gap: 0; }
    .insight-grid article + article { border-top: 1px solid #736f61; }
    .insight-grid a { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 3px 13px; padding: 11px 0; }
    .insight-grid img { grid-row: 1 / span 2; height: 66px; }
    .insight-grid time { margin: 0; }
    .insight-grid h3 { font-size: 1rem; }
    .consult, .footer-inner { flex-direction: column; align-items: flex-start; }
    .consult { padding-block: 34px; gap: 15px; }
    .consult .button { width: 100%; }
    .journal { padding-block: 36px; }
}
