/*
Theme Name: 受生债查询
Theme URI: https://example.com/shousheng-zhai
Author: 法安道长
Author URI: https://example.com
Description: 受生债查询工具主题，保留原静态页面全部功能与配色，基于四柱八字排盘计算受生债。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shousheng-zhai
Tags: one-column, custom-colors, custom-menu, featured-images, translation-ready
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: #0d1b2a;
    color: #e0e1dd;
    line-height: 1.6;
    padding: 20px;
    font-family: 'Noto Serif SC', serif;
    background-image: radial-gradient(circle at 20% 80%, rgba(45, 75, 105, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 75, 105, 0.3) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231b3a4b' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    min-height: 100vh;
}
.container { max-width: 1300px; margin: 0 auto; position: relative; }
.taoist-decoration { position: absolute; font-size: 1.5rem; opacity: 0.3; z-index: 0; }
.decoration-1 { top: 5%; left: 5%; }
.decoration-2 { top: 5%; right: 5%; }
.decoration-3 { bottom: 5%; left: 5%; }
.decoration-4 { bottom: 5%; right: 5%; }
header {
    text-align: center; margin-bottom: 40px; padding: 30px 20px;
    background: linear-gradient(135deg, rgba(13,27,42,0.9), rgba(30,60,90,0.9));
    border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(100,150,200,0.2); position: relative; overflow: hidden; z-index: 1;
}
header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #e6b17e, transparent); }
h1 { font-size: 3.2rem; margin-bottom: 15px; color: #e6b17e; text-shadow: 0 2px 10px rgba(230,177,126,0.5); font-family: 'Ma Shan Zheng', cursive; letter-spacing: 5px; }
.subtitle { font-size: 1.3rem; opacity: 0.9; max-width: 800px; margin: 0 auto; color: #a3b1c6; font-style: italic; }
.taoist-symbol { font-size: 4rem; color: #e6b17e; margin-bottom: 15px; }
.content { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; position: relative; z-index: 1; }
.input-section, .result-section {
    background: linear-gradient(135deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9));
    border-radius: 15px; padding: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(100,150,200,0.2); position: relative; overflow: hidden;
}
.input-section::before, .result-section::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #8b4513, #d2691e, #8b4513); }
.input-section { flex: 1; min-width: 380px; max-width: 520px; }
.result-section { flex: 2; min-width: 380px; }
.section-title { font-size: 1.8rem; color: #e6b17e; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid rgba(230,177,126,0.3); display: flex; align-items: center; gap: 15px; font-family: 'Ma Shan Zheng', cursive; }
.section-title i { color: #d2691e; font-size: 1.5rem; }
.bazi-input-container { display: flex; flex-direction: column; gap: 25px; }
.bazi-input-group { display: flex; flex-direction: column; gap: 10px; }
.bazi-label { font-weight: 600; color: #a3b1c6; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.bazi-label i { color: #e6b17e; }
.bazi-input-row { display: flex; gap: 15px; }
.tiangan-select, .dizhi-select, .year-input, .date-select {
    flex: 1; padding: 15px; border: 1px solid rgba(100,150,200,0.3); border-radius: 8px;
    font-size: 1.2rem; background-color: rgba(13,27,42,0.7); color: #e0e1dd; transition: all 0.3s;
    font-family: 'Noto Serif SC', serif;
}
.tiangan-select:focus, .dizhi-select:focus, .year-input:focus, .date-select:focus { border-color: #e6b17e; outline: none; background-color: rgba(13,27,42,0.9); box-shadow: 0 0 10px rgba(230,177,126,0.3); }
option { background-color: #0d1b2a; color: #e0e1dd; }
.bazi-display { background-color: rgba(13,27,42,0.7); padding: 20px; border-radius: 10px; text-align: center; margin: 25px 0; border: 1px solid rgba(230,177,126,0.2); box-shadow: inset 0 0 15px rgba(0,0,0,0.3); }
.bazi-text { font-size: 2.2rem; font-weight: bold; color: #e6b17e; letter-spacing: 8px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); font-family: 'Ma Shan Zheng', cursive; }
.button-group { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
button {
    flex: 1; min-width: 120px; padding: 18px; background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white; border: none; border-radius: 10px; font-size: 1.2rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s; font-family: 'Noto Serif SC', serif; box-shadow: 0 5px 15px rgba(139,69,19,0.3);
    position: relative; overflow: hidden;
}
button::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: 0.5s; }
button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(139,69,19,0.5); }
button:hover::after { left: 100%; }
button.reset { background: linear-gradient(135deg, #444, #666); }
button.reset:hover { box-shadow: 0 10px 20px rgba(68,68,68,0.5); }
button.lunar-pai { background: linear-gradient(135deg, #6b3a1a, #c07830); box-shadow: 0 5px 15px rgba(107,58,26,0.4); font-weight: 700; letter-spacing: 2px; }
button.lunar-pai:hover { box-shadow: 0 10px 20px rgba(107,58,26,0.6); }
.quick-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 25px; }
.quick-select button { font-size: 1rem; padding: 12px; }
.result-item { margin-bottom: 18px; padding: 18px; background-color: rgba(13,27,42,0.7); border-radius: 10px; border-left: 5px solid #e6b17e; box-shadow: 0 3px 10px rgba(0,0,0,0.2); transition: transform 0.3s; }
.result-item:hover { transform: translateX(5px); }
.result-title { font-weight: bold; color: #a3b1c6; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.result-value { font-size: 1.4rem; color: #e6b17e; font-weight: bold; text-shadow: 0 2px 3px rgba(0,0,0,0.3); }
.total { background: linear-gradient(135deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9)); padding: 30px; border-radius: 15px; margin-top: 30px; text-align: center; border: 2px solid #e6b17e; box-shadow: 0 5px 20px rgba(0,0,0,0.4); position: relative; overflow: hidden; }
.total::before, .total::after { content: "☯"; position: absolute; font-size: 2rem; opacity: 0.1; }
.total::before { top: 10px; left: 10px; }
.total::after { bottom: 10px; right: 10px; }
.total-title { font-size: 1.8rem; color: #e6b17e; margin-bottom: 15px; font-family: 'Ma Shan Zheng', cursive; }
.total-amount { font-size: 3rem; font-weight: bold; color: #e6b17e; text-shadow: 0 3px 10px rgba(230,177,126,0.5); }
.explanation { background: linear-gradient(135deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9)); border-radius: 15px; padding: 35px; margin-top: 40px; box-shadow: 0 8px 25px rgba(0,0,0,0.4); border: 1px solid rgba(100,150,200,0.2); position: relative; z-index: 1; }
.explanation h3 { color: #e6b17e; margin-bottom: 20px; font-size: 1.8rem; font-family: 'Ma Shan Zheng', cursive; display: flex; align-items: center; gap: 15px; }
.explanation p { margin-bottom: 20px; text-align: justify; line-height: 1.8; color: #c9d1d9; }
.note { background-color: rgba(230,177,126,0.1); padding: 20px; border-radius: 10px; margin-top: 25px; border-left: 5px solid #e6b17e; }
.note p { color: #e6b17e; font-style: italic; margin-bottom: 0; }
.footer { text-align: center; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(100,150,200,0.2); color: #a3b1c6; font-size: 0.95rem; position: relative; z-index: 1; }
.result-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 25px; }
@media (max-width: 768px) {
    .content { flex-direction: column; }
    .input-section { max-width: 100%; }
    h1 { font-size: 2.5rem; }
    .bazi-text { font-size: 1.8rem; letter-spacing: 5px; }
    .quick-select { grid-template-columns: 1fr; }
    .result-details { grid-template-columns: 1fr; }
    .total-amount { font-size: 2.5rem; }
    button { font-size: 1rem; padding: 14px; }
}
.yin-yang { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(to bottom, #0d1b2a 0%, #0d1b2a 50%, #e6b17e 50%, #e6b17e 100%); opacity: 0.1; z-index: 0; }
.yin-yang-1 { top: 10%; right: 5%; }
.yin-yang-2 { bottom: 10%; left: 5%; }
.taoist-border { position: relative; padding: 5px; }
.taoist-border::before, .taoist-border::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid #e6b17e; }
.taoist-border::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.taoist-border::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.date-input-group { margin-top: 10px; }
.date-label { color: #a3b1c6; margin-bottom: 8px; display: block; font-weight: 600; }
.year-details { background-color: rgba(20,40,60,0.8); border-radius: 10px; padding: 15px; margin-top: 10px; border: 1px solid rgba(230,177,126,0.3); }
.year-detail-item { display: flex; justify-content: space-between; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.year-detail-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.year-detail-label { color: #a3b1c6; font-weight: 600; }
.year-detail-value { color: #e6b17e; font-weight: bold; }
.unknown-note { background-color: rgba(255,193,7,0.1); border-radius: 8px; padding: 12px; margin-top: 10px; border-left: 3px solid #ffc107; font-size: 0.9rem; color: #ffc107; }
.unknown-note i { margin-right: 8px; }
.interest-calculation-details, .interest-details { background-color: rgba(60,120,180,0.6); border-radius: 8px; padding: 12px; margin-top: 10px; border-left: 3px solid #4d8fc9; }
.interest-calculation-item, .interest-detail-item { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; }
.interest-calculation-item:last-child, .interest-detail-item:last-child { margin-bottom: 0; }
.interest-calculation-item:last-child { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 5px; margin-top: 5px; }
.year-input-group { display: flex; gap: 15px; margin-top: 10px; }
.year-input-container { flex: 1; }
.tiangan-dizhi-detail { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 0.9rem; }
.tiangan-detail, .dizhi-detail { background-color: rgba(30,60,90,0.5); padding: 6px 12px; border-radius: 6px; border-left: 3px solid #4d8fc9; }
.tiangan-detail { border-left-color: #e6b17e; }
.dizhi-detail { border-left-color: #d2691e; }
.actual-summary { background-color: rgba(230,177,126,0.15); border-radius: 10px; padding: 20px; margin-top: 20px; border: 1px solid rgba(230,177,126,0.4); }
.actual-summary h4 { color: #e6b17e; font-size: 1.3rem; margin-bottom: 15px; font-family: 'Ma Shan Zheng', cursive; border-left: 4px solid #e6b17e; padding-left: 12px; }
.summary-grid { display: flex; flex-direction: column; gap: 10px; }
.summary-item { display: flex; justify-content: space-between; font-size: 1rem; padding: 8px 12px; background-color: rgba(13,27,42,0.5); border-radius: 8px; border-left: 3px solid #e6b17e; }
.summary-label { color: #a3b1c6; font-weight: 600; }
.summary-value { color: #e6b17e; font-weight: bold; font-size: 1.1rem; }
.summary-total { background-color: rgba(230,177,126,0.2); border-left-color: #d2691e; margin-top: 5px; }
.summary-total .summary-value { font-size: 1.2rem; }
.footer-line { margin: 5px 0; }
.calendar-input-area { background-color: rgba(20,40,60,0.7); border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid rgba(100,150,200,0.25); position: relative; }
.calendar-input-area.lunar-area { border-color: rgba(200,150,100,0.35); background-color: rgba(30,35,25,0.7); }
.calendar-input-area .area-title { color: #e6b17e; font-size: 1.3rem; font-family: 'Ma Shan Zheng', cursive; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; letter-spacing: 3px; }
.lunar-area .area-title { color: #d4a76a; }
.calendar-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.calendar-row select, .calendar-row input { padding: 12px; border: 1px solid rgba(100,150,200,0.3); border-radius: 6px; font-size: 1rem; background-color: rgba(13,27,42,0.7); color: #e0e1dd; flex: 1; min-width: 60px; font-family: 'Noto Serif SC', serif; transition: all 0.3s; }
.calendar-row input:focus, .calendar-row select:focus { border-color: #e6b17e; outline: none; box-shadow: 0 0 8px rgba(230,177,126,0.3); }
.calendar-row span { color: #a3b1c6; font-size: 0.9rem; flex-shrink: 0; }
.calendar-tip { font-size: 0.8rem; color: #7a8a9a; margin-top: 6px; line-height: 1.5; }
.divider-line { border-top: 1px dashed rgba(230,177,126,0.3); margin: 20px 0; position: relative; text-align: center; }
.divider-line span { position: relative; top: -12px; background: rgba(20,40,60,0.9); padding: 0 15px; color: #a3b1c6; font-size: 0.9rem; font-family: 'Ma Shan Zheng', cursive; letter-spacing: 3px; }
.lunar-info-tag { display: inline-block; background-color: rgba(200,150,100,0.25); color: #d4a76a; padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; margin-left: 5px; }