/* ===== 幼师工具页（tools.html 与 tools/*.html 共用） ===== */

[hidden] { display: none !important; }

.tools-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 64px 0 56px;
  text-align: center;
}
.tools-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.tools-hero p { font-size: 16px; opacity: .88; max-width: 600px; margin: 0 auto; line-height: 1.8; }
.tools-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.tools-badges span {
  font-size: 13px; padding: 5px 14px; border-radius: 50px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}

.tools-section { padding: 56px 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tool-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px 22px; box-shadow: var(--shadow); transition: all .25s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.tool-card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: #E8F5E9;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.tool-card h3 { font-size: 19px; font-weight: 700; color: var(--text-dark); }
.tool-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; flex: 1; }
.tool-card .uses { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-card .uses span { font-size: 12px; color: var(--primary); background: #F1F8F1; padding: 2px 10px; border-radius: 50px; }
.tool-card .go { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 4px; }
.tool-card .pc { font-size: 12px; color: var(--accent); font-weight: 600; }

/* 年卡软推 */
.tools-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0); border: 1px solid #FFE0B2;
  border-radius: 16px; padding: 28px 32px; margin-top: 44px;
}
.tools-cta h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.tools-cta p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.tools-cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }

.tools-faq { max-width: 760px; margin: 0 auto; }
.tools-faq details {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.tools-faq summary { font-weight: 600; cursor: pointer; color: var(--text-dark); }
.tools-faq details p { margin-top: 10px; font-size: 14px; color: var(--text-mid); line-height: 1.8; }

/* 页内切换标签（点名 / 姓名贴共用） */
.tabs { display: flex; gap: 6px; background: #F1F8F1; padding: 5px; border-radius: 50px; width: max-content; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; padding: 8px 22px; border-radius: 50px; color: var(--text-mid); background: none; }
.tabs button.on { background: var(--primary); color: white; }

/* 返回按钮：标题上方一个，滚动后左上角再浮一个（导航栏是 fixed，所以浮在它下面） */
.back-btn {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px;
  font-size: 14px; font-weight: 600; color: var(--primary);
  padding: 6px 14px; border-radius: 50px; background: #E8F5E9;
}
.back-btn:hover { background: #C8E6C9; }
.back-fab {
  position: fixed; left: 16px; top: 84px; z-index: 900;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  padding: 8px 14px; border-radius: 50px; background: white;
  border: 1px solid #A5D6A7; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all .2s;
}
.back-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.back-fab:hover { background: #E8F5E9; }
/* 屏幕两边留白不够放整个按钮时，缩成一个小圆箭头，少压内容 */
@media (max-width: 1400px) {
  .back-fab { left: 8px; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 18px; }
  .back-fab span { display: none; }
}
@media (max-width: 640px) { .back-fab { top: 76px; } }
@media print { .back-fab { display: none !important; } }

/* ===== 单个工具页 ===== */
.tool-head { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 28px 0 24px; }
.crumb { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.crumb a { color: var(--primary); }
.tool-head h1 { font-size: 28px; font-weight: 800; }
.tool-head .lede { font-size: 15px; color: var(--text-mid); margin-top: 6px; line-height: 1.7; }

.tool-body { padding: 28px 0 56px; }
.panel {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }

.drop {
  display: block;
  border: 2px dashed #A5D6A7; border-radius: 14px; background: #F6FBF6;
  padding: 36px 16px; text-align: center; cursor: pointer; transition: all .2s;
}
.drop:hover, .drop.over { background: #E8F5E9; border-color: var(--primary); }
.drop .big { font-size: 40px; line-height: 1; }
.drop .t { font-size: 16px; font-weight: 700; margin-top: 10px; color: var(--text-dark); }
.drop .s { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.drop input { display: none; }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; margin-top: 20px; }
.opt label.l { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.opt input[type=number], .opt input[type=text], .opt select, .tool-textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text-dark);
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: white;
}
.opt input:focus, .opt select:focus, .tool-textarea:focus { outline: 2px solid #A5D6A7; border-color: var(--primary); }
.opt .hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 50px;
  border: 1px solid var(--border); background: white; color: var(--text-mid); cursor: pointer;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-ghost { background: white; color: var(--primary); border: 1px solid #A5D6A7; }
.btn-ghost:hover { background: #E8F5E9; }
.status { font-size: 14px; color: var(--text-mid); }

.files { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.file-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: #FCFEFC;
}
.file-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: #eee; }
.file-row .meta { flex: 1; min-width: 0; }
.file-row .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .sub { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.file-row .sub b { color: var(--primary); }
.file-row .sub .bad { color: #D84315; }
.file-row .ops { display: flex; gap: 6px; flex: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: white; color: var(--text-mid); font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #E8F5E9; color: var(--primary); }
.dl-btn {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 50px;
  background: var(--primary); color: white; white-space: nowrap;
}
.dl-btn:hover { background: var(--primary-dark); }

.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tips div { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.tips b { display: block; font-size: 15px; margin-bottom: 4px; }
.tips p { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.section-h { font-size: 20px; font-weight: 800; margin: 40px 0 16px; }

.tool-more { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-more a {
  font-size: 14px; padding: 8px 16px; border-radius: 50px; background: white;
  border: 1px solid var(--border); color: var(--text-mid);
}
.tool-more a:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 640px) {
  .tools-hero { padding: 44px 0 40px; }
  .tools-hero h1 { font-size: 26px; }
  .tool-head h1 { font-size: 23px; }
  .panel { padding: 18px 16px; }
  .tools-cta { padding: 22px 20px; }
  .file-row { flex-wrap: wrap; }
  .file-row .ops { width: 100%; justify-content: flex-end; }
}
