/* ==========================================================================
   一云梯 (1yunti.cyou) - 官方落地页与SEO文章通用样式库
   配色系统：清淡高质感 (Modern Light Aesthetic)
   ========================================================================== */

:root {
  /* 基础配色 */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  --bg-accent-light: #F0F9FF;
  
  /* 文字配色 */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  
  /* 主题与品牌色 */
  --primary: #0284C7;
  --primary-hover: #0369A1;
  --primary-dark: #075985;
  --secondary: #2563EB;
  --accent-badge: #0284C7;
  
  /* 渐变与阴影 */
  --gradient-primary: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  --gradient-card-hero: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
  --gradient-recommended: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 10px 30px rgba(2, 132, 199, 0.25);
  
  /* 边框与圆角 */
  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* 字体与动画 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

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

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

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #FFFFFF;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-accent-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-description {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 12px auto 0;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.35);
}

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

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

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* 导航栏 Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

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

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

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

/* Hero Section */
.hero {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, #F0F9FF 0%, var(--bg-main) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #DEF7EC;
  color: #03543F;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* 核心特性 Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-accent-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;

}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 价格套餐 Pricing Section - 对应用户截图精确还原 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: #111827; /* 深色对比高质感感，匹配截图卡片风格 */
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 推荐套餐特殊突出 */
.pricing-card.recommended {
  background: linear-gradient(160deg, #1E293B 0%, #0F172A 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
  transform: scale(1.03);
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pricing-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.badge-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-entry {
  background: rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
}

.badge-recommend {
  background: #F59E0B;
  color: #78350F;
}

.pricing-price {
  margin-bottom: 16px;
}

.pricing-amount {
  font-size: 38px;
  font-weight: 900;
  color: #FFFFFF;
}

.pricing-period {
  font-size: 14px;
  color: #94A3B8;
}

.pricing-subtext {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #E2E8F0;
  margin-bottom: 14px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: #38BDF8;
  flex-shrink: 0;
}

.pricing-btn-outline {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.pricing-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.pricing-btn-recommended {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  transition: var(--transition);
}

.pricing-btn-recommended:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* SEO 文章展示卡片 Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-category {
  color: var(--primary);
  font-weight: 600;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-title a {
  color: var(--text-primary);
}

.article-title a:hover {
  color: var(--primary);
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;

}

/* 用户评价 Testimonials Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #F59E0B;
  font-size: 16px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

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

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-accent-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* FAQ 常见问题 accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--bg-main);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 16px 24px 24px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 50 Search Tags Cloud 底部热搜标签组 */
.tag-cloud-wrap {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-item {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-main);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.tag-item:hover {
  background: var(--bg-accent-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* 页脚 Footer */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 0 30px;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-column h5 {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 14px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #1E293B;
  font-size: 14px;
}

/* ==========================================================================
   文章详情页 专属样式 (Article Pages Layout)
   ========================================================================== */
.article-header-section {
  background: linear-gradient(180deg, #F0F9FF 0%, var(--bg-main) 100%);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-color);
}

.article-breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-breadcrumbs a {
  color: var(--text-muted);
}

.article-breadcrumbs a:hover {
  color: var(--primary);
}

.article-main-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-post-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-container-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 50px 0;
}

.article-content {
  background: #FFFFFF;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-accent-light);
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  background: var(--bg-accent-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
}

/* 文章内部内链 highlight */
.internal-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-cta-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin: 40px 0;
}

.article-cta-box h3 {
  color: #FFFFFF;
  font-size: 22px;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: #94A3B8;
  margin-bottom: 20px;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.related-posts-list {
  list-style: none;
}

.related-posts-list li {
  margin-bottom: 14px;
}

.related-posts-list a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  display: block;
}

.related-posts-list a:hover {
  color: var(--primary);
}

/* 移动端响应式 */
@media (max-width: 992px) {
  .hero-grid, .features-grid, .pricing-grid, .articles-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.recommended {
    transform: none;
  }
  
  .article-container-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  
  .navbar .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
