/* ============================================================
   shigongyuan-kemu.css — 施工员考试科目页
   前缀 sgk- · 牛仔裤复古风
   ============================================================ */

/* ---------- 1. Hero ---------- */
.sgk-hero { padding: 150px 0 90px; }
.sgk-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.sgk-hero-text h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.18; margin: 18px 0 18px; }
.sgk-hero-text h1 i { font-style: normal; color: var(--stitch); }
.sgk-hero-text p { color: #dbe4ee; font-size: 16.5px; max-width: 540px; }
.sgk-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sgk-hero-pic { padding: 10px; }
.sgk-hero-pic .pic-frame { transform: rotate(1.5deg); }

/* ---------- 2. 科目总览表 ---------- */
.sgk-survey { padding: 84px 0; }
.sgk-survey-table { margin-top: 10px; }
.sgk-survey-table table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sgk-survey-table th, .sgk-survey-table td {
  padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--paper-300); font-size: 15px; vertical-align: top;
}
.sgk-survey-table thead th {
  background: var(--denim-700); color: var(--paper-100); letter-spacing: 1px; font-weight: 600;
}
.sgk-survey-table tbody tr:last-child td { border-bottom: 0; }
.sgk-survey-table tbody tr { transition: background .25s; }
.sgk-survey-table tbody tr:hover { background: var(--paper-100); }
.sgk-survey-table td b { color: var(--denim-800); }
.sgk-survey-note {
  margin-top: 16px; font-size: 14px; color: var(--brown-800);
  background: var(--paper-300); border-left: 4px solid var(--rust);
  padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.sgk-survey-note a { text-decoration: underline; }

/* ---------- 3. 三科详解（不对称） ---------- */
.sgk-detail { padding: 84px 0; }
.sgk-detail-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start;
}
.sgk-detail-main {
  background: var(--denim-700); color: var(--paper-100);
  border-radius: var(--r-lg); padding: 40px 38px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.sgk-detail-main h3 { color: var(--paper-100); font-size: 24px; margin: 8px 0 14px; }
.sgk-detail-main p { color: #d7e0ea; }
.sgk-detail-num {
  font-family: var(--font-serif); font-size: 60px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.18);
}
.sgk-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sgk-detail-tags li {
  font-size: 13px; padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,.12); color: var(--stitch); border: 1px dashed rgba(255,255,255,.3);
}
.sgk-detail-side { display: grid; gap: 22px; }
.sgk-detail-mini {
  background: var(--paper-100); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.sgk-detail-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sgk-detail-mini h3 { font-size: 18px; margin: 6px 0 8px; }
.sgk-detail-mini p { font-size: 14.5px; color: var(--ink-soft); }
.sgk-detail-mini .sgk-detail-num { color: rgba(59,91,124,.16); font-size: 40px; }

/* ---------- 4. 题型解析 ---------- */
.sgk-type { padding: 84px 0; }
.sgk-type-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 10px;
}
.sgk-type-card {
  background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25);
  border-radius: var(--r-md); padding: 26px 22px; transition: all .28s var(--ease);
}
.sgk-type-card:hover { background: rgba(255,255,255,.12); transform: translateY(-5px); }
.sgk-type-card svg { width: 34px; height: 34px; color: var(--stitch); margin-bottom: 14px; }
.sgk-type-card h3 { color: var(--paper-100); font-size: 18px; margin-bottom: 8px; }
.sgk-type-card p { color: #c6d2df; font-size: 14px; }

/* ---------- 5. 占比示意 ---------- */
.sgk-ratio { padding: 84px 0; }
.sgk-ratio-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.sgk-ratio-text h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.sgk-ratio-text p { color: var(--ink-soft); margin-bottom: 12px; }
.sgk-ratio-text .sec-num { top: -10px; }
.sgk-ratio-row { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 14px; margin-bottom: 18px; }
.sgk-ratio-label { font-weight: 600; color: var(--denim-800); font-size: 14.5px; }
.sgk-ratio-track { height: 14px; background: var(--paper-400); border-radius: 8px; overflow: hidden; }
.sgk-ratio-fill { display: block; height: 100%; border-radius: 8px; background: repeating-linear-gradient(45deg, var(--denim-600) 0 8px, var(--denim-500) 8px 16px); }
.sgk-fill-a { width: 45%; }
.sgk-fill-b { width: 88%; }
.sgk-fill-c { width: 30%; }
.sgk-ratio-val { font-style: normal; font-size: 13px; color: var(--brown-700); }
.sgk-ratio-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- 6. 难点 ---------- */
.sgk-hard { padding: 84px 0; }
.sgk-hard-list { display: grid; gap: 18px; margin-top: 10px; }
.sgk-hard-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--paper-100); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 26px; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease);
}
.sgk-hard-item:hover { transform: translateX(6px); }
.sgk-hard-ic {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  background: var(--denim-700); color: var(--paper-100);
  display: flex; align-items: center; justify-content: center;
}
.sgk-hard-ic svg { width: 26px; height: 26px; }
.sgk-hard-item h3 { font-size: 18px; margin-bottom: 6px; }
.sgk-hard-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 7. 刷题步骤 ---------- */
.sgk-way { padding: 84px 0; }
.sgk-way-steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0 34px;
  counter-reset: step;
}
.sgk-way-step {
  background: rgba(255,255,255,.07); border-radius: var(--r-md); padding: 26px 20px;
  border-top: 3px solid var(--stitch);
}
.sgk-way-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--stitch); color: var(--brown-900); font-weight: 700; margin-bottom: 14px;
}
.sgk-way-step h3 { color: var(--paper-100); font-size: 17px; margin-bottom: 8px; }
.sgk-way-step p { color: #c6d2df; font-size: 14px; }
.sgk-way-more { text-align: center; }

/* ---------- 8. FAQ ---------- */
.sgk-faq { padding: 84px 0; }
.sgk-faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.sgk-faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--denim-800);
  list-style: none; position: relative; padding-right: 44px;
}
.sgk-faq-item summary::-webkit-details-marker { display: none; }
.sgk-faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--rust); transition: transform .25s;
}
.sgk-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sgk-faq-item p { padding: 0 22px 18px; color: var(--ink-soft); font-size: 14.5px; }
.sgk-faq-item p a { text-decoration: underline; }

