/*
Theme Name: 受生债 ShoushengZhai
Theme URI: https://www.daoshi.org/
Author: 法安道长
Author URI: https://www.daoshi.org//
Description: 受生债查询主题，道教风格，支持注册用户查询与历史记录，管理员后台管理。包含受生债查询、财库查询、童子查询三大功能。
Version: 1.0
License: GPL v2 or later
Text Domain: shoushengzhai
*/

/* ========== 全局样式 ========== */
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;
    margin: 0;
}

a {
    color: #e6b17e;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========== 头部导航 ========== */
.site-header {
    max-width: 1300px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(30, 60, 90, 0.95) 100%);
    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;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 10;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e6b17e, transparent);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-branding .logo-icon {
    font-size: 2rem;
    color: #e6b17e;
}

.site-title {
    font-size: 1.8rem;
    font-family: 'Ma Shan Zheng', cursive;
    color: #e6b17e;
    margin: 0;
    letter-spacing: 3px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #a3b1c6;
    font-style: italic;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #e0e1dd;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 5px;
}

.main-navigation a:hover {
    background-color: rgba(230, 177, 126, 0.1);
    color: #e6b17e;
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(230, 177, 126, 0.4);
    background: transparent;
    color: #e6b17e;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-login:hover, .btn-register:hover {
    background: rgba(230, 177, 126, 0.15);
    color: #fff;
    text-decoration: none;
}

/* ========== 首页英雄区 ========== */
.site-hero {
    max-width: 1300px;
    margin: 0 auto 50px;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(30, 60, 90, 0.9) 100%);
    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;
}

.site-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e6b17e, transparent);
}

.hero-icon {
    font-size: 5rem;
    color: #e6b17e;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: #e6b17e;
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(230, 177, 126, 0.5);
    margin: 0 0 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #a3b1c6;
    font-style: italic;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.6);
    color: #fff;
    text-decoration: none;
}

/* ========== 首页内容区块 ========== */
.home-sections {
    max-width: 1300px;
    margin: 0 auto;
}

.home-section {
    background: linear-gradient(135deg, rgba(20, 40, 60, 0.9) 0%, rgba(30, 60, 90, 0.9) 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 150, 200, 0.2);
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8b4513, #d2691e, #8b4513);
}

.section-title {
    font-size: 2rem;
    color: #e6b17e;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(230, 177, 126, 0.3);
    font-family: 'Ma Shan Zheng', cursive;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: #d2691e;
    font-size: 1.5rem;
}

.home-section p {
    text-align: justify;
    color: #c9d1d9;
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background-color: rgba(13, 27, 42, 0.7);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #e6b17e;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateX(5px);
}

.feature-card h3 {
    color: #e6b17e;
    margin-top: 0;
    font-size: 1.3rem;
    font-family: 'Ma Shan Zheng', cursive;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ========== 底部 ========== */
.site-footer {
    max-width: 1300px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(100, 150, 200, 0.2);
    text-align: center;
    color: #a3b1c6;
    font-size: 0.95rem;
}

/* ========== 受生债查询页面样式 ========== */
.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.taoist-border {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(30, 60, 90, 0.9) 100%);
    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.taoist-border::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) 0%, rgba(30, 60, 90, 0.9) 100%);
    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.auto-pai {
    background: linear-gradient(135deg, #1a6b3c, #28a745);
    box-shadow: 0 5px 15px rgba(26, 107, 60, 0.4);
    font-weight: 700;
    letter-spacing: 2px;
}

button.auto-pai:hover {
    box-shadow: 0 10px 20px rgba(26, 107, 60, 0.6);
}

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) 0%, rgba(30, 60, 90, 0.9) 100%);
    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;
}

.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-row .longitude-input { max-width: 90px; }

.calendar-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #a3b1c6;
    margin-top: 8px;
    cursor: pointer;
}

.calendar-checkbox input { width: 16px; height: 16px; cursor: pointer; }

.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;
}

.hidden-gregorian { display: none; }
.hidden-longitude { display: none; }

