/* ===== AI教育集成平台 - 全局样式 ===== */
/* Design Language: gold/navy corporate style matching zengqi.com.cn */

:root {
  /* Core brand colors */
  --primary: #c9a96e;
  --primary-dark: #b8944e;
  --primary-light: rgba(201, 169, 110, 0.15);
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-3: #0f3460;
  --text: #333;
  --text-light: #666;
  --text-muted: #888;
  --bg: #fff;
  --bg-light: #fafafa;
  --bg-warm: #fdfbf7;
  --border: #e8e8e8;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #c0392b;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 35px rgba(0,0,0,0.10);
  --transition: 0.3s ease;

  /* Camp accent colors */
  --camp-tongshi: #27ae60;
  --camp-tongshi-light: rgba(39,174,96,0.1);
  --camp-aigc: #8b5cf6;
  --camp-aigc-light: rgba(139,92,246,0.1);
  --camp-agent: #3b82f6;
  --camp-agent-light: rgba(59,130,246,0.1);
  --camp-robot: #e67e22;
  --camp-robot-light: rgba(230,126,34,0.1);
}

* { 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;
  font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-top: 70px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== Typography ===== */
.section-title {
  font-size: 2.2rem; color: var(--dark); text-align: center;
  margin-bottom: 0.5rem; font-weight: 700; letter-spacing: 0.02em;
}
.section-desc {
  text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 0.9rem 2.5rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; transition: all var(--transition);
  display: inline-block; border: none; cursor: pointer; text-align: center;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(201,169,110,0.4); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5); color: #fff;
  padding: 0.9rem 2.5rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; transition: all var(--transition);
  display: inline-block; background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(201,169,110,0.1); }

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 0.9rem 3rem; border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,169,110,0.4); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,26,46,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,169,110,0.2);
  transition: all var(--transition);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.3rem; font-weight: 700; color: var(--primary);
}
.nav-logo .logo-icon { font-size: 1.8rem; }
.nav-logo { overflow: visible; }
.nav-logo .logo-img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; transition: transform 0.5s cubic-bezier(0, 0, 0.2, 1); }
.nav-logo .logo-img:hover { transform: scale(2); }
.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.95rem; font-weight: 500;
  transition: color var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  cursor: pointer;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 1000;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26,26,46,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 10px;
  min-width: 180px;
  padding: 0.5rem 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav-dropdown-menu a:hover {
  background: rgba(201,169,110,0.12);
  color: var(--primary);
}
.nav-dropdown-menu a::after {
  display: none;
}

.nav-toggle { display: none; background: none; color: #fff; font-size: 1.5rem; }

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-2), var(--dark-3));
  padding: 9rem 2rem 6rem; text-align: center; color: #fff;
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(201,169,110,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(59,130,246,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 {
  font-size: 3.2rem; font-weight: 800; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--primary), #e8d5a3, var(--primary-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 1.3rem; color: rgba(255,255,255,0.75); margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 3rem; justify-content: center; margin-top: 4rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2.5rem; font-weight: 800; color: var(--primary);
}
.hero-stat .label { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== Camp Cards Grid ===== */
.camps-section {
  padding: 5rem 0; background: var(--bg-light);
}
.camps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem; margin-top: 1rem;
}
.camp-card {
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2.5rem 2rem; text-align: center; transition: all 0.4s ease;
  border-top: 4px solid transparent; position: relative; overflow: hidden;
}
.camp-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-hover);
}
.camp-card.tongshi { border-top-color: var(--camp-tongshi); }
.camp-card.aigc { border-top-color: var(--camp-aigc); }
.camp-card.agent { border-top-color: var(--camp-agent); }
.camp-card.robot { border-top-color: var(--camp-robot); }

