/* ============================================================
   全站统一样式 —— 科技风蓝紫渐变 PDF/图片工具站
   目标：原生CSS、零冗余框架、响应式、秒开
   ============================================================ */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --secondary: #8B5CF6;
  --accent: #EC4899;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --text-2: #334155;
  --text-3: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(99, 102, 241, 0.22);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 70px;
  --max-width: 1200px;
}

/* ---------- 2. 重置与基础 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.3;
}

/* ---------- 3. 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-3);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- 4. 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- 5. Banner ---------- */
.banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 80px 0 100px;
  overflow: hidden;
}

.banner::before,
.banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.banner::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
}

.banner::after {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: -80px;
}

.banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

.tagline-list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tagline-list span {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-body {
  padding: 28px;
}

/* ---------- 7. 工具操作面板 ---------- */
.tool-panel {
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.tool-card {
  padding: 32px;
}

.tool-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .tool-controls {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 上传区 */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 48px 24px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  margin-bottom: 24px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}

.upload-zone .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: var(--primary);
}

.upload-zone h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 0.9rem;
  color: var(--text-3);
}

.upload-zone input[type="file"] {
  display: none;
}

/* 文件列表 */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.file-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border);
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-meta {
  font-size: 0.8rem;
  color: var(--text-3);
}

.file-item-actions {
  display: flex;
  gap: 6px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #0fc1e8 0%, #eb5aff 100%);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.6);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

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

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

.btn-danger {
  color: var(--error);
  background: rgba(239, 68, 68, 0.08);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 预览区 */
.preview-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.preview-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.preview-item img,
.preview-item canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.preview-item-name {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 进度条 */
.progress-wrap {
  margin: 20px 0;
}

.progress-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #63f1b5 0%, #f65ceb 100%);
  border-radius: 100px;
  transition: width 200ms ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 8px;
}

/* ---------- 8. 首页卡片网格 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card-link {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tool-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}

.tool-card-link h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tool-card-link p {
  font-size: 0.9rem;
  color: var(--text-3);
  flex: 1;
}

.tool-card-link .arrow {
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 9. 优势介绍 ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--primary);
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. SEO科普/内容区 ---------- */
.content-section {
  background: var(--surface);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.content-main h3 {
  font-size: 1.3rem;
  margin: 32px 0 14px;
  color: var(--text);
}

.content-main h3:first-child {
  margin-top: 0;
}

.content-main p {
  color: var(--text-2);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.content-main ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style: disc;
}

.content-main li {
  margin-bottom: 8px;
  color: var(--text-2);
}

.seo-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.seo-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .seo-image {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---------- 11. FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ---------- 12. 底部 ---------- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-note {
  font-size: 0.85rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* ---------- 13. 工具结果区 ---------- */
.result-area {
  margin-top: 24px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed var(--success);
  border-radius: var(--radius);
  display: none;
}

.result-area.show {
  display: block;
}

.result-area h4 {
  color: var(--success);
  margin-bottom: 12px;
}

/* ---------- 14. Toast 提示 ---------- */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  animation: toastIn 300ms ease;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- 15. Loading 加载 ---------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.show {
  display: flex;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 16. 移动端导航 ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px 16px;
  }
}

/* ---------- 17. 响应式细节 ---------- */
@media (max-width: 720px) {
  .banner {
    padding: 60px 0 80px;
  }
  .section {
    padding: 44px 0;
  }
  .tool-card {
    padding: 22px;
  }
}

/* ---------- 18. 工具页小差异 ---------- */
.page-tool .banner {
  padding: 60px 0 90px;
}

.page-tool .banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.tool-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .tool-intro {
    grid-template-columns: 1fr;
  }
}

/* 排序拖拽 */
.sortable-item {
  cursor: grab;
}

.sortable-item.dragging {
  opacity: 0.5;
}

/* ============================================================
   19. 左右图文宣传板块 —— 样式 A（背景渐变 + 圆角大图）
   ============================================================ */
.split-a {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.split-a-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.split-a-text p {
  color: var(--text-2);
  margin-bottom: 14px;
  font-size: 1rem;
}

.split-a-text ul {
  margin-top: 18px;
}

.split-a-text li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-2);
}

.split-a-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
}

.split-a-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.split-a-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .split-a {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 28px;
  }
  .split-a-text h2 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   20. 左右图文宣传板块 —— 样式 B（深色卡片 + 装饰圆点）
   ============================================================ */
.split-b {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--text) 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.split-b::before,
.split-b::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.25);
  pointer-events: none;
}

.split-b::before {
  width: 280px;
  height: 280px;
  top: -100px;
  left: -80px;
}

.split-b::after {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: 12%;
  background: rgba(236, 72, 153, 0.25);
}

.split-b-text {
  position: relative;
  z-index: 1;
}

.split-b-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #fff;
}

.split-b-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  font-size: 1rem;
}

.split-b-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.split-b-stats .stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}

.split-b-stats .num {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #A78BFA, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.split-b-stats .label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.split-b-image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.split-b-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .split-b {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 28px;
  }
  .split-b-text h2 {
    font-size: 1.5rem;
  }
  .split-b-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   21. 更多工具推荐板块
   ============================================================ */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.recommend-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.recommend-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.recommend-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.recommend-card p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .recommend-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   22. 友情链接
   ============================================================ */
.friend-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.friend-link-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color var(--transition);
}

.friend-link-item::before {
  content: "→";
  color: var(--primary);
  font-weight: 700;
}

.friend-link-item:hover {
  color: var(--primary);
}

@media (max-width: 720px) {
  .friend-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .friend-links {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   23. FAQ 网格增强
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 28px;
}

.faq-grid .faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-grid .faq-item:last-child {
  border-bottom: none;
}

@media (max-width: 720px) {
  .faq-grid {
    padding: 8px 18px;
  }
}

/* ============================================================
   24. 页面小标题 / 分隔
   ============================================================ */
.kicker {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
