/* === 演出经纪人资格证备考导航 — 全局样式 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --accent: #f9a825;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 10px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .9rem;
  color: var(--text);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------- 主内容 ---------- */
.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 20px 60px;
  flex: 1;
  width: 100%;
}

/* ---------- Hero / 倒计时 ---------- */
.hero-card {
  background: linear-gradient(135deg, var(--primary), #4facfe);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 36px;
  text-align: center;
}
.hero-card h1 { font-size: 1.8rem; margin-bottom: 10px; }
.hero-card p { font-size: 1.05rem; opacity: .9; margin-bottom: 20px; }
.countdown {
  display: inline-flex; gap: 16px;
  background: rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 14px 28px;
}
.countdown .unit { text-align: center; min-width: 60px; }
.countdown .num {
  font-size: 2rem; font-weight: 700;
  display: block; line-height: 1.2;
}
.countdown .label { font-size: .75rem; opacity: .85; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  transition: .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #f57f17; color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: .25s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-3px); }
.card .icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p  { font-size: .9rem; color: var(--text-light); }

/* ---------- 内容区块 ---------- */
.section { margin-bottom: 40px; }
.section-title {
  font-size: 1.35rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.section h3 { font-size: 1.1rem; margin: 18px 0 8px; color: var(--primary-dark); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
th { background: var(--primary); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--primary-light); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after { content: "＋"; font-size: 1.2rem; color: var(--primary); transition: .3s; }
.faq-item.open .faq-q::after { content: "－"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 20px;
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 20px 18px;
}

/* ---------- 公告/提示条 ---------- */
.notice {
  background: #fff8e1;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
  font-size: .9rem;
}
.notice a { font-weight: 600; }

/* ---------- 侧栏广告占位 ---------- */
.ad-slot {
  background: var(--border);
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: #999;
  font-size: .85rem;
  margin-bottom: 24px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #2c3e50;
  color: #bdc3c7;
  font-size: .82rem;
  padding: 30px 20px;
  text-align: center;
  line-height: 1.9;
}
.site-footer a { color: #ecf0f1; }
.site-footer a:hover { color: var(--accent); }
.footer-links { margin-bottom: 10px; }
.footer-links a { margin: 0 10px; }

/* ---------- 内容排版 ---------- */
.content-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px; margin-bottom: 24px; }
.content-block h2 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 14px; }
.content-block h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.content-block p { margin-bottom: 12px; font-size: .93rem; color: var(--text-light); }
.content-block ul, .content-block ol { margin: 0 0 14px 20px; font-size: .93rem; color: var(--text-light); }
.content-block li { margin-bottom: 6px; }
.content-block strong { color: var(--text); }

.step-list { counter-reset: step; list-style: none; margin-left: 0; }
.step-list li {
  counter-increment: step;
  padding-left: 36px;
  position: relative;
  margin-bottom: 14px;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
  }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .hero-card { padding: 28px 20px; }
  .hero-card h1 { font-size: 1.4rem; }
  .countdown { gap: 10px; padding: 12px 16px; }
  .countdown .num { font-size: 1.5rem; }
  .main-content { padding: 20px 14px 40px; }
  .content-block { padding: 20px 16px; }
}
