/*
Theme Name: 중국 AI 마케팅 (aipado)
Theme URI: https://chinaai.kr
Author: aipado
Description: 책 『중국 AI 마케팅』 홍보 랜딩 + "책 속 인사이트" 연재 커스텀 테마. 라이트 테마 전용.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: aipado
*/

/* ============================================================
   디자인 토큰
   ============================================================ */
:root{
  --red:#C8102E;
  --red-dark:#A50D26;
  --ivory:#FBF7EF;
  --gold:#C9A227;
  --ink:#1A1A1A;
  --gray:#5b5b5b;
  --line:#e6e1d6;
  --white:#ffffff;
  --shadow:0 6px 28px rgba(26,26,26,.08);
  --shadow-lg:0 14px 50px rgba(26,26,26,.14);
  --maxw:1120px;
  --radius:16px;
  --font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",system-ui,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
}

/* ============================================================
   기본
   ============================================================ */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--ivory);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  word-break:keep-all;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{line-height:1.25;margin:0;font-weight:800;letter-spacing:-.02em;}
p{margin:0;}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.section{padding:84px 0;}
.section--tight{padding:60px 0;}
.eyebrow{
  display:inline-block;font-size:13px;font-weight:800;letter-spacing:.18em;
  text-transform:uppercase;color:var(--red);margin-bottom:14px;
}
.section-title{font-size:clamp(26px,3.6vw,40px);text-align:center;}
.section-lead{
  max-width:760px;margin:18px auto 0;text-align:center;color:var(--gray);
  font-size:clamp(15px,1.7vw,18px);
}
.center{text-align:center;}

