/* 科研棱镜AI - 综合设计样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.15);
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 35%, #ffffff 100%);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

/* ========== 固定左侧栏 ========== */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border-right: 1px solid #dbe7f8;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 0.25rem 0.5rem;
}

.sidebar-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sidebar-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
}

.sidebar-divider {
  height: 1px;
  background: #dbe7f8;
  margin: 0.6rem 0.25rem;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0.5rem;
  margin-bottom: 0.4rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.15s;
  font-family: inherit;
}

.sidebar-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #94a3c4;
}

.sidebar-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.sidebar-btn:hover svg {
  color: var(--primary);
}

.sidebar-btn--active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-btn--active svg {
  color: var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  padding: 0.6rem 0.5rem 0;
  border-top: 1px solid #dbe7f8;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.5;
}

.sidebar-footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-footer-link:hover {
  text-decoration: underline;
}

/* ========== 右侧整体容器 ========== */
.right-content {
  margin-left: 220px;
}

.btn {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-ghost {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.btn-ghost:hover {
  background: rgba(37, 99, 235, 0.15);
}

.btn-text {
  color: var(--text);
  background: transparent;
}

.btn-text:hover {
  color: var(--primary);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  padding: 0.6rem 1.4rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ========== 公告条 ========== */
.announce-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1.5rem;
  margin: 1rem 2rem 0;
  background: linear-gradient(90deg, #eef4ff 0%, #f0f7ff 100%);
  border: 1px solid #d6e4f9;
  border-radius: 10px;
  color: var(--primary-dark);
  font-size: 13px;
  flex-wrap: wrap;
}

.announce-badge {
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.announce-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
}

.announce-link:hover {
  text-decoration: underline;
}

/* ========== AI模型图标展示 ========== */
.ai-models-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem 0.5rem;
  background: transparent;
}

.ai-models-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 800px;
}

.ai-model-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.ai-model-item:hover {
  transform: translateY(-4px);
}

.ai-model-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  background: transparent;
  overflow: hidden;
}

.ai-model-item:hover .ai-model-icon {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.ai-model-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.ai-model-icon--gpt,
.ai-model-icon--claude,
.ai-model-icon--gemini,
.ai-model-icon--sora,
.ai-model-icon--banana,
.ai-model-icon--grok {
  background: transparent;
}

.ai-model-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
  .ai-models-showcase {
    padding: 1rem;
  }

  .ai-models-grid {
    gap: 1.5rem;
  }

  .ai-model-icon {
    width: 56px;
    height: 56px;
  }

  .ai-model-icon svg {
    width: 32px;
    height: 32px;
  }

  .ai-model-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .ai-models-grid {
    gap: 1rem;
  }

  .ai-model-icon {
    width: 48px;
    height: 48px;
  }

  .ai-model-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ========== 主视觉 ========== */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
  text-align: center;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.badge-dot {
  color: var(--border);
  font-weight: 300;
}

.hero-title {
  margin-bottom: 0.75rem;
}

.hero-title-main {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 0.4rem;
  white-space: nowrap;
}

.hero-tagline {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* CTA 按钮区 */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: all 0.25s;
}

.btn-cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.4);
}

.btn-icon {
  display: flex;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-cta-secondary {
  padding: 0.9rem 1.6rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s;
}

.btn-cta-secondary:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: var(--primary);
}

.hero-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ========== 优惠卡片 ========== */
/* ========== 首页滑动图 ========== */
.hero-slider {
  max-width: 800px;
  margin: 2.5rem auto 0;
  position: relative;
}

.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.hero-slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.hero-slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-slider-btn svg {
  width: 20px;
  height: 20px;
}

.hero-slider-btn-prev {
  left: 12px;
}

.hero-slider-btn-next {
  right: 12px;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slider-item {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  display: block;
}

.hero-slider-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.hero-slider-dot:hover {
  background: rgba(37, 99, 235, 0.5);
  transform: scale(1.2);
}

.hero-slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* ========== 滚动提示 ========== */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 13px;
  padding-bottom: 2rem;
}

.scroll-arrow {
  font-size: 18px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ========== 浮动客服 ========== */
.float-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

.float-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.float-trigger:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.float-trigger svg {
  width: 24px;
  height: 24px;
}

.float-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}

