/* ================= BASE ================= */
:root{
  --bg:#FFFFFF; --bg2:#F7F6FC; --bg3:#F2EEFF;
  --purple:#7C3AED; --purple-d:#6D28D9; --purple-l:#A78BFA;
  --green:#16A34A; --green-l:#22C55E; --green-soft:#E8F7EF;
  --pink:#EC4899;
  --grad:linear-gradient(135deg,#7C3AED,#A855F7);
  --grad-green:linear-gradient(135deg,#16A34A,#22C55E);
  --text:#1F2430; --muted:#6B7280; --border:#E9E7F2; --radius:16px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none;transition:all .18s}
img{max-width:100%;height:auto;display:block;object-fit:cover}
ul,ol{list-style:none}
button{font-family:inherit;cursor:pointer}
.container{width:1180px;max-width:93%;margin:0 auto}
.section{padding:60px 0}
.section-alt{background:var(--bg2)}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.grad-green{background:var(--grad-green);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* ================= HEADER ================= */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;height:70px}
.brand{display:flex;align-items:center;gap:9px;flex-shrink:0}
.brand-icon{width:38px;height:38px;border-radius:10px;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 6px 16px rgba(124,58,237,.3)}
.brand-text{font-size:19px;font-weight:900;color:var(--text);line-height:1;white-space:nowrap}
.brand-text b{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.main-nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.main-nav a{font-size:14px;font-weight:600;color:#4b5162;padding:6px 0}
.main-nav a:hover,.main-nav a.active{color:var(--purple-d)}
.header-right{display:flex;align-items:center;gap:10px}
.btn-grad{background:var(--grad);color:#fff;font-weight:800;font-size:13.5px;padding:11px 20px;border-radius:10px;display:inline-block;box-shadow:0 6px 18px rgba(124,58,237,.3)}
.btn-grad:hover{filter:brightness(1.07);transform:translateY(-1px)}
.btn-line{background:#fff;color:var(--purple-d);font-weight:700;font-size:13.5px;padding:11px 20px;border-radius:10px;border:1.5px solid var(--border);display:inline-block}
.btn-line:hover{border-color:var(--purple-l);background:var(--bg3)}
.nav-toggle{display:none;background:#fff;border:1.5px solid var(--border);color:var(--text);font-size:18px;padding:8px 11px;border-radius:9px}
.mobile-menu{display:none;background:#fff;border-top:1px solid var(--border);padding:8px 5% 16px}
.mobile-menu a{display:block;padding:11px 0;font-size:15px;font-weight:600;color:var(--text);border-bottom:1px solid var(--border)}
.mobile-menu.open{display:block}

/* ================= HERO ================= */
.hero{position:relative;overflow:hidden;text-align:center;padding:64px 0 56px;background:radial-gradient(circle at 50% -10%,#EEE6FF 0%,#F3F8F4 55%,#FFFFFF 100%)}
.hero-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--purple-d);background:#fff;border:1px solid var(--border);padding:7px 16px;border-radius:20px;margin-bottom:20px;box-shadow:0 4px 14px rgba(124,58,237,.08)}
.hero h1{font-size:46px;font-weight:900;line-height:1.12;letter-spacing:-1px;color:var(--text);max-width:820px;margin:0 auto 18px}
.hero p{font-size:17px;color:var(--muted);max-width:640px;margin:0 auto 28px}
.hero-btns{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:28px}
.hero-btns .btn-grad,.hero-btns .btn-line{padding:14px 26px;font-size:15px}
.hero-chips{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.hero-chips span{font-size:12.5px;font-weight:700;color:#3f4658;background:#fff;border:1px solid var(--border);padding:8px 15px;border-radius:20px}
.hero-chips span::before{content:"✔ ";color:var(--green)}

/* ================= CAT ROW ================= */
.cat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:-30px;position:relative;z-index:5}
.cat-round{background:#fff;border:1px solid var(--border);border-radius:16px;padding:22px;text-align:center;box-shadow:0 8px 26px rgba(124,58,237,.06);transition:all .2s}
.cat-round:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(124,58,237,.14);border-color:var(--purple-l)}
.cat-round .cr-icon{width:54px;height:54px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;background:var(--bg3)}
.cat-round h3{font-size:15px;font-weight:800;color:var(--text);margin-bottom:4px}
.cat-round p{font-size:12px;color:var(--muted)}

/* ================= SECTION HEAD ================= */
.sec{text-align:center;margin-bottom:34px}
.sec .eyebrow{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--purple-d);background:var(--bg3);border:1px solid var(--border);padding:6px 15px;border-radius:20px;margin-bottom:12px}
.sec h2{font-size:32px;font-weight:900;color:var(--text);letter-spacing:-.5px;line-height:1.15}
.sec .sec-sub{font-size:15px;color:var(--muted);max-width:620px;margin:12px auto 0}

/* ================= BANNERS ================= */
.banners{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.banner{border-radius:18px;padding:30px;color:#fff;position:relative;overflow:hidden;min-height:180px;display:flex;flex-direction:column;justify-content:space-between;transition:all .25s}
.banner:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,0,0,.15)}
.banner.b1{background:linear-gradient(135deg,#6D28D9,#A855F7)}
.banner.b2{background:linear-gradient(135deg,#047857,#22C55E)}
.banner.b3{background:linear-gradient(135deg,#BE185D,#EC4899)}
.banner .b-tag{font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;opacity:.9}
.banner h3{font-size:23px;font-weight:900;line-height:1.15;margin:8px 0 14px}
.banner .b-link{font-size:13px;font-weight:800;color:#fff;background:rgba(255,255,255,.2);border-radius:8px;padding:9px 16px;display:inline-block;align-self:flex-start}
.banner .b-link:hover{background:rgba(255,255,255,.32)}

/* ================= ARTICLE GRID ================= */
.art-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.art-card{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden;transition:all .22s;display:flex;flex-direction:column;box-shadow:0 6px 20px rgba(124,58,237,.05)}
.art-card:hover{transform:translateY(-5px);box-shadow:0 16px 38px rgba(124,58,237,.14);border-color:var(--purple-l)}
.art-thumb{display:block;overflow:hidden}
.art-thumb img{width:100%;height:170px;transition:transform .4s}
.art-card:hover .art-thumb img{transform:scale(1.06)}
.art-body{padding:20px;display:flex;flex-direction:column;flex:1}
.art-meta{display:flex;gap:10px;align-items:center;margin-bottom:9px}
.art-cat{font-size:11px;font-weight:800;color:var(--purple-d);background:var(--bg3);padding:3px 10px;border-radius:6px}
.art-date{font-size:11.5px;color:var(--muted)}
.art-body h3{font-size:17px;font-weight:800;color:var(--text);line-height:1.35;margin-bottom:8px}
.art-body h3 a:hover{color:var(--purple-d)}
.art-body p{font-size:13.5px;color:var(--muted);margin-bottom:14px;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.art-read{font-size:13px;font-weight:800;color:var(--purple-d)}
.center-btn{text-align:center;margin-top:34px}

/* ================= APRENDER (ICON CARDS) ================= */
.learn-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.learn-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:26px 22px;text-align:center;transition:all .2s;box-shadow:0 6px 20px rgba(124,58,237,.04)}
.learn-card:hover{transform:translateY(-5px);border-color:var(--purple-l);box-shadow:0 14px 32px rgba(124,58,237,.12)}
.learn-card .lc-icon{width:56px;height:56px;margin:0 auto 14px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-size:26px;background:var(--green-soft)}
.learn-card h3{font-size:16px;font-weight:800;color:var(--text);margin-bottom:6px}
.learn-card p{font-size:12.5px;color:var(--muted)}

/* ================= TRUST + TESTIMONIALS ================= */
.trust-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:34px}
.trust-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px;text-align:center;box-shadow:0 6px 20px rgba(124,58,237,.04)}
.trust-card .tc-icon{width:48px;height:48px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;background:var(--green-soft)}
.trust-card h3{font-size:17px;font-weight:900;color:var(--purple-d);margin-bottom:4px}
.trust-card p{font-size:12.5px;color:var(--muted)}
.testi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.testi-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px;box-shadow:0 6px 18px rgba(124,58,237,.04)}
.testi-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.testi-avatar{width:38px;height:38px;border-radius:50%;background:var(--grad);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex-shrink:0}
.testi-name{font-size:13.5px;font-weight:800;color:var(--text)}
.testi-src{font-size:11px;color:var(--muted)}
.testi-stars{color:#F5B301;font-size:12px;margin-bottom:6px}
.testi-card p{font-size:12.5px;color:#5b6070}

/* ================= CTA BOX ================= */
.cta-box{background:linear-gradient(135deg,#6D28D9,#A855F7);border-radius:24px;padding:52px 30px;text-align:center;color:#fff;position:relative;overflow:hidden}
.cta-box .cta-stars{font-size:20px;color:#FDE047;margin-bottom:12px}
.cta-box h2{font-size:34px;font-weight:900;line-height:1.15;margin-bottom:12px}
.cta-box p{font-size:15px;opacity:.9;max-width:520px;margin:0 auto 24px}
.cta-box .btn-cta{background:#fff;color:var(--purple-d);font-weight:800;font-size:15px;padding:14px 32px;border-radius:12px;display:inline-block}
.cta-box .btn-cta:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.2)}

/* ================= FAQ ================= */
.faq-wrap{max-width:820px;margin:0 auto}
.faq-item{background:#fff;border:1px solid var(--border);border-radius:12px;margin-bottom:11px;overflow:hidden;box-shadow:0 4px 14px rgba(124,58,237,.04)}
.faq-item summary{cursor:pointer;padding:17px 20px;font-weight:700;font-size:15px;color:var(--text);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--purple-d);font-size:20px;font-weight:400;line-height:1}
.faq-item[open] summary::after{content:"−"}
.faq-item p{padding:0 20px 18px;font-size:13.5px;color:var(--muted)}

/* ================= FOOTER ================= */
.site-footer{background:var(--bg2);border-top:1px solid var(--border);padding:50px 0 20px;font-size:13px}
.footer-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:30px;margin-bottom:32px}
.footer-brand p{font-size:12.5px;color:var(--muted);margin:12px 0;max-width:300px;line-height:1.6}
.footer-social{display:flex;gap:8px;flex-wrap:wrap}
.footer-social a{width:34px;height:34px;background:#fff;border:1px solid var(--border);border-radius:9px;display:flex;align-items:center;justify-content:center;color:#5b6070}
.footer-social a:hover{background:var(--grad);color:#fff;border-color:transparent}
.footer-social svg{width:15px;height:15px;fill:currentColor}
.footer-col h4{font-size:12px;font-weight:800;color:var(--purple-d);text-transform:uppercase;letter-spacing:1px;margin-bottom:13px}
.footer-col ul li{margin-bottom:8px}
.footer-col ul li a{font-size:12.5px;color:#5b6070}
.footer-col ul li a:hover{color:var(--purple-d)}
.footer-resp{background:var(--green-soft);border:1px solid #CDEBD9;border-radius:12px;padding:16px 20px;font-size:12.5px;color:#2f6b4a;margin-bottom:20px}
.footer-bottom{border-top:1px solid var(--border);padding-top:16px;text-align:center}
.footer-bottom p{font-size:11.5px;color:var(--muted)}

/* ================= BREADCRUMB / PAGINATION / ARTICLE ================= */
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:16px}
.breadcrumb a{color:var(--purple-d)}
.breadcrumb span{color:var(--text);font-weight:600}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:32px;flex-wrap:wrap}
.pagination a,.pagination span{min-width:40px;height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--border);border-radius:9px;font-weight:700;font-size:14px;color:var(--text)}
.pagination a:hover,.pagination .current{background:var(--grad);border-color:transparent;color:#fff}
.article-main{padding:42px 0 60px}
.article-card{background:#fff;border:1px solid var(--border);border-radius:18px;max-width:860px;margin:0 auto;padding:44px 48px;box-shadow:0 10px 34px rgba(124,58,237,.06)}
.article-head{text-align:center;border-bottom:1px solid var(--border);padding-bottom:24px;margin-bottom:26px}
.article-cat{display:inline-block;font-size:11px;font-weight:800;color:var(--purple-d);background:var(--bg3);text-transform:uppercase;letter-spacing:.5px;padding:5px 13px;border-radius:14px;margin-bottom:13px}
.article-head h1{font-size:34px;font-weight:900;line-height:1.22;color:var(--text);margin-bottom:15px}
.article-meta{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.article-featured{margin-bottom:26px;border-radius:12px;overflow:hidden}
.article-content{font-size:16.5px;line-height:1.85;color:#3a4050}
.article-content p{margin-bottom:22px}
.article-content h2{font-size:26px;font-weight:800;margin:34px 0 16px;color:var(--text)}
.article-content h3{font-size:20px;font-weight:800;margin:26px 0 12px;color:var(--text)}
.article-content ul,.article-content ol{margin:0 0 22px 24px}
.article-content ul{list-style:disc}
.article-content ol{list-style:decimal}
.article-content li{margin-bottom:9px}
.article-content a{color:var(--purple-d);text-decoration:underline}
.article-content blockquote{border-left:4px solid var(--purple);background:var(--bg3);padding:14px 20px;margin:0 0 22px;border-radius:0 8px 8px 0;color:var(--purple-d)}
.article-content img{border-radius:10px;margin:18px 0}

/* 相关文章 + 上一篇下一篇（SEO 内链） */
.rel-section{margin-top:40px;border-top:1px solid var(--border);padding-top:28px}
.rel-title{font-size:20px;font-weight:900;color:var(--text);margin-bottom:16px}
.rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.rel-card{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:all .2s}
.rel-card:hover{border-color:var(--purple-l);box-shadow:0 8px 22px rgba(124,58,237,.1)}
.rel-card img{width:100%;height:96px;object-fit:cover}
.rel-body{padding:12px}
.rel-body h4{font-size:13px;font-weight:800;color:var(--text);line-height:1.35}
.rel-body h4 a:hover{color:var(--purple-d)}
.rel-body .rel-cat{font-size:10.5px;color:var(--purple-d);font-weight:700}
.article-nav{display:flex;justify-content:space-between;gap:18px;margin-top:34px;border-top:1px solid var(--border);padding-top:22px}
.article-nav div{flex:1}
.article-nav .nav-next{text-align:right}
.article-nav span{display:block;font-size:10.5px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.article-nav a{color:var(--purple-d);font-weight:800;font-size:14.5px}
.article-nav a:hover{text-decoration:underline}

/* ================= RESPONSIVE ================= */
@media (max-width:1080px){
  .main-nav{display:none}
  .nav-toggle{display:block}
  .cat-row,.learn-grid,.testi-grid{grid-template-columns:repeat(2,1fr)}
  .banners,.art-grid,.trust-cards,.rel-grid,.footer-top{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .hero h1{font-size:30px}
  .hero{padding:48px 0 44px}
  .sec h2{font-size:24px}
  .cat-row,.learn-grid,.banners,.art-grid,.trust-cards,.testi-grid,.rel-grid,.footer-top{grid-template-columns:1fr}
  .cat-row{margin-top:20px}
  .article-card{padding:24px 20px}
  .article-head h1{font-size:24px}
  .article-nav{flex-direction:column}
  .article-nav .nav-next{text-align:left}
  .cta-box h2{font-size:24px}
}
