/* 基础变量：统一网站的主色、阴影、圆角与间距 */
:root {
  --color-primary: #2463eb;
  --color-primary-dark: #163f95;
  --color-accent: #5fa8ff;
  --color-text: #11203a;
  --color-text-soft: #5d6b82;
  --color-bg: #f4f7fb;
  --color-surface: rgba(255, 255, 255, 0.92);
  --color-surface-strong: #ffffff;
  --color-border: rgba(124, 148, 186, 0.22);
  --color-shadow: 0 18px 40px rgba(17, 32, 58, 0.10);
  --color-shadow-soft: 0 8px 24px rgba(36, 99, 235, 0.08);
  --gradient-main: linear-gradient(135deg, #0d3b8c 0%, #2463eb 48%, #63b4ff 100%);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container-width: 1180px;
  --transition: all 0.25s ease;
}

/* 全局重置 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(95, 168, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 55%, #eef3f9 100%);
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
}

.container > * {
  min-width: 0;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 14px 28px rgba(17, 32, 58, 0.08);
  border-bottom-color: rgba(124, 148, 186, 0.16);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--color-shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text small {
  color: var(--color-text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-home .brand-text small {
  letter-spacing: 0;
  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--color-text-soft);
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary-dark);
  background: rgba(36, 99, 235, 0.10);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(36, 99, 235, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-primary-dark);
  transition: var(--transition);
}

/* 首页与内页首屏 */
.hero-section,
.page-hero {
  padding: 60px 0 24px;
}

.page-hero-compact {
  padding-bottom: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 10px 0 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero-text,
.page-hero p:last-child,
.section-heading p {
  color: var(--color-text-soft);
}

.page-hero p:last-child,
.hero-text,
.section-heading p {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  transition: var(--transition);
}

.button-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--color-shadow-soft);
}

.button-primary:hover {
  transform: translateY(-2px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-home {
  position: relative;
  padding: 56px 0 30px;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(circle at 15% 18%, rgba(99, 180, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #edf5ff 0%, #e7f0ff 40%, #f7fbff 100%);
  z-index: -1;
}

.hero-home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-home-copy {
  padding: 28px 0 22px;
}

.hero-home-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  letter-spacing: -0.05em;
}

.hero-subtitle {
  margin: 18px 0 14px;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.hero-home-copy .hero-text {
  font-size: 1.03rem;
  max-width: 680px;
}

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

.hero-spotlight {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 44px rgba(20, 54, 122, 0.12);
  backdrop-filter: blur(18px);
}

.hero-spotlight-grid {
  display: grid;
  gap: 14px;
}

.hero-spotlight-grid article {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 248, 255, 0.96));
  border: 1px solid rgba(128, 154, 195, 0.16);
}

.hero-spotlight-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(36, 99, 235, 0.10);
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-spotlight-grid h2 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.hero-spotlight-grid p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(16, 53, 123, 0.92);
  color: #fff;
  box-shadow: 0 18px 30px rgba(15, 47, 106, 0.16);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.7rem;
  line-height: 1;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.panel-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--color-shadow);
}

.panel-glass {
  position: relative;
  overflow: hidden;
}

.panel-glass::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-main);
}

.panel-label {
  margin: 0 0 18px;
  font-weight: 700;
}

.focus-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-soft);
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.panel-stats div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(36, 99, 235, 0.06);
  text-align: center;
}

.panel-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
}

/* 通用分区 */
.section {
  padding: 28px 0 64px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(232, 240, 251, 0.55));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading.align-left {
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.section-heading-wide {
  max-width: 860px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.project-highlight,
.article-preview,
.content-card,
.project-card,
.article-card {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--color-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.info-card:hover,
.project-highlight:hover,
.article-preview:hover,
.content-card:hover,
.project-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 99, 235, 0.18);
  box-shadow: 0 16px 36px rgba(17, 32, 58, 0.12);
}

.info-card {
  padding: 24px;
}

.homepage-direction-grid {
  gap: 22px;
}

.direction-card {
  position: relative;
  padding: 28px 24px 24px;
  overflow: hidden;
}

.direction-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-main);
}