/* ========== 财库查询页面样式 ========== */
.caiku-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: hidden;
    color: #e0e1dd;
}

.caiku-container * { box-sizing: border-box; }

.caiku-decoration {
    position: absolute;
    z-index: 0;
    opacity: 0.08;
}

.caiku-taiji {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    top: 5%;
    right: 5%;
    background: linear-gradient(to bottom, #0d1b2a 50%, #e6b17e 50%);
    box-shadow: 0 0 30px rgba(230, 177, 126, 0.2);
}

.caiku-taiji:before, .caiku-taiji:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.caiku-taiji:before { background: #0d1b2a; top: 0; left: 50px; }
.caiku-taiji:after { background: #e6b17e; bottom: 0; left: 50px; }

.caiku-bagua {
    position: absolute;
    bottom: 10%;
    left: 5%;
    font-size: 3rem;
    color: #e6b17e;
    opacity: 0.08;
    transform: rotate(15deg);
}

.caiku-cloud {
    position: absolute;
    width: 150px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(230,177,126,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    left: 5%;
    filter: blur(5px);
}

.caiku-cloud:nth-of-type(2) {
    top: 70%;
    right: 10%;
    left: auto;
    width: 200px;
    height: 80px;
}

.caiku-header {
    text-align: center;
    padding: 40px 0 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    border-bottom: 3px solid #e6b17e;
    background: linear-gradient(90deg, rgba(13,27,42,0.9), rgba(30,60,90,0.9), rgba(13,27,42,0.9));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.caiku-header .dao-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.caiku-header .yin-yang {
    font-size: 2.5rem;
    color: #e6b17e;
    margin: 0 10px;
}

.caiku-header .dao-symbol {
    font-size: 3rem;
    margin: 0 20px;
    color: #e6b17e;
}

.caiku-header h1 {
    color: #e6b17e;
    font-size: 3.2rem;
    text-shadow: 0 2px 10px rgba(230,177,126,0.5);
    margin-bottom: 15px;
    letter-spacing: 5px;
    font-family: 'Ma Shan Zheng', cursive;
    display: inline-block;
}

.caiku-header h1:before, .caiku-header h1:after {
    content: '✧';
    color: #d2691e;
    margin: 0 20px;
    font-size: 2rem;
}

.caiku-header p {
    color: #a3b1c6;
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    background: rgba(13,27,42,0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(230,177,126,0.2);
    font-style: italic;
}

.caiku-header .dao-quote {
    font-style: italic;
    color: #c9d1d9;
    margin-top: 15px;
    padding: 10px 20px;
    border-left: 4px solid #e6b17e;
    background: rgba(230,177,126,0.05);
    text-align: left;
    max-width: 800px;
    margin: 20px auto 0;
}

.caiku-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.caiku-input-section, .caiku-result-section {
    background: linear-gradient(145deg, rgba(20,40,60,0.95), rgba(30,60,90,0.95));
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    padding: 35px;
    border: 1px solid rgba(100,150,200,0.2);
    position: relative;
    overflow: hidden;
}

.caiku-input-section { flex: 1; min-width: 0; }
.caiku-result-section { flex: 2; min-width: 0; }

.caiku-section-title {
    color: #e6b17e;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(230,177,126,0.3);
    display: flex;
    align-items: center;
    font-family: 'Ma Shan Zheng', cursive;
    position: relative;
}

.caiku-section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #d2691e;
}

.caiku-section-title i {
    margin-right: 15px;
    color: #e6b17e;
    background: rgba(139,69,19,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caiku-bazi-input { margin-bottom: 30px; }
.caiku-bazi-row { display: flex; justify-content: space-between; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }

.caiku-pillar { display: flex; flex-direction: column; align-items: center; width: 23%; min-width: 140px; }
.caiku-pillar-label { font-size: 1.3rem; color: #e6b17e; margin-bottom: 15px; font-weight: bold; position: relative; display: inline-block; }
.caiku-pillar-label:after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 30px; height: 2px; background: #d2691e; }
.caiku-pillar-select { display: flex; width: 100%; justify-content: space-between; }
.caiku-select-wrapper { width: 48%; position: relative; }

.caiku-select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(100,150,200,0.3);
    border-radius: 10px;
    background-color: rgba(13,27,42,0.7);
    font-size: 1.2rem;
    color: #e0e1dd;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Serif SC', serif;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b17e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.caiku-select-wrapper select:focus {
    border-color: #e6b17e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230,177,126,0.2);
    background-color: rgba(13,27,42,0.9);
}

.caiku-select-wrapper select option {
    background-color: #0d1b2a;
    color: #e0e1dd;
}

.caiku-button-group { display: flex; justify-content: center; gap: 25px; margin-top: 40px; flex-wrap: wrap; }
.caiku-button-group button {
    padding: 18px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Ma Shan Zheng', cursive;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}
.caiku-button-group button:before { 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; }
.caiku-button-group button:hover:before { left: 100%; }
.caiku-button-group button:hover { transform: translateY(-5px); }
.caiku-query-btn { background: linear-gradient(135deg, #8b4513, #d2691e); color: #fff; flex: 2; box-shadow: 0 8px 20px rgba(139,69,19,0.3); }
.caiku-query-btn:hover { box-shadow: 0 12px 25px rgba(139,69,19,0.5); }
.caiku-reset-btn { background: linear-gradient(135deg, #444, #666); color: #e0e1dd; flex: 1; box-shadow: 0 8px 20px rgba(68,68,68,0.3); }
.caiku-reset-btn:hover { box-shadow: 0 12px 25px rgba(68,68,68,0.5); }

.caiku-bazi-display {
    background: linear-gradient(135deg, rgba(20,40,60,0.8), rgba(30,60,90,0.8));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid rgba(230,177,126,0.2);
    position: relative;
    overflow: hidden;
}
.caiku-bazi-display:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #8b4513, #e6b17e, #8b4513); }
.caiku-bazi-display-text { font-size: 2.5rem; font-weight: bold; color: #e6b17e; letter-spacing: 8px; font-family: 'Ma Shan Zheng', cursive; text-shadow: 0 2px 5px rgba(0,0,0,0.5); word-break: break-word; overflow-wrap: break-word; }

.caiku-status { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 40px; }
.caiku-status-item {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(145deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(100,150,200,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    position: relative;
}
.caiku-status-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.caiku-status-item:before { content: '☯'; position: absolute; top: 10px; right: 10px; color: rgba(230,177,126,0.15); font-size: 1.5rem; }
.caiku-status-icon { font-size: 3rem; margin-bottom: 20px; color: #e6b17e; background: rgba(139,69,19,0.4); width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.caiku-status-title { font-size: 1.5rem; color: #e6b17e; margin-bottom: 15px; font-weight: bold; }
.caiku-status-result { font-size: 1.3rem; font-weight: bold; padding: 10px 20px; border-radius: 30px; display: inline-block; font-family: 'Ma Shan Zheng', cursive; word-break: break-word; }

.caiku-has-caiku { background: rgba(76, 175, 80, 0.2); color: #81c784; border: 2px solid rgba(76, 175, 80, 0.4); }
.caiku-no-caiku { background: rgba(244, 67, 54, 0.2); color: #e57373; border: 2px solid rgba(244, 67, 54, 0.4); }
.caiku-open-caiku { background: rgba(255, 152, 0, 0.2); color: #ffb74d; border: 2px solid rgba(255, 152, 0, 0.4); }
.caiku-close-caiku { background: rgba(33, 150, 243, 0.2); color: #64b5f6; border: 2px solid rgba(33, 150, 243, 0.4); }
.caiku-need-build { background: rgba(156, 39, 176, 0.2); color: #ba68c8; border: 2px solid rgba(156, 39, 176, 0.4); }
.caiku-need-fix { background: rgba(0, 150, 136, 0.2); color: #4db6ac; border: 2px solid rgba(0, 150, 136, 0.4); }
.caiku-build-and-fix { background: linear-gradient(135deg, rgba(156,39,176,0.2), rgba(0,150,136,0.2)); color: #ce93d8; border: 2px solid rgba(156,39,176,0.4); }
.caiku-open-and-fix { background: linear-gradient(135deg, rgba(33,150,243,0.2), rgba(0,150,136,0.2)); color: #90caf9; border: 2px solid rgba(33,150,243,0.4); }

.caiku-result-box { background: linear-gradient(145deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9)); border-radius: 15px; padding: 30px; margin-bottom: 30px; border-left: 5px solid #e6b17e; box-shadow: 0 8px 20px rgba(0,0,0,0.3); position: relative; }
.caiku-result-box:before { content: '「'; position: absolute; left: 10px; top: 10px; font-size: 3rem; color: rgba(230,177,126,0.15); font-family: 'Ma Shan Zheng', cursive; }
.caiku-result-title { font-size: 1.7rem; color: #e6b17e; margin-bottom: 20px; display: flex; align-items: center; font-family: 'Ma Shan Zheng', cursive; }
.caiku-result-title i { margin-right: 15px; color: #d2691e; }
.caiku-result-content { font-size: 1.2rem; color: #c9d1d9; line-height: 1.8; word-break: break-word; }
.caiku-result-content ul { padding-left: 25px; margin: 15px 0; color: #c9d1d9; }
.caiku-result-content li { margin-bottom: 10px; position: relative; color: #c9d1d9; }
.caiku-result-content li:before { content: '✦'; color: #e6b17e; position: absolute; left: -20px; }

.caiku-recommendation { background: linear-gradient(135deg, rgba(230,177,126,0.08), rgba(139,69,19,0.08)); border-radius: 15px; padding: 30px; border-left: 5px solid #8b4513; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.caiku-recommendation-title { font-size: 1.7rem; color: #e6b17e; margin-bottom: 20px; font-family: 'Ma Shan Zheng', cursive; display: flex; align-items: center; }
.caiku-recommendation-title:before { content: '☯'; margin-right: 15px; color: #d2691e; }
.caiku-recommendation-list { padding-left: 25px; color: #c9d1d9; }
.caiku-recommendation-list li { margin-bottom: 15px; font-size: 1.2rem; line-height: 1.7; position: relative; color: #c9d1d9; }
.caiku-recommendation-list li:before { content: '▸'; color: #e6b17e; position: absolute; left: -20px; font-weight: bold; }

.caiku-footer { text-align: center; padding: 40px 0; color: #a3b1c6; border-top: 2px solid rgba(100,150,200,0.2); margin-top: 50px; font-size: 1.1rem; background: linear-gradient(90deg, rgba(13,27,42,0.9), rgba(30,60,90,0.9), rgba(13,27,42,0.9)); border-radius: 20px; position: relative; overflow: hidden; z-index: 1; }
.caiku-footer:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #8b4513, #e6b17e, #8b4513); }
.caiku-footer .footer-content { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.caiku-footer .dao-principle { font-style: italic; color: #c9d1d9; margin: 20px 0; padding: 15px; background: rgba(13,27,42,0.7); border-radius: 10px; border-left: 4px solid #e6b17e; }

/* ========== 童子查询页面样式 ========== */
.tongzi-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    color: #e0e1dd;
}
.tongzi-container * { box-sizing: border-box; }

.tongzi-decoration {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.tongzi-taiji {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #0d1b2a 50%, #e6b17e 50%);
    opacity: 0.05;
    animation: rotate 60s linear infinite;
}
.tongzi-taiji::before, .tongzi-taiji::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; }
.tongzi-taiji::before { background: #0d1b2a; top: 0; left: 50%; transform: translateX(-50%); }
.tongzi-taiji::after { background: #e6b17e; bottom: 0; left: 50%; transform: translateX(-50%); }
@keyframes rotate { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

.tongzi-bagua { width: 80px; height: 80px; opacity: 0.08; }
.tongzi-bagua-1 { top: 10%; left: 5%; }
.tongzi-bagua-2 { top: 15%; right: 8%; }
.tongzi-bagua-3 { bottom: 20%; left: 10%; }
.tongzi-bagua-4 { bottom: 10%; right: 5%; }
.tongzi-bagua-symbol { width: 100%; height: 100%; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="32" r="30" fill="none" stroke="%23e6b17e" stroke-width="2"/><path d="M32,10 L32,54" stroke="%23e6b17e" stroke-width="2"/><circle cx="32" cy="22" r="4" fill="%23e6b17e"/><circle cx="32" cy="42" r="4" fill="none" stroke="%23e6b17e" stroke-width="2"/></svg>'); background-size: contain; background-repeat: no-repeat; animation: pulse 8s infinite alternate; }
@keyframes pulse { 0% { opacity: 0.05; } 100% { opacity: 0.15; } }

.tongzi-cloud { position: fixed; background-color: rgba(230,177,126,0.03); border-radius: 50%; z-index: 0; }
.tongzi-cloud-1 { width: 150px; height: 60px; top: 5%; left: 20%; box-shadow: 20px 10px 0 0 rgba(230,177,126,0.03), -20px 10px 0 0 rgba(230,177,126,0.03), 0 -15px 0 0 rgba(230,177,126,0.03); }
.tongzi-cloud-2 { width: 120px; height: 50px; bottom: 15%; right: 25%; box-shadow: 15px 8px 0 0 rgba(230,177,126,0.03), -15px 8px 0 0 rgba(230,177,126,0.03), 0 -12px 0 0 rgba(230,177,126,0.03); }

.tongzi-main {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(20,40,60,0.95), rgba(30,60,90,0.95));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(230,177,126,0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(230,177,126,0.2);
}
.tongzi-top-border { height: 20px; background: linear-gradient(90deg, transparent 0%, #e6b17e 20%, #e6b17e 80%, transparent 100%); position: relative; }
.tongzi-top-border::before, .tongzi-top-border::after { content: "☯"; position: absolute; top: 50%; transform: translateY(-50%); font-size: 14px; color: #e6b17e; }
.tongzi-top-border::before { left: 10%; }
.tongzi-top-border::after { right: 10%; }

.tongzi-header { background: linear-gradient(135deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9)); color: #e6b17e; padding: 25px; text-align: center; border-bottom: 2px solid rgba(230,177,126,0.3); position: relative; }
.tongzi-header h1 { font-size: 2.4rem; margin-bottom: 8px; letter-spacing: 3px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); font-family: 'Ma Shan Zheng', cursive; color: #e6b17e; }
.tongzi-header h1 i { margin-right: 10px; color: #d2691e; }
.tongzi-subtitle { font-size: 1.1rem; color: #a3b1c6; font-style: italic; }

.tongzi-content { display: flex; flex-wrap: wrap; padding: 20px; gap: 20px; }
.tongzi-input-section, .tongzi-result-section { flex: 1; min-width: 300px; padding: 20px; }
.tongzi-input-section { border-right: 1px solid rgba(100,150,200,0.2); }
.tongzi-section-title { color: #e6b17e; border-left: 4px solid #d2691e; padding-left: 12px; margin: 20px 0 15px; font-size: 1.4rem; font-family: 'Ma Shan Zheng', cursive; letter-spacing: 2px; }

.tongzi-form-group { margin-bottom: 20px; }
.tongzi-form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #c9d1d9; }
.tongzi-stems-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.tongzi-pillar { text-align: center; }
.tongzi-pillar-name { font-size: 0.9rem; color: #e6b17e; margin-bottom: 5px; font-weight: bold; }
.tongzi-pillar select { width: 100%; padding: 10px; border: 2px solid rgba(230,177,126,0.3); border-radius: 8px; font-size: 1rem; background-color: rgba(13,27,42,0.8); color: #e0e1dd; transition: all 0.3s; appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="%23e6b17e" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; }
.tongzi-pillar select:focus { outline: none; border-color: #e6b17e; box-shadow: 0 0 10px rgba(230,177,126,0.3); background-color: rgba(13,27,42,0.9); }
.tongzi-pillar select option { background-color: #0d1b2a; color: #e0e1dd; }
.tongzi-gender-group { display: flex; gap: 20px; margin-top: 10px; }
.tongzi-gender-option { display: flex; align-items: center; cursor: pointer; color: #c9d1d9; }
.tongzi-gender-option input { margin-right: 8px; accent-color: #e6b17e; }

.tongzi-btn { background: linear-gradient(135deg, #8b4513, #d2691e); color: #fff; border: 1px solid #e6b17e; padding: 14px 28px; font-size: 1.1rem; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-weight: 600; letter-spacing: 1px; width: 100%; margin-top: 10px; position: relative; overflow: hidden; font-family: 'Ma Shan Zheng', cursive; }
.tongzi-btn:hover { background: linear-gradient(135deg, #d2691e, #8b4513); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 15px rgba(230,177,126,0.3); }
.tongzi-btn-example { background: linear-gradient(135deg, #1a6b3c, #28a745); margin-top: 15px; }
.tongzi-btn-example:hover { background: linear-gradient(135deg, #28a745, #1a6b3c); }

.tongzi-result-box { background-color: rgba(13,27,42,0.7); border-radius: 10px; padding: 20px; margin-top: 15px; border: 1px solid rgba(230,177,126,0.3); min-height: 200px; position: relative; }
.tongzi-result-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed rgba(230,177,126,0.3); }
.tongzi-result-title { font-weight: 700; color: #e6b17e; margin-bottom: 5px; display: flex; align-items: center; }
.tongzi-result-title i { margin-right: 8px; color: #d2691e; }
.tongzi-result-content { color: #c9d1d9; padding-left: 24px; }
.tongzi-true-child { color: #e57373; font-weight: 700; text-shadow: 0 0 5px rgba(229,115,115,0.3); }
.tongzi-false-child { color: #64b5f6; font-weight: 700; text-shadow: 0 0 5px rgba(100,181,246,0.3); }
.tongzi-highlight { background-color: rgba(230,177,126,0.15); padding: 2px 5px; border-radius: 3px; font-weight: 600; color: #e6b17e; }
.tongzi-result-details { background-color: rgba(15,30,45,0.7); border-radius: 8px; padding: 15px; margin-top: 10px; font-size: 0.95rem; border-left: 3px solid rgba(230,177,126,0.5); color: #c9d1d9; }
.tongzi-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; font-size: 0.9rem; color: #a3b1c6; }
.tongzi-legend-item { display: flex; align-items: center; margin-right: 15px; }
.tongzi-legend-color { width: 15px; height: 15px; border-radius: 3px; margin-right: 6px; border: 1px solid rgba(255,255,255,0.2); }
.tongzi-legend-true { background-color: #e57373; }
.tongzi-legend-false { background-color: #64b5f6; }

.tongzi-example-box { background: linear-gradient(145deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9)); border-radius: 10px; padding: 15px; margin-top: 25px; border: 1px solid rgba(100,150,200,0.3); }
.tongzi-example-title { font-weight: 700; color: #e6b17e; margin-bottom: 10px; }
.tongzi-instructions { background: linear-gradient(145deg, rgba(20,40,60,0.9), rgba(30,60,90,0.9)); border-radius: 10px; padding: 15px; margin-top: 25px; font-size: 0.95rem; line-height: 1.6; border: 1px solid rgba(230,177,126,0.2); color: #c9d1d9; }

.tongzi-footer { text-align: center; padding: 20px; color: #a3b1c6; font-size: 0.9rem; border-top: 1px solid rgba(230,177,126,0.2); background: rgba(13,27,42,0.8); position: relative; }
.tongzi-footer::before { content: "道"; position: absolute; top: 50%; left: 10%; transform: translateY(-50%); font-size: 2rem; color: rgba(230,177,126,0.1); font-family: "STKaiti"; }
.tongzi-footer::after { content: "法自然"; position: absolute; top: 50%; right: 10%; transform: translateY(-50%); font-size: 1.2rem; color: rgba(230,177,126,0.1); font-family: "STKaiti"; }

/* 响应式 */
@media (max-width: 1024px) {
    .caiku-pillar { width: 48%; margin-bottom: 15px; }
    .caiku-status-item { min-width: calc(50% - 25px); }
}
@media (max-width: 768px) {
    .site-header { flex-direction: column; gap: 15px; text-align: center; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .home-section { padding: 20px; }

    .stems-branches { grid-template-columns: repeat(2, 1fr); }
    .tongzi-stems-branches { grid-template-columns: repeat(2, 1fr); }
    .tongzi-input-section { border-right: none; border-bottom: 1px solid rgba(100,150,200,0.2); }
    .tongzi-bagua, .tongzi-cloud { display: none; }
    .tongzi-content { flex-direction: column; }
    .tongzi-header h1 { font-size: 1.8rem; }

    .caiku-container { padding: 10px; }
    .caiku-taiji, .caiku-bagua, .caiku-cloud { display: none; }
    .caiku-header { padding: 25px 0 20px; margin-bottom: 25px; }
    .caiku-header h1 { font-size: 2.2rem; letter-spacing: 3px; }
    .caiku-header h1:before, .caiku-header h1:after { font-size: 1.5rem; margin: 0 10px; }
    .caiku-header p { font-size: 1.1rem; padding: 12px; }
    .caiku-main-content { flex-direction: column; gap: 25px; margin-bottom: 30px; }
    .caiku-input-section, .caiku-result-section { padding: 25px 20px; border-radius: 15px; }
    .caiku-section-title { font-size: 1.7rem; margin-bottom: 20px; padding-bottom: 15px; }
    .caiku-section-title i { width: 40px; height: 40px; margin-right: 10px; }
    .caiku-pillar { width: 100%; margin-bottom: 20px; }
    .caiku-pillar-label { font-size: 1.2rem; margin-bottom: 10px; }
    .caiku-select-wrapper select { padding: 12px 15px; font-size: 1.1rem; }
    .caiku-button-group { flex-direction: column; margin-top: 25px; gap: 15px; }
    .caiku-button-group button { width: 100%; padding: 15px 25px; font-size: 1.2rem; }
    .caiku-bazi-display { padding: 20px 15px; margin-top: 20px; }
    .caiku-bazi-display-text { font-size: 1.8rem; letter-spacing: 3px; }
    .caiku-status { gap: 15px; margin-bottom: 25px; }
    .caiku-status-item { width: 100%; min-width: 100%; padding: 20px; }
    .caiku-status-icon { width: 60px; height: 60px; font-size: 2.2rem; margin-bottom: 15px; }
    .caiku-status-title { font-size: 1.3rem; margin-bottom: 10px; }
    .caiku-status-result { font-size: 1.2rem; padding: 8px 15px; }
    .caiku-result-box { padding: 20px 15px; margin-bottom: 20px; }
    .caiku-result-title { font-size: 1.4rem; margin-bottom: 15px; }
    .caiku-result-content { font-size: 1.1rem; }
    .caiku-recommendation { padding: 20px 15px; }
    .caiku-recommendation-title { font-size: 1.4rem; margin-bottom: 15px; }
    .caiku-recommendation-list li { font-size: 1.1rem; margin-bottom: 12px; }
    .caiku-footer { padding: 25px 15px; margin-top: 30px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .tongzi-stems-branches { grid-template-columns: 1fr; }
    .tongzi-btn { padding: 12px 20px; }
    .caiku-header h1 { font-size: 1.8rem; }
    .caiku-section-title { font-size: 1.5rem; }
    .caiku-bazi-display-text { font-size: 1.6rem; letter-spacing: 2px; }
    .caiku-pillar-select { flex-direction: column; }
    .caiku-select-wrapper { width: 100%; margin-bottom: 10px; }
    .caiku-select-wrapper:last-child { margin-bottom: 0; }
/* ========== 受生债查询页面移动端深度适配 ========== */
@media (max-width: 768px) {
    /* 全局盒模型统一，防止溢出 */
    .container,
    .container *,
    .input-section,
    .result-section,
    .calendar-input-area,
    .bazi-input-group,
    .bazi-input-row,
    .year-input-group,
    .button-group,
    .quick-select,
    .result-details,
    .explanation {
        box-sizing: border-box;
    }

    /* 确保主体容器居中且无水平滚动 */
    body {
        padding: 0 !important;
        overflow-x: hidden;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 头部区域 */
    header.taoist-border {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 20px 10px !important;
        border-radius: 12px !important;
    }
    header.taoist-border h1 {
        font-size: 1.8rem !important;
        letter-spacing: 2px !important;
        line-height: 1.3;
    }
    .subtitle {
        font-size: 0.95rem !important;
        padding: 0 5px;
    }

    /* 主内容区域改为纵向堆叠 */
    .content {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 输入区和结果区全宽 */
    .input-section,
    .result-section {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 10px !important;
        border-radius: 10px !important;
    }

    /* 所有表单控件全宽 */
    .tiangan-select,
    .dizhi-select,
    .year-input,
    .date-select,
    .calendar-row select,
    .calendar-row input {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 10px !important;
        font-size: 16px !important;  /* 防止iOS缩放 */
        border-radius: 6px !important;
        margin: 0;
    }

    /* 八字输入行纵向排列 */
    .bazi-input-row {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .bazi-input-group {
        gap: 6px !important;
    }
    .bazi-label {
        font-size: 1rem !important;
    }

    /* 年份输入组纵向排列 */
    .year-input-group {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* 按钮组纵向排列，按钮全宽 */
    .button-group {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    .button-group button {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px 15px !important;
        font-size: 1rem !important;
        flex: none !important;
    }

    /* 快捷示例按钮单列 */
    .quick-select {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .quick-select button {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
    }

    /* 日历输入区域 */
    .calendar-input-area {
        padding: 15px 10px !important;
        margin-bottom: 15px !important;
    }
    .calendar-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
    }
    .calendar-row span {
        font-size: 0.8rem !important;
        flex-shrink: 0;
    }
    .calendar-row input,
    .calendar-row select {
        flex: 1 1 calc(50% - 10px) !important;
        min-width: 0 !important;
    }
    .calendar-checkbox {
        font-size: 0.8rem !important;
        flex-wrap: wrap;
    }
    .calendar-tip {
        font-size: 0.75rem !important;
    }

    /* 八字显示文本 */
    .bazi-display {
        padding: 15px 10px !important;
        margin: 15px 0 !important;
    }
    .bazi-text {
        font-size: 1.5rem !important;
        letter-spacing: 4px !important;
        line-height: 1.4;
    }

    /* 结果区域 */
    .result-details {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .result-item {
        padding: 12px 10px !important;
        margin-bottom: 10px !important;
    }
    .result-title {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    .result-value {
        font-size: 1.1rem !important;
    }

    /* 合计卡片 */
    .total {
        padding: 20px 15px !important;
        margin-top: 20px !important;
    }
    .total-title {
        font-size: 1.4rem !important;
    }
    .total-amount {
        font-size: 1.8rem !important;
    }

    /* 解释区域 */
    .explanation {
        padding: 20px 15px !important;
        margin-top: 25px !important;
    }
    .explanation h3 {
        font-size: 1.4rem !important;
    }
    .explanation p {
        font-size: 0.95rem !important;
    }

    /* 隐藏装饰元素 */
    .taoist-decoration,
    .yin-yang {
        display: none !important;
    }

    /* 禁止任何元素横向溢出 */
    img, iframe, table, pre, video {
        max-width: 100% !important;
    }
}

/* 超小屏进一步优化 */
@media (max-width: 400px) {
    .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    header.taoist-border h1 {
        font-size: 1.5rem !important;
    }
    .section-title {
        font-size: 1.4rem !important;
    }
    .bazi-text {
        font-size: 1.3rem !important;
        letter-spacing: 3px !important;
    }
    .result-value {
        font-size: 1rem !important;
    }
    .button-group button {
        font-size: 0.95rem !important;
        padding: 12px 10px !important;
    }
}