/* ============================================
   教育网站主样式 - 针对百度SEO优化
   ============================================ */

:root {
  --red: #1a73e8;
  --red-dark: #1557b0;
  --blue: #1a73e8;
  --green: #27ae60;
  --orange: #e67e22;
  --dark: #1a1a2e;
  --gray: #666;
  --light-gray: #f5f5f8;
  --border: #e8e8e8;
  --white: #ffffff;
  --bg-alt: #f9f9fc;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --radius: 10px;
  --font: 'Noto Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部bar ===== */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  padding: 8px 0;
  text-align: center;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.top-bar strong { color: #f0c040; }

/* ===== 主导航 ===== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--red);
  background: rgba(231,76,60,0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-phone {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

.mobile-menu a:last-child { border-bottom: none; }

/* ===== Hero区 ===== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 64px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(231,76,60,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at 10% 20%, rgba(26,115,232,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.3);
  color: #ff8a7a;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f0c040;
  font-family: var(--font-serif);
}

.hero-stats .stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(231,76,60,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231,76,60,0.5);
}

.btn-outline {
  color: rgba(255,255,255,0.85);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

/* Hero表单卡片 */
.hero-form-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.form-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-card-sub {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 12px; }

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
}

.form-input:focus {
  border-color: var(--red);
  background: white;
}

.form-input::placeholder { color: #bbb; }

.btn-submit-hero {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
  box-shadow: 0 3px 12px rgba(231,76,60,0.35);
}

.btn-submit-hero:hover { opacity: 0.88; }

.form-trust {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--gray);
}

.hero-form-success {
  background: #e8f8f0;
  border: 1px solid #a8e6c0;
  color: var(--green);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ===== 栏目卡片 ===== */
.categories-section {
  padding: 64px 0;
  background: var(--bg-alt);
}

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

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray);
  font-size: 0.95rem;
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.cat-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cat-card-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cat-card:nth-child(4n+1) .cat-card-icon { background: #e8f0fe; }
.cat-card:nth-child(4n+2) .cat-card-icon { background: #fff3e0; }
.cat-card:nth-child(4n+3) .cat-card-icon { background: #e8f5e9; }
.cat-card:nth-child(4n+4) .cat-card-icon { background: #fce4ec; }

.cat-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.cat-card-header h3 small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray);
  margin-top: 4px;
}

.cat-card-body {
  padding: 0 24px 20px;
}

.cat-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.cat-highlights li {
  font-size: 0.88rem;
  color: #444;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-highlights li:last-child { border-bottom: none; }

.cat-highlights .hl-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0faf4;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.cat-card-footer {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px;
}

.cat-btn {
  flex: 1;
  padding: 11px 16px;
  background: var(--dark);
  color: white;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
  display: block;
}

.cat-btn:hover { background: #2d2d4a; color: white; }

.cat-btn-consult {
  flex: 1;
  padding: 11px 16px;
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.cat-btn-consult:hover {
  background: var(--red);
  color: white;
}

/* ===== 文章列表区 ===== */
.articles-section {
  padding: 56px 0;
  background: var(--white);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
  background: #e8f0fe;
  color: var(--blue);
}

.section-header-row h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.more-link {
  font-size: 0.88rem;
  color: var(--red);
  font-weight: 600;
  transition: opacity 0.2s;
}

.more-link:hover { opacity: 0.7; }

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

.article-card {
  display: block;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.article-cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: #e8f0fe;
  color: var(--blue);
}

.article-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-summary {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #aaa;
}

.read-more { color: var(--red); font-weight: 600; }

/* ===== Why区 ===== */
.why-section {
  padding: 64px 0;
  background: var(--dark);
}

.why-section .section-header h2 { color: white; }
.why-section .section-header p { color: rgba(255,255,255,0.5); }

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

.why-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s;
}

.why-item:hover { background: rgba(255,255,255,0.08); }

.why-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ===== 面包屑 ===== */
.breadcrumb-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb-bar nav {
  font-size: 0.83rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-bar a {
  color: var(--blue);
  transition: opacity 0.2s;
}

.breadcrumb-bar a:hover { opacity: 0.7; }

/* ===== 列表页 ===== */
.list-page { padding: 40px 0 60px; }

.list-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.list-header h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.list-header p { font-size: 0.85rem; color: var(--gray); }

.list-article-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.list-article-card:last-child { border-bottom: none; }

.list-article-card:hover { background: #fafafa; }

.list-article-img {
  width: 140px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 6px;
}

.list-article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.list-cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.list-cat-tag.zkao { background: #e8f0fe; color: var(--blue); }
.list-cat-tag.ckao { background: #fff3e0; color: var(--orange); }

.list-article-info h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.5;
}

.list-summary {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: #aaa;
  align-items: center;
}

.list-read-more {
  color: var(--red);
  font-weight: 600;
  margin-left: auto;
}

/* 分页 */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--gray);
  background: white;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.page-ellipsis {
  padding: 8px 6px;
  color: #aaa;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 60px;
  color: #aaa;
}

/* ===== 侧边栏 ===== */
.sidebar-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.sidebar-lead {
  background: linear-gradient(135deg, #fff5f4, #fff);
  border-color: rgba(231,76,60,0.15);
}

.sidebar-lead p {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.btn-submit {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.btn-submit:hover { opacity: 0.87; }

.hot-articles {
  list-style: none;
}

.hot-articles li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  counter-increment: hot-counter;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hot-articles li:last-child { border-bottom: none; }

.hot-articles li::before {
  content: counter(hot-counter);
  counter-reset: none;
  background: var(--red);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hot-articles:first-child li:nth-child(1)::before,
.hot-articles:first-child li:nth-child(2)::before,
.hot-articles:first-child li:nth-child(3)::before {
  background: var(--orange);
}

.hot-articles li a {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  transition: color 0.2s;
}

.hot-articles li a:hover { color: var(--red); }

.quick-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 500;
  transition: background 0.2s;
}

.quick-nav a:hover { background: var(--border); }

/* ===== 详情页 ===== */
.detail-page { padding: 36px 0 60px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
}

.detail-main {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--border);
}

.detail-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin: 10px 0 14px;
}

.detail-meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: #aaa;
  flex-wrap: wrap;
}

/* 蓝色摘要条：HTML保留供搜索引擎抓取，视觉隐藏 */
.article-lead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 文章正文样式 */
.article-content {
  padding: 32px 36px;
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  padding-left: 12px;
  border-left: 4px solid var(--red);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
}

.article-content p { margin-bottom: 16px; }

.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}
.article-content table th,
.article-content table td {
  padding: 13px 18px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eef1f6;
}
.article-content table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-weight: 600;
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border-bottom: none;
}
.article-content table th:first-child { border-radius: 10px 0 0 0; }
.article-content table th:last-child { border-radius: 0 10px 0 0; }
.article-content table tbody tr { transition: background 0.15s; }
.article-content table tbody tr:hover { background: #f0f4ff; }
.article-content table tbody tr:nth-child(even) { background: #f8fafc; }
.article-content table tbody tr:nth-child(even):hover { background: #eef2ff; }
.article-content table tbody tr:last-child td { border-bottom: none; }
.article-content table td:first-child { font-weight: 500; color: #334155; }

.article-content strong { color: var(--dark); font-weight: 600; }
.article-content a { color: #1a73e8; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #1557b0; }

.article-content ul,
.article-content ol {
  margin: 12px 0 16px 24px;
}

.article-content li { margin-bottom: 6px; }

.article-content blockquote {
  background: #f9f9fc;
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: #555;
}

/* 文章底部CTA */
.article-cta-box {
  margin: 0 36px 32px;
  background: linear-gradient(135deg, #fff5f4, #fff8f8);
  border: 1.5px solid rgba(231,76,60,0.15);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.article-cta-box p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 18px;
}

/* 上下篇 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.art-nav-prev,
.art-nav-next {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s;
  color: var(--dark);
}

.art-nav-prev:hover,
.art-nav-next:hover { background: var(--bg-alt); }

.art-nav-next { text-align: right; border-left: 1px solid var(--border); }

.art-nav-prev span:first-child,
.art-nav-next span:first-child {
  font-size: 0.75rem;
  color: #aaa;
}

.art-nav-prev span:last-child,
.art-nav-next span:last-child {
  font-size: 0.88rem;
  font-weight: 500;
}

/* 粘性侧边栏 */
.detail-sidebar .sticky-card {
  position: sticky;
  top: 80px;
}

.related-list {
  list-style: none;
}

.related-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.related-list li:last-child { border-bottom: none; }

.related-list a {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  transition: color 0.2s;
  display: block;
}

.related-list a:hover { color: var(--red); padding-left: 4px; }

/* ===== 留资弹窗 ===== */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-modal-overlay.active {
  display: flex;
}

.lead-modal {
  background: white;
  border-radius: 16px;
  padding: 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: #f5f5f5;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover { background: var(--border); }

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-icon { font-size: 2.4rem; margin-bottom: 10px; }

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--gray);
}

.modal-gift {
  background: linear-gradient(135deg, rgba(240,192,64,0.08), rgba(231,76,60,0.06));
  border: 1px dashed rgba(240,192,64,0.5);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.83rem;
  color: var(--dark);
  margin-bottom: 18px;
  text-align: center;
}

.modal-gift strong { color: var(--red); }

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon { font-size: 3rem; margin-bottom: 14px; }

.modal-success h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.modal-success p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.form-privacy {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 10px;
}

/* ===== 悬浮按钮 ===== */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 80;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.float-btn span { font-size: 1.1rem; }
.float-btn small { font-size: 0.6rem; line-height: 1; }

.float-consult {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
}
/* chatbot云朵已承担咨询入口，隐藏悬浮咨询按钮 */
.float-consult { display: none; }

.float-phone {
  background: linear-gradient(135deg, var(--green), #219a52);
  color: white;
}

.float-top {
  background: white;
  color: var(--dark);
  border: 1px solid var(--border);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 20px 40px;
}

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

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-contact {
  margin-top: 12px;
  font-size: 0.88rem;
}

.footer-contact strong { color: #f0c040; font-size: 1rem; }

.footer-links h4 {
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }

.footer-links li {
  padding: 5px 0;
  font-size: 0.85rem;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-contact-box h4 {
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-contact-box > p {
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.btn-cta-footer {
  width: 100%;
  padding: 11px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.btn-cta-footer:hover { opacity: 0.87; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== TL;DR摘要块（大模型优先抓取） ===== */
.tldr-box {
  background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
  border: 1.5px solid #b8d9f5;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 36px 20px;
  font-size: 0.92rem;
  color: #1a4a6b;
  line-height: 1.7;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tldr-label {
  background: #1a73e8;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== 文章内图片 ===== */
.article-content figure.article-img {
  margin: 20px 0;
  text-align: center;
}
.article-content figure.article-img img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ===== 响应式补丁 ===== */
@media (max-width: 768px) {
  .tldr-box { margin: 0 20px 16px; font-size: 0.88rem; }
}
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-form-card { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .cat-cards { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: none; }
  .nav-menu { display: none; }
  .nav-phone { display: none; }
  .nav-hamburger { display: block; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .article-content { padding: 20px; }
  .detail-header { padding: 20px; }
  .article-cta-box { margin: 0 20px 24px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats .stat strong { font-size: 1.3rem; }
  .top-bar { font-size: 0.75rem; }
  .top-bar .container { flex-direction: column; gap: 4px; }
}

/* 移动端表格适配 */
@media (max-width: 768px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.82rem;
  }
  .article-content table th,
  .article-content table td {
    padding: 10px 12px;
    min-width: 70px;
  }
  .article-content table th {
    white-space: nowrap;
    font-size: 0.8rem;
  }
}

/* 栏目卡片顶部颜色条 */
.cat-card:nth-child(4n+1) { border-top: 3px solid var(--blue); }
.cat-card:nth-child(4n+2) { border-top: 3px solid var(--orange); }
.cat-card:nth-child(4n+3) { border-top: 3px solid var(--green); }
.cat-card:nth-child(4n+4) { border-top: 3px solid var(--red); }

/* 文章区section-tag：偶奇交替 */
.articles-section:nth-of-type(odd) .section-tag { background: #e8f0fe; color: #1a73e8; }
.articles-section:nth-of-type(even) .section-tag { background: #fce8b2; color: #e37400; }

/* 导航子菜单 */
.nav-menu li { position: relative; }
.nav-menu li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 12px 16px;
  z-index: 100;
  list-style: none;
  column-count: 4;
  column-gap: 0;
  width: 480px;
}
.nav-menu li:hover .sub-menu { display: block; }
.nav-menu .sub-menu li { break-inside: avoid; }
.nav-menu .sub-menu li a {
  display: block;
  padding: 6px 16px;
  font-size: 0.88rem;
  color: var(--dark);
  white-space: nowrap;
  border-radius: 4px;
}
.nav-menu .sub-menu li a:hover { background: var(--bg-alt); color: var(--red); }

/* ===== 文章目录导航 ===== */
.article-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.toc-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-toc li {
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.article-toc li:last-child { border-bottom: none; }
.article-toc a {
  font-size: 0.88rem;
  color: var(--blue);
  transition: color 0.2s;
}
.article-toc a:hover { color: var(--red); }

/* ===== 底部CTA升级 ===== */
.article-cta-box {
  background: linear-gradient(135deg, #fff8f0 0%, #f0f7ff 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
  position: relative;
}
.cta-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
}
.article-cta-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.article-cta-box > p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.cta-form-inline {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}
.cta-form-inline .form-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}
.cta-form-inline .btn-primary {
  white-space: nowrap;
  padding: 10px 20px;
}
.cta-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--gray);
}
.cta-trust strong { color: var(--red); }

/* ===== 信任背书滚动 ===== */
.recent-consult {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  min-height: 28px;
  transition: opacity 0.4s;
}
.consult-item {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ===== sticky侧栏 ===== */
.sticky-card {
  position: sticky;
  top: 80px;
}

/* ===== CTA响应式 ===== */
@media (max-width: 640px) {
  .cta-form-inline {
    flex-direction: column;
  }
}

/* ===== 底部固定留资条 ===== */
.bottom-lead-bar {
  position: fixed;
  bottom: -60px;
  left: 0;
  right: 0;
  z-index: 900;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 10px 0;
  transition: bottom 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.bottom-lead-bar.visible {
  bottom: 0;
}
.bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bar-text {
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background 0.2s;
  flex-shrink: 0;
}
.bar-btn:hover { background: var(--red-dark); }

@media (max-width: 768px) {
  .bar-text { font-size: 0.78rem; }
  .bar-btn { padding: 8px 16px; font-size: 0.82rem; }
}

/* ===== CTA弹跳动画 ===== */
@keyframes ctaBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}