.camp-card .camp-icon {
  font-size: 3.5rem; margin-bottom: 1.2rem; display: block;
}
.camp-card h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.5rem; font-weight: 700; }
.camp-card .camp-age {
  display: inline-block; background: var(--bg-light); color: var(--text-light);
  padding: 0.2rem 1rem; border-radius: 20px; font-size: 0.85rem; margin-bottom: 1rem;
}
.camp-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.camp-card .camp-features {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem;
}
.camp-card .camp-feature {
  background: var(--bg-light); color: var(--text-light);
  padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem;
}
.camp-card .camp-link {
  display: inline-block; padding: 0.7rem 2rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; transition: all var(--transition);
}
.camp-card.tongshi .camp-link { background: var(--camp-tongshi); color: #fff; }
.camp-card.aigc .camp-link { background: var(--camp-aigc); color: #fff; }
.camp-card.agent .camp-link { background: var(--camp-agent); color: #fff; }
.camp-card.robot .camp-link { background: var(--camp-robot); color: #fff; }
.camp-card .camp-link:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ===== WYH Section (为什么学习AI) ===== */
.wyh-section {
  padding: 5rem 0; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
}
.wyh-section .section-title { color: var(--primary); }
.wyh-section .section-desc { color: rgba(255,255,255,0.65); }
.wyh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.wyh-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.wyh-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.wyh-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,169,110,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.wyh-card:hover::before { transform: scaleX(1); }
.wyh-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}
.wyh-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.wyh-card p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.75;
}
.wyh-card p strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Features Section (通用) ===== */
.features-section {
  padding: 5rem 0; background: var(--bg);
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-card {
  text-align: center; padding: 2.5rem 1.5rem;
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .feature-icon {
  font-size: 2.8rem; margin-bottom: 1rem; display: block;
}
.feature-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

.feature-card-more {
  background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(201,169,110,0.03));
  border: 2px dashed rgba(201,169,110,0.35);
  border-radius: var(--radius);
}
.feature-card-more:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(201,169,110,0.12), rgba(201,169,110,0.05));
}

/* ===== AI工具体验中心卡片美化 ===== */
#tools .features-section,
#tools.features-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}
#tools .features-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
#tools .feature-card {
  text-align: center; padding: 2.2rem 1.5rem 1.8rem;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
#tools .feature-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 4px; border-radius: 0 0 4px 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0; transition: all 0.35s ease;
}
#tools .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border-color: rgba(201,169,110,0.25);
}
#tools .feature-card:hover::before { opacity: 1; width: 70px; }
#tools .feature-card .feature-icon {
  font-size: 3rem; margin-bottom: 0.8rem; display: block;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
#tools .feature-card:hover .feature-icon { transform: scale(1.1); }
#tools .feature-card h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.5rem; font-weight: 700; }
#tools .feature-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.2rem; }

#tools .feature-card-more {
  background: linear-gradient(135deg, rgba(201,169,110,0.06), rgba(201,169,110,0.02));
  border: 2px dashed rgba(201,169,110,0.3);
  border-radius: 20px;
  box-shadow: none;
}
#tools .feature-card-more::before { display: none; }
#tools .feature-card-more:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(201,169,110,0.10), rgba(201,169,110,0.04));
  box-shadow: 0 12px 32px rgba(201,169,110,0.12);
}

/* ===== Course List ===== */
.courses-section {
  padding: 5rem 0; background: var(--bg-warm);
}
.course-filters {
  display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center;
}
.course-filters select, .course-filters input {
  padding: 0.7rem 1.2rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); font-size: 0.9rem; background: #fff;
  outline: none; transition: border-color var(--transition);
}
.course-filters select:focus, .course-filters input:focus { border-color: var(--primary); }
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.8rem; transition: all var(--transition); cursor: pointer;
  border-left: 4px solid transparent;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.course-card.tongshi { border-left-color: var(--camp-tongshi); }
.course-card.aigc { border-left-color: var(--camp-aigc); }
.course-card.agent { border-left-color: var(--camp-agent); }
.course-card.robot { border-left-color: var(--camp-robot); }
.course-card .course-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.8rem; }
.course-card h4 { font-size: 1.15rem; color: var(--dark); font-weight: 600; }
.course-card .course-badge {
  font-size: 0.75rem; padding: 0.2rem 0.8rem; border-radius: 12px; font-weight: 600; white-space: nowrap;
}
.course-card .course-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.course-card .course-meta {
  display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.8rem; flex-wrap: wrap;
}
.course-actions {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f0f0f0;
  display: flex; justify-content: flex-end; align-items: center;
}
.btn-learn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; text-decoration: none; border-radius: 6px;
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-learn:hover {
  transform: translateX(3px); box-shadow: 0 4px 12px rgba(201,169,110,0.3);
}

/* ===== AI Chat Widget ===== */
.chat-widget {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
}
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 1.5rem; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,169,110,0.4);
  transition: all var(--transition);
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-panel {
  position: absolute; bottom: 70px; right: 0;
  width: 380px; height: 520px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff; padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center;
}
.chat-header h4 { font-size: 1rem; font-weight: 600; }
.chat-header button { background: none; color: #fff; font-size: 1.2rem; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem;
}
.chat-msg { max-width: 85%; padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; }
.chat-msg.user { background: var(--primary-light); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.assistant { background: var(--bg-light); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.typing { color: var(--text-muted); font-style: italic; }
.chat-input-area {
  padding: 0.8rem; border-top: 1px solid var(--border);
  display: flex; gap: 0.5rem;
}
.chat-input-area input {
  flex: 1; padding: 0.7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); font-size: 0.9rem; outline: none;
}
.chat-input-area input:focus { border-color: var(--primary); }
.chat-input-area button {
  background: var(--primary); color: #fff; border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 1rem; cursor: pointer; transition: all var(--transition);
}
.chat-input-area button:hover { background: var(--primary-dark); }
.chat-quick-questions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 0.8rem 0.8rem;
}
.chat-quick-questions button {
  background: var(--bg-light); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); font-size: 0.8rem;
  color: var(--text); cursor: pointer; transition: all var(--transition);
}
.chat-quick-questions button:hover { background: var(--primary-light); border-color: var(--primary); }

