/* 奈斯云 NiceCloud - 纯原生浅色极简 CSS */
:root {
  --bg-main: #ffffff;
  --bg-sub: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --accent-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  --border: #e2e8f0;
  --border-focus: #93c5fd;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg: 0 12px 32px rgba(37,99,235,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* 导航栏 Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* CTA 按钮基础属性 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

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

.btn-outline {
  background: var(--bg-main);
  color: var(--text-main) !important;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 50px;
}

/* Hero 主视觉区 */
.hero {
  padding: 90px 0 70px 0;
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #ffffff 70%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-sub);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px dashed var(--border);
  max-width: 800px;
  margin: 0 auto;
}

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

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* 核心优势板块 */
.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-sub);
}

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

.section-tag {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
}

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

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

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

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

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

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 流媒体与 AI 支持 */
.media-ai-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.media-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.media-badge:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* 价格对比表 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.pricing-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-header p {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 24px;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-sub);
}

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

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-sub);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li strong {
  color: var(--text-main);
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

/* 用户评价 */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f59e0b;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

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

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

.user-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ 常见问题 */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item h4::before {
  content: "Q.";
  color: var(--primary);
  font-weight: 900;
}

.faq-item p {
  color: var(--text-sub);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* CTA Banner Bottom */
.cta-banner {
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 80px;
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-banner .btn {
  background: #ffffff !important;
  color: var(--primary) !important;
}

.cta-banner .btn:hover {
  background: #f1f5f9 !important;
  color: var(--primary-hover) !important;
}

/* 页脚 Footer (用户指定：仅保留 4 个标题 link，并打开新页面) */
.footer {
  background-color: var(--bg-sub);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.2s ease;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.footer-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

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

/* 独立子页面 Page Layout Header */
.page-header {
  padding: 50px 0 30px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sub);
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.page-desc {
  color: var(--text-sub);
  font-size: 1rem;
}

.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
}

.content-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p {
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-box ul {
  margin: 12px 0 20px 24px;
  color: var(--text-sub);
}

.content-box ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* 媒体查询 Responsive @media (手机端移动适配) */
@media (max-width: 992px) {
  .grid-3, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.popular {
    transform: none;
  }
  .hero-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* 移动端精简顶部导航 */
  }

  .hero {
    padding: 50px 0 40px 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .grid-3, .grid-2, .pricing-grid, .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .btn-lg {
    width: 100%;
  }

  .content-box {
    padding: 24px 18px;
  }
}
