
.container { max-width: 1200px; margin: 50px auto; }
.panel { background: white; border-radius: 20px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); animation: fadeIn 0.3s ease-in; }
.panel.active { display: block; }

/* 日历详情样式 */
.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}
.calendar-date {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.calendar-info {
    font-size: 16px;
    color: #666;
}
.calendar-section {
    margin-bottom: 30px;
}
.calendar-section h3,.h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.calendar-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}
.calendar-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}
.calendar-item p {
    color: #666;
    margin: 5px 0;
}
.calendar-detail {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.calendar-header h2 {
    font-size: 2em;
    margin: 10px 0;
    color: white;
}

.calendar-header h3 {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

.calendar-header p {
    margin: 5px 0;
    opacity: 0.8;
}

.yi-ji-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.yi, .ji {
    flex: 1;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
}

.yi h4, .ji h4 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.yi ul, .ji ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yi li, .ji li {
    padding: 5px 0;
    text-align: center;
}

.direction-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.direction-item {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.shichen-section {
    margin-bottom: 20px;
}

.shichen-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.shichen-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.shichen-item {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.shichen-time {
    display: block;
    font-size: 0.9em;
}

.shichen-yi {
    display: block;
    margin-top: 5px;
    font-weight: bold;
}

.shichen-yi.ji {
    color: #4CAF50;
}

.shichen-yi.xiong {
    color: #f44336;
}

.other-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.other-item {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

@media (max-width: 768px) { 
    .header h1 { font-size: 1.8em; }
    .panel { padding: 20px; }
    .yi-ji-section { flex-direction: column; }
    .shichen-grid { grid-template-columns: repeat(4, 1fr); }
}

.form-container { background: white; border-radius: 20px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #333; font-weight: 500; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 16px; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #667eea; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); }
.result { background: white; border-radius: 20px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin-top: 30px; display: none; animation: fadeIn 0.3s ease-in; }
.result.show { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result-section { margin-bottom: 30px; }
.result-section h2 { color: #333; margin-bottom: 20px; font-size: 1.5em; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.result-card { background: #f8f9fa; padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.result-card h3 { color: #667eea; margin-bottom: 15px; font-size: 1.2em; }
.result-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.1); }
.result-item:last-child { border-bottom: none; }
.result-label { color: #666; font-weight: 500; }
.result-value { color: #333; font-weight: bold; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.pillar-card { background: #f8f9fa; padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-align: center; }
.pillar-title { color: #667eea; margin-bottom: 10px; font-size: 1.1em; font-weight: bold; }
.pillar-content { font-size: 1.5em; font-weight: bold; margin-bottom: 10px; }
.pillar-info { font-size: 0.9em; color: #666; }
.fortunes-container { margin-top: 30px; }
.fortune-tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 10px; }
.fortune-tab { padding: 10px 20px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 25px; cursor: pointer; white-space: nowrap; transition: all 0.3s; }
.fortune-tab:hover { background: #e9ecef; }
.fortune-tab.active { background: #667eea; color: white; border-color: #667eea; }
.fortune-content { background: #f8f9fa; padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.fortune-year { margin-bottom: 20px; }
.fortune-year h4 { color: #333; margin-bottom: 10px; }
.month-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.month-item { background: white; padding: 10px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center; }
.month-name { font-size: 0.9em; color: #666; margin-bottom: 5px; }
.month-value { font-weight: bold; color: #333; }
.loading { text-align: center; padding: 50px; color: #666; font-size: 1.2em; }
.hide-heaven-stems { margin-top: 10px; font-size: 0.9em; color: #666; }
.extra-earth-branches { margin-top: 5px; font-size: 0.9em; color: #666; }