/* ===== Camp Detail Pages ===== */
.camp-hero {
  padding: 8rem 2rem 4rem; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
}
.camp-hero.tongshi { background: linear-gradient(135deg, #1a3a2a, #0d2818); }
.camp-hero.aigc { background: linear-gradient(135deg, #2d1b4e, #1a0f33); }
.camp-hero.agent { background: linear-gradient(135deg, #1a2a4e, #0f1d38); }
.camp-hero.robot { background: linear-gradient(135deg, #3d1f0a, #261005); }
.camp-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.8rem; position: relative; }
.camp-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); position: relative; max-width: 600px; margin: 0 auto; }
.camp-hero .camp-badge {
  display: inline-block; padding: 0.3rem 1.5rem; border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 600; margin-bottom: 1rem; position: relative;
}
.camp-hero.tongshi .camp-badge { background: rgba(39,174,96,0.25); color: #6ee7b7; }
.camp-hero.aigc .camp-badge { background: rgba(139,92,246,0.25); color: #c4b5fd; }
.camp-hero.agent .camp-badge { background: rgba(59,130,246,0.25); color: #93c5fd; }
.camp-hero.robot .camp-badge { background: rgba(230,126,34,0.25); color: #fbbf77; }

.camp-content {
  padding: 4rem 0; background: var(--bg);
}

/* ===== Course Detail ===== */
.course-detail { padding: 6rem 0 4rem; }
.course-detail-header { margin-bottom: 2rem; }
.course-detail-header h1 { font-size: 2.2rem; color: var(--dark); margin-bottom: 0.5rem; }
.course-detail-header .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.lesson-list { display: flex; flex-direction: column; gap: 1rem; }
.lesson-item {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; transition: all var(--transition); cursor: pointer;
}
.lesson-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.lesson-item h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 0.4rem; }
.lesson-item p { color: var(--text-light); font-size: 0.9rem; }

/* ===== Admin Panel ===== */
.admin-section {
  padding: 6rem 0 4rem; background: var(--bg-light); min-height: 100vh;
}
.admin-tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 2px solid var(--border); }
.admin-tab {
  padding: 0.8rem 2rem; background: none; border: none;
  font-size: 1rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition); border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-tab:hover { color: var(--text); }
.admin-table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th {
  background: var(--dark); color: #fff; padding: 1rem; text-align: left; font-size: 0.9rem;
}
.admin-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table tr:hover td { background: var(--bg-light); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; color: #555; font-size: 0.9rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--transition); background: #fafafa;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 2000;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); padding: 2.5rem;
  max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 1.5rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none;
  font-size: 1.5rem; color: var(--text-muted); cursor: pointer;
}

/* ===== Toast ===== */
.toast {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 3000;
  padding: 1rem 1.5rem; border-radius: var(--radius-sm); color: #fff;
  font-size: 0.9rem; font-weight: 500; opacity: 0; transform: translateX(20px);
  transition: all 0.3s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== Footer ===== */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7); padding: 3rem 0;
  text-align: center; font-size: 0.9rem;
}
.footer a { color: var(--primary); }
.footer .footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer .copyright { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ===== Tag ===== */
.tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}

/* ===== Page Hero (generic) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 8rem 2rem 4rem; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(201,169,110,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; font-weight: 700; position: relative; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); position: relative; }

.cta-section {
  padding: 5rem 0; text-align: center; background: var(--dark);
}
.cta-section h2 { font-size: 2rem; color: #fff; margin-bottom: 0.8rem; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.1rem; }

.success-msg { color: #2d6a4f; margin-top: 1rem; padding: 0.8rem; background: #d4edda; border-radius: var(--radius-sm); }
.error-msg { color: var(--danger); margin-top: 1rem; padding: 0.8rem; background: #fdecea; border-radius: var(--radius-sm); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(26,26,46,0.98); padding: 1.5rem 2rem; gap: 0.6rem;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.3rem 0 0.3rem 1rem;
    min-width: auto;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .page-hero h1 { font-size: 2rem; }
  .camp-hero h1 { font-size: 1.8rem; }
  .chat-panel { width: calc(100vw - 2rem); right: -1rem; bottom: 60px; }
  .courses-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  #tools .features-grid { grid-template-columns: repeat(2, 1fr); }
  .wyh-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .camps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .camps-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  #tools .features-grid { grid-template-columns: 1fr; }
}
