
.calculation-error{display:none;background:#fff5f5;border:1px solid #fcc;color:var(--red);padding:15px;border-radius:4px;margin:15px 0;font-size:14px;line-height:1.5}
.calculation-error.show{display:block;animation:fadeIn .3s ease}
.calculation-error ul{margin:10px 0 0 20px;padding:0}
.calculation-error li{margin-bottom:5px}
.btn-loading{position:relative;opacity:.7}
.btn-loading:after{content:'';position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid rgba(255,255,255,.3);border-top:2px solid #fff;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{0%{transform:rotate(0)}
100%{transform:rotate(360deg)}
}
.leaflet-popup-content{font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;line-height:1.6;color:#333;max-width:300px}
.zone-popup-title{color:var(--red);font-size:16px;font-weight:700;margin-bottom:8px;padding-bottom:8px;border-bottom:2px solid #f0f0f0}
.zone-popup-element{display:inline-block;padding:4px 10px;background:#f5f2e9;border-radius:4px;font-size:12px;font-weight:600;margin-bottom:10px;color:#666}
.zone-popup-description{color:#555;margin-top:10px;font-size:13px}
:root{--bg:#fdfaf2;--red:#a62c2b;--ink:#1a1a1a;--border:#3d3d3d;--mu:#4a7c44;--huo:#c24f4a;--tu:#a68b5b;--jin:#b89a3d;--shui:#4a6a8a}
*{box-sizing:border-box}
body{margin:0;padding:0;font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;background:#d7d0c0;color:var(--ink)}
.hero-banner{background:0 0;padding:60px 20px 40px;text-align:center}
.hero-banner h1{font-size:42px;font-weight:900;margin:0 0 12px;color:#a62c2b;letter-spacing:-.5px}
.hero-banner .tagline{font-size:18px;color:#666;margin-bottom:30px}
.hero-banner .quick-intro{max-width:800px;margin:0 auto;font-size:15px;line-height:1.7;color:#666}
.container{max-width:1200px;margin:0 auto;padding:40px 20px}
.map-section{background:var(--bg);border:1px solid var(--border);padding:30px;margin-bottom:40px;box-shadow:0 10px 30px rgba(0,0,0,.1)}
.section-title{font-size:24px;color:#a62c2b;margin:0 0 20px;font-weight:800;text-align:center;letter-spacing:1px}
#map{height:500px;border:2px solid #ddd;margin-bottom:20px;border-radius:4px}
.legend{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:20px;font-size:13px}
.legend-item{display:flex;align-items:center;gap:8px}
.color-box{width:18px;height:18px;border-radius:3px}
.zone-info{background:#f9f7f0;border-left:4px solid var(--red);padding:20px;line-height:1.7;font-size:15px;margin-top:20px}
.analysis-section{background:var(--bg);border:1px solid var(--border);padding:40px;box-shadow:0 10px 30px rgba(0,0,0,.1)}
.intro-text{font-size:15px;line-height:1.8;color:#333;margin-bottom:30px}
.intro-text h2{color:var(--red);font-size:20px;margin:30px 0 15px;font-weight:700}
.intro-text strong{color:var(--red)}
.info-box{background:#f9f7f0;border-left:4px solid var(--red);padding:20px;margin:30px 0;line-height:1.7}
.input-area{background:rgba(255,255,255,.5);padding:25px;border:1px solid #d1c7af;border-radius:4px;margin-bottom:30px}
.input-row{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.input-item{flex:1;min-width:120px;display:flex;flex-direction:column;gap:6px}
.input-label{font-size:10px;font-weight:700;text-transform:uppercase;color:#666;letter-spacing:1px}
input,select{padding:12px;font-size:14px;border:1px solid #bcaf91;border-radius:4px;background:#fff}
select.error{border-color:var(--red);background:#fff5f5}
.error-msg{color:var(--red);font-size:12px;margin-top:5px;display:none}
.error-msg.show{display:block}
button{width:100%;padding:18px;background:var(--red);color:#fff;border:none;font-size:16px;font-weight:700;cursor:pointer;border-radius:4px;letter-spacing:1px;transition:all .3s ease}
button:hover{background:#8e2423}
button:active{transform:scale(.98)}
.hint{font-size:11px;text-align:center;color:#888;margin-top:10px;font-style:italic}
#result{display:none;border-top:2px solid var(--ink);padding-top:30px;margin-top:30px;animation:fadeIn .5s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}
to{opacity:1;transform:none}
}
.hero{background:#1a1a1a;color:#fdfaf2;padding:40px 20px;text-align:center;margin-bottom:30px;border-radius:4px}
.city{font-size:48px;font-weight:900;margin:12px 0}
.section{margin-bottom:28px;padding-bottom:18px;border-bottom:1px solid #eee}
.section-subtitle{font-size:12px;font-weight:800;text-transform:uppercase;color:var(--red);margin-bottom:12px}
.tag{display:inline-block;padding:6px 12px;border:1px solid var(--border);font-size:11px;font-weight:700;background:#fff;margin:4px 6px 0 0}
.bazi{background:#f1ede2;padding:15px;text-align:center;border:1px dashed var(--red);color:var(--red);font-weight:700}
.logic{font-size:14px;line-height:1.7;color:#444}
.energy-item{margin-bottom:12px}
.energy-label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:4px;font-weight:700}
.energy-track{height:8px;background:#e8e4d8;border-radius:4px;overflow:hidden}
.energy-bar{height:100%;border-radius:4px;transition:width 1s cubic-bezier(.1, .5, .2, 1)}
.badge{display:inline-block;background:var(--red);color:#fff;font-size:10px;padding:3px 8px;border-radius:3px;margin-left:8px;font-weight:700}
.faq-section {
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid #e2e2e2;
  padding: 14px 0;
}

.faq-question {
  font-size: 16px;
  cursor: pointer; font-weight: 600;
  position: relative;
  padding-right: 18px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: #777;
}

.faq-item.open .faq-question::after {
  content: "–";
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: #444;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

footer{background:#e8e4d8;margin-top:40px;font-size:11px;color:#666;line-height:1.8;padding:20px}
@media (max-width:768px){.hero-banner h1{font-size:32px}
#map{height:350px}
.analysis-section{padding:25px}
}

