/* =====================================================
   显智单招升学网站 — 单招培训落地页样式
   文件：/css/training.css
   说明：配套 templates/training.html 与 StaticGenerator.BuildTrainingPage
   ===================================================== */

/* 页面公共 */
.section--gray { background: var(--bg-secondary); }
/* 页面级版块标题：随页面 CSS 固定（左对齐 + 绿条），后台只改文字不改样式 */
.section-head { text-align: left; margin-bottom: 28px; }
.section-head h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; border-left: 4px solid var(--green-400); padding-left: 12px; }
.section-head p { font-size: 14px; color: var(--text-secondary); padding-left: 12px; }
.empty { padding: 24px; text-align: center; color: var(--text-hint); background: #fff; border: 1px dashed var(--border-light); border-radius: var(--radius); }

    /* Hero */
    .hero-course { background: linear-gradient(120deg, var(--green-800) 0%, var(--green-400) 100%); color: #fff; padding: 14px 0; }
    .hero-course-inner { max-width: 820px; }
    .hero-course .tagline { display: inline-block; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; margin-bottom: 6px; }
    .hero-course h1 { font-size: 23px; font-weight: 700; margin-bottom: 6px; line-height: 1.28; }
    .hero-course p { font-size: 13px; color: rgba(255,255,255,.92); margin-bottom: 10px; line-height: 1.6; }
    .hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
    .hero-btns a { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 24px; font-size: 13px; font-weight: 600; }
    .btn-primary { background: var(--coral-400); color: #fff; }
    .btn-primary:hover { background: var(--coral-800); }
    .btn-outline { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }
    .btn-outline:hover { background: #fff; color: var(--green-800); }

    /* Sections */
    .section { padding: 38px 0; border-bottom: 1px solid var(--border-light); }
    .section:last-of-type { border-bottom: none; }
    .section-head { text-align: left; margin-bottom: 28px; }
    .section-head h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; border-left: 4px solid var(--green-400); padding-left: 12px; }
    .section-head p { font-size: 14px; color: var(--text-secondary); padding-left: 12px; }

    /* 教学链路（5步闭环） */
    .chain { display: flex; align-items: stretch; gap: 20px; }
    .chain-step { flex: 1; position: relative; background: var(--green-50); border: 1px solid #B9E6D6; border-radius: var(--radius); padding: 18px 14px; text-align: center; }
    .chain-step:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--coral-400); font-weight: 700; font-size: 18px; z-index: 2; }
    .chain-step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--green-400); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 14px; }
    .chain-step h3 { font-size: 15px; color: var(--green-800); margin-bottom: 4px; }
    .chain-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
    .chain-note { margin-top: 18px; background: var(--coral-50); border: 1px solid #FFD5C6; border-radius: var(--radius); padding: 12px 18px; text-align: center; font-size: 14px; color: var(--coral-800); font-weight: 600; }

    /* 班型设置（不显示学费） */
    .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .plan-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; }
    .plan-card.featured { border: 2px solid var(--coral-400); position: relative; }
    .plan-badge { position: absolute; top: -12px; right: 16px; background: var(--coral-400); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 20px; }
    .plan-card h3 { font-size: 18px; margin-bottom: 4px; }
    .plan-card .mode { font-size: 12px; color: var(--coral-400); margin-bottom: 14px; }
    .plan-card ul { list-style: none; margin-bottom: 16px; }
    .plan-card li { font-size: 13px; color: var(--text-secondary); padding: 5px 0 5px 18px; position: relative; line-height: 1.55; }
    .plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-400); font-weight: 700; }
    .plan-card .enroll { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 22px; background: var(--green-400); color: #fff; font-size: 14px; font-weight: 600; }
    .plan-card .enroll:hover { background: var(--green-800); }

    /* 通用三栏卡片 */
    .triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .t-card { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; }
    .t-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .t-head .t-icon { font-size: 22px; }
    .t-card h3 { font-size: 16px; margin: 0; color: var(--green-800); }
    .t-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

    /* 三轮复习 */
    .rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .round-card { background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid #B9E6D6; border-radius: var(--radius); padding: 20px 18px; }
    .round-card .r-stage { display: inline-block; background: var(--green-400); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 12px; border-radius: 20px; margin-bottom: 10px; }
    .round-card h3 { font-size: 16px; color: var(--green-800); margin-bottom: 6px; }
    .round-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

    /* 上课形式 + 课程内容 */
    .subjects { margin-top: 22px; background: var(--blue-50); border: 1px solid #BFE0FF; border-radius: var(--radius); padding: 18px 20px; }
    .subjects h3 { font-size: 16px; margin-bottom: 8px; color: var(--blue-800); }
    .subjects p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
    .subjects .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
    .subjects .tag { background: #fff; border: 1px solid #BFE0FF; color: var(--blue-800); font-size: 12px; padding: 4px 12px; border-radius: 20px; }

    /* 双班主任 */
    .duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .duo-card { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 22px; text-align: center; }
    .duo-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--green-400), var(--blue-400)); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
    .duo-card h3 { font-size: 16px; margin-bottom: 4px; }
    .duo-card .role { font-size: 12px; color: var(--coral-400); margin-bottom: 8px; }
    .duo-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

    /* 封闭管理 · 七项制度 */
    .manage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .manage-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 16px; }
    .manage-item .m-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: var(--coral-50); color: var(--coral-800); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
    .manage-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
    .manage-item .m-title { color: var(--text); font-weight: 600; }

    /* 校区环境 + 住宿：一排三个卡片（上图下文） */
    .campus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .campus-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
    /* 图片统一 4:3 比例：用 padding-top 撑比例（aspect-ratio 需 Chromium 88+，搜狗等老内核不支持会导致图片高矮不一） */
    .campus-card .c-pic { position: relative; padding-top: 75%; overflow: hidden; }
    .campus-card .c-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
    .campus-card .c-body { padding: 14px 16px 16px; }
    .campus-card .c-body h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
    .campus-card .c-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin: 0; }
    .lodging { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
    .lodge-card { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 8px; text-align: center; }
    .lodge-card .l-icon { font-size: 22px; }
    .lodge-card .l-name { font-size: 13px; color: var(--text); margin-top: 4px; }

    /* 学员保障 */
    .guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .guarantee-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
    .guarantee-head .g-icon { font-size: 24px; }
    .guarantee-card h3 { font-size: 16px; margin: 0; color: var(--green-800); }
    .guarantee-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
    .guarantee-card { background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid #B9E6D6; border-radius: var(--radius); padding: 20px 18px; }

    /* FAQ + 在线咨询 左右布局 */
    .faq-contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
    .fc-left, .fc-right { min-width: 0; }
    .faq-list { display: flex; flex-direction: column; gap: 10px; }
    .faq-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 16px; }
    .faq-item .q { font-size: 14px; font-weight: 600; color: var(--green-800); margin-bottom: 8px; }
    .faq-item .a { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
    .fc-right .contact-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: none; margin: 0; }
    .contact-form { background: var(--bg-secondary); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 22px; }
    .contact-form h3 { font-size: 16px; margin-bottom: 14px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
    .form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; background: #fff; }
    .form-submit { width: 100%; padding: 11px; border: none; border-radius: 22px; background: var(--coral-400); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
    .form-submit:hover { background: var(--coral-800); }
    .contact-qr { text-align: center; background: linear-gradient(120deg, #A7E4C8, #D8F6E8); border: 1px solid #C2ECD9; border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 28px rgba(22,199,132,.15); }
    .qr-img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; background: #fff; padding: 6px; box-sizing: border-box; }
    .qr-label { font-size: 13px; color: var(--green-800); font-weight: 600; margin-top: 12px; line-height: 1.6; }

/* 响应式 */
@media (max-width: 992px) {
  .plans, .rounds, .guarantees, .duo-grid, .campus { grid-template-columns: repeat(2, 1fr); }
  .chain { flex-wrap: wrap; }
  .chain-step { flex: 1 1 45%; }
  .manage { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-course h1 { font-size: 26px; }
  .hero-course p { font-size: 15px; }
  .plans, .rounds, .guarantees, .duo-grid, .campus { grid-template-columns: 1fr; }
  .chain-step { flex: 1 1 100%; }
  .section-head h2 { font-size: 20px; }
  .plan-card.featured { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  /* 页面 CSS 后加载，必须在此覆盖本页非 media 的双列栅格（common 的 @768 单列会被压掉） */
  .faq-contact { grid-template-columns: 1fr; gap: 24px; }
}