.direction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(36, 99, 235, 0.10);
  color: var(--color-primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.info-card h3,
.project-highlight h3,
.article-preview h3,
.content-card h2,
.project-card h2,
.article-card h2 {
  margin-top: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-highlight {
  padding: 24px;
}

.homepage-project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.homepage-project-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 148, 186, 0.16);
  box-shadow: var(--color-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.homepage-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 99, 235, 0.18);
  box-shadow: 0 16px 36px rgba(17, 32, 58, 0.12);
}

.homepage-project-card:nth-child(1),
.homepage-project-card:nth-child(2) {
  grid-column: span 6;
}

.homepage-project-card:nth-child(3),
.homepage-project-card:nth-child(4),
.homepage-project-card:nth-child(5) {
  grid-column: span 4;
}

.homepage-project-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.homepage-project-head h3 {
  margin: 0;
  font-size: 1.14rem;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-active {
  color: #0c5f43;
  background: rgba(40, 186, 124, 0.14);
}

.status-progress {
  color: #9a6410;
  background: rgba(244, 183, 59, 0.18);
}

.status-planning {
  color: #3055aa;
  background: rgba(88, 140, 255, 0.16);
}

.section-link {
  margin-top: 20px;
}

.section-link a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.article-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-preview-grid-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-preview {
  padding: 24px;
}

.article-preview-home {
  min-height: 100%;
}

.article-preview p,
.project-highlight p,
.info-card p,
.content-card p,
.article-card p,
.project-card p {
  margin-bottom: 0;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36, 99, 235, 0.10), rgba(36, 99, 235, 0.06));
  color: var(--color-primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(36, 99, 235, 0.08);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

.about-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-preview-shell {
  display: block;
}

.about-preview-card {
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(14, 59, 140, 0.96), rgba(36, 99, 235, 0.92)),
    #1a53bf;
  color: #fff;
  box-shadow: 0 22px 42px rgba(18, 45, 97, 0.18);
}

.about-preview-card .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.about-preview-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.35;
}

.about-preview-card p {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

.about-preview-card .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.about-points {
  display: grid;
  gap: 16px;
}

.point-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 148, 186, 0.16);
}

/* 文章页 */
.filter-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow-soft);
}

.articles-hero {
  position: relative;
  padding-bottom: 18px;
}

.articles-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  background:
    radial-gradient(circle at 18% 16%, rgba(99, 180, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #e7f0ff 48%, #f7fbff 100%);
  z-index: -1;
}

.articles-hero-shell {
  padding: 12px 0 8px;
}

.articles-hero-text {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-soft);
  font-size: 1.02rem;
}

.articles-controls {
  margin-bottom: 24px;
}

.articles-filter-panel {
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.articles-search-box input {
  height: 56px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(124, 148, 186, 0.26);
  border-radius: 16px;
  outline: none;
  background: #fff;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: rgba(36, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.08);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(124, 148, 186, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: var(--transition);
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  border-color: transparent;
  background: var(--gradient-main);
}

.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--color-text-soft);
}

.article-toolbar p {
  margin: 0;
}

.article-list,
.project-grid,
.about-layout {
  display: grid;
  gap: 20px;
}

.article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-list-library {
  gap: 22px;
}

.article-card {
  padding: 24px;
}

.article-card-library {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  border-radius: 24px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-top-library {
  margin-bottom: 18px;
}

.card-top time {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  flex-shrink: 0;
}

.article-card-library h2 {
  margin-bottom: 14px;
  font-size: 1.24rem;
}

.article-card-library p {
  color: var(--color-text-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--color-primary-dark);
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 99, 235, 0.08);
  font-size: 0.84rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.empty-state {
  margin: 26px 0 0;
  padding: 18px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text-soft);
}

/* 项目页与关于我 */
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  padding: 26px;
}

.project-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.project-card-top .status {
  align-self: flex-start;
}

.project-meta {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.project-meta div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(36, 99, 235, 0.05);
}

