/* ===== 成都明思巧学教育科技有限公司 · 设计系统 ===== */
:root {
  --c-primary: #1d4ed8;
  --c-primary-dark: #1e40af;
  --c-accent: #3b82f6;
  --c-gold: #f59e0b;
  --c-ink: #16213c;
  --c-body: #4c5870;
  --c-bg: #f6f8fc;
  --c-surface: #ffffff;
  --c-line: #e4e9f2;
  --c-hero-bg: linear-gradient(150deg, #0f2a63 0%, #1d4ed8 60%, #3b82f6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(29, 78, 216, 0.4);
  --shadow-sm: 0 8px 24px -12px rgba(22, 33, 60, 0.18);
  --maxw: 1140px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--c-ink); }
.brand-logo { width: 34px; height: 34px; }
.brand-name { letter-spacing: 0.5px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 15px; color: var(--c-body); transition: color .2s; }
.main-nav a:hover { color: var(--c-primary); }
.nav-cta { background: var(--c-primary); color: #fff !important; padding: 8px 20px; border-radius: 999px; font-weight: 600; transition: background .2s, transform .2s; }
.nav-cta:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .3s; }

/* Hero */
.hero { background: var(--c-hero-bg); color: #fff; overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 96px 24px; }
.hero-text .eyebrow { color: #93c5fd; }
.hero-text h1 { font-size: 50px; line-height: 1.15; margin: 16px 0 20px; letter-spacing: -1px; }
.hero-text h1 .accent { color: #fcd34d; }
.hero-desc { font-size: 17px; color: rgba(255, 255, 255, 0.9); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fcd34d; color: #0f2a63; box-shadow: 0 12px 30px -10px rgba(252, 211, 77, 0.6); }
.btn-primary:hover { background: #fbbf24; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.btn-light { background: #fff; color: var(--c-primary-dark); }
.btn-light:hover { box-shadow: var(--shadow-sm); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.logo-mark { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-chip {
  position: absolute; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px);
}
.chip-1 { top: 12%; left: 4%; }
.chip-2 { top: 48%; right: 0; }
.chip-3 { bottom: 8%; left: 14%; }

/* Sections */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: 38px; letter-spacing: -0.5px; margin: 12px 0; }
.section-sub { color: var(--c-body); font-size: 16px; }
.eyebrow { color: var(--c-primary); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { font-size: 34px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--c-body); font-size: 14.5px; }

/* Products */
.products { background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 34px 28px; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pc-badge { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pc-1 .pc-badge { background: #d7f5ef; color: #0b6e70; }
.pc-2 .pc-badge { background: #ede7fb; color: #54339c; }
.pc-3 .pc-badge { background: #e0e7ff; color: #3730a3; }
.pc-logo { width: 56px; height: 56px; margin-bottom: 18px; }
.pc-logo img { width: 100%; height: 100%; }
.product-card h3 { font-size: 22px; margin-bottom: 2px; }
.pc-domain { color: var(--c-accent); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.product-card p { color: var(--c-body); font-size: 14.5px; margin-bottom: 18px; flex-grow: 1; }
.pc-link { font-weight: 700; color: var(--c-primary); font-size: 14px; }

/* Values */
.values { background: var(--c-hero-bg); color: #fff; }
.values .eyebrow { color: #93c5fd; }
.values .section-sub { color: rgba(255, 255, 255, 0.8); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 32px 28px; }
.value-num { font-size: 40px; font-weight: 800; color: #fcd34d; }
.value h3 { margin: 12px 0 8px; font-size: 20px; }
.value p { color: rgba(255, 255, 255, 0.82); font-size: 15px; }

/* Contact */
.contact-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 18px; }
.contact-icon { font-size: 26px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: #eef4ff; border-radius: 12px; }
.contact-item h4 { font-size: 15px; color: var(--c-body); font-weight: 600; }
.contact-item p { font-size: 16px; font-weight: 600; color: var(--c-ink); }
.contact-item a:hover { color: var(--c-primary); }

/* Footer */
.site-footer { background: #0f1c3d; color: rgba(255, 255, 255, 0.75); padding: 56px 0 32px; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-desc { max-width: 460px; margin: 0 auto 24px; font-size: 14px; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 13px; opacity: .7; }
.beian { margin-top: 8px; font-size: 13px; }
.beian a { color: rgba(255, 255, 255, 0.6); }
.beian a:hover { color: #fff; }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 64px 24px; }
  .hero-desc { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 220px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { position: fixed; top: 68px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--c-line); transform: translateY(-130%); transition: transform .3s; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero-text h1 { font-size: 36px; }
  .cards-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 30px; }
}
