:root {
  --ink: #17202a;
  --muted: #687684;
  --line: #e3e8e8;
  --paper: #f6f7f6;
  --hot: #f72f68;
  --green: #1d7c5a;
  --shadow: 0 18px 44px rgba(25, 34, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #1d7c5a, #0d7c85);
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.blog-header p {
  color: var(--muted);
}

.blog-nav {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.blog-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.blog-nav a.is-active,
.blog-nav a:hover {
  color: var(--green);
  background: rgba(29, 124, 90, 0.08);
}

.blog-header p {
  margin: 0 0 0 auto;
  font-size: 14px;
}

.blog-sidebar {
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 0;
  width: 230px;
  padding: 18px 18px 28px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.blog-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: #596775;
  font-size: 16px;
}

.blog-sidebar a.is-active,
.blog-sidebar a:hover {
  color: var(--ink);
}

.blog-sidebar span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #4e5964;
  font-weight: 900;
}

.blog-main {
  width: min(1400px, calc(100% - 300px));
  margin-left: 260px;
  padding: 46px 28px 72px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.hero-feature,
.side-card,
.article-card,
.aside-box {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-feature {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 330px;
  padding: 34px;
  color: #20212a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(23, 32, 42, 0.38)),
    linear-gradient(135deg, #ffe7df, #fff4ea 54%, #ffd7d5);
}

.hero-feature span,
.side-card span {
  margin-bottom: 12px;
  font-weight: 900;
}

.hero-feature h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.hero-feature p {
  max-width: 760px;
  margin: 0;
  color: rgba(23, 32, 42, 0.78);
  font-size: 18px;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.side-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 156px;
  padding: 22px;
}

.side-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.side-card.dark {
  color: #fff;
  background: linear-gradient(135deg, #123b2c, #111827 64%, #344d38);
}

.side-card.pink {
  background: linear-gradient(135deg, #ffe8ec, #fff7f0);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.article-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.article-tabs button {
  min-height: 28px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  color: #67727e;
  font-weight: 800;
  background: #e9ecec;
  cursor: pointer;
}

.article-tabs button.is-active {
  color: #fff;
  background: var(--hot);
}

.article-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  min-height: 210px;
  margin-bottom: 18px;
  padding: 20px;
  background: #fff;
}

.article-card:hover {
  transform: translateY(-2px);
}

.article-thumb {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 8px;
  color: #27334a;
  font-size: 34px;
  font-weight: 900;
}

.thumb-writing {
  background: #fbfff2;
}

.thumb-api {
  background: #ffe9e3;
}

.thumb-ppt {
  background: #e3fff6;
}

.thumb-image {
  background: #eef0ff;
}

.thumb-video {
  background: #e5f6ff;
}

.thumb-agent {
  background: #f0e7ff;
}

.thumb-study {
  background: #fff4d8;
}

.article-card h2 {
  margin: 8px 0 16px;
  font-size: 24px;
  line-height: 1.35;
}

.article-card p {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8b96a0;
  font-size: 14px;
}

.blog-aside {
  display: grid;
  gap: 18px;
}

.aside-box {
  padding: 22px;
  background: #fff;
}

.aside-box h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.hot-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.hot-list a:hover,
.tag-cloud a:hover {
  color: var(--green);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 7px 10px;
  border-radius: 7px;
  color: #5f6b76;
  background: #eef2f1;
}

.post-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 82px;
}

.post-article {
  padding: clamp(24px, 4vw, 54px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--green);
  font-weight: 900;
}

.post-kicker {
  margin: 0 0 12px;
  color: var(--hot);
  font-size: 14px;
  font-weight: 900;
}

.post-article h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.post-desc {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.post-article section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.post-article section + section {
  margin-top: 24px;
}

.post-article h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.post-article p {
  margin: 0;
  color: #40505c;
  font-size: 17px;
  line-height: 1.9;
}

.about-main {
  width: min(1400px, calc(100% - 300px));
  margin-left: 260px;
  padding: 42px 28px 72px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.about-content,
.about-box {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-content {
  padding: clamp(28px, 4vw, 54px);
  color: #26323d;
  font-size: 17px;
  line-height: 1.95;
}

.about-lead {
  margin: 0 0 32px;
  font-size: 18px;
}

.about-content h1,
.about-content h2 {
  margin: 34px 0 18px;
  padding-left: 18px;
  border-left: 4px solid #5e66ff;
  color: var(--ink);
  line-height: 1.25;
}

.about-content h1 {
  margin-top: 0;
  font-size: 28px;
}

.about-content h2 {
  font-size: 25px;
}

.about-content p {
  margin: 0 0 22px;
}

.about-content ul {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding-left: 26px;
}

.about-content a {
  color: var(--green);
  font-weight: 900;
}

.about-aside {
  display: grid;
  gap: 18px;
}

.about-box {
  padding: 22px;
}

.about-box h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid #5e66ff;
  font-size: 20px;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.latest-grid a {
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 7px;
  color: #52606d;
  background: #eef1f3;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-grid a:hover,
.latest-articles a:hover strong {
  color: var(--green);
}

.latest-articles {
  display: grid;
  gap: 16px;
}

.latest-articles a {
  display: grid;
  gap: 6px;
}

.latest-articles strong {
  font-size: 16px;
  line-height: 1.4;
}

.latest-articles span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .blog-sidebar {
    display: none;
  }

  .blog-main,
  .about-main {
    width: min(100% - 28px, 1100px);
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .blog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-header p {
    margin-left: 0;
  }

  .blog-hero,
  .blog-layout,
  .article-card,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    min-height: 140px;
  }
}
