/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6; color: #1a1a2e;
  background: #fff; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-dark { background: #f5f7fa; }
.section-title {
  font-size: 2rem; font-weight: 900; text-align: center;
  margin-bottom: 12px; color: #1a1a2e;
}
.section-subtitle {
  font-size: 1.05rem; color: #6b7280; text-align: center;
  max-width: 600px; margin: 0 auto 48px; line-height: 1.5;
}
/* ====== COLORS ====== */
:root {
  --primary: #1E5AA8;
  --primary-dark: #15448a;
  --primary-light: #e8f0fe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --bg-light: #f5f7fa;
  --border: #e5e7eb;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}
/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; }
.logo-icon { font-size: 1.5rem; }
.logo-hp { font-weight: 900; color: var(--primary); }
.logo-text { letter-spacing: -0.3px; }
.nav-menu { display: flex; gap: 6px; }
.nav-menu a {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.92rem;
  font-weight: 500; color: var(--text); transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--primary-light); color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center; padding: 10px 24px;
  background: var(--primary); color: var(--white) !important; border-radius: 50px;
  font-weight: 600; font-size: 0.92rem; transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
/* ====== HERO ====== */
.hero {
  background: linear-gradient(135deg, #1E5AA8 0%, #15448a 50%, #0f3a7a 100%);
  color: var(--white); padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 20px;
  border-radius: 50px; font-size: 0.85rem; margin-bottom: 24px; letter-spacing: 1px;
}
.hero h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #fbbf24; }
.hero p { font-size: 1.15rem; opacity: 0.9; line-height: 1.6; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 60px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 900; color: #fbbf24; }
.hero-stat-label { font-size: 0.85rem; opacity: 0.75; margin-top: 4px; }
/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 50px; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transition: all 0.25s; text-align: center;
}
.btn-primary { background: var(--white); color: var(--primary) !important; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-outline {
  background: transparent; color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white) !important; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
/* ====== CARDS GRID ====== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 10px;
}
.card-tag-blue { background: var(--primary-light); color: var(--primary); }
.card-tag-green { background: #e6f7e6; color: #16a34a; }
.card-tag-orange { background: #fef3c7; color: #d97706; }
.card-tag-purple { background: #ede9fe; color: #7c3aed; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.5; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
/* ====== FEATURES ====== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 52px; height: 52px; min-width: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--primary-light);
}
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }
/* ====== HERO INNER (subpages) ====== */
.hero-inner {
  background: linear-gradient(135deg, #1E5AA8 0%, #15448a 60%, #0f3a7a 100%);
  color: var(--white); padding: 64px 0 56px; text-align: center;
}
.hero-inner h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; }
.hero-inner p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; line-height: 1.5; }
.hero-inner .breadcrumb { font-size: 0.85rem; opacity: 0.6; margin-bottom: 16px; }
.hero-inner .breadcrumb a { opacity: 0.8; }
.hero-inner .breadcrumb a:hover { opacity: 1; text-decoration: underline; }
/* ====== PLANS / PRICING ====== */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  border: 1px solid var(--border); transition: all 0.3s; position: relative;
}
.plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); padding: 4px 16px;
  border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.plan h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 2.2rem; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.plan-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }
