/* 中启星职业高考通 - 主样式文件 */
/* 广西优势智能科技有限公司 版权所有 */

:root {
  --primary: #1a6bff;
  --primary-dark: #1456cc;
  --primary-light: #e8f0ff;
  --secondary: #ff6b35;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif; background: #f8fafc; color: var(--dark); line-height: 1.6; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 70px; gap: 32px; }
.logo-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { font-size: 32px; }
.logo-text h1 { font-size: 18px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-text p { font-size: 11px; color: var(--gray); }
.nav-menu { display: flex; gap: 8px; flex: 1; justify-content: center; }
.nav-link { padding: 6px 16px; border-radius: 20px; text-decoration: none; color: var(--gray); font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary); }
.header-actions { display: flex; gap: 10px; }
.user-info { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.user-info span { color: var(--dark); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,107,255,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-block { width: 100%; padding: 12px; font-size: 16px; border-radius: 10px; }
.btn-hero-primary { padding: 14px 32px; font-size: 16px; border-radius: 12px; background: white; color: var(--primary); font-weight: 700; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-hero-outline { padding: 14px 32px; font-size: 16px; border-radius: 12px; background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); font-weight: 600; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 70px; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a6bff 0%, #6b35ff 50%, #ff6b35 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 80px 24px; color: white; flex: 1; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.15); border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid rgba(255,255,255,0.3); margin-bottom: 24px; backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.1; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.hero-subtitle { font-size: clamp(14px, 2vw, 18px); opacity: 0.85; margin-bottom: 40px; max-width: 600px; }
.hero-stats { display: flex; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1; }
.stat-label { font-size: 12px; opacity: 0.7; margin-top: 4px; display: block; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; opacity: 0.9; }
.floating-card { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 16px 20px; color: white; font-size: 13px; font-weight: 600; animation: float 4s ease-in-out infinite; white-space: nowrap; }
.floating-card:nth-child(2) { animation-delay: 1s; }
.floating-card:nth-child(3) { animation-delay: 2s; }
.floating-card:nth-child(4) { animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== ANNOUNCEMENT ===== */
.announcement-bar { background: linear-gradient(90deg, #1a6bff, #6b35ff); padding: 10px 24px; }
.announcement-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.ann-icon { font-size: 16px; flex-shrink: 0; }
.ann-scroll { color: white; font-size: 13px; opacity: 0.9; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ===== SECTIONS ===== */
.subjects-section, .features-section, .exam-section, .about-section { padding: 80px 24px; max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ===== SUBJECT TABS ===== */
.subject-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; }
.tab-btn { padding: 10px 28px; border-radius: 24px; border: 1.5px solid #e2e8f0; background: white; color: var(--gray); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== SUBJECTS GRID ===== */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.subject-card { background: white; border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow); border: 2px solid transparent; position: relative; overflow: hidden; }
.subject-card::before { content: ''; position: absolute; inset: 0; opacity: 0.04; background: currentColor; }
.subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--card-color, var(--primary)); }
.subject-icon { font-size: 40px; margin-bottom: 12px; }
.subject-name { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.subject-type { font-size: 11px; padding: 3px 10px; border-radius: 12px; background: var(--primary-light); color: var(--primary); font-weight: 500; }
.subject-count { margin-top: 10px; font-size: 12px; color: var(--gray); }

/* ===== FEATURES ===== */
.features-section { background: linear-gradient(180deg, #f8fafc, white); border-radius: 0; padding: 80px 24px; max-width: 100%; }
.features-section .section-header, .features-section .features-grid { max-width: 1280px; margin-left: auto; margin-right: auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: white; border-radius: var(--radius-lg); padding: 32px 28px; transition: var(--transition); box-shadow: var(--shadow); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ===== EXAM SECTION ===== */
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.exam-card { background: white; border-radius: var(--radius); padding: 24px 20px; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow); border-top: 4px solid var(--card-color, var(--primary)); }
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.exam-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.exam-card p { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.exam-card .btn { width: 100%; }

/* ===== ABOUT ===== */
.about-section { background: var(--dark); border-radius: 0; max-width: 100%; color: white; padding: 80px 24px; }
.about-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.about-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.about-desc { font-size: 16px; opacity: 0.8; margin-bottom: 16px; line-height: 1.8; }
.about-text > p:last-of-type { font-size: 14px; opacity: 0.65; line-height: 1.8; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: 0.8; }
.contact-icon { font-size: 18px; }
.about-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 40px 48px; text-align: center; backdrop-filter: blur(8px); }
.about-logo { font-size: 60px; margin-bottom: 16px; }
.about-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: 14px; opacity: 0.6; margin-bottom: 24px; }
.about-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge { padding: 4px 14px; background: rgba(255,255,255,0.15); border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: #0f172a; color: rgba(255,255,255,0.5); text-align: center; padding: 32px 24px; }
.footer-logo { font-size: 18px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer p { font-size: 13px; line-height: 2; }

/* ===== MODALS ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: var(--radius-lg); width: 90%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; animation: modalIn 0.3s ease; }
.modal-lg { max-width: 620px; }
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: rgba(255,255,255,0.2); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.required { color: var(--danger); }
.form-input { width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; transition: var(--transition); outline: none; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,107,255,0.1); }
.form-error { background: #fef2f2; border: 1px solid #fee2e2; color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.form-success { background: #f0fdf4; border: 1px solid #dcfce7; color: var(--success); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.form-note { font-size: 12px; color: var(--gray); text-align: center; margin-top: 12px; }
.modal-link { text-align: center; font-size: 13px; color: var(--gray); margin-top: 12px; }
.modal-link a { color: var(--primary); cursor: pointer; font-weight: 600; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-visual { display: none; }
  .hero-content { padding: 60px 20px; }
  .hero-stats { gap: 20px; }
  .about-content { grid-template-columns: 1fr; }
  .about-card { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}
