/* ===== oepnclaw.com — OpenClaw教程站 ===== */
/* Blue theme #3b82f6 · 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:#f8fafc;line-height:1.7;font-size:16px}
a{color:#3b82f6;text-decoration:none}
a:hover{color:#2563eb}
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:#3b82f6;color:#fff}
.btn--primary:hover{background:#2563eb;color:#fff}
.btn--outline{border:1.5px solid #3b82f6;color:#3b82f6;background:transparent}
.btn--outline:hover{background:#3b82f6;color:#fff}
.btn--dark{background:#1e293b;color:#fff}
.btn--dark:hover{background:#0f172a;color:#fff}
.btn--accent{background:#f97316;color:#fff;border:1.5px solid #f97316}
.btn--accent:hover{background:#ea580c;color:#fff;border-color:#ea580c}
.btn--sm{padding:8px 16px;font-size:.85rem}

/* ===== Header ===== */
.site-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:100;transition:box-shadow .3s}
.site-header--scrolled{box-shadow:0 2px 12px rgba(0,0,0,.08)}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.site-header__right{display:flex;align-items:center;gap:20px}
.site-header__right a{color:#475569;font-size:.9rem;font-weight:500;transition:color .2s}
.site-header__right a:hover{color:#3b82f6}
.site-header__brand{display:flex;align-items:center;gap:8px;flex-shrink:0}
.site-header__logo{width:36px;height:36px;background:#3b82f6;color:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:700}
.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:#60a5fa}
.mobile-overlay__lang{display:flex;gap:12px;margin-top:8px}
.mobile-overlay__lang a{font-size:1rem;padding:6px 14px;border-radius:20px;border:1px solid rgba(255,255,255,.3);color:rgba(255,255,255,.7)}
.mobile-overlay__lang a.on{background:#3b82f6;border-color:#3b82f6;color:#fff}

/* ===== Header language switch (pill style) ===== */
.lang-switch{display:flex;gap:6px}
.lang-switch a{font-size:.72rem;padding:2px 7px;border-radius:4px;color:#64748b;font-weight:600;border:1px solid transparent;text-decoration:none;transition:all .15s}
.lang-switch a:hover{color:#3b82f6;border-color:#3b82f6}
.lang-switch a.active{background:#3b82f6;color:#fff;border-color:#3b82f6}

@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,#3b82f6 0%,#60a5fa 100%);color:#fff;padding:64px 0 56px}
.hero__inner{display:flex;align-items:center;gap:48px}
.hero__text{flex:1}
.hero__title{font-size:2.2rem;font-weight:800;line-height:1.3;margin-bottom:12px}
.hero__desc{font-size:1.05rem;opacity:.9;margin-bottom:28px;line-height:1.6}
.hero__btns{display:flex;gap:12px;flex-wrap:wrap}
.hero__btns .btn--primary{background:#fff;color:#3b82f6}
.hero__btns .btn--primary:hover{background:#eff6ff;color:#2563eb}
.hero__btns .btn--outline{border-color:rgba(255,255,255,.6);color:#fff}
.hero__btns .btn--outline:hover{background:rgba(255,255,255,.15)}
.hero__btns .btn--accent{background:#f97316;color:#fff;border-color:#f97316}
.hero__btns .btn--accent:hover{background:#ea580c;border-color:#ea580c}
.hero__visual{flex:0 0 280px;text-align:center;font-size:8rem;line-height:1}
@media(max-width:768px){
  .hero{padding:40px 0 36px}
  .hero__inner{flex-direction:column;gap:24px;text-align:center}
  .hero__title{font-size:1.6rem}
  .hero__visual{flex:none;font-size:5rem}
  .hero__btns{justify-content:center}
}

/* ===== Stats bar ===== */
.stats-bar{background:#fff;border-bottom:1px solid #e2e8f0;padding:16px 0}
.stats-bar__inner{display:flex;align-items:center;justify-content:center;gap:32px;font-size:.95rem;color:#475569;font-weight:500}
.stats-bar__dot{color:#3b82f6}

/* ===== Tab browser ===== */
.tab-browser{padding:48px 0}
.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 #e2e8f0;background:#fff;color:#475569;font-size:.88rem;font-weight:500;white-space:nowrap;cursor:pointer;transition:all .2s}
.tab-btn:hover{border-color:#3b82f6;color:#3b82f6}
.tab-btn--active{background:#3b82f6;color:#fff;border-color:#3b82f6}
.tab-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tab-grid__card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;transition:all .25s;display:block;color:inherit}
.tab-grid__card:hover{border-color:#3b82f6;box-shadow:0 4px 16px rgba(59,130,246,.1);transform:translateY(-2px)}
.tab-grid__card-tag{font-size:.78rem;color:#3b82f6;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 ===== */
.hot-section{padding:40px 0;background:#fff}
.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:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:20px;display:block;color:inherit;transition:all .2s}
.hot-card:hover{border-color:#3b82f6;box-shadow:0 2px 12px rgba(59,130,246,.08)}
.hot-card__rank{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:#eff6ff;border-radius:6px;font-size:.75rem;font-weight:700;margin-bottom:8px}
.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:#eff6ff;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}

/* ===== Deploy / 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:#eff6ff;border:1px solid rgba(59,130,246,.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:#3b82f6}
.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:#3b82f6}
.dl-tab--active{color:#3b82f6;border-bottom-color:#3b82f6}
.dl-panel{display:none;padding:32px 0}
.dl-panel--active{display:block}
.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:#3b82f6;color:#fff;font-size:.85rem;font-weight:700;display:flex;align-items:center;justify-content:center;z-index:1}
.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:#3b82f6;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:#3b82f6;color:#3b82f6;box-shadow:0 2px 8px rgba(59,130,246,.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-label{display:inline-block;font-size:.78rem;font-weight:600;color:#64748b;margin-bottom:6px;background:#f1f5f9;padding:2px 10px;border-radius:4px}
.dl-tip{background:#eff6ff;border:1px solid rgba(59,130,246,.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}
.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:#3b82f6;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,#3b82f6,#60a5fa);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:#3b82f6}
.cta-banner .btn--primary:hover{background:#eff6ff}

/* ===== FAQ ===== */
.faq-section{padding:48px 0}
.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 #e2e8f0;border-radius:10px;margin-bottom:10px;overflow:hidden;background:#fff}
.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,#eff6ff,#dbeafe);border-radius:16px}
.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:#3b82f6}
.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:#3b82f6;color:#3b82f6;background:#eff6ff}
.archive__filter--active{background:#3b82f6;color:#fff;border-color:#3b82f6}
.archive__filter--active:hover{background:#2563eb;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 #e2e8f0;border-radius:12px;padding:20px;color:inherit;transition:all .2s}
.post-card:hover{border-color:#3b82f6;box-shadow:0 2px 12px rgba(59,130,246,.08)}
.post-card__meta{display:flex;align-items:center;gap:8px;font-size:.8rem;color:#94a3b8;margin-bottom:6px}
.post-card__tag{color:#3b82f6;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 #e2e8f0;border-radius:10px;padding:16px 20px;color:inherit;transition:all .2s}
.tag-card:hover{border-color:#3b82f6;box-shadow:0 2px 8px rgba(59,130,246,.08)}
.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:#3b82f6;font-weight:600;background:#eff6ff;padding:4px 12px;border-radius:20px}
.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:#3b82f6;background:#eff6ff}
.toc-pill--active{background:#3b82f6;color:#fff}

/* ===== Post body ===== */
.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:#3b82f6;text-decoration:underline;text-underline-offset:2px}
.post-body a:hover{color:#2563eb}
.post-body strong{color:#0f172a}
.post-body blockquote{border-left:4px solid #3b82f6;padding:12px 20px;margin:20px 0;background:#eff6ff;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:#eff6ff;font-weight:600;text-align:left;padding:10px 14px;border:1px solid #e2e8f0}
.post-body td{padding:10px 14px;border:1px solid #e2e8f0}
.post-body hr{border:none;border-top:1px solid #e2e8f0;margin:32px 0}
.post-body code{background:#f1f5f9;padding:2px 6px;border-radius:4px;font-size:.88em;color:#2563eb}
.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:#eff6ff;border:1px solid #bfdbfe;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 #e2e8f0}
.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:#eff6ff;color:#3b82f6}
.share-row__btn svg{width:18px;height:18px}

/* ===== Related posts ===== */
.related{margin:32px 0 0;padding-top:24px;border-top:1px solid #e2e8f0}
.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 #e2e8f0;border-radius:10px;padding:16px;transition:all .2s}
.related__item:hover{border-color:#3b82f6}
.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:#3b82f6}
.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,#3b82f6,#60a5fa,#3b82f6)}
.site-footer{background:#fff;padding:16px 0;border-top:1px solid #e2e8f0}
.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;background:#3b82f6;color:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}
.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:#3b82f6}
.footer-lang{display:flex;gap:4px;margin-left:8px}
.footer-lang__tab{display:inline-block;padding:2px 8px;font-size:.75rem;font-weight:600;color:#94a3b8;border-radius:4px;text-decoration:none;transition:all .15s}
.footer-lang__tab:hover{color:#3b82f6}
.footer-lang__tab--sel{color:#3b82f6;background:#eff6ff}
@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;color:#e2e8f0;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:#3b82f6;font-weight:600}

/* ===== 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}
.disclaimer-page{padding:40px 0 48px;max-width:780px;margin:0 auto}
.disclaimer-page h1{font-size:1.8rem;font-weight:800;margin-bottom:20px}
.disclaimer-page h2{font-size:1.15rem;font-weight:700;margin:24px 0 10px;color:#0f172a}
.disclaimer-page p{margin-bottom:14px;color:#475569;line-height:1.8}
.disclaimer-page ul{list-style:disc;padding-left:20px;margin-bottom:16px}
.disclaimer-page li{margin-bottom:6px;color:#475569}

/* ===== View all ===== */
.view-all{display:inline-flex;align-items:center;gap:4px;color:#3b82f6;font-weight:600;font-size:.9rem;margin-top:16px}
.view-all:hover{color:#2563eb}

/* ===== 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 #e2e8f0;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 #e2e8f0;border-radius:12px;padding:20px;transition:box-shadow .2s,border-color .2s}
.skill-card:hover{border-color:#3b82f6;box-shadow:0 4px 16px rgba(59,130,246,.12)}
.skill-card__head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.skill-card__icon{font-size:1.5rem;flex-shrink:0}
.skill-card__name{font-size:1.05rem;font-weight:700;color:#0f172a}
.skill-card__tag{font-size:.7rem;background:#eff6ff;color:#3b82f6;padding:2px 8px;border-radius:20px;font-weight:600;margin-left:auto;white-space:nowrap}
.skill-card__desc{font-size:.88rem;color:#475569;line-height:1.7;margin-bottom:12px}
.skill-card__install{background:#f8fafc;border:1px solid #e2e8f0;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 #e2e8f0;border-radius:6px;padding:4px 8px;font-size:.7rem;color:#64748b;cursor:pointer;transition:all .15s}
.skill-card__copy:hover{border-color:#3b82f6;color:#3b82f6}
.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:#3b82f6}
.skill-card__arrow{margin-left:auto;color:#cbd5e1;font-size:1.2rem;transition:color .15s}
a.skill-card:hover .skill-card__arrow{color:#3b82f6}
.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:#3b82f6;background:#eff6ff;border-left-color:#3b82f6}
@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}
.skill-detail__title{font-size:2rem;font-weight:800;margin:0 0 6px}
.skill-detail__tag{font-size:.8rem;background:#eff6ff;color:#3b82f6;padding:3px 12px;border-radius:20px;font-weight:600;margin-right:8px}
.skill-detail__cat{font-size:.8rem;color:#64748b}
.skill-detail__install-box{background:#fff;border:1px solid #e2e8f0;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:#f8fafc;border:1px solid #e2e8f0;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:#3b82f6;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__back{margin-top:36px;padding-top:20px;border-top:1px solid #e2e8f0}
.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 #e2e8f0}
.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:#eff6ff;color:#3b82f6}
.skill-sidebar__item--active{background:#eff6ff;color:#3b82f6;font-weight:600;border-left:2px solid #3b82f6}
.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 #e2e8f0;background:#fff;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 12px rgba(0,0,0,.08);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:#3b82f6;border-color:#3b82f6;box-shadow:0 4px 16px rgba(59,130,246,.15)}
.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}}
