/* =========================================================
   sunsetgrad theme — 日落橙紫渐变
   前缀: sg-  |  无 backdrop-filter，纯色块+大面积渐变表现层次
   ========================================================= */

:root {
  --sg-orange: #ff6b35;
  --sg-pink: #f72585;
  --sg-purple: #7209b7;
  --sg-gradient: linear-gradient(115deg, var(--sg-orange) 0%, var(--sg-pink) 52%, var(--sg-purple) 100%);
  --sg-gradient-soft: linear-gradient(115deg, rgba(255,107,53,.14) 0%, rgba(247,37,133,.14) 52%, rgba(114,9,183,.14) 100%);
  --sg-bg: #fff8f4;
  --sg-bg-alt: #fff3ec;
  --sg-card-bg: #ffffff;
  --sg-border: #ffdcc4;
  --sg-text: #3a2b28;
  --sg-text-soft: #8a7a72;
  --sg-text-faint: #b3a29a;
  --sg-radius: 14px;
  --sg-radius-lg: 22px;
  --sg-shadow: 0 10px 30px -14px rgba(114, 9, 183, .28);
  --sg-shadow-sm: 0 6px 16px -10px rgba(255, 107, 53, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--sg-bg);
  color: var(--sg-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--sg-pink); }

ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

/* ---------- 渐变文字工具类（含兜底） ---------- */
.sg-gradient-text {
  color: var(--sg-pink); /* fallback */
  background: var(--sg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text) {
  .sg-gradient-text {
    color: var(--sg-pink);
    -webkit-text-fill-color: initial;
    background: none;
  }
}

/* =========================================================
   Header / Nav
   ========================================================= */
.sg-header {
  background: var(--sg-bg);
  border-bottom: 1px solid var(--sg-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.sg-header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.sg-brand img {
  width: 230px;
  max-width: 42vw;
  height: auto;
}

.sg-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.sg-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--sg-gradient);
  border-radius: 2px;
}

.sg-navbar { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sg-navbar::-webkit-scrollbar { display: none; }

.sg-nav-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.sg-nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 16px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sg-text);
  letter-spacing: .2px;
}
.sg-nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--sg-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}
.sg-nav-link:hover,
.sg-nav-link:focus-visible {
  color: var(--sg-pink);
}
.sg-nav-link:hover::after,
.sg-nav-link:focus-visible::after { transform: scaleX(1); }

.sg-nav-home { color: var(--sg-purple); }

.sg-nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--sg-border);
  margin: 0 2px;
}
.sg-nav-sep:last-child { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.sg-hero {
  position: relative;
  overflow: hidden;
  background: var(--sg-gradient);
  padding: 64px 24px 76px;
  text-align: center;
  isolation: isolate;
}

.sg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
}
.sg-glow-1 { width: 260px; height: 260px; background: #ffe08a; top: -80px; left: 6%; }
.sg-glow-2 { width: 220px; height: 220px; background: #ff9fd1; bottom: -60px; right: 10%; }
.sg-glow-3 { width: 180px; height: 180px; background: #c084fc; top: 30%; right: 32%; }

.sg-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.sg-hero-eyebrow {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sg-hero-title {
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  text-shadow: 0 6px 24px rgba(0,0,0,.15);
}

.sg-hero-desc {
  margin-top: 14px;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.8;
}

.sg-hero-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sg-hero-tag {
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.sg-hero-tag:hover {
  background: rgba(255,255,255,.32);
  color: #fff;
}

/* =========================================================
   Home sections + 4-col equal grid
   ========================================================= */
.sg-main {
  max-width: 1200px;
  margin: -36px auto 0;
  padding: 0 24px 40px;
  position: relative;
  z-index: 2;
}

.sg-section { margin-bottom: 42px; }

.sg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--sg-radius);
  background: var(--sg-gradient);
  box-shadow: var(--sg-shadow-sm);
  margin-bottom: 18px;
}

.sg-section-title {
  font-size: 18px;
  font-weight: 800;
}
.sg-section-title a { color: #fff; }

.sg-section-more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  opacity: .9;
  border-bottom: 1px solid rgba(255,255,255,.6);
  padding-bottom: 1px;
}
.sg-section-more:hover { color: #fff; opacity: 1; }

.sg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* 渐变描边效果：外层渐变底色作为 1px 描边 + 内层纯色卡片面板 */
.sg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--sg-radius);
  padding: 1px;
  background-image: var(--sg-gradient-soft);
  box-shadow: var(--sg-shadow);
}

.sg-card-title {
  font-size: 15px;
  font-weight: 700;
  padding: 16px 16px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.sg-card-title a { color: var(--sg-text); }
.sg-card-title a:hover { color: var(--sg-pink); }

.sg-card-info {
  font-size: 13px;
  color: var(--sg-text-soft);
  padding: 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

.sg-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 14px;
  font-size: 12px;
  color: var(--sg-text-faint);
  border-top: 1px dashed var(--sg-border);
  margin-inline: 16px;
  padding-inline: 0;
}

/* =========================================================
   Page head (list / show)
   ========================================================= */
.sg-pagehead {
  background: var(--sg-gradient);
  padding: 34px 24px;
}
.sg-pagehead-narrow { padding: 26px 24px; }

.sg-pagehead-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sg-breadcrumb {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  margin-bottom: 10px;
}
.sg-breadcrumb a { color: #fff; }
.sg-breadcrumb a:hover { text-decoration: underline; }
.sg-breadcrumb i { font-style: normal; margin: 0 6px; opacity: .7; }
.sg-breadcrumb span { color: #fff; opacity: .95; }

.sg-pagehead-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

/* =========================================================
   Layout: main + sidebar
   ========================================================= */
.sg-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.sg-col-main { min-width: 0; }

.sg-panel {
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-lg);
  padding: 26px;
  box-shadow: var(--sg-shadow);
}

/* list rows */
.sg-artrows { display: flex; flex-direction: column; }
.sg-artrow {
  padding: 18px 0;
  border-bottom: 1px dashed var(--sg-border);
}
.sg-artrow:first-child { padding-top: 2px; }
.sg-artrow:last-child { border-bottom: none; }

.sg-artrow-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-artrow-title a:hover { color: var(--sg-pink); }

.sg-artrow-info {
  font-size: 13px;
  color: var(--sg-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.sg-artrow-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--sg-text-faint);
}
.sg-meta-scores { color: var(--sg-orange); }

/* pagination */
.sg-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.sg-pager-link {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--sg-border);
  font-size: 13px;
  color: var(--sg-text-soft);
}
.sg-pager-link:hover {
  border-color: transparent;
  background: var(--sg-gradient);
  color: #fff;
}

/* sidebar widgets */
.sg-col-side { display: flex; flex-direction: column; gap: 22px; }

.sg-widget {
  background: var(--sg-card-bg);
  border-radius: var(--sg-radius-lg);
  border: 1px solid var(--sg-border);
  overflow: hidden;
  box-shadow: var(--sg-shadow);
}

.sg-widget-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--sg-gradient);
  padding: 12px 18px;
}

.sg-widget-list { padding: 6px 18px 14px; }

.sg-widget-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--sg-border);
  min-width: 0;
}
.sg-widget-item:last-child { border-bottom: none; }

