/* 企报告官网自定义样式 */

/* Hero 装饰背景层叠顺序 - 使用正 z-index 避免被父元素遮挡 */
.hero-gradient-bg {
  z-index: 0 !important;
}
.hero-blur-bg {
  z-index: 1 !important;
}

/* 修复 reset.css 的 input { border: 0 } 覆盖 Tailwind border 类的问题 */
.landing-page input[type="tel"],
.landing-page input[type="text"],
.landing-page input[type="email"] {
  border-style: solid;
  line-height: 1.5;
}

/* 修复 reset.css/common.css 导致按钮高度偏小的问题 */
.landing-page .btn-primary,
.landing-page .btn-outline {
  line-height: 1.5;
}

/* 按钮禁用状态 */
.landing-page .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --bg: #f8fafc;
  --radius: 12px;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
  line-height: 1.2;
}

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

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

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* 呼吸按钮效果 */
.btn-breathe {
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3), 0 0 0 0 rgba(37, 99, 235, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), 0 0 0 10px rgba(37, 99, 235, 0);
    transform: scale(1.02);
  }
}

/* 图片占位区 */
.placeholder-img {
  width: 100%;
  min-height: 280px;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.placeholder-img span {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
}

/* 卡片悬停 */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

/* 导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #eff6ff;
}

/* 数据条 */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

/* 定价卡片 */
.pricing-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: white;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
  transform: scale(1.02);
}

.pricing-card:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

/* 页脚 */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
}

.site-footer a {
  color: #94a3b8;
  transition: color 0.2s;
}

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

/* 移动端菜单 */
.mobile-menu {
  display: none;
}

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

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* 多行文本截断兼容 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 功能截图轮播 */
.feature-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-card:hover,
.feature-card.active {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.feature-card.active h4 {
  color: var(--primary);
}

/* 浏览器窗口样机外框 */
.feature-carousel-browser {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.12),
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  position: relative;
}

.feature-carousel-browser::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}

.browser-dots {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-address {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  background: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-carousel {
  width: 100%;
  min-height: 340px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.feature-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-carousel-img.active {
  opacity: 1;
}

@media (min-width: 1024px) {
  .feature-carousel {
    min-height: 380px;
  }
}

/* 移动端卡片内嵌截图（手风琴）：仅激活卡片展开，桌面端不显示 */
.feature-card-img {
  display: none;
  margin-top: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.feature-card-img img {
  display: block;
  width: 100%;
}

@media (max-width: 1023px) {
  .feature-card.active .feature-card-img {
    display: block;
    animation: fadeInUp 0.4s ease;
  }
}

/* 横向滚动隐藏滚动条 */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* 回到顶部按钮 */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}
