/* ============================================================
 * 云星创客 · 首页样式（仿 Tinkercad 风格）
 * ============================================================ */

:root {
  --brand: #00a2e8;
  --brand-dark: #0084bf;
  --text: #1d2b3a;
  --text-light: #5c6b7a;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --line: #e6ebf0;
  --shadow: 0 10px 30px rgba(29, 43, 58, 0.08);
  --shadow-hover: 0 16px 40px rgba(29, 43, 58, 0.14);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

section { padding: 80px 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: rgba(0,162,232,.5); color: var(--brand); background: #fff; }
.btn-outline:hover { background: #eef8fd; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn-price { background: var(--brand); color: #fff; width: 100%; padding: 10px; font-size: 15px; border-radius: 10px; }
.btn-price:hover { background: var(--brand-dark); }
.btn-price.disabled { background: #c8d3dd; cursor: not-allowed; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #00a2e8, #7a59ff);
  color: #fff; font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-light); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--brand); }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, #eef8fd 0%, #ffffff 100%);
  padding: 90px 0 70px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -1px; }
.hero h1 strong { color: var(--brand); }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--text-light); max-width: 520px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { border-radius: 22px; box-shadow: var(--shadow-hover); width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------------- 特性区 ---------------- */
.features { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 34px; margin-bottom: 14px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ---------------- 数据统计 ---------------- */
.stats { background: linear-gradient(135deg, #00a2e8, #0062a0); color: #fff; padding: 54px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.stat-label { font-size: 15px; opacity: .85; margin-top: 4px; }

/* ---------------- Section 头 ---------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { margin-top: 14px; color: var(--text-light); font-size: 16px; }

/* ---------------- 项目介绍（总览卡片） ---------------- */
.projects { background: var(--bg-soft); }
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: 26px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  transition: all .25s ease;
}
.project-card:hover { box-shadow: var(--shadow-hover); }
.project-card > * { min-width: 0; }
.project-card:nth-child(even) { direction: rtl; }
.project-card:nth-child(even) > * { direction: ltr; }

.card-media { display: flex; flex-direction: column; gap: 14px; }
.card-img-main { border-radius: 16px; width: 100%; aspect-ratio: 16/10; object-fit: cover; box-shadow: var(--shadow); }
.card-img-sub { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card-img-sub img { border-radius: 12px; width: 100%; aspect-ratio: 16/8; object-fit: cover; min-width: 0; }

.card-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 26px; flex-shrink: 0;
}
.card-title h3 { font-size: 26px; font-weight: 800; }
.card-en { color: var(--brand); font-weight: 600; font-size: 14px; }
.card-desc { color: var(--text-light); font-size: 15px; margin-bottom: 20px; }
.card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- 子项目页 ---------------- */
.sub-hero {
  position: relative;
  padding: 0;
  background: linear-gradient(180deg, #eef8fd 0%, #ffffff 100%);
}
.sub-hero-banner {
  padding: 72px 0 56px;
  color: #fff;
}
.sub-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sub-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.sub-hero .sub-en { font-size: 17px; opacity: .9; margin-top: 8px; font-weight: 600; }
.sub-hero .sub-tagline { margin-top: 18px; font-size: 17px; opacity: .94; }
.sub-hero img { border-radius: 18px; box-shadow: 0 18px 44px rgba(0,0,0,.22); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sub-hero .hero-actions { margin-top: 26px; }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

.sub-about { background: #fff; }
.sub-about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sub-about h3 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.sub-about p { color: var(--text-light); font-size: 15.5px; margin-bottom: 14px; }
.sub-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 18px; }
.sub-feats li { display: flex; gap: 8px; font-size: 14px; }
.sub-feats li::before { content: '✓'; color: var(--brand); font-weight: 800; }
.sub-about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sub-about-imgs img { border-radius: 14px; width: 100%; aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow); }

.sub-usage { background: var(--bg-soft); }
.usage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usage-card { background: #fff; border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow); transition: all .25s ease; }
.usage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.usage-card .uc-icon { font-size: 30px; margin-bottom: 12px; }
.usage-card h4 { font-size: 16px; margin-bottom: 8px; }
.usage-card p { font-size: 13.5px; color: var(--text-light); }

/* 子项目价格表 */
.sub-pricing { background: #fff; }
.sub-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.sub-price-card {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  border-top: 5px solid var(--brand);
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
}
.sub-price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.sub-price-card.highlight { background: #fff; box-shadow: var(--shadow); }
.sub-price-card .sp-plan { font-size: 17px; font-weight: 700; }
.sub-price-card .sp-price { font-size: 38px; font-weight: 800; margin: 12px 0 2px; }
.sub-price-card .sp-per { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.sub-price-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.sub-price-card li { font-size: 14px; padding: 5px 0; color: var(--text); }
.sub-price-card li::before { content: '✓ '; color: var(--brand); font-weight: 700; }
.sub-price-card .btn { width: 100%; }

/* 子项目入口 */
.sub-entry { background: var(--bg-soft); }
.sub-entry-box {
  background: linear-gradient(135deg, #00a2e8, #0062a0);
  border-radius: 26px;
  padding: 56px 48px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-hover);
}
.sub-entry-box h3 { font-size: 30px; font-weight: 800; }
.sub-entry-box p { margin: 14px auto 28px; max-width: 520px; font-size: 16px; opacity: .92; }
.sub-entry-box .hero-actions { justify-content: center; }

/* 子页导航小贴士 */
.sub-navbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sub-navbar a { font-size: 14px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; transition: all .2s; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sub-navbar a:hover { transform: translateY(-2px); color: var(--brand); }

/* ---------------- 价格总览 ---------------- */
.pricing { background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.price-card {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  border-top: 5px solid var(--brand);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card .pc-icon { font-size: 30px; margin-bottom: 8px; }
.price-card h4 { font-size: 17px; margin-bottom: 12px; }
.price-card .pc-from { font-size: 13px; color: var(--text-light); }
.price-card .pc-price { font-size: 30px; font-weight: 800; margin: 4px 0; }
.price-card .pc-per { font-size: 12px; color: var(--text-light); margin-bottom: 14px; }
.price-card a { margin-top: auto; }

/* ---------------- 课程区 ---------------- */
.curriculum { background: var(--bg-soft); }
.curriculum-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.curriculum-card {
  background: #fff; border-radius: 16px; padding: 24px 16px; text-align: center;
  box-shadow: var(--shadow); transition: all .25s ease;
}
.curriculum-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.curriculum-thumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px; font-size: 30px; margin-bottom: 12px;
}
.curriculum-card h4 { font-size: 15px; }

/* ---------------- 项目入口 ---------------- */
.entry { background: #fff; }
.entry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.entry-card {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  transition: all .25s ease; border: 1px solid var(--line);
}
.entry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.entry-card .ec-head {
  padding: 26px 20px 18px; color: #fff; text-align: center;
}
.entry-card .ec-icon { font-size: 40px; margin-bottom: 10px; }
.entry-card .ec-name { font-size: 19px; font-weight: 800; }
.entry-card .ec-en { font-size: 12.5px; opacity: .85; }
.entry-card .ec-body { padding: 18px 20px; text-align: center; }
.entry-card .ec-body p { font-size: 13px; color: var(--text-light); min-height: 60px; margin-bottom: 16px; }
.entry-card .ec-enter { display: block; }
.entry-card .ec-badge {
  display: inline-block; font-size: 11.5px; margin-top: 12px; padding: 4px 12px;
  border-radius: 999px; background: #eef4ff; color: var(--brand); font-weight: 600;
}

/* ---------------- 底部 CTA ---------------- */
.cta { background: linear-gradient(135deg, #00a2e8, #0062a0); color: #fff; text-align: center; padding: 90px 0; }
.cta h2 { font-size: 36px; font-weight: 800; }
.cta p { margin: 16px auto 30px; max-width: 560px; font-size: 17px; opacity: .92; }
.cta .hero-actions { justify-content: center; }

/* ---------------- 页脚 ---------------- */
.footer { background: #101b28; color: #b7c4d2; padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 40px; }
.footer-brand .brand-logo { margin-bottom: 6px; }
.footer-brand .brand-name { color: #fff; font-weight: 700; font-size: 18px; }
.footer-brand p { margin-top: 10px; font-size: 13.5px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; padding: 4px 0; color: #b7c4d2; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; text-align: center; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .project-card { grid-template-columns: 1fr; padding: 30px; }
  .project-card:nth-child(even) { direction: ltr; }
  .sub-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .sub-hero .hero-actions { justify-content: center; }
  .sub-about-inner { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-price-grid { grid-template-columns: 1fr; max-width: 480px; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .curriculum-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
  .card-img-sub { grid-template-columns: 1fr; }
  .sub-about-imgs { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: 1fr; }
  .sub-entry-box { padding: 40px 24px; }
  .sub-hero h1 { font-size: 30px; }
  .hero h1 { font-size: 34px; }
  .stats-inner { gap: 12px; }
  .stat-num { font-size: 26px; letter-spacing: -1px; }
  .stat-label { font-size: 13px; }
}
