/* ============================================================
   AI 智能律师 — 官方网站样式表
   设计风格：简洁高端商务风 | 深藏蓝 + 香槟金
   响应式：手机 / 平板 / 桌面 三端适配
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #c9a96e;
  --accent-dark: #b8944e;
  --accent-light: #f5f0e8;
  --text: #1a1a2e;
  --text-secondary: #5a6070;
  --text-muted: #8b919e;
  --bg: #fafaf9;
  --bg-dark: #f0efeb;
  --white: #ffffff;
  --border: #e5e0d8;
  --border-light: #f0ece4;
  --radius: 12px;
  --radius-sm: 8px;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;           /* 18px — 大字 */
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea { font-family: inherit; font-size: inherit; }

ul { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section ---- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;               /* 32px */
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Divider accent line under section titles ---- */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
  /* 默认透明 — 悬浮在 hero 上 */
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.scrolled .logo {
  color: var(--primary);
}

.logo .logo-icon {
  font-size: 1.6rem;
}

/* Desktop Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 1rem;               /* 16px */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  letter-spacing: 0.02em;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: #fff;
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.scrolled .header-nav a {
  color: var(--text-secondary);
}

.scrolled .header-nav a:hover,
.scrolled .header-nav a.active {
  color: var(--primary);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.scrolled .hamburger span {
  background: var(--primary);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.97);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: color var(--transition);
  letter-spacing: 0.04em;
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active {
  color: var(--accent);
}

/* ============================================================
   HERO SECTION — 律师海报第一屏
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* 背景图模式 */
.hero-section.has-image {
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* 无图模式 — 深色渐变 */
.hero-section.no-image {
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 30%, #1e3a5f 60%, #162138 100%);
}

/* 背景叠加层 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.65) 40%,
    rgba(15, 23, 42, 0.85) 100%
  );
  z-index: 1;
}

.has-image .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.6) 50%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* 装饰线 */
.hero-accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(201, 169, 110, 0.4);
  object-fit: cover;
  margin: 0 auto 28px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 3rem;               /* 48px */
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.hero-title-tag {
  display: inline-block;
  font-size: 1.125rem;           /* 18px */
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.25rem;            /* 20px */
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 向下滚动指示器 */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  animation: floatDown 2s ease-in-out infinite;
}

.hero-scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

@keyframes floatDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;               /* 16px */
  font-weight: 600;
  border-radius: 50px;           /* 全圆角 — 高端感 */
  letter-spacing: 0.03em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ============================================================
   CATEGORY PILLS — 胶囊分类
   ============================================================ */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.category-pill {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.category-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

/* 移动端横向滚动 */
@media (max-width: 767px) {
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar { display: none; }
}

/* ============================================================
   ARTICLE CARDS — 文章卡片
   ============================================================ */

/* 卡片网格 */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 有图卡片 — 水平布局 */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  border-color: var(--border);
}

/* 有图时的横向布局 */
.article-card.has-image {
  flex-direction: row;
}

.article-card-image {
  flex-shrink: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-dark);
}

.has-image .article-card-image {
  width: 280px;
  height: auto;
  min-height: 200px;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

/* 无图占位 */
.article-card-image .placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-serif);
  font-size: 2rem;
}

.article-card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.article-card-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;            /* 20px */
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;           /* 14px */
  color: var(--text-muted);
}

.article-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 查看更多 */
.view-more {
  text-align: center;
  margin-top: 40px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
}

/* ============================================================
   ARTICLE DETAIL — 新闻阅读风格
   ============================================================ */
.article-detail-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.article-detail-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.article-back-link:hover {
  color: var(--accent);
}

.article-detail-header {
  text-align: left;
  margin-bottom: 24px;
}

.article-detail-header .category-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.article-detail-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;             /* 35px */
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-detail-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.125rem;           /* 18px */
  line-height: 2;
  color: var(--text);
  padding: 32px 0;
}

.article-detail-body p {
  margin-bottom: 24px;
}

.article-detail-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--primary);
}

.article-detail-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-detail-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.article-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-dark);
  border-radius: 50px;
  transition: all var(--transition);
}

.article-tag:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* 上一篇/下一篇 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-nav-card {
  display: block;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.article-nav-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.article-nav-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.article-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* 相关推荐 */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.related-item {
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition);
}

.related-item:hover {
  border-color: var(--accent);
}

.related-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.related-item-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================================
   CONTACT SECTION — 留言板块
   ============================================================ */
.contact-section {
  background: var(--bg-dark);
}

.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.form-row {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-label .required {
  color: #e53e3e;
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
  background: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit-row {
  text-align: center;
  margin-top: 32px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 32px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 2;
}

.site-footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--accent);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto;
  opacity: 0.5;
}

.site-footer .footer-disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 600px;
  margin: 16px auto 0;
}

.site-footer .footer-copy {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--accent);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.breadcrumb .separator {
  color: var(--border);
  font-size: 0.8rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pagination a {
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border-light);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

.pagination .disabled {
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   CATEGORY LIST PAGE
   ============================================================ */
.category-page {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
}

.category-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.category-page-header .article-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE — 平板 (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 2.6rem;
  }

  .related-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-detail-header h1 {
    font-size: 2rem;
  }

  .section {
    padding: 64px 0;
  }
}

/* ============================================================
   RESPONSIVE — 桌面 (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .hero-name {
    font-size: 3rem;
  }

  .article-detail-header h1 {
    font-size: 2.2rem;
  }

  .article-detail-body {
    font-size: 1.125rem;
  }

  .section {
    padding: 80px 0;
  }
}

/* ============================================================
   RESPONSIVE — 手机 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav-overlay {
    display: flex;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* 文章卡片 — 有图也变纵向 */
  .article-card.has-image {
    flex-direction: column;
  }

  .has-image .article-card-image {
    width: 100%;
    height: 200px;
    min-height: auto;
  }

  .article-card-body {
    padding: 18px;
  }

  .article-card-title {
    font-size: 1.1rem;
  }

  /* 文章详情 */
  .article-detail-header h1 {
    font-size: 1.5rem;
  }

  .article-detail-body {
    font-size: 1rem;
    padding: 20px 0;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-detail-cover {
    max-height: 240px;
    border-radius: var(--radius-sm);
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  /* 联系表单 */
  .contact-form {
    padding: 28px 20px;
  }

  /* Footer */
  .site-footer {
    padding: 36px 20px 24px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ============================================================
   RESPONSIVE — 小平板 (768-1023px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-name {
    font-size: 2.4rem;
  }

  .article-card.has-image {
    flex-direction: row;
  }

  .has-image .article-card-image {
    width: 220px;
    min-height: 180px;
  }
}
