
:root{
  --sg-ink:#E6E8EC;          /* 深墨→正文浅色 */
  --sg-bg:#12161C;           /* 米白→深灰蓝主背景 */
  --sg-card:#1B222C;         /* 白卡片→深卡片 */
  --sg-blue:#74A9E8;         /* 柔蓝提亮 */
  --sg-pink:#EFA9B8;         /* 柔粉提亮 */
  --sg-mint:#A9D9B8;         /* 薄荷提亮 */
  --sg-lav:#C9BCEC;          /* 薰衣草提亮 */
  --sg-yellow:#262E3A;       /* 占位黄→深色占位底 */
  --sg-line:rgba(255,255,255,.08);
  --sg-muted:rgba(255,255,255,.55);
  --sg-radius:18px;
  --sg-shadow:0 6px 20px rgba(0,0,0,.32);
  --sg-font:"Microsoft YaHei","PingFang SC",system-ui,-apple-system,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--sg-font);background:var(--sg-bg);color:var(--sg-ink);line-height:1.7;
  background-image:radial-gradient(circle at 12% 8%,rgba(239,169,184,.14) 0,transparent 32%),radial-gradient(circle at 92% 20%,rgba(116,169,232,.14) 0,transparent 34%),radial-gradient(circle at 50% 100%,rgba(169,217,184,.12) 0,transparent 40%);}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.sg-wrap{max-width:1160px;margin:0 auto;padding:0 22px}

