:root {
  --primary: #ff3366;
  --primary-hover: #e02456;
  --secondary: #6366f1;
  --accent: #00d2ff;
  --dark: #0f172a;
  --text-main: #1e293b;
  --text-muted: #475569;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(255, 51, 102, 0.12);
  --transition: all 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
}

body {
  background: radial-gradient(circle at 10% 10%, rgba(255, 51, 102, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
              #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.brand-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #ff3366 0%, #ff5e36 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.45);
  color: #ffffff;
}

.btn-outline {
  border-color: var(--border-color);
  color: var(--text-main);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f7;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* 首屏 Hero */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: linear-gradient(90deg, #fff0f3 0%, #f0f3ff 100%);
  border: 1px solid #ffccd5;
  color: var(--primary);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-title mark {
  background: transparent;
  color: var(--primary);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #ffd6df;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* 模块通用样式 */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* 网格系统 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

/* 卡片样式 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #ffccd5;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe3e9 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* 标签云与模型聚合 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.cloud-chip {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cloud-chip:hover {
  background: #fff0f3;
  border-color: var(--primary);
  color: var(--primary);
}

/* 素材图展示 */
.media-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.media-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.media-container:hover img {
  transform: scale(1.03);
}

.media-caption {
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  background: #fff;
}

/* 对比评测表格 */
.review-score-box {
  background: linear-gradient(135deg, #fff5f7 0%, #f0f5ff 100%);
  border: 2px solid #ffccd5;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.score-left h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 6px;
}

.score-stars {
  color: #ff9900;
  font-size: 20px;
  letter-spacing: 2px;
}

.score-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-val {
  font-size: 54px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.score-max {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.table-responsive {
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.custom-table th,
.custom-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.custom-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--dark);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.highlight-cell {
  background: #fff9fa;
  font-weight: 700;
  color: var(--primary);
}

/* FAQ 样式 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: var(--transition);
}

.faq-question:hover {
  background: #fff8f9;
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  content: "−";
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  display: none;
  border-top: 1px dashed var(--border-color);
  margin-top: 4px;
  padding-top: 12px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 用户评论 */
.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-initial {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3366, #ff80a0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.user-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.user-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.review-content {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* 表单与联系 */
.form-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fdfdfd;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.12);
}

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

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.qr-block {
  text-align: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.qr-block img {
  max-width: 130px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto 8px;
}

/* 文章列表 */
.articles-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.article-item-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
}

.article-item-link:last-child {
  border-bottom: none;
}

.article-item-link:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* 页脚 */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-links-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links-wrap a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links-wrap a:hover {
  color: var(--primary);
}

.copyright-bar {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

/* 浮动工具栏 */
.float-bar {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
}

.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.float-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .hero-grid-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-grid-stats {
    grid-template-columns: 1fr;
  }
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    gap: 12px;
  }
}