/*!
 * ============================================================================
 *  计算器公共样式  style.css  v1.3（2026-09-06：追加 .lawyer-bottom 底栏规则，
 *  配合 calc-footer.js 组件化；其余仍由 extract_style_css.py 抽取逻辑约束）
 * ============================================================================
 *  30 个计算器页面（tool/*.html）共用的一套页面骨架样式。
 *
 *  ★ 维护方式（重要）★
 *    本文件由 scripts/extract_style_css.py 抽取生成（数据源：各页原内联 <style>，
 *    只收 30/30 全页出现且 30 页 body 逐字一致的规则，即「零变体」；
 *    任何存在变体的 selector 都不会出现在本文件，而是整条保留在页面内联，
 *    以避免向少数派页面「注入」其原本没有的属性。直接手改本文件前请知悉：
 *    页面内联 <style> 晚于本文件加载，同优先级规则以页面为准（覆盖机制）。
 *
 *  引用：<link rel="stylesheet" href="style.css">（必须位于页面内联 <style> 之前）
 * ============================================================================
 */

* { box-sizing:border-box; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 24px; border:0; border-radius:6px; font-size:16px; font-weight:600; cursor:pointer; transition:opacity .2s; }
.btn-accent { background:var(--accent); color:#fff; }
.btn-accent:hover { opacity:.9; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); }
.card { background:var(--card); border:1px solid var(--border); border-radius:0 0 var(--radius) var(--radius); padding:22px; margin-bottom:18px; box-shadow:0 1px 3px rgba(0,0,0,0.04); }
.container { max-width:960px; margin:0 auto; padding:20px; }
.lawyer-bottom strong { color:var(--primary-dark); }
.result-panel { background:#f6ffed; border:1px solid #b7eb8f; border-radius:var(--radius); padding:18px; margin-top:20px; }
.result-panel h3 { margin-top:0; color:var(--success); }
.result-table th { background:#d9f7be; font-weight:600; }
footer { text-align:center; font-size:13px; color:var(--muted); padding:24px 10px; border-top:1px solid var(--border); }
footer a { color:var(--primary); text-decoration:none; }
h2 { font-size:20px; color:var(--primary-dark); margin:0 0 16px; padding-bottom:10px; border-bottom:2px solid #eef4fb; }
header { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color:#fff; padding:28px 20px; border-radius:var(--radius) var(--radius) 0 0; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
header h1 { margin:0 0 8px; font-size:26px; }
header p { margin:0; opacity:0.95; font-size:15px; }
label { display:block; font-weight:600; margin-bottom:6px; font-size:14px; color:#333; }

@media (max-width:720px) {
  .actions { flex-direction:column; }
  .btn { width:100%; }
  header h1 { font-size:22px; }
}

/* —— 底栏（calc-footer.js 注入 .lawyer-bottom；变量由各页内联 :root 提供）—— */
.lawyer-bottom { background:#eef4fb; border:1px solid #cfe0f5; border-left:4px solid var(--primary); border-radius:var(--radius); padding:16px 18px; margin:18px 0 0; text-align:center; font-size:14px; color:#334; line-height:1.9; }