.float-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-panel p {
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.float-panel a {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.float-panel a:hover {
  text-decoration: underline;
}

/* ========== 站点介绍弹窗 ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 640px;
  width: 100%;
  min-height: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.75rem 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal-title-icon {
  display: flex;
  color: var(--primary);
}

.modal-title-icon svg {
  width: 22px;
  height: 22px;
}

.modal-section {
  margin-bottom: 1.75rem;
}

.modal-section:last-of-type {
  margin-bottom: 1.25rem;
}

.modal-section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-section-head h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.modal-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 16px;
  height: 16px;
}

.modal-icon--info {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.modal-icon--dev {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.modal-icon--user {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
}

.modal-section p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 0.4rem 0;
}

.modal-section p:last-child {
  margin-bottom: 0;
}

.modal-tagline {
  color: var(--primary) !important;
  font-weight: 500;
  font-size: 0.85rem !important;
}

.modal-contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem !important;
}

.modal-contact-icon {
  display: flex;
  color: #22c55e;
}

.modal-contact-icon svg {
  width: 16px;
  height: 16px;
}

.modal-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.modal-link:hover {
  text-decoration: underline;
}

.modal-vx {
  margin-top: 1rem;
  text-align: center;
}

.modal-vx-img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 0.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.modal-vx-hint {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.modal-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.modal-footer .btn {
  display: inline-block;
}

/* ========== 专属客服支持弹窗 ========== */
.customer-service-modal {
  max-width: 700px;
  padding: 2.5rem 2rem;
}

.customer-service-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.customer-service-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.customer-service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.customer-service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.customer-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.service-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid;
}

.service-badge--wechat {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #4caf50;
}

.service-badge--qq {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #2196f3;
}

.service-qrcode {
  margin: 0 auto 1rem;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.customer-service-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.service-hours {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .customer-service-modal {
    padding: 2rem 1.5rem;
  }

  .customer-service-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .customer-service-title {
    font-size: 1.35rem;
  }

  .service-qrcode {
    width: 160px;
    height: 160px;
  }
}

/* ========== 网站优势展示 ========== */
.features-section {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0f7ff 100%);
  margin-top: 3rem;
}

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

.features-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-align: center;
}

.features-title-icon {
  display: flex;
  color: var(--primary);
}

.features-title-icon svg {
  width: 32px;
  height: 32px;
}

.features-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon--native {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
  color: var(--primary);
}

.feature-icon--unlimited {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(74, 222, 128, 0.12) 100%);
  color: #16a34a;
}

.feature-icon--network {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(192, 132, 252, 0.12) 100%);
  color: #9333ea;
}

.feature-icon--privacy {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(248, 113, 113, 0.12) 100%);
  color: #dc2626;
}

.feature-icon--invoice {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.12) 100%);
  color: #d97706;
}

.feature-icon--expert {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(244, 114, 182, 0.12) 100%);
  color: #db2777;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .features-section {
    padding: 3.5rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ========== AI科研绘图案例演示 ========== */
.gallery-section {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  margin-top: 2rem;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: center;
}

.gallery-title-icon {
  display: flex;
  color: var(--primary);
}

.gallery-title-icon svg {
  width: 28px;
  height: 28px;
}

.gallery-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.gallery-hint {
  display: none;
}

/* Tab 筛选栏 */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.gallery-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gallery-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* 卡片网格 */
.gallery-grid {
  display: none;
}

.gallery-marquee {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 延迟渲染屏幕外大区块，减轻首屏压力 */
.gallery-section,
.media-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}


.gallery-row-viewport {
  overflow: hidden;
  border-radius: 14px;
  padding: 0.2rem 0;
}

.gallery-row-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.gallery-card {
  width: 320px;
  flex: 0 0 320px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

/* 图片区域 */
.gallery-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.04);
}

/* 防伪水印 */
.gallery-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  pointer-events: none;
  z-index: 2;
}

.gallery-watermark span {
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 10px;
  padding: 0.46rem 0.85rem;
  font-size: 0;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
  line-height: 1.35;
  white-space: pre;
  max-width: 88%;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
  user-select: none;
}

.gallery-watermark span::after {
  content: "所有图像由科研棱镜AI\Awww.sciprism.com 原创绘制，请勿盗用！";
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

/* 卡片信息区 */
.gallery-card-info {
  padding: 0.7rem 0.9rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gallery-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-tag {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-card-tag--摘要图 {
  background: #eff6ff;
  color: #2563eb;
}

.gallery-card-tag--架构图 {
  background: #f5f3ff;
  color: #7c3aed;
}

.gallery-card-tag--综述图 {
  background: #f0fdf4;
  color: #16a34a;
}

/* 响应式 */
@media (max-width: 768px) {
  .gallery-section {
    padding: 3rem 1rem;
  }

  .gallery-row-track {
    gap: 0.75rem;
  }

  .gallery-card {
    width: 260px;
    flex-basis: 260px;
  }

  .gallery-card-info {
    padding: 0.6rem 0.75rem;
  }

  .gallery-watermark span {
    padding: 0.36rem 0.6rem;
  }

  .gallery-watermark span::after {
    font-size: 11px;
  }
}

/* ========== 了解更多科研棱镜AI产品 ========== */
.media-section {
  padding: 4rem 2rem;
  background: #ffffff;
}

.media-container {
  max-width: 1220px;
  margin: 0 auto;
}

.media-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.media-title-emoji {
  font-size: 1.1em;
  line-height: 1;
}

.media-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 0 0.9rem;
}

.media-intro {
  max-width: 980px;
  margin: 0 auto 1.4rem;
  text-align: center;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.75;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 235px));
  justify-content: center;
  gap: 0.8rem;
}

.media-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.media-image-wrap {
  aspect-ratio: 4 / 3;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
}