.sg-widget-item a {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-widget-item a:hover { color: var(--sg-pink); }

.sg-widget-item span {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--sg-text-faint);
}

/* =========================================================
   Article (show.html)
   ========================================================= */
.sg-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--sg-text-soft);
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--sg-border);
}
.sg-meta-source { color: var(--sg-purple); font-weight: 600; }

.sg-article-summary {
  background: var(--sg-bg-alt);
  border-left: 3px solid var(--sg-orange);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--sg-text-soft);
  margin-bottom: 22px;
}

.sg-article-body {
  font-size: 16px;
  color: var(--sg-text);
}
.sg-article-body img { border-radius: 10px; margin: 14px 0; }
.sg-article-body p { margin: 14px 0; }

/* prev / next — 两行整行堆叠区块 */
.sg-adjacent {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-adjacent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--sg-radius);
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  min-width: 0;
}

.sg-adjacent-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: var(--sg-gradient);
  padding: 4px 10px;
  border-radius: 999px;
}

.sg-adjacent-link {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
}
.sg-adjacent-link:hover { color: var(--sg-pink); }

/* =========================================================
   Footer
   ========================================================= */
.sg-footer { margin-top: 20px; background: var(--sg-bg-alt); border-top: 1px solid var(--sg-border); }

.sg-linkband { padding: 26px 24px 10px; }
.sg-linkband-inner { max-width: 1200px; margin: 0 auto; }

.sg-linkband-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--sg-purple);
  margin-bottom: 12px;
}

.sg-linklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.sg-linklist a {
  font-size: 12.5px;
  color: var(--sg-text-soft);
}
.sg-linklist a:hover { color: var(--sg-pink); }

.sg-copyband {
  padding: 16px 24px 26px;
  text-align: center;
}
.sg-copytext {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--sg-text-faint);
}
.sg-copytext a { color: var(--sg-text-soft); }
.sg-copytext a:hover { color: var(--sg-pink); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .sg-grid { grid-template-columns: repeat(3, 1fr); }
  .sg-layout { grid-template-columns: 1fr; }
  .sg-col-side { flex-direction: row; flex-wrap: wrap; }
  .sg-col-side .sg-widget { flex: 1 1 260px; }
}

@media (max-width: 768px) {
  .sg-header-bar { flex-wrap: wrap; gap: 10px 16px; }
  .sg-burger { display: flex; order: 2; }
  .sg-navbar {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }
  .sg-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-hero { padding: 48px 20px 60px; }
  .sg-hero-title { font-size: 30px; }
  .sg-col-side { flex-direction: column; }
  .sg-adjacent-link { white-space: normal; }
}

@media (max-width: 480px) {
  .sg-grid { grid-template-columns: 1fr; }
  .sg-header-bar { padding: 12px 16px; }
  .sg-brand img { width: 160px; }
  .sg-hero-title { font-size: 24px; }
  .sg-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sg-layout, .sg-main { padding-left: 16px; padding-right: 16px; }
  .sg-adjacent-row { flex-wrap: wrap; }
}
