/* index.css - 纸飞机官网样式 */

:root {
  --primary: #0088cc;
  --primary-hover: #0077b5;
  --dark: #0f172a;
  --light: #f8fafc;
  --text: #475569;
  --border: #e2e8f0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.6;
}

/* ===== 头部导航 ===== */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

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

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 25px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
}

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

.nav-links a.active {
  color: #ffffff;
  background-color: var(--primary);
}

/* ===== 英雄区域 ===== */
.hero {
  padding: 100px 20px 60px;
  text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(0, 136, 204, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.brand-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 12px 24px rgba(0, 136, 204, 0.2);
}

.brand-icon svg {
  width: 44px;
  height: 44px;
  fill: #ffffff;
}

.hero h1 {
  font-size: 46px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.25;
}

.hero p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--dark);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--light);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.image-placeholder-banner {
  width: 100%;
  max-width: 800px;
  height: 440px;
  background-color: #f1f5f9;
  border-radius: 16px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
}

.image-placeholder-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container {
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--border);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== 生态区域 & 创意版块 ===== */
.ecosystem-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.creative-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 32px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 16px;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.eco-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eco-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.eco-card h3 {
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.eco-card p {
  font-size: 14.5px;
  color: #64748b;
}

/* 创意卡片额外样式 */
.creative-card {
  text-align: center;
  border-style: dashed;
  border-width: 1.5px;
  border-color: var(--border);
}

.creative-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

/* ===== 新闻动态 ===== */
.recent-news {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--light);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.news-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.news-card h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 14px;
  font-weight: 700;
}

.news-card p {
  font-size: 15px;
  color: #475569;
}

/* ===== 特性介绍 ===== */
.features {
  background: var(--light);
  padding: 90px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  background: #ffffff;
  padding: 40px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-item h3 {
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-item p {
  font-size: 14.5px;
  color: #64748b;
}

/* ===== 页脚 ===== */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 70px 20px 40px;
  font-size: 14px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-column h5 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  .eco-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid,
  .eco-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

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