/* 探花主样式 | cem0ex.cn | 完全原创设计 */

/* ===== CSS变量 ===== */
:root {
  --primary: #0a3d7a;
  --primary-light: #1565c0;
  --accent: #e84c3d;
  --accent2: #f5a623;
  --dark1: #0d1117;
  --dark2: #161b22;
  --dark3: #21262d;
  --card-bg: #1a1f2e;
  --border: rgba(255,255,255,0.08);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-light: #b0bec5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);
  --gradient: linear-gradient(135deg, #0a3d7a 0%, #1565c0 50%, #e84c3d 100%);
  --font: 'PingFang SC','Microsoft YaHei','Hiragino Sans GB',sans-serif;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--dark1);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部公告栏 ===== */
.top-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.top-bar a { color: var(--accent2); font-weight: 600; }
.top-bar a:hover { color: #fff; }

/* ===== 导航头部 ===== */
.header {
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}
.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; object-fit: contain; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-main a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-main a:hover, .nav-main a.active {
  background: var(--primary);
  color: #fff;
}
.nav-main a.hot { color: var(--accent); }
.nav-main a.hot:hover { background: var(--accent); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== 搜索栏 ===== */
.search-bar-wrap {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.search-form {
  display: flex;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}
.search-input {
  flex: 1;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  padding: 10px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  font-family: var(--font);
}
.search-input:focus { border-color: var(--primary-light); }
.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--accent); }

/* ===== Hero区域 ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,61,122,0.92) 0%, rgba(13,17,23,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}
.hero-badge {
  display: inline-block;
  background: rgba(232,76,61,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 28px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
}
.btn-primary:hover {
  background: #c0392b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,76,61,0.4);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent2);
}
.hero-stat .label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ===== 统计栏 ===== */
.stats-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  padding: 24px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.stat-item .num span {
  font-size: 16px;
  color: var(--accent2);
}
.stat-item .label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ===== 通用Section ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--dark2); }
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-tag {
  display: inline-block;
  background: rgba(232,76,61,0.15);
  border: 1px solid rgba(232,76,61,0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.section-title span { color: var(--accent); }
.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.video-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark3);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}
.video-card:hover .play-btn { background: rgba(0,0,0,0.5); }
.play-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,76,61,0.9);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s;
  position: relative;
}
.play-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-info { padding: 14px; }
.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.video-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.video-tag {
  background: rgba(10,61,122,0.3);
  border: 1px solid rgba(21,101,192,0.3);
  color: var(--primary-light);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.video-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-name {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 功能卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
  color: var(--text);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 14px;
}
.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== AI卡片 ===== */
.ai-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.ai-text h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}
.ai-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.ai-features { display: flex; flex-direction: column; gap: 10px; }
.ai-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
}
.ai-feature-item::before {
  content: '✓';
  color: var(--accent2);
  font-weight: 700;
  flex-shrink: 0;
}
.ai-img img { border-radius: var(--radius); width: 100%; }

/* ===== 专家卡片 ===== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.expert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.expert-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary);
}
.expert-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.expert-title {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}
.expert-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.expert-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  background: rgba(10,61,122,0.3);
  border: 1px solid rgba(21,101,192,0.3);
  color: var(--primary-light);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.btn-sm {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-sm.primary { background: var(--accent); color: #fff; }
.btn-sm.primary:hover { background: #c0392b; color: #fff; }
.btn-sm.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-sm.ghost:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ===== 步骤卡片 ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 合作伙伴 ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.partner-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.partner-item:hover {
  border-color: var(--primary-light);
  color: var(--text);
  background: rgba(10,61,122,0.2);
}

/* ===== 评价卡片 ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}
.review-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-user { flex: 1; }
.review-name { font-size: 14px; font-weight: 600; color: var(--text); }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { color: var(--accent2); font-size: 14px; }
.review-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.review-like { font-size: 12px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--primary-light); }
.faq-question {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question .arrow {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.3s;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer > div {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ===== 联系区域 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.contact-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 14px; color: var(--text); font-weight: 500; }
.qr-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.qr-item { text-align: center; }
.qr-item img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.qr-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ===== 表单 ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary-light); }
.form-textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--primary-light); }
.comment-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.comment-form h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* ===== 分享栏 ===== */
.share-bar {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.share-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.share-label { font-size: 13px; color: var(--text-muted); }
.share-btn {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  transition: all 0.2s;
}
.share-btn:hover { border-color: var(--primary-light); color: var(--primary-light); }
.share-btn.wechat:hover { border-color: #07c160; color: #07c160; }
.share-btn.weibo:hover { border-color: #e84c3d; color: #e84c3d; }

/* ===== 页脚 ===== */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 14px 0 18px;
}
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== 内页通用 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark2) 100%);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.notice-bar {
  background: rgba(10,61,122,0.2);
  border: 1px solid rgba(21,101,192,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ===== 侧边栏 ===== */
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.rank-num.top1 { background: var(--accent); color: #fff; }
.rank-num.top2 { background: var(--accent2); color: #fff; }
.rank-num.top3 { background: var(--primary-light); color: #fff; }
.rank-num.other { background: var(--dark3); color: var(--text-muted); }
.rank-title { flex: 1; font-size: 12px; color: var(--text-muted); }
.rank-views { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* ===== 文章内容 ===== */
.article-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.article-content h2:first-child { margin-top: 0; }
.article-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 14px;
}

/* ===== 新闻卡片 ===== */
.news-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.news-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-content { padding: 20px 20px 20px 0; }
.news-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.news-cat {
  background: rgba(232,76,61,0.15);
  border: 1px solid rgba(232,76,61,0.3);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
}
.news-date { font-size: 12px; color: var(--text-muted); }
.news-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--accent); }
.news-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more { font-size: 13px; color: var(--primary-light); font-weight: 600; }
.read-more:hover { color: var(--accent); }

/* ===== 社区美图 ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.photo-card:hover img { transform: scale(1.1); }
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-title { font-size: 12px; color: #fff; font-weight: 600; }

/* ===== 辅助类 ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.view-more {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
  padding: 10px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 8px;
}
.view-more:hover {
  background: var(--primary-light);
  color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .ai-card { grid-template-columns: 1fr; }
  .ai-img { order: -1; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-main {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,17,23,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }
  .nav-main.open { display: flex; }
  .nav-main a { font-size: 18px; padding: 12px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .news-img { height: 200px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-stats { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr; }
}