.project-meta dt {
  margin-bottom: 4px;
  font-weight: 700;
}

.project-meta dd {
  margin: 0;
  color: var(--color-text-soft);
}

.about-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  padding: 26px;
}

.content-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-soft);
}

/* 页脚与返回顶部 */
.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(124, 148, 186, 0.18);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-text-soft);
}

.footer-inner strong {
  color: var(--color-text);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--color-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.projects-hero {
  position: relative;
  padding-bottom: 18px;
}

.projects-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 270px;
  background:
    radial-gradient(circle at 18% 14%, rgba(99, 180, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #edf4ff 0%, #e7effd 46%, #f7fbff 100%);
  z-index: -1;
}

.projects-hero-shell {
  padding: 12px 0 8px;
}

.projects-hero-text {
  max-width: 780px;
  margin: 0;
  color: var(--color-text-soft);
  font-size: 1.02rem;
}

.projects-showcase-grid {
  display: grid;
  gap: 24px;
}

.project-showcase-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
  border: 1px solid rgba(124, 148, 186, 0.18);
  box-shadow: 0 18px 36px rgba(17, 32, 58, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 99, 235, 0.18);
  box-shadow: 0 20px 40px rgba(17, 32, 58, 0.14);
}

.project-showcase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.project-kicker {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-showcase-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

.project-field-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.project-field {
  padding: 18px;
  border-radius: 20px;
  background: rgba(36, 99, 235, 0.05);
  border: 1px solid rgba(124, 148, 186, 0.14);
}

.project-field h3,
.project-value h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.project-field p,
.project-value p {
  margin: 0;
  color: var(--color-text-soft);
}

.project-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(11, 61, 145, 0.92);
}

.project-tech-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.project-value {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(124, 148, 186, 0.16);
}

.about-hero {
  position: relative;
  padding-bottom: 18px;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 250px;
  background:
    radial-gradient(circle at 18% 14%, rgba(99, 180, 255, 0.20), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #edf3ff 46%, #f8fbff 100%);
  z-index: -1;
}

.about-hero-shell {
  padding: 12px 0 8px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.about-intro-card {
  grid-column: 1 / -1;
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .hero-grid,
  .hero-home-shell,
  .about-brief,
  .article-preview-grid,
  .article-list,
  .project-grid,
  .about-layout,
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .article-preview-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page-grid {
    grid-template-columns: 1fr;
  }

  .project-field-group,
  .project-bottom {
    grid-template-columns: 1fr;
  }

  .homepage-project-grid {
    grid-template-columns: 1fr;
  }

  .homepage-project-card:nth-child(1),
  .homepage-project-card:nth-child(2),
  .homepage-project-card:nth-child(3),
  .homepage-project-card:nth-child(4),
  .homepage-project-card:nth-child(5) {
    grid-column: auto;
  }

  .panel-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container-width), calc(100% - 28px));
  }

  .nav-shell {
    flex-wrap: wrap;
    min-height: 72px;
    padding: 10px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    margin-top: 4px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(124, 148, 186, 0.18);
    box-shadow: var(--color-shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .hero-section,
  .page-hero,
  .section {
    padding-top: 34px;
  }

  .hero-copy {
    padding: 2px 0 8px;
  }

  .hero-home {
    padding-top: 36px;
  }

  .hero-home-copy {
    padding: 0;
  }

  .hero-home-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-top: 14px;
  }

  .hero-spotlight,
  .about-preview-card {
    padding: 24px 18px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-text {
    margin-bottom: 0;
  }

  .hero-actions,
  .article-toolbar,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-stats {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .article-preview-grid-home {
    grid-template-columns: 1fr;
  }

  .project-showcase-card {
    padding: 22px 18px;
  }

  .project-showcase-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-field {
    padding: 16px;
  }

  .project-tech-tags,
  .project-value {
    padding: 16px;
  }

  .filter-panel,
  .article-card,
  .project-card,
  .content-card,
  .info-card,
  .article-preview,
  .homepage-project-card,
  .project-highlight,
  .point-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-card-library {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .articles-filter-panel {
    padding: 18px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}