.media-image-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.media-info {
  padding: 0.58rem 0.72rem 0.68rem;
}

.media-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.media-desc {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 240px));
  }
}

@media (max-width: 768px) {
  .media-section {
    padding: 3rem 1rem;
  }

  .media-intro {
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 0.75rem 0.85rem;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 210px));
    gap: 0.8rem;
  }
}

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

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .nav-links a {
    font-size: 14px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-credits {
    font-size: 11px;
    gap: 0.15rem;
  }
}

@media (max-width: 600px) {
  .header-credits {
    font-size: 10px;
    align-items: flex-start;
  }

  .header-credits span {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .announce-banner {
    font-size: 13px;
    padding: 0.5rem 1rem;
  }

  .hero {
    padding: 2rem 1rem 2.5rem;
  }

  .hero-desc {
    white-space: normal;
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-slider {
    margin: 2rem 1rem 0;
  }

  .hero-slider-btn {
    width: 36px;
    height: 36px;
  }

  .hero-slider-btn svg {
    width: 16px;
    height: 16px;
  }

  .hero-slider-btn-prev {
    left: 8px;
  }

  .hero-slider-btn-next {
    right: 8px;
  }
}

/* ========== 主页内容 ========== */
.home-content {
  display: block;
}

/* ========== 跳转提示板块 ========== */
.redirect-section {
  display: none;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 50%, #e0f2fe 100%);
  padding: 4rem 2rem;
  margin-top: 0;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.redirect-container {
  max-width: 500px;
  width: 100%;
}

.redirect-content {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
  border: 1px solid var(--border);
}

.redirect-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.redirect-icon svg {
  width: 40px;
  height: 40px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.redirect-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.redirect-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.redirect-text strong {
  color: var(--primary);
  font-weight: 600;
}

.redirect-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.redirect-hint span {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.redirect-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.redirect-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  width: 0%;
  transition: width 1s linear;
  border-radius: 3px;
}

.redirect-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.redirect-btn {
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.redirect-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.redirect-cancel {
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.redirect-cancel:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
  color: var(--text);
}

/* 响应式 */
@media (max-width: 768px) {
  .redirect-section {
    padding: 2rem 1rem;
  }

  .redirect-content {
    padding: 2rem 1.5rem;
  }

  .redirect-icon {
    width: 64px;
    height: 64px;
  }

  .redirect-icon svg {
    width: 32px;
    height: 32px;
  }

  .redirect-title {
    font-size: 1.5rem;
  }

  .redirect-actions {
    flex-direction: column;
  }

  .redirect-btn,
  .redirect-cancel {
    width: 100%;
  }
}

/* ========== 模型广场板块 ========== */
.models-section {
  display: none;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 50%, #e0f2fe 100%);
  padding: 4rem 2rem;
  margin-top: 0;
  color: var(--text);
  min-height: 100vh;
}

.models-back-btn {
  position: fixed;
  top: 5rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.models-back-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.models-back-btn svg {
  width: 18px;
  height: 18px;
}

.models-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-top: 3rem;
}

.models-header {
  text-align: center;
  margin-bottom: 2rem;
}

.models-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.models-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.models-info {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.models-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.models-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
}

.models-badge svg {
  width: 16px;
  height: 16px;
}

.models-badge--green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

.models-badge--orange {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316;
}

.models-badge--purple {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary);
}

.models-badge--brown {
  background: rgba(180, 83, 9, 0.1);
  border-color: rgba(180, 83, 9, 0.3);
  color: #b45309;
}

.models-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.models-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.models-action-btn svg {
  width: 20px;
  height: 20px;
}

.models-action-btn--blue {
  background: #3b82f6;
}

.models-action-btn--blue:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.models-action-btn--orange {
  background: var(--primary);
}

.models-action-btn--orange:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.models-service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.models-service p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.models-copy-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.models-copy-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.models-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.models-product-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  color: var(--text);
}

.models-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fbbf24;
  color: #fff;
}

.product-tag--strong {
  background: #f97316;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  color: var(--text);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.75rem 0;
}

.product-feature {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  font-style: italic;
}

.product-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.product-btn--orange {
  background: var(--primary);
}

.product-btn--orange:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.product-btn--purple {
  background: #8b5cf6;
}

.product-btn--purple:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
  .models-section {
    padding: 2.5rem 1rem;
  }

  .models-back-btn {
    top: 4rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .models-container {
    padding-top: 2.5rem;
  }

  .models-title {
    font-size: 1.75rem;
  }

  .models-subtitle {
    font-size: 0.95rem;
  }

  .models-badges {
    gap: 0.5rem;
  }

  .models-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .models-actions {
    flex-direction: column;
  }

  .models-action-btn {
    width: 100%;
    justify-content: center;
  }

  .models-service {
    flex-direction: column;
    gap: 0.75rem;
  }

  .models-products {
    grid-template-columns: 1fr;
  }
}

/* ========== 页脚 ========== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

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

.footer-content {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-copyright p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1.5rem 1rem;
    margin-top: 3rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