/* 报头 */
.sg-masthead{padding:26px 0 8px}
.sg-masthead-in{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.sg-logo{display:flex;align-items:center;gap:12px;line-height:1.1}
.sg-logo-dot{width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,var(--sg-pink),var(--sg-blue))}
.sg-logo-name{font-size:30px;font-weight:800;letter-spacing:.04em}
.sg-logo-sub{font-size:11px;letter-spacing:.22em;color:var(--sg-muted);display:block;margin-top:3px}
.sg-search{display:flex;background:var(--sg-card);border-radius:999px;overflow:hidden;box-shadow:var(--sg-shadow);border:1px solid var(--sg-line)}
.sg-search input{border:0;background:transparent;padding:0 18px;height:40px;width:230px;font-size:14px;outline:none;font-family:var(--sg-font);color:var(--sg-ink)}
.sg-search button{border:0;background:var(--sg-blue);color:#0E1622;height:40px;padding:0 20px;cursor:pointer;font-size:14px;font-weight:600}
.sg-search button:hover{background:#5E97D6}

/* 导航（sticky 半透明深色 + blur） */
.sg-nav{margin-top:14px;position:sticky;top:0;z-index:50;background:rgba(18,22,28,.85);backdrop-filter:blur(10px);padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.sg-nav-in{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sg-nav-item{background:var(--sg-card);border:1px solid var(--sg-line);border-radius:999px;padding:8px 18px;font-size:14px;box-shadow:none;transition:.2s;color:var(--sg-ink)}
.sg-nav-item:hover{transform:translateY(-2px)}
.sg-nav-item.on{background:var(--sg-blue);color:#0E1622;font-weight:600}
.sg-nav-toggle{display:none;border:1px solid var(--sg-line);background:var(--sg-card);width:40px;height:40px;border-radius:50%;font-size:18px;cursor:pointer;margin-left:auto;color:var(--sg-ink)}

/* 面包屑 */
.sg-crumb{padding:14px 0 0;font-size:13px;color:var(--sg-muted)}
.sg-crumb a:hover{color:#F2A8B6}
.sg-crumb-sep{margin:0 8px;color:var(--sg-blue)}

/* Hero */
.sg-hero{text-align:center;padding:48px 0 30px}
.sg-hero-title{font-size:42px;font-weight:800;letter-spacing:.02em;line-height:1.3}
.sg-hero-sub{margin-top:12px;color:var(--sg-muted);font-size:16px}

/* 板块 */
.sg-sec{margin-top:40px}
.sg-sec-head{display:flex;align-items:baseline;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.sg-sec-head h2{font-size:24px;font-weight:800}
.sg-sec-head h1{font-size:26px;font-weight:800}
.sg-sec-tip{font-size:11px;letter-spacing:.2em;color:#4A222C;background:var(--sg-pink);padding:3px 12px;border-radius:999px;font-weight:600}
.sg-sec-more{margin-left:auto;font-size:13px;color:var(--sg-muted)}

/* 瀑布流卡片墙 */
.sg-wall{columns:3;column-gap:18px}
.sg-card{break-inside:avoid;background:var(--sg-card);border:1px solid var(--sg-line);border-radius:var(--sg-radius);overflow:hidden;box-shadow:var(--sg-shadow);margin-bottom:18px;transition:.25s;display:block}
.sg-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.45)}
.sg-card-img{aspect-ratio:4/3;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--sg-yellow)}
.sg-card-img img{width:100%;height:100%;object-fit:cover}
.sg-card-noimg{color:#AEB8C6;letter-spacing:.2em;font-size:15px}
.sg-noimg-0{background:linear-gradient(135deg,rgba(116,169,232,.22),rgba(116,169,232,.06))}
.sg-noimg-1{background:linear-gradient(135deg,rgba(239,169,184,.22),rgba(239,169,184,.06))}
.sg-noimg-2{background:linear-gradient(135deg,rgba(169,217,184,.2),rgba(169,217,184,.05))}
.sg-noimg-3{background:linear-gradient(135deg,rgba(201,188,236,.22),rgba(201,188,236,.06))}
.sg-card-body{padding:16px 18px 18px}
.sg-pill{display:inline-block;background:rgba(169,217,184,.16);color:var(--sg-mint);font-size:12px;padding:3px 12px;border-radius:999px;margin-bottom:10px}
.sg-card-title{font-size:18px;font-weight:700;line-height:1.45}
.sg-card-title a:hover{color:#F2A8B6}
.sg-rec{display:inline-block;background:rgba(239,169,184,.16);color:var(--sg-pink);font-size:11px;padding:1px 8px;border-radius:999px;margin-right:6px}
.sg-card-intro{color:var(--sg-muted);font-size:13.5px;margin-top:8px}
.sg-meta{margin-top:12px;font-size:12px;color:var(--sg-muted);display:flex;gap:14px;flex-wrap:wrap}

/* 指南区 */
.sg-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.sg-guide{border-radius:var(--sg-radius);padding:28px 24px;min-height:200px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--sg-shadow);border:1px solid var(--sg-line)}
.sg-guide-emoji{font-size:34px}
.sg-guide h3{font-size:21px;font-weight:800}
.sg-guide p{font-size:13.5px;opacity:.9;flex:1;color:var(--sg-muted)}
.sg-guide a{font-size:13px;font-weight:700;color:#D8C7B6}
.sg-guide-blue{background:linear-gradient(160deg,#22303F,#1A2330)}
.sg-guide-pink{background:linear-gradient(160deg,#33232B,#2A1C22)}
.sg-guide-mint{background:linear-gradient(160deg,#1E2E26,#18241E)}

/* 热度榜 */
.sg-hot{list-style:none}
.sg-hot li{display:flex;align-items:baseline;gap:14px;background:var(--sg-card);border:1px solid var(--sg-line);border-radius:14px;padding:14px 18px;margin-bottom:10px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.sg-hot li a{flex:1;font-size:15px}
.sg-hot-num{width:26px;height:26px;border-radius:50%;background:rgba(201,188,236,.18);color:var(--sg-lav);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800}
.sg-hot-meta{font-size:12px;color:var(--sg-muted)}

/* 文章页 */
.sg-post-wrap{max-width:820px}
.sg-post{background:var(--sg-card);border:1px solid var(--sg-line);border-radius:var(--sg-radius);padding:42px 46px;margin-top:26px;box-shadow:var(--sg-shadow)}
.sg-post-title{font-size:32px;font-weight:800;line-height:1.35;margin-top:14px}
.sg-post-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--sg-muted);background:rgba(255,255,255,.05);border:1px solid var(--sg-line);border-radius:999px;padding:10px 18px;margin:18px 0 26px}
.sg-post-meta a{color:#F2A8B6}
.sg-post-content{font-size:16.5px}
.sg-post-content p{margin-bottom:1.1em}
.sg-post-content h2,.sg-post-content h3{font-size:21px;margin:1.4em 0 .6em}
.sg-post-content img{margin:14px auto;border-radius:12px}
.sg-post-content a{color:#EFA9B8}
.sg-post-tags{margin:28px 0 4px;font-size:13px}
.sg-post-tags a{background:rgba(255,255,255,.05);border:1px solid var(--sg-line);padding:4px 14px;margin-right:8px;display:inline-block;border-radius:999px;color:var(--sg-muted)}
.sg-post-tags a:hover{background:var(--sg-pink);color:#4A222C}
.sg-pn{display:flex;justify-content:space-between;gap:16px;margin-top:30px;padding-top:18px;border-top:1px dashed var(--sg-line);font-size:14px;flex-wrap:wrap}
.sg-pn a{max-width:46%}
.sg-pn-next{color:#EFA9B8;text-align:right}

/* 相关 */
.sg-related{margin-top:40px}
.sg-rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.sg-rel-item{background:var(--sg-card);border:1px solid var(--sg-line);border-radius:14px;padding:16px;display:block;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.sg-rel-item h3{font-size:15.5px;font-weight:700;line-height:1.45}
.sg-rel-item p{font-size:12px;color:var(--sg-muted);margin-top:8px}
.sg-rel-item:hover{transform:translateY(-3px)}

/* 分页 */
.sg-pagebar{display:flex;gap:8px;flex-wrap:wrap;margin:30px 0 10px}
.sg-pagebar a,.sg-pagebar span{background:var(--sg-card);border:1px solid var(--sg-line);border-radius:999px;padding:7px 15px;font-size:13px;box-shadow:0 2px 8px rgba(0,0,0,.2);color:var(--sg-ink)}
.sg-pagebar a.on,.sg-pagebar a:hover{background:var(--sg-blue);color:#0E1622;font-weight:600}

/* 评论 */
.sg-comments{margin-top:34px}
.sg-comments h2,.sg-commentpost h2{font-size:21px;font-weight:800;margin-bottom:16px}
.sg-comment-item{background:rgba(255,255,255,.04);border:1px solid var(--sg-line);border-radius:14px;padding:14px 18px;margin-bottom:12px}
.sg-comment-head{display:flex;justify-content:space-between;font-size:13px;color:var(--sg-muted);margin-bottom:8px}
.sg-comment-head b{color:var(--sg-ink)}
.sg-comment-content{font-size:14.5px}
.sg-commentpost{margin-top:26px}
.sg-cf-row{margin-bottom:12px}
.sg-cf-row input,.sg-cf-row textarea{width:100%;border:1px solid var(--sg-line);border-radius:12px;padding:11px 14px;font-size:14px;background:#0E131A;color:var(--sg-ink);font-family:var(--sg-font);outline:none}
.sg-cf-row img{display:inline;margin-top:8px}
.sg-cf-row button{border:0;background:var(--sg-blue);color:#0E1622;padding:11px 34px;font-size:14px;font-weight:600;border-radius:999px;cursor:pointer}
.sg-cf-row button:hover{background:#5E97D6}

/* 404 */
.sg-404{text-align:center;padding:80px 20px}
.sg-404-emoji{font-size:60px}
.sg-404 h1{font-size:88px;font-weight:800;color:var(--sg-blue);margin-top:6px}
.sg-404 p{color:var(--sg-muted);margin:14px 0 26px}
.sg-404 a{background:var(--sg-blue);color:#0E1622;border-radius:999px;padding:11px 34px;display:inline-block;font-weight:600}
.sg-404 a:hover{background:var(--sg-pink);color:#4A222C}

/* 页脚 */
.sg-footer{margin-top:60px;padding:50px 0 28px;font-size:13px;color:var(--sg-muted);border-top:1px solid var(--sg-line)}
.sg-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px}
.sg-footer h3{font-size:24px;font-weight:800;color:var(--sg-ink)}
.sg-footer h4{color:#EFA9B8;font-size:14px;margin-bottom:14px}
.sg-footer nav{display:flex;flex-direction:column;gap:9px}
.sg-footer nav a:hover{color:#F2A8B6}
.sg-footer-brand p{margin-top:10px;line-height:1.8}
.sg-footer-copy{text-align:center;border-top:1px solid var(--sg-line);margin-top:32px;padding-top:16px;color:var(--sg-muted);font-size:12px}
.sg-top{position:fixed;right:24px;bottom:30px;width:44px;height:44px;border:1px solid var(--sg-line);border-radius:50%;background:var(--sg-card);color:var(--sg-blue);font-size:18px;cursor:pointer;z-index:60;box-shadow:0 4px 14px rgba(0,0,0,.4)}
.sg-top:hover{background:var(--sg-pink);color:#4A222C}

@media (max-width:960px){
  .sg-wall{columns:2}
  .sg-guide-grid{grid-template-columns:1fr 1fr}
  .sg-rel-grid{grid-template-columns:1fr 1fr}
  .sg-footer-grid{grid-template-columns:1fr 1fr}
  .sg-hero-title{font-size:32px}
}
@media (max-width:640px){
  .sg-wall{columns:1}
  .sg-guide-grid{grid-template-columns:1fr}
  .sg-rel-grid{grid-template-columns:1fr}
  .sg-footer-grid{grid-template-columns:1fr}
  .sg-search input{width:150px}
  .sg-post{padding:26px 20px}
  .sg-post-title{font-size:25px}
  .sg-nav-toggle{display:block}
  .sg-nav-in{flex-wrap:wrap}
  .sg-nav-in .sg-nav-item{display:none;width:100%;text-align:center}
  .sg-nav.open .sg-nav-item{display:block}
  .sg-pn{flex-direction:column}
  .sg-pn a{max-width:none}
}