/* 버튼 */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:800;font-size:15px;padding:14px 24px;border-radius:999px;
  border:2px solid transparent;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,background .15s ease;
  letter-spacing:-.01em;
}
.btn:hover{transform:translateY(-2px);}
.btn--red{background:var(--red);color:#fff;box-shadow:0 8px 22px rgba(200,16,46,.28);}
.btn--red:hover{background:var(--red-dark);}
.btn--ghost{background:#fff;color:var(--ink);border-color:var(--line);}
.btn--ghost:hover{border-color:var(--red);color:var(--red);}
.btn--gold{background:var(--gold);color:#1a1a1a;}
.btn--lg{padding:17px 30px;font-size:16px;}
.btn--block{width:100%;}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;}

/* ============================================================
   헤더
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid #e0e0e0;
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:66px;}
.brand{font-weight:900;font-size:20px;letter-spacing:-.03em;color:var(--ink);}
.brand b{color:var(--red);}
.nav{display:flex;align-items:center;gap:26px;}
.nav a.navlink{font-weight:700;font-size:15px;color:#333;transition:color .15s;}
.nav a.navlink:hover{color:var(--red);}
.nav-cta{padding:10px 20px;font-size:14px;}
.menu-toggle{display:none;background:none;border:0;font-size:26px;cursor:pointer;color:var(--ink);}

/* ============================================================
   히어로
   ============================================================ */
.hero{
  position:relative;color:#fff;text-align:center;overflow:hidden;
  background:linear-gradient(135deg,#1a1a1a 0%,#4a0c14 55%,#7a0f1f 100%);
}
.hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;}
.hero__overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,10,10,.62),rgba(20,5,8,.78));}
.hero__inner{position:relative;padding:120px 24px 110px;max-width:920px;margin:0 auto;}
.hero h1{font-size:clamp(30px,5.2vw,58px);line-height:1.18;text-shadow:0 2px 18px rgba(0,0,0,.35);}
.hero h1 em{font-style:normal;color:var(--gold);}
.hero__sub{margin:24px auto 0;max-width:760px;font-size:clamp(15px,2vw,19px);color:#f0e9e0;line-height:1.7;}
.hero__tail{margin-top:18px;font-size:14px;letter-spacing:.04em;color:#d9ccc2;}
.hero .btn-row{margin-top:36px;}
.hero .badge{
  display:inline-block;margin-bottom:22px;padding:7px 16px;border:1px solid rgba(255,255,255,.4);
  border-radius:999px;font-size:13px;font-weight:700;letter-spacing:.1em;color:#fff;background:rgba(255,255,255,.08);
}

/* ============================================================
   한 줄 정의
   ============================================================ */
.definition{background:var(--ink);color:#fff;text-align:center;}
.definition .wrap{padding:64px 24px;}
.definition h2{font-size:clamp(24px,3.4vw,38px);}
.definition h2 em{font-style:normal;color:var(--gold);}
.definition p{margin-top:16px;color:#cfc8bf;font-size:clamp(15px,1.8vw,18px);}

/* ============================================================
   질문 섹션
   ============================================================ */
.q-lead{
  max-width:820px;margin:0 auto 40px;text-align:center;
  font-size:clamp(17px,2.2vw,22px);font-weight:700;line-height:1.6;
}
.q-list{display:grid;gap:14px;max-width:860px;margin:0 auto;}
.q-item{
  display:flex;gap:16px;align-items:flex-start;background:#fff;border:1px solid var(--line);
  border-radius:14px;padding:20px 22px;box-shadow:var(--shadow);
}
.q-item .q-mark{
  flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--red);color:#fff;
  display:grid;place-items:center;font-weight:900;font-size:15px;
}
.q-item p{font-size:clamp(15px,1.8vw,18px);font-weight:600;}

/* ============================================================
   4 포인트
   ============================================================ */
.points{background:#fff;}
.point-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:46px;}
.point-card{
  border:1px solid var(--line);border-radius:var(--radius);padding:30px 28px;background:var(--ivory);
  transition:transform .15s,box-shadow .15s;
}
.point-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
.point-card .pnum{font-size:13px;font-weight:900;letter-spacing:.16em;color:var(--gold);}
.point-card h3{font-size:21px;margin:10px 0 12px;}
.point-card p{color:var(--gray);font-size:15.5px;}

/* ============================================================
   책 속으로 (인용)
   ============================================================ */
.quotes{background:var(--ivory);}
.quote-feature{
  max-width:880px;margin:0 auto 36px;text-align:center;font-size:clamp(18px,2.4vw,24px);
  font-weight:800;line-height:1.5;color:var(--ink);
}
.quote-feature span{color:var(--red);}
.quote-grid{display:grid;gap:22px;max-width:920px;margin:0 auto;}
.quote-box{
  background:#fff;border-left:6px solid var(--red);border-radius:0 14px 14px 0;
  padding:26px 30px;box-shadow:var(--shadow);
}
.quote-box .q{font-size:clamp(17px,2vw,21px);font-weight:700;line-height:1.55;}
.quote-box .by{margin-top:12px;color:var(--gray);font-size:14px;}
.quote-box .by:before{content:"— ";}

/* ============================================================
   목차
   ============================================================ */
.toc{background:#fff;}
.toc-list{display:grid;gap:14px;max-width:880px;margin:46px auto 0;}
.toc-row{display:flex;gap:18px;align-items:flex-start;padding:18px 22px;border:1px solid var(--line);border-radius:14px;background:var(--ivory);}
.toc-row .num{
  flex:0 0 auto;width:44px;height:44px;border-radius:12px;background:var(--red);color:#fff;
  display:grid;place-items:center;font-weight:900;font-size:18px;
}
.toc-row .tc-body h4{font-size:18px;}
.toc-row .tc-body p{color:var(--gray);font-size:14.5px;margin-top:4px;}

/* ============================================================
   추천 대상
   ============================================================ */
.audience{background:var(--ivory);}
.audience-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:42px;align-items:center;margin-top:40px;}
.audience-list{display:grid;gap:14px;}
.audience-list li{
  list-style:none;display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:18px 20px;font-size:16px;font-weight:600;box-shadow:var(--shadow);
}
.audience-list .ck{flex:0 0 auto;color:var(--red);font-weight:900;font-size:18px;}
.audience-figure img{border-radius:var(--radius);box-shadow:var(--shadow-lg);width:100%;object-fit:cover;}
.audience-figure.is-empty{
  border-radius:var(--radius);min-height:320px;
  background:linear-gradient(135deg,#fff,#f2ebdd);border:1px dashed var(--line);
  display:grid;place-items:center;color:var(--gray);font-weight:700;
}

/* ============================================================
   저자
   ============================================================ */
.author{background:#fff;}
.author-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:48px;align-items:center;margin-top:30px;}
.author-media{position:relative;}
.author-media .main{border-radius:var(--radius);box-shadow:var(--shadow-lg);width:100%;}
.author-media .is-empty{min-height:360px;border-radius:var(--radius);background:linear-gradient(135deg,#faf6ee,#efe7d6);border:1px dashed var(--line);display:grid;place-items:center;color:var(--gray);font-weight:700;}
.author-media .sub{
  position:absolute;right:-14px;bottom:-14px;width:46%;border-radius:12px;border:4px solid #fff;
  box-shadow:var(--shadow-lg);
}
.author-body h2{font-size:clamp(24px,3vw,34px);}
.author-body .role{color:var(--red);font-weight:800;margin:6px 0 18px;font-size:16px;}
.author-body p{color:var(--gray);font-size:16px;}
.author-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;}
.author-tags span{background:var(--ivory);border:1px solid var(--line);border-radius:999px;padding:8px 16px;font-size:14px;font-weight:700;}

/* ============================================================
   추천사
   ============================================================ */
.endorse{background:var(--ivory);}
.endorse-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:46px;}
.endorse-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px 30px;box-shadow:var(--shadow);}
.endorse-card .mark{color:var(--gold);font-size:46px;font-weight:900;line-height:.6;}
.endorse-card .text{font-size:16.5px;font-weight:600;margin:10px 0 18px;line-height:1.65;}
.endorse-card .who{font-size:14px;color:var(--red);font-weight:800;}

/* ============================================================
   구매 CTA 밴드
   ============================================================ */
.buy{background:var(--red);color:#fff;}
.buy .wrap{padding:72px 24px;}
.buy-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:48px;align-items:center;}
.buy-cover img{border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.4);width:100%;max-width:320px;margin:0 auto;}
.buy-cover .is-empty{min-height:380px;max-width:300px;margin:0 auto;border-radius:12px;background:rgba(255,255,255,.12);border:1px dashed rgba(255,255,255,.4);display:grid;place-items:center;color:#fff;font-weight:700;}
.buy-body h2{font-size:clamp(24px,3.2vw,36px);color:#fff;}
.buy-body .meta{margin:18px 0;color:#ffe3e7;font-size:15px;line-height:1.9;}
.buy-body .meta b{color:#fff;}
.buy-price{display:flex;align-items:baseline;gap:14px;margin:6px 0 24px;}
.buy-price .now{font-size:34px;font-weight:900;}
.buy-price .was{font-size:18px;color:#ffc2cc;text-decoration:line-through;}
.buy-price .off{background:var(--gold);color:#1a1a1a;font-weight:900;font-size:14px;padding:4px 12px;border-radius:999px;}
.buy .btn-row{justify-content:flex-start;}
.buy .btn--ghost{background:#fff;color:var(--red);border-color:#fff;}
.buy .btn--ghost:hover{background:#fff0f2;color:var(--red-dark);}

/* ============================================================
   책 속 인사이트 (연재)
   ============================================================ */
.insight{background:#fff;}
.insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:46px;}
.insight-card{
  background:var(--ivory);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s;
}
.insight-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
.insight-card .thumb{aspect-ratio:16/10;background:linear-gradient(135deg,#f3ecdd,#e9dfca);overflow:hidden;}
.insight-card .thumb img{width:100%;height:100%;object-fit:cover;}
.insight-card .ic-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1;}
.insight-card .cat{font-size:12px;font-weight:800;letter-spacing:.1em;color:var(--red);}
.insight-card h3{font-size:18px;margin:8px 0 10px;line-height:1.4;}
.insight-card .excerpt{color:var(--gray);font-size:14.5px;flex:1;}
.insight-card .more{margin-top:16px;font-weight:800;color:var(--red);font-size:14px;}
.insight-empty{margin-top:40px;text-align:center;color:var(--gray);background:var(--ivory);border:1px dashed var(--line);border-radius:var(--radius);padding:50px 24px;}

/* ============================================================
   글 하단 구매 배너 (single)
   ============================================================ */
.post-cta{
  margin:48px 0 10px;background:var(--ink);color:#fff;border-radius:var(--radius);
  padding:32px 30px;text-align:center;
}
.post-cta p{font-size:16px;margin-bottom:18px;color:#e9e2d8;}
.post-cta p b{color:var(--gold);}

/* ============================================================
   콘텐츠(single / archive)
   ============================================================ */
.page-head{background:var(--ivory);border-bottom:1px solid var(--line);padding:64px 0 50px;text-align:center;}
.page-head h1{font-size:clamp(28px,4vw,44px);}
.page-head p{margin-top:14px;color:var(--gray);}
.content{max-width:760px;margin:0 auto;padding:60px 24px;}
.content .post-meta{color:var(--gray);font-size:14px;margin-bottom:8px;}
.content h1.entry-title{font-size:clamp(26px,3.6vw,38px);margin-bottom:18px;}
.entry-content{font-size:17px;line-height:1.85;}
.entry-content > *{margin-bottom:22px;}
.entry-content h2{font-size:26px;margin:40px 0 14px;}
.entry-content h3{font-size:21px;margin:32px 0 12px;}
.entry-content img{border-radius:12px;}
.entry-content blockquote{border-left:5px solid var(--red);background:var(--ivory);margin:0;padding:16px 22px;border-radius:0 12px 12px 0;}
.entry-content a{color:var(--red);text-decoration:underline;}
.entry-content ul,.entry-content ol{padding-left:22px;}

/* 아카이브 리스트 */
.archive-list{max-width:880px;margin:0 auto;padding:56px 24px;display:grid;gap:20px;}
.archive-item{display:grid;grid-template-columns:200px 1fr;gap:24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s;}
.archive-item:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);}
.archive-item .thumb{background:linear-gradient(135deg,#f3ecdd,#e9dfca);min-height:140px;}
.archive-item .thumb img{width:100%;height:100%;object-fit:cover;}
.archive-item .ai-body{padding:22px 24px 22px 0;}
.archive-item .cat{font-size:12px;font-weight:800;color:var(--red);letter-spacing:.08em;}
.archive-item h2{font-size:21px;margin:8px 0 10px;}
.archive-item p{color:var(--gray);font-size:15px;}
.archive-item .date{color:#999;font-size:13px;margin-top:10px;}
/* 히어로 아래 진행 중 소식 강조 띠 */
.news-strip{background:var(--gold);color:var(--ink);}
.news-strip .wrap{padding:14px 24px;display:flex;flex-direction:column;gap:10px;}
.news-strip__row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:var(--ink);}
.news-strip__row + .news-strip__row{border-top:1px solid rgba(26,26,26,.18);padding-top:10px;}
.news-strip__badge{background:var(--ink);color:#fff;font-weight:800;font-size:13px;padding:5px 13px;border-radius:999px;white-space:nowrap;}
.news-strip__title{font-weight:800;font-size:16px;flex:1;min-width:200px;}
.news-strip__more{font-weight:800;font-size:14px;color:var(--red);white-space:nowrap;}
.news-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;}
@media (max-width:520px){.news-strip__title{flex-basis:100%;}}

.archive-item.is-sticky{border-color:var(--red);box-shadow:0 8px 30px rgba(200,16,46,.14);}
.badge-live{display:inline-block;background:var(--red);color:#fff;font-weight:800;font-size:11px;
  letter-spacing:.04em;padding:3px 9px;border-radius:999px;margin-right:8px;vertical-align:middle;}
.news-back{max-width:760px;margin:18px auto 0;padding:0 24px;}
.news-back a{font-weight:800;color:var(--red);font-size:15px;}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:40px;flex-wrap:wrap;}
.pagination .page-numbers{padding:9px 15px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:700;}
.pagination .current{background:var(--red);color:#fff;border-color:var(--red);}

/* ============================================================
   푸터
   ============================================================ */
.site-footer{background:var(--ink);color:#cfc8bf;}
.site-footer .wrap{padding:56px 24px 30px;}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:40px;align-items:start;}
.foot-brand{font-size:20px;font-weight:900;color:#fff;}
.foot-brand b{color:var(--red);}
.site-footer p{font-size:14.5px;margin-top:12px;line-height:1.8;}
.foot-links{display:flex;flex-direction:column;gap:10px;}
.foot-links a{font-weight:700;color:#fff;font-size:15px;}
.foot-links a:hover{color:var(--gold);}
.foot-bottom{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;color:#8d847a;text-align:center;}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width:860px){
  .section{padding:60px 0;}
  .nav{position:fixed;inset:66px 0 auto 0;background:#fff;flex-direction:column;align-items:stretch;
    gap:0;padding:8px 20px 20px;border-bottom:1px solid var(--line);box-shadow:var(--shadow);
    transform:translateY(-130%);transition:transform .25s ease;}
  .nav.open{transform:translateY(0);}
  .nav a.navlink{padding:14px 4px;border-bottom:1px solid var(--line);}
  .nav-cta{margin-top:12px;}
  .menu-toggle{display:block;}
  .point-grid,.endorse-grid,.audience-grid,.author-grid,.buy-grid,.insight-grid{grid-template-columns:1fr;}
  .author-media .sub{position:static;width:60%;margin:14px 0 0;}
  .buy-body .btn-row,.buy .btn-row{justify-content:center;}
  .archive-item{grid-template-columns:1fr;}
  .archive-item .ai-body{padding:0 22px 22px;}
}
@media (max-width:520px){
  .hero__inner{padding:90px 20px 80px;}
  .btn{width:100%;}
  .btn-row{flex-direction:column;}
  .buy-price{flex-wrap:wrap;}
}
