/* ===== OpenClaw CN — Light Theme ===== */
/* Primary: #ff4d4d (coral) · Accent: #ff4d4d (cyan) · Container 1160px */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:56px}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans SC",sans-serif;color:#1e293b;background:#fafbfc;line-height:1.7;font-size:16px}
a{color:#ff4d4d;text-decoration:none}
a:hover{color:#e03e3e}
img{max-width:100%;height:auto}
.container{max-width:1160px;margin:0 auto;padding:0 20px}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 22px;border-radius:8px;font-size:.9rem;font-weight:600;transition:all .2s;border:none;cursor:pointer}
.btn--primary{background:linear-gradient(135deg,#ff4d4d 0%,#e03e3e 100%);color:#fff;box-shadow:0 2px 8px rgba(255,77,77,.2)}
.btn--primary:hover{background:linear-gradient(135deg,#e03e3e 0%,#cc2f2f 100%);color:#fff;box-shadow:0 4px 16px rgba(255,77,77,.3);transform:translateY(-1px)}
.btn--outline{border:1.5px solid #ff4d4d;color:#ff4d4d;background:transparent}
.btn--outline:hover{background:#ff4d4d;color:#fff}
.btn--ghost{color:#475569;background:rgba(0,0,0,.04)}
.btn--ghost:hover{background:rgba(0,0,0,.08);color:#1e293b}
.btn--dark{background:#1e293b;color:#fff}
.btn--dark:hover{background:#0f172a;color:#fff}
.btn--sm{padding:8px 16px;font-size:.85rem}
.btn--cyan{background:linear-gradient(135deg,#ff4d4d 0%,#ff4d4d 100%);color:#fff}
.btn--cyan:hover{background:linear-gradient(135deg,#ff4d4d 0%,#e03e3e 100%);color:#fff}

/* ===== Header ===== */
.site-header{background:#fff;border-bottom:1px solid #f0f0f0;position:sticky;top:0;z-index:100;transition:box-shadow .3s}
.site-header--scrolled{box-shadow:0 2px 20px rgba(0,0,0,.06)}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.site-header__right{display:flex;align-items:center;gap:22px}
.site-header__right a{color:#475569;font-size:.9rem;font-weight:500;transition:color .2s}
.site-header__right a:hover{color:#ff4d4d}
.site-header__brand{display:flex;align-items:center;gap:8px;flex-shrink:0}
.site-header__logo{width:36px;height:36px;border-radius:10px;object-fit:cover}
.site-header__brand-name{font-size:1.1rem;font-weight:700;color:#0f172a}
.site-header__burger{display:none;background:none;border:none;cursor:pointer;color:#475569;width:32px;height:32px}
.site-header__burger svg{width:24px;height:24px}

/* ===== Mobile overlay ===== */
.mobile-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.92);z-index:200;flex-direction:column;align-items:center;justify-content:center;gap:24px;opacity:0;transition:opacity .3s}
.mobile-overlay--open{display:flex;opacity:1}
.mobile-overlay__close{position:absolute;top:16px;right:20px;background:none;border:none;color:#fff;width:40px;height:40px;cursor:pointer}
.mobile-overlay__close svg{width:28px;height:28px}
.mobile-overlay a{color:#fff;font-size:1.4rem;font-weight:600;padding:8px 0;transition:color .2s}
.mobile-overlay a:hover{color:#ff4d4d}

@media(max-width:768px){
  .site-header__right{display:none}
  .site-header__brand{margin:0}
  .site-header__burger{display:block}
}

/* ===== Hero ===== */
.hero{background:linear-gradient(135deg,#fff5f5 0%,#fff5f5 50%,#fafbfc 100%);padding:72px 0 64px;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-60%;right:-10%;width:600px;height:600px;background:radial-gradient(circle,rgba(255,77,77,.06) 0%,transparent 70%);pointer-events:none}
.hero::after{content:'';position:absolute;bottom:-40%;left:-5%;width:500px;height:500px;background:radial-gradient(circle,rgba(255,77,77,.05) 0%,transparent 70%);pointer-events:none}
.hero__inner{display:flex;align-items:center;gap:48px;position:relative;z-index:1}
.hero__text{flex:1}
.hero__title{font-size:2.6rem;font-weight:800;line-height:1.25;margin-bottom:16px;color:#1e293b}
.hero__desc{font-size:1.1rem;color:#475569;margin-bottom:28px;line-height:1.7;max-width:520px}
.hero__btns{display:flex;gap:12px;flex-wrap:wrap}
.hero__visual{flex:0 0 280px;display:flex;align-items:center;justify-content:center}
.hero__logo-wrap{width:200px;height:200px;background:linear-gradient(135deg,rgba(255,77,77,.08),rgba(255,77,77,.08));border-radius:40px;display:flex;align-items:center;justify-content:center;border:2px solid rgba(255,77,77,.1)}
.hero__logo-icon{width:160px;height:160px;object-fit:cover;border-radius:24px}
@media(max-width:768px){
  .hero{padding:40px 0 36px}
  .hero__inner{flex-direction:column;gap:24px;text-align:center}
  .hero__title{font-size:1.8rem}
  .hero__desc{margin-left:auto;margin-right:auto}
  .hero__visual{flex:none}
  .hero__logo-wrap{width:140px;height:140px;border-radius:28px}
  .hero__logo-icon{width:110px;height:110px}
  .hero__btns{justify-content:center}
}

/* ===== Features bar ===== */
.features-bar{padding:40px 0;background:#fff;border-bottom:1px solid #f0f0f0}
.features-bar__inner{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.feature-item{display:flex;gap:12px;align-items:flex-start}
.feature-item__icon{font-size:1.8rem;flex-shrink:0;line-height:1;display:flex;align-items:center}
.feat-icon{width:28px;height:28px;color:#ff4d4d}
.feature-item__title{font-size:.95rem;font-weight:600;color:#0f172a;margin-bottom:2px}
.feature-item__desc{font-size:.82rem;color:#64748b;line-height:1.5}
@media(max-width:900px){.features-bar__inner{grid-template-columns:repeat(2,1fr);gap:20px}}
@media(max-width:500px){.features-bar__inner{grid-template-columns:1fr}}

/* ===== Section header ===== */
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.section-header__title{font-size:1.4rem;font-weight:700}

/* ===== News section & page ===== */
.news-section{padding:48px 0}
.news-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.news-card{background:#fff;border:1px solid #f0f0f0;border-radius:14px;padding:24px;transition:all .25s}
.news-card:hover{border-color:#ff4d4d;box-shadow:0 4px 20px rgba(255,77,77,.08);transform:translateY(-2px)}
.news-card__badge{display:inline-block;font-size:.72rem;font-weight:600;padding:3px 10px;border-radius:20px;margin-bottom:10px}
.news-card__badge{background:linear-gradient(135deg,#fff5f5,#ffe8e8);color:#ff4d4d;border:1px solid rgba(255,77,77,.15)}
.news-card__title{font-size:1.05rem;font-weight:600;color:#0f172a;margin-bottom:6px;line-height:1.5}
.news-card__desc{font-size:.88rem;color:#64748b;line-height:1.6;margin-bottom:8px}
.news-card__date{font-size:.78rem;color:#94a3b8}
.news-card__highlights{padding-left:18px;margin-top:8px;font-size:.85rem;color:#475569;line-height:1.6}
.news-card__highlights li{margin-bottom:4px}
.news-card--lg{border-left:3px solid #ff4d4d}
.news-card--link{text-decoration:none;cursor:pointer;transition:all .15s}
.news-card--link:hover{border-color:#ff4d4d;box-shadow:0 4px 16px rgba(255,77,77,.08);transform:translateY(-1px)}
.news-card--link:hover .news-card__title{color:#ff4d4d}
@media(max-width:768px){.news-grid{grid-template-columns:1fr}}

.news-page{padding:24px 0 48px}

/* ===== News Detail ===== */
.news-detail{padding:24px 0 48px}
.news-detail__breadcrumb{display:flex;align-items:center;gap:8px;font-size:.82rem;color:#94a3b8;margin-bottom:24px}
.news-detail__breadcrumb a{color:#64748b;text-decoration:none}
.news-detail__breadcrumb a:hover{color:#ff4d4d}
.news-detail__layout{display:flex;gap:40px;align-items:flex-start}
.news-detail__article{flex:1;min-width:0}
.news-detail__header{margin-bottom:32px;padding-bottom:20px;border-bottom:1px solid #f0f0f0}
.news-detail__badge{display:inline-block;font-size:.75rem;font-weight:600;padding:4px 12px;border-radius:20px;background:linear-gradient(135deg,#fff5f5,#ffe8e8);color:#ff4d4d;border:1px solid rgba(255,77,77,.15)}
.news-detail__title{font-size:1.8rem;font-weight:800;line-height:1.35;margin-bottom:12px;color:#0f172a}
.news-detail__meta{display:flex;align-items:center;gap:12px;font-size:.85rem;color:#94a3b8}
.news-detail__body{line-height:1.8;color:#334155}
.news-detail__footer{margin-top:40px;padding-top:20px;border-top:1px solid #f0f0f0}
.news-detail__back{font-size:.9rem;color:#64748b;text-decoration:none;transition:color .15s}
.news-detail__back:hover{color:#ff4d4d}
.news-detail__sidebar{width:280px;flex-shrink:0;position:sticky;top:80px}
.news-sidebar__section{margin-bottom:28px;background:#fff;border:1px solid #f0f0f0;border-radius:10px;padding:20px}
.news-sidebar__title{font-size:.9rem;font-weight:700;color:#0f172a;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #f0f0f0}
.news-sidebar__list{display:flex;flex-direction:column;gap:2px}
.news-sidebar__item{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:8px;text-decoration:none;transition:all .15s}
.news-sidebar__item:hover{background:#fff5f5}
.news-sidebar__item:hover .news-sidebar__name{color:#ff4d4d}
.news-sidebar__badge{font-size:.7rem;font-weight:600;color:#ff4d4d}
.news-sidebar__name{font-size:.82rem;font-weight:500;color:#334155;line-height:1.5}
.news-sidebar__date{font-size:.72rem;color:#94a3b8}
@media(max-width:900px){
  .news-detail__layout{flex-direction:column}
  .news-detail__sidebar{width:100%;position:static}
}
.news-page__header{margin-bottom:32px}
.news-page__title{font-size:1.8rem;font-weight:800;margin-bottom:8px}
.news-page__desc{color:#64748b;font-size:1rem}
.news-page__grid{display:flex;flex-direction:column;gap:16px}

/* ===== Tab browser ===== */
.tab-browser{padding:48px 0;background:#fff}
.tab-browser__title{font-size:1.5rem;font-weight:700;text-align:center;margin-bottom:24px}
.tab-bar{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:32px;scrollbar-width:none;-ms-overflow-style:none}
.tab-bar::-webkit-scrollbar{display:none}
.tab-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:24px;border:1.5px solid #e8e8e8;background:#fff;color:#475569;font-size:.88rem;font-weight:500;white-space:nowrap;cursor:pointer;transition:all .2s}
.tab-btn:hover{border-color:#ff4d4d;color:#ff4d4d}
.tab-btn--active{background:linear-gradient(135deg,#ff4d4d,#e03e3e);color:#fff;border-color:#ff4d4d}
.tab-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tab-grid__card{background:#fafbfc;border:1px solid #f0f0f0;border-radius:12px;padding:20px;transition:all .25s;display:block;color:inherit}
.tab-grid__card:hover{border-color:#ff4d4d;box-shadow:0 4px 16px rgba(255,77,77,.08);transform:translateY(-2px)}
.tab-grid__card-tag{font-size:.78rem;color:#ff4d4d;font-weight:600;margin-bottom:6px}
.tab-grid__card-title{font-size:1rem;font-weight:600;color:#0f172a;line-height:1.5;margin-bottom:8px}
.tab-grid__card-desc{font-size:.85rem;color:#64748b;line-height:1.5}
@media(max-width:768px){.tab-grid{grid-template-columns:1fr}}

/* ===== Hot articles / skills ===== */
.hot-section{padding:40px 0}
.hot-section__title{font-size:1.3rem;font-weight:700;margin-bottom:20px}
.hot-scroll{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.hot-card{background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:20px;display:block;color:inherit;transition:all .2s}
.hot-card:hover{border-color:#ff4d4d;box-shadow:0 2px 12px rgba(255,77,77,.1)}
.hot-card__head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.hot-card__icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:linear-gradient(135deg,#fff5f5,#ffe8e8);border-radius:8px;font-size:1.1rem;flex-shrink:0}
.hot-card__title{font-size:.95rem;font-weight:600;color:#0f172a;line-height:1.5}
.hot-card__desc{font-size:.82rem;color:#64748b;line-height:1.5}

/* ===== Download banner ===== */
.download-banner{background:linear-gradient(135deg,#fff5f5 0%,#fff5f5 100%);padding:48px 0;border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}
.download-banner__inner{display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.download-banner__title{font-size:1.5rem;font-weight:700;margin-bottom:8px;color:#0f172a}
.download-banner__desc{color:#475569;max-width:500px}
.download-banner__btns{display:flex;gap:12px;flex-shrink:0}
@media(max-width:768px){.download-banner__inner{flex-direction:column;text-align:center}.download-banner__btns{justify-content:center}}

/* ===== Community section ===== */
.community-section{padding:48px 0;background:#fff}
.community-section__title{font-size:1.4rem;font-weight:700;text-align:center;margin-bottom:8px}
.community-section__desc{text-align:center;color:#64748b;margin-bottom:28px}
.community-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.community-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 20px;background:#fafbfc;border:1px solid #f0f0f0;border-radius:14px;text-align:center;transition:all .25s;color:inherit}
.community-card:hover{border-color:#ff4d4d;box-shadow:0 4px 20px rgba(255,77,77,.1);transform:translateY(-2px)}
.community-card__icon{font-size:2.2rem;display:flex;align-items:center}
.comm-icon{width:32px;height:32px;color:#ff4d4d}
.dl-icon{width:24px;height:24px;color:#ff4d4d}
.req-icon{width:24px;height:24px;color:#ff4d4d}
.contrib-icon{width:28px;height:28px;color:#ff4d4d}
.community-card__name{font-size:1rem;font-weight:600;color:#0f172a}
.community-card__desc{font-size:.82rem;color:#64748b;line-height:1.5}

/* ===== Community page ===== */
.community-page{padding:24px 0 48px}
.community-page__header{margin-bottom:36px}
.community-page__title{font-size:1.8rem;font-weight:800;margin-bottom:8px}
.community-page__desc{color:#64748b;font-size:1rem}
.community-cards{display:flex;flex-wrap:wrap;gap:24px;justify-content:center}
.community-qr-card{background:#fff;border:1px solid #f0f0f0;border-radius:16px;padding:32px;text-align:center;max-width:320px;transition:all .25s;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.community-qr-card:hover{border-color:#ff4d4d;box-shadow:0 4px 20px rgba(255,77,77,.1);transform:translateY(-2px)}
.community-qr-card__icon{width:40px;height:40px;margin:0 auto 12px;color:#ff4d4d}
.community-qr-card__icon svg{width:100%;height:100%}
.community-qr-card__name{font-size:1.1rem;font-weight:700;color:#0f172a;margin-bottom:4px}
.community-qr-card__desc{font-size:.85rem;color:#64748b;margin-bottom:16px}
.community-qr-card__img{display:block;width:220px;height:220px;object-fit:contain;border-radius:10px;border:1px solid #f0f0f0;margin:0 auto 12px}
.community-qr-card__tip{display:block;font-size:.78rem;color:#94a3b8}

/* ===== Download page ===== */
.download-page{padding:24px 0 48px}
.download-page__header{margin-bottom:32px}
.download-page__title{font-size:1.8rem;font-weight:800;margin-bottom:8px}
.download-page__desc{color:#64748b;font-size:1rem;margin-bottom:16px}
.download-page__section-title{font-size:1.3rem;font-weight:700;margin-bottom:20px;margin-top:40px}
.download-page__version{display:inline-flex;align-items:center;gap:8px;background:#fff5f5;border:1px solid rgba(255,77,77,.15);border-radius:20px;padding:6px 16px}
.download-page__ver-label{font-size:.82rem;color:#64748b}
.download-page__ver-num{font-size:.95rem;font-weight:700;color:#ff4d4d}

/* Download Tabs */
.dl-tabs{display:flex;gap:4px;border-bottom:2px solid #f0f0f0;margin-bottom:0}
.dl-tab{padding:12px 24px;font-size:.9rem;font-weight:600;color:#64748b;background:none;border:none;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s}
.dl-tab:hover{color:#ff4d4d}
.dl-tab--active{color:#ff4d4d;border-bottom-color:#ff4d4d}
.dl-panel{display:none;padding:32px 0}
.dl-panel--active{display:block}

/* Steps */
.dl-steps{position:relative;padding-left:40px}
.dl-steps::before{content:'';position:absolute;left:15px;top:4px;bottom:4px;width:2px;background:#f0f0f0}
.dl-step{position:relative;margin-bottom:32px}
.dl-step:last-child{margin-bottom:0}
.dl-step__num{position:absolute;left:-40px;top:0;width:32px;height:32px;border-radius:50%;background:#ff4d4d;color:#fff;font-size:.85rem;font-weight:700;display:flex;align-items:center;justify-content:center;z-index:1}
.dl-step__content{}
.dl-step__title{font-size:1.05rem;font-weight:700;color:#0f172a;margin-bottom:8px;line-height:32px}
.dl-step__desc{font-size:.9rem;color:#475569;line-height:1.7;margin-bottom:12px}
.dl-step__desc a{color:#ff4d4d;font-weight:500}
.dl-step__cmd{background:#1e293b;border-radius:8px;padding:14px 18px;font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:.85rem;color:#e2e8f0;margin-bottom:8px;overflow-x:auto;line-height:1.6}
.dl-step__cmd code{color:#e2e8f0;user-select:all;background:none;padding:0}
.dl-step__cmd--multi{white-space:pre}
.dl-step__cmd--multi code{white-space:pre}
.dl-step__hint{font-size:.82rem;color:#94a3b8;margin-top:4px}
.dl-step__downloads{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.dl-step__dl-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;font-size:.85rem;font-weight:600;color:#334155;text-decoration:none;transition:all .15s}
.dl-step__dl-btn:hover{border-color:#ff4d4d;color:#ff4d4d;box-shadow:0 2px 8px rgba(255,77,77,.1)}
.dl-step__dl-icon{width:16px;height:16px;flex-shrink:0}
.dl-step__note{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:12px 16px;font-size:.84rem;color:#92400e;line-height:1.6;margin-bottom:12px}
.dl-step__note strong{color:#78350f}
.dl-step__note code{background:#fef3c7;padding:1px 5px;border-radius:3px;font-size:.8rem}
.dl-step__platform-cmds{display:flex;flex-direction:column;gap:12px}
.dl-step__cmd-group{}
.dl-step__cmd-label{display:inline-block;font-size:.78rem;font-weight:600;color:#64748b;margin-bottom:6px;background:#f1f5f9;padding:2px 10px;border-radius:4px}

/* Tip box */
.dl-tip{background:#fff5f5;border:1px solid rgba(255,77,77,.2);border-radius:12px;padding:24px;margin-top:24px}
.dl-tip strong{display:block;font-size:.95rem;color:#0f172a;margin-bottom:8px}
.dl-tip p{font-size:.85rem;color:#475569;line-height:1.6;margin:0 0 12px}

/* One-click install */
.dl-oneclick{margin-bottom:32px}
.dl-oneclick__intro{font-size:.92rem;color:#475569;line-height:1.7;margin-bottom:24px}
.dl-oneclick__intro a{color:#ff4d4d;font-weight:600}
.dl-oneclick__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:20px;margin-bottom:24px}
.dl-oneclick__card{background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:24px;transition:border-color .15s}
.dl-oneclick__card:hover{border-color:#ff4d4d}
.dl-oneclick__card-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.dl-oneclick__card-head h3{font-size:1.1rem;font-weight:700;margin:0}
.dl-oneclick__os-icon{width:22px;height:22px;color:#ff4d4d}
.dl-oneclick__label{font-size:.82rem;font-weight:600;color:#64748b;margin:12px 0 6px}
.dl-oneclick__flow{background:#fafafa;border:1px solid #f0f0f0;border-radius:12px;padding:20px}
.dl-oneclick__flow h4{font-size:.9rem;font-weight:700;color:#334155;margin:0 0 12px}
.dl-oneclick__steps{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.dl-oneclick__step{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 14px;font-size:.82rem;font-weight:600;color:#334155}
.dl-oneclick__arrow{color:#cbd5e1;font-size:1.1rem}
.dl-divider{text-align:center;margin:40px 0;position:relative}
.dl-divider::before{content:'';position:absolute;top:50%;left:0;right:0;height:1px;background:#e2e8f0}
.dl-divider__text{position:relative;background:#f8fafc;padding:0 20px;font-size:.9rem;color:#94a3b8;font-weight:600}
@media(max-width:768px){
  .dl-oneclick__cards{grid-template-columns:1fr}
  .dl-oneclick__steps{justify-content:center}
}

/* Requirements */
.dl-requirements{margin-top:48px}
.dl-req-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.dl-req-item{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:20px;transition:border-color .15s}
.dl-req-item:hover{border-color:#e0e0e0}
.dl-req-icon{width:24px;height:24px;flex-shrink:0;color:#ff4d4d;margin-top:2px}
.dl-req-item strong{display:block;font-size:.95rem;color:#0f172a;margin-bottom:2px}
.dl-req-item p{font-size:.85rem;color:#64748b;line-height:1.5;margin:0}
@media(max-width:768px){
  .dl-tabs{overflow-x:auto}
  .dl-tab{white-space:nowrap;padding:10px 16px;font-size:.85rem}
  .dl-req-grid{grid-template-columns:1fr}
}

/* ===== CTA banner ===== */
.cta-banner{background:linear-gradient(135deg,#ff4d4d,#ff4d4d);padding:48px 0;text-align:center;color:#fff}
.cta-banner__title{font-size:1.5rem;font-weight:700;margin-bottom:8px}
.cta-banner__desc{opacity:.9;margin-bottom:24px}
.cta-banner .btn--primary{background:#fff;color:#ff4d4d}
.cta-banner .btn--primary:hover{background:#fff5f5}

/* ===== FAQ ===== */
.faq-section{padding:48px 0;background:#fff}
.faq-section__title{font-size:1.3rem;font-weight:700;text-align:center;margin-bottom:24px}
.faq-list{max-width:780px;margin:0 auto}
.faq-item{border:1px solid #f0f0f0;border-radius:10px;margin-bottom:10px;overflow:hidden;background:#fafbfc}
.faq-item__q{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 20px;background:none;border:none;cursor:pointer;font-size:.95rem;font-weight:600;color:#0f172a;text-align:left}
.faq-item__q svg{width:20px;height:20px;flex-shrink:0;transition:transform .2s;color:#94a3b8}
.faq-item__a{max-height:0;overflow:hidden;padding:0 20px;font-size:.9rem;color:#475569;line-height:1.7;transition:max-height .3s,padding .3s}
.faq-item--open .faq-item__q svg{transform:rotate(180deg)}
.faq-item--open .faq-item__a{max-height:300px;padding:0 20px 16px}

/* ===== CTA section ===== */
.cta-section{text-align:center;padding:40px 24px;margin:40px 0;background:linear-gradient(135deg,#fff5f5,#fff5f5);border-radius:16px;border:1px solid rgba(255,77,77,.08)}
.cta-section__title{font-size:1.2rem;font-weight:700;margin-bottom:8px}
.cta-section__desc{font-size:.9rem;color:#475569;margin-bottom:20px}
.cta-section__btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ===== Breadcrumb ===== */
.breadcrumb{padding:16px 0 8px;font-size:.85rem;color:#94a3b8}
.breadcrumb a{color:#64748b}
.breadcrumb a:hover{color:#ff4d4d}
.breadcrumb__sep{margin:0 6px;color:#cbd5e1}

/* ===== Archive ===== */
.archive{padding:24px 0 48px}
.archive__header{margin-bottom:28px}
.archive__title{font-size:1.5rem;font-weight:700}
.archive__desc{color:#64748b;margin-top:4px}
.archive__filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.archive__filter{display:inline-flex;align-items:center;gap:4px;padding:6px 16px;border-radius:20px;font-size:.85rem;font-weight:500;color:#475569;background:#f1f5f9;border:1px solid transparent;cursor:pointer;transition:all .15s;text-decoration:none}
.archive__filter:hover{border-color:#ff4d4d;color:#ff4d4d;background:#fff5f5}
.archive__filter--active{background:linear-gradient(135deg,#ff4d4d,#e03e3e);color:#fff;border-color:#ff4d4d}
.archive__filter--active:hover{background:#e03e3e;color:#fff}
.archive__filter--disabled{opacity:.45;cursor:default;pointer-events:none}
.archive__list{display:flex;flex-direction:column;gap:12px}

/* ===== Post card ===== */
.post-card{display:block;background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:20px;color:inherit;transition:all .2s}
.post-card:hover{border-color:#ff4d4d;box-shadow:0 2px 12px rgba(255,77,77,.06)}
.post-card__meta{display:flex;align-items:center;gap:8px;font-size:.8rem;color:#94a3b8;margin-bottom:6px}
.post-card__tag{color:#ff4d4d;font-weight:500}
.post-card__title{font-size:1rem;font-weight:600;color:#0f172a;line-height:1.5;margin-bottom:4px}
.post-card__desc{font-size:.85rem;color:#64748b;line-height:1.5}

/* ===== Tags page ===== */
.tags-page{padding:24px 0 48px}
.tags-page__title{font-size:1.5rem;font-weight:700;margin-bottom:24px}
.tags-page__section-title{font-size:1.2rem;font-weight:700;margin-bottom:16px;color:#0f172a}
.tags-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tag-card{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #f0f0f0;border-radius:10px;padding:16px 20px;color:inherit;transition:all .2s}
.tag-card:hover{border-color:#ff4d4d;box-shadow:0 2px 8px rgba(255,77,77,.06)}
.tag-card__left{display:flex;align-items:center;gap:10px}
.tag-card__icon{font-size:1.4rem}
.tag-card__name{font-weight:600;color:#0f172a}
.tag-card__count{color:#94a3b8;font-size:.85rem;font-weight:500}
.tag-card--empty{opacity:.5;cursor:default}

/* ===== Tag detail ===== */
.tag-detail{padding:24px 0 48px}
.tag-detail__header{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.tag-detail__icon{font-size:1.8rem}
.tag-detail__title{font-size:1.4rem;font-weight:700}
.tag-detail__count{color:#94a3b8;font-size:.9rem}
.tag-detail__list{display:flex;flex-direction:column;gap:12px}

/* ===== Post page ===== */
.post-page{padding:24px 0 48px}
.post-page__header{margin-bottom:24px}
.post-page__tags{display:flex;gap:8px;margin-bottom:12px}
.post-page__tag{font-size:.78rem;color:#ff4d4d;font-weight:600;background:#fff5f5;padding:4px 12px;border-radius:20px;border:1px solid rgba(255,77,77,.15)}
.post-page__title{font-size:1.8rem;font-weight:800;line-height:1.35;margin-bottom:12px}
.post-page__meta{display:flex;align-items:center;gap:12px;font-size:.85rem;color:#94a3b8}

/* ===== TOC pills ===== */
.toc-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:32px}
.toc-pill{display:inline-block;padding:6px 16px;border-radius:20px;font-size:.82rem;font-weight:500;color:#64748b;background:#f1f5f9;white-space:nowrap;transition:all .2s}
.toc-pill:hover{color:#ff4d4d;background:#fff5f5}
.toc-pill--active{background:linear-gradient(135deg,#ff4d4d,#e03e3e);color:#fff}

/* ===== Post body ===== */
.post-body h2{font-size:1.35rem;font-weight:700;margin:36px 0 12px;padding-top:8px;color:#0f172a}
.post-body h3{font-size:1.1rem;font-weight:600;margin:28px 0 10px;color:#1e293b}
.post-body p{margin-bottom:16px;color:#374151;line-height:1.8}
.post-body ul,.post-body ol{padding-left:24px;margin-bottom:16px}
.post-body li{margin-bottom:6px;color:#374151;line-height:1.7}
.post-body a{color:#ff4d4d;text-decoration:underline;text-underline-offset:2px}
.post-body a:hover{color:#e03e3e}
.post-body strong{color:#0f172a}
.post-body blockquote{border-left:4px solid #ff4d4d;padding:12px 20px;margin:20px 0;background:#fff5f5;border-radius:0 8px 8px 0;color:#475569}
.post-body table{width:100%;border-collapse:collapse;margin:20px 0;font-size:.9rem}
.post-body th{background:#fff5f5;font-weight:600;text-align:left;padding:10px 14px;border:1px solid #f0f0f0}
.post-body td{padding:10px 14px;border:1px solid #f0f0f0}
.post-body hr{border:none;border-top:1px solid #f0f0f0;margin:32px 0}
.post-body code{background:#f1f5f9;padding:2px 6px;border-radius:4px;font-size:.88em;color:#e03e3e}
.post-body pre{background:#1e293b;color:#e2e8f0;padding:16px 20px;border-radius:8px;overflow-x:auto;margin:20px 0;font-size:.88rem;line-height:1.6}
.post-body pre code{background:none;color:inherit;padding:0}

/* ===== Install CTA ===== */
.dl-cta{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#fff5f5,#fff5f5);border:1px solid rgba(255,77,77,.12);border-radius:12px;padding:20px 24px;margin:32px 0;gap:16px;flex-wrap:wrap}
.dl-cta__text{font-size:.9rem;color:#475569;flex:1}
.dl-cta__links{display:flex;gap:10px;flex-shrink:0}

/* ===== Share row ===== */
.share-row{display:flex;align-items:center;gap:12px;padding:20px 0;margin:24px 0;border-top:1px solid #f0f0f0}
.share-row__label{font-size:.85rem;color:#94a3b8;font-weight:500}
.share-row__btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#f1f5f9;border:none;color:#64748b;cursor:pointer;transition:all .2s}
.share-row__btn:hover{background:#fff5f5;color:#ff4d4d}
.share-row__btn svg{width:18px;height:18px}

/* ===== Related posts ===== */
.related{margin:32px 0 0;padding-top:24px;border-top:1px solid #f0f0f0}
.related__title{font-size:1.1rem;font-weight:700;margin-bottom:16px}
.related__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.related__item{background:#fff;border:1px solid #f0f0f0;border-radius:10px;padding:16px;transition:all .2s}
.related__item:hover{border-color:#ff4d4d}
.related__item a{font-size:.9rem;font-weight:600;color:#0f172a;display:block;margin-bottom:6px;line-height:1.5}
.related__item a:hover{color:#ff4d4d}
.related__item time{font-size:.78rem;color:#94a3b8}
@media(max-width:768px){.related__grid{grid-template-columns:1fr}}

/* ===== Footer ===== */
.site-footer__line{height:3px;background:linear-gradient(90deg,#ff4d4d,#ff4d4d,#ff4d4d)}
.site-footer{background:#fff;padding:16px 0;border-top:1px solid #f0f0f0}
.site-footer__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.site-footer__left{display:flex;align-items:center;gap:8px}
.site-footer__brand-logo{width:26px;height:26px;border-radius:6px;object-fit:cover}
.site-footer__brand-name{font-weight:600;color:#0f172a;font-size:.9rem}
.site-footer__copy{color:#94a3b8;font-size:.8rem}
.site-footer__links{display:flex;gap:16px;font-size:.85rem}
.site-footer__links a{color:#64748b}
.site-footer__links a:hover{color:#ff4d4d}
.site-footer__meta{display:flex;justify-content:space-between;align-items:center;padding-top:10px;margin-top:10px;border-top:1px solid rgba(0,0,0,.06);font-size:.68rem;color:#b0b8c4}
.site-footer__disclaimer{color:#b0b8c4}
.site-footer__icp{color:#b0b8c4;text-decoration:none}
.site-footer__icp:hover{color:#ff4d4d}
@media(max-width:768px){.site-footer__meta{flex-direction:column;gap:4px;text-align:center}}
@media(max-width:768px){
  .site-footer__inner{flex-direction:column;gap:10px;text-align:center}
  .site-footer__links{flex-wrap:wrap;justify-content:center;gap:12px}
  .site-footer__left{flex-wrap:wrap;justify-content:center}
}

/* ===== 404 ===== */
.error-page{text-align:center;padding:80px 20px}
.error-page__code{font-size:6rem;font-weight:800;background:linear-gradient(135deg,#ff4d4d,#ff4d4d);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}
.error-page__title{font-size:1.5rem;font-weight:700;margin:12px 0 8px}
.error-page__desc{color:#64748b;margin-bottom:28px}
.error-page__links{display:flex;gap:12px;justify-content:center}
.error-page__links a{color:#ff4d4d;font-weight:600}

/* ===== View all ===== */
.view-all{display:inline-flex;align-items:center;gap:4px;color:#ff4d4d;font-weight:600;font-size:.9rem;margin-top:16px}
.view-all:hover{color:#e03e3e}

/* ===== Skills Page ===== */
.skills-page{padding:40px 0 60px}
.skills-page__title{font-size:2rem;font-weight:800;text-align:center;margin-bottom:8px}
.skills-page__desc{text-align:center;color:#64748b;margin-bottom:32px;font-size:1.05rem}
.skills-cat{margin-bottom:40px}
.skills-cat__title{font-size:1.3rem;font-weight:700;margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid #f0f0f0;display:flex;align-items:center;gap:8px}
.skills-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.skill-card{background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:20px;transition:box-shadow .2s,border-color .2s}
.skill-card:hover{border-color:#ff4d4d;box-shadow:0 4px 16px rgba(255,77,77,.1)}
.skill-card__head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.skill-card__icon{font-size:1.5rem;flex-shrink:0;display:flex;align-items:center}
.skill-svg-icon{width:24px;height:24px;color:#ff4d4d}
.skill-card__name{font-size:1.05rem;font-weight:700;color:#0f172a}
.skill-card__tag{font-size:.7rem;background:#fff5f5;color:#ff4d4d;padding:2px 8px;border-radius:20px;font-weight:600;margin-left:auto;white-space:nowrap;border:1px solid rgba(255,77,77,.2)}
.skill-card__desc{font-size:.88rem;color:#475569;line-height:1.7;margin-bottom:12px}
.skill-card__install{background:#f8f9fa;border:1px solid #e8e8e8;border-radius:8px;padding:10px 14px;font-family:'SFMono-Regular',Consolas,monospace;font-size:.8rem;color:#334155;word-break:break-all;position:relative}
.skill-card__install code{user-select:all}
.skill-card__copy{position:absolute;top:6px;right:8px;background:#fff;border:1px solid #e8e8e8;border-radius:6px;padding:4px 8px;font-size:.7rem;color:#64748b;cursor:pointer;transition:all .15s}
.skill-card__copy:hover{border-color:#ff4d4d;color:#ff4d4d}
.skill-card__copy--copied{background:#dcfce7!important;border-color:#22c55e!important;color:#16a34a!important}
.skill-card__features{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px}
.skill-card__feat{font-size:.75rem;background:#f1f5f9;color:#475569;padding:3px 10px;border-radius:20px}
a.skill-card{text-decoration:none;color:inherit;display:block}
a.skill-card:hover .skill-card__name{color:#ff4d4d}
.skill-card__arrow{margin-left:auto;color:#cbd5e1;font-size:1.2rem;transition:color .15s}
a.skill-card:hover .skill-card__arrow{color:#ff4d4d}
.skills-page--with-nav{display:flex;gap:32px;align-items:flex-start}
.skills-page__main{flex:1;min-width:0}
.skills-page__nav{width:200px;flex-shrink:0;position:sticky;top:72px}
.skills-nav__title{font-size:.8rem;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}
.skills-nav__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}
.skills-nav__list li a{display:block;padding:6px 12px;font-size:.82rem;color:#475569;border-radius:6px;text-decoration:none;transition:all .15s;border-left:2px solid transparent}
.skills-nav__list li a:hover{color:#ff4d4d;background:#fff5f5;border-left-color:#ff4d4d}
@media(max-width:900px){
  .skills-page--with-nav{flex-direction:column}
  .skills-page__nav{width:100%;position:static;order:-1}
  .skills-nav__list{flex-direction:row;flex-wrap:wrap;gap:6px}
  .skills-nav__list li a{border-left:none;padding:5px 12px;background:#f1f5f9;border-radius:20px;font-size:.78rem}
}
@media(max-width:700px){
  .skills-grid{grid-template-columns:1fr}
  .skills-page__title{font-size:1.5rem}
}

/* ===== Skill Detail Page ===== */
.skill-detail{padding:40px 0 60px}
.skill-detail__header{display:flex;align-items:center;gap:16px;margin-bottom:28px}
.skill-detail__icon{font-size:3rem;display:flex;align-items:center}
.skill-detail__icon svg{width:48px;height:48px;color:#ff4d4d}
.skill-detail__title{font-size:2rem;font-weight:800;margin:0 0 6px}
.skill-detail__tag{font-size:.8rem;background:#fff5f5;color:#ff4d4d;padding:3px 12px;border-radius:20px;font-weight:600;margin-right:8px;border:1px solid rgba(255,77,77,.2)}
.skill-detail__cat{font-size:.8rem;color:#64748b}
.skill-detail__install-box{background:#fff;border:1px solid #f0f0f0;border-radius:16px;padding:28px;margin-bottom:28px}
.skill-detail__section-title{font-size:1.15rem;font-weight:700;margin:0 0 14px;color:#0f172a}
.skill-detail__cmd{background:#f8f9fa;border:1px solid #e8e8e8;border-radius:10px;padding:14px 18px;font-family:'SFMono-Regular',Consolas,monospace;font-size:.9rem;color:#334155;position:relative;margin-bottom:8px}
.skill-detail__cmd code{user-select:all;font-size:.9rem}
.skill-detail__steps{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}
.skill-detail__step{display:flex;gap:14px;align-items:flex-start}
.skill-detail__step-num{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#ff4d4d,#e03e3e);color:#fff;font-weight:700;font-size:.85rem;display:flex;align-items:center;justify-content:center;margin-top:2px}
.skill-detail__step p{margin:4px 0 0;color:#475569;font-size:.9rem;line-height:1.6}
.skill-detail__step strong{font-size:.95rem;color:#0f172a}
.skill-detail__step code{background:#f1f5f9;padding:1px 6px;border-radius:4px;font-size:.82rem}
.skill-detail__alt{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:12px 16px;font-size:.85rem;color:#92400e;line-height:1.6}
.skill-detail__alt code{background:#fef3c7;padding:1px 5px;border-radius:3px;font-size:.8rem}
.skill-detail__features{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.skill-detail__body{max-width:780px}
.skill-detail__body h2{font-size:1.2rem;font-weight:700;margin:28px 0 12px;color:#0f172a}
.skill-detail__body p{color:#475569;line-height:1.8;margin-bottom:14px}
.skill-detail__body ul,.skill-detail__body ol{padding-left:20px;margin-bottom:16px}
.skill-detail__body li{color:#475569;margin-bottom:6px;line-height:1.7}
.skill-detail__body code{background:#f1f5f9;padding:1px 6px;border-radius:4px;font-size:.85rem;color:#334155}
.skill-detail__body pre{background:#1e293b;color:#e2e8f0;padding:16px 20px;border-radius:10px;overflow-x:auto;margin-bottom:16px;line-height:1.5}
.skill-detail__body pre code{background:none;color:inherit;padding:0;font-size:.82rem}
.skill-detail__body strong{color:#0f172a}
.skill-detail__body h3{font-size:1.05rem;font-weight:600;margin:20px 0 8px;color:#1e293b}
.skill-detail__body blockquote{border-left:3px solid #ff4d4d;margin:16px 0;padding:12px 20px;background:#fff5f5;border-radius:0 8px 8px 0;color:#475569;font-size:.9rem}
.skill-detail__body blockquote p{margin-bottom:0}
.skill-detail__body a{color:#ff4d4d;text-decoration:underline;text-underline-offset:2px}
.skill-detail__back{margin-top:36px;padding-top:20px;border-top:1px solid #f0f0f0}
.skill-detail__layout{display:flex;gap:32px;align-items:flex-start}
.skill-detail__main{flex:1;min-width:0}
.skill-detail__sidebar{width:220px;flex-shrink:0;position:sticky;top:72px}
.skill-sidebar__title{font-size:.82rem;font-weight:700;color:#94a3b8;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f0f0f0}
.skill-sidebar__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}
.skill-sidebar__item{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;text-decoration:none;color:#475569;font-size:.85rem;transition:all .15s}
.skill-sidebar__item:hover{background:#fff5f5;color:#ff4d4d}
.skill-sidebar__item--active{background:#fff5f5;color:#ff4d4d;font-weight:600;border-left:2px solid #ff4d4d}
.skill-sidebar__icon{font-size:1rem;flex-shrink:0}
.skill-sidebar__name{font-weight:500}
@media(max-width:900px){
  .skill-detail__layout{flex-direction:column}
  .skill-detail__sidebar{width:100%;position:static}
  .skill-sidebar__list{flex-direction:row;flex-wrap:wrap;gap:6px}
  .skill-sidebar__item{padding:5px 12px;background:#f1f5f9;border-radius:20px;font-size:.8rem}
}
@media(max-width:700px){
  .skill-detail__title{font-size:1.5rem}
  .skill-detail__icon{font-size:2.2rem}
  .skill-detail__install-box{padding:20px}
}

/* ===== Back to top ===== */
.back-top{position:fixed;bottom:28px;right:28px;width:42px;height:42px;border-radius:50%;border:1px solid #f0f0f0;background:#fff;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 12px rgba(0,0,0,.06);opacity:0;visibility:hidden;transform:translateY(10px);transition:all .25s ease;z-index:100}
.back-top svg{width:20px;height:20px}
.back-top:hover{color:#ff4d4d;border-color:#ff4d4d;box-shadow:0 4px 16px rgba(255,77,77,.12)}
.back-top--show{opacity:1;visibility:visible;transform:translateY(0)}
@media(max-width:768px){.back-top{bottom:20px;right:16px;width:38px;height:38px}.back-top svg{width:18px;height:18px}}

/* ===== About / Disclaimer page ===== */
.about-page{padding:40px 0 48px;max-width:780px;margin:0 auto}
.about-page h1{font-size:1.8rem;font-weight:800;margin-bottom:20px}
.about-page h2{font-size:1.2rem;font-weight:700;margin:28px 0 10px;color:#0f172a}
.about-page p{margin-bottom:14px;color:#475569;line-height:1.8}
.about-page ul{padding-left:20px;margin-bottom:16px}
.about-page li{margin-bottom:6px;color:#475569}

/* ===== Category Icons ===== */
.cat-icon{width:1em;height:1em;vertical-align:-0.125em;display:inline-block;flex-shrink:0}

/* ===== Doc Layout (Vue-style) ===== */
.doc-layout{display:flex;min-height:calc(100vh - 64px);max-width:1160px;margin:0 auto;padding:0 20px}

/* Left Sidebar */
.doc-sidebar{width:auto;flex-shrink:0;border-right:none;background:transparent;position:sticky;top:64px;height:calc(100vh - 64px);overflow-y:auto;z-index:10}
.doc-sidebar--bordered{width:280px;background:#fff;border-right:1px solid #f0f0f0}
.doc-sidebar--bordered .doc-sidebar__title{padding:0 24px}
.doc-sidebar--bordered .doc-sidebar__heading{padding:10px 24px}
.doc-sidebar--bordered .doc-sidebar__links{padding:0 24px 10px 24px}
.doc-sidebar--bordered .doc-sidebar__link{font-size:.82rem;padding:5px 12px;gap:6px;border-left:2px solid transparent}
.doc-sidebar--bordered .doc-sidebar__link--active{border-left-color:#ff4d4d}
.doc-sidebar__inner{padding:24px 0 40px 0}
.doc-sidebar__title{font-size:.72rem;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:1px;padding:0;margin-bottom:12px}
.doc-sidebar__group{border-bottom:none}
.doc-sidebar__heading{display:block;padding:10px 0;font-size:.82rem;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px}
.doc-sidebar__links{padding:0}
.doc-sidebar__link{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:.95rem;color:#334155;border-radius:6px;text-decoration:none;transition:all .15s;line-height:1.5;margin-bottom:2px;border-left:2px solid transparent}
.doc-sidebar__link .cat-icon{width:1.1em;height:1.1em}
.doc-sidebar__link:hover{color:#ff4d4d;background:#fff5f5}
.doc-sidebar__link--active{color:#ff4d4d;font-weight:600;background:#fff5f5;border-left-color:#ff4d4d}

/* Doc Content Area */
.doc-content{flex:1;min-width:0;padding:32px 48px 60px;max-width:860px}
.doc-content__header h1{font-size:1.8rem;font-weight:800;color:#0f172a;margin-bottom:8px}
.doc-content__desc{color:#64748b;font-size:.95rem;margin-bottom:32px}
.doc-content__article-header{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid #f0f0f0}
.doc-content__tags{display:flex;gap:8px;margin-bottom:10px}
.doc-content__tag{font-size:.78rem;color:#ff4d4d;font-weight:600;background:#fff5f5;padding:4px 12px;border-radius:20px;border:1px solid rgba(255,77,77,.15);text-decoration:none}
.doc-content__title{font-size:1.8rem;font-weight:800;line-height:1.35;margin-bottom:10px;color:#0f172a}
.doc-content__meta{display:flex;align-items:center;gap:12px;font-size:.85rem;color:#94a3b8}

/* Doc Section (tutorials list) */
.doc-section{margin-bottom:36px}
.doc-section__title{font-size:1.15rem;font-weight:700;color:#1e293b;padding-bottom:12px;border-bottom:1px solid #f0f0f0;margin-bottom:12px}
.doc-section__list{display:flex;flex-direction:column;gap:4px}
.doc-item{display:block;padding:14px 16px;border-radius:8px;text-decoration:none;color:inherit;transition:all .15s;border-left:3px solid transparent}
.doc-item:hover{background:#fff5f5;border-left-color:#ff4d4d}
.doc-item__title{font-size:.95rem;font-weight:600;color:#0f172a;margin-bottom:4px}
.doc-item__desc{font-size:.84rem;color:#64748b;line-height:1.5;margin-bottom:4px}
.doc-item__meta{font-size:.78rem;color:#94a3b8}

/* Right TOC sidebar */
.doc-toc{width:220px;flex-shrink:0;position:sticky;top:64px;height:calc(100vh - 64px);overflow-y:auto}
.doc-toc__inner{padding:32px 16px 40px 24px;border-left:1px solid #f0f0f0}
.doc-toc__title{font-size:.72rem;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.doc-toc__nav{display:flex;flex-direction:column;gap:2px}
.doc-toc__link{display:block;padding:4px 0;font-size:.82rem;color:#64748b;text-decoration:none;transition:color .15s;line-height:1.4}
.doc-toc__link:hover{color:#ff4d4d}
.doc-toc__link--sub{padding-left:14px;font-size:.78rem}
.doc-toc__link--active{color:#ff4d4d;font-weight:600}

/* Doc article body - inherits .post-body styles */
.doc-article-body{padding-bottom:32px;border-bottom:1px solid #f0f0f0;margin-bottom:24px}

/* Doc footer navigation (prev/next) */
.doc-footer-nav{display:flex;justify-content:space-between;gap:16px;margin-bottom:32px}
.doc-footer-nav__prev,.doc-footer-nav__next{display:flex;flex-direction:column;gap:4px;padding:14px 20px;border:1px solid #f0f0f0;border-radius:10px;text-decoration:none;transition:all .15s;min-width:0;max-width:48%}
.doc-footer-nav__prev:hover,.doc-footer-nav__next:hover{border-color:#ff4d4d;background:#fff5f5}
.doc-footer-nav__next{text-align:right;margin-left:auto}
.doc-footer-nav__label{font-size:.78rem;color:#94a3b8;font-weight:500}
.doc-footer-nav__title{font-size:.9rem;color:#1e293b;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Sidebar mobile toggle */
.doc-sidebar-toggle{display:none;position:fixed;bottom:28px;left:20px;width:42px;height:42px;border-radius:50%;border:1px solid #f0f0f0;background:#fff;color:#64748b;cursor:pointer;align-items:center;justify-content:center;box-shadow:0 2px 12px rgba(0,0,0,.08);z-index:200}
.doc-sidebar-toggle svg{width:20px;height:20px}
.doc-sidebar-toggle:hover{color:#ff4d4d;border-color:#ff4d4d}

/* Responsive */
@media(max-width:1200px){
  .doc-toc{display:none}
  .doc-content{max-width:none}
}
@media(max-width:900px){
  .doc-sidebar{display:none;position:fixed;top:0;left:0;width:300px;height:100vh;z-index:1000;box-shadow:4px 0 24px rgba(0,0,0,.1)}
  .doc-sidebar--open{display:block}
  .doc-sidebar-toggle{display:flex}
  .doc-content{padding:24px 20px 48px}
  .doc-content__title{font-size:1.4rem}
  .doc-footer-nav{flex-direction:column}
  .doc-footer-nav__prev,.doc-footer-nav__next{max-width:100%}
  body.doc-sidebar-active::after{content:'';position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.3);z-index:999}
}