/* ---------- 9. CTA ---------- */
.sgk-cta { padding: 84px 0; }
.sgk-cta-inner {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center;
  background: var(--brown-800); border-radius: var(--r-lg); padding: 50px 48px; color: var(--stitch);
  box-shadow: var(--shadow-lg);
}
.sgk-cta-pic { border-radius: var(--r-md); overflow: hidden; padding: 6px; background: var(--paper-100); }
.sgk-cta-pic img { border-radius: 8px; }
.sgk-cta-text h2 { color: var(--paper-100); font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.sgk-cta-text p { color: var(--brown-200); margin-bottom: 24px; }
.sgk-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.sgk-cta-text .btn-outline { border-color: var(--stitch); color: var(--stitch); }
.sgk-cta-text .btn-outline:hover { background: var(--stitch); color: var(--brown-900); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .sgk-hero-grid, .sgk-detail-grid, .sgk-ratio-grid, .sgk-cta-inner { grid-template-columns: 1fr; gap: 34px; }
  .sgk-type-grid, .sgk-way-steps { grid-template-columns: repeat(2, 1fr); }
  .sgk-cta-pic { max-width: 560px; }
}
@media (max-width: 640px) {
  .sgk-hero { padding: 120px 0 60px; }
  .sgk-type-grid, .sgk-way-steps { grid-template-columns: 1fr; }
  .sgk-ratio-row { grid-template-columns: 84px 1fr; }
  .sgk-ratio-val { grid-column: 2; }
  .sgk-cta-inner { padding: 32px 24px; }
}

/* ---------- col 列宽工具 ---------- */
.cg-w22{width:22%}.cg-w26{width:26%}.cg-w30{width:30%}.cg-w38{width:38%}
.cg-w40{width:40%}.cg-w48{width:48%}.cg-w62{width:62%}.cg-w74{width:74%}