.plan-features { margin-bottom: 24px; }
.plan-features li {
  padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.plan-features li::before { content: '✓'; color: #16a34a; font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }
/* ====== ABOUT / CONTENT BLOCKS ====== */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; margin-top: 40px; }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; margin-top: 32px; }
.content-block p { font-size: 0.98rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.content-block ul { margin-bottom: 16px; padding-left: 0; }
.content-block ul li { padding: 6px 0; padding-left: 24px; position: relative; font-size: 0.95rem; color: var(--text-light); line-height: 1.5; }
.content-block ul li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); }
/* ====== PARTNER BENEFITS ====== */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partner-item {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--border); text-align: center;
}
.partner-item:hover { box-shadow: var(--shadow); }
.partner-item-icon { font-size: 2.2rem; margin-bottom: 12px; }
.partner-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.partner-item p { font-size: 0.9rem; color: var(--text-light); }
/* ====== COMMISSION MODEL ====== */
.commission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.commission-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; border: 1px solid var(--border);
}
.commission-card:hover { box-shadow: var(--shadow); }
.commission-card h3 { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.commission-card p { font-size: 0.9rem; color: var(--text-light); }
/* ====== TIMELINE ====== */
.timeline { max-width: 700px; margin: 40px auto 0; }
.timeline-item { display: flex; gap: 20px; padding-bottom: 32px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-num {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: var(--primary); color: var(--white); display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.timeline-content p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
/* ====== FOOTER ====== */
.footer {
  background: #1a1a2e; color: #cbd5e1; padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 8px; }
.footer-slogan { color: #fbbf24 !important; font-weight: 500; }
.footer-links a { display: block; padding: 4px 0; font-size: 0.9rem; color: #94a3b8; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: var(--white); }
.footer-qr img { border-radius: var(--radius-sm); margin-top: 8px; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: #64748b; }
.footer-seo-text { margin-top: 8px; font-size: 0.78rem; }
/* ====== MODAL ====== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); max-width: 480px;
  width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
  padding: 40px 32px;
}
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 1.8rem; cursor: pointer; color: var(--text-light); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-form h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.modal-subtitle { font-size: 0.92rem; color: var(--text-light); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,90,168,0.1); }
.form-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 12px; }
.form-success { text-align: center; padding: 40px 0; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #16a34a;
  color: var(--white); font-size: 1.8rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
}
.form-success h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-light); }
/* ====== TESTIMONIALS ====== */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--border);
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 10px; }
.testimonial p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; font-style: italic; margin-bottom: 12px; }
.testimonial-author { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.testimonial-author span { font-weight: 400; color: var(--text-light); }
/* ====== BENEFITS STRIP ====== */
.benefits-strip {
  background: var(--primary); color: var(--white); padding: 48px 0;
}
.benefits-strip .card-grid { gap: 16px; }
.benefit-card {
  text-align: center; padding: 24px 16px;
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
}
.benefit-card .icon { font-size: 2rem; margin-bottom: 10px; }
.benefit-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.benefit-card p { font-size: 0.85rem; opacity: 0.8; }
/* ====== FAQ ====== */
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  margin-bottom: 12px; border: 1px solid var(--border); overflow: hidden;
}
.faq-question {
  padding: 16px 20px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem;
}
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--primary); transition: transform 0.2s; }
.faq-question.open::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 16px; font-size: 0.9rem; color: var(--text-light); line-height: 1.6; display: none; }
.faq-answer.open { display: block; }
/* ====== CALL TO ACTION SECTION ====== */
.cta-section {
  background: linear-gradient(135deg, #1E5AA8, #15448a);
  color: var(--white); text-align: center; padding: 64px 0;
}
.cta-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 28px; }
/* ====== PAGE SPECIFIC STYLES ====== */
/* --- Courses --- */
.course-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-type {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  text-align: center; border: 1px solid var(--border);
}
.course-type-icon { font-size: 2.5rem; margin-bottom: 12px; }
.course-type h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.course-type p { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }
.course-type .price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-top: 12px; }
/* --- Promo countdown --- */
.promo-hero {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  color: var(--white); padding: 80px 0; text-align: center;
}
.promo-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; }
.promo-hero h1 span { color: #fbbf24; }
/* ====== RESPONSIVE ====== */
@media (max-width: 968px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .course-types { grid-template-columns: repeat(2, 1fr); }
  .commission-grid { grid-template-columns: 1fr; max-width: 360px; margin: 24px auto 0; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-inner h1 { font-size: 1.7rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; width: 100%; flex-direction: column;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px; display: none; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-cta { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-inner { padding: 40px 0 36px; }
  .hero-inner h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.5rem; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .course-types { grid-template-columns: 1fr; }
  .plans-grid { max-width: 100%; }
  .modal { padding: 28px 20px; }
  .promo-hero h1 { font-size: 1.6rem; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .benefits-strip .card-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { gap: 20px; }
}
