.chinese-bazi-calculator {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.bazi-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.bazi-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.bazi-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.bazi-input-section {
    flex: 1;
    min-width: 300px;
}

.bazi-input-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bazi-input-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.bazi-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.date-type-toggle {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.toggle-option input[type="radio"] {
    accent-color: #667eea;
}

.toggle-option:hover {
    background-color: #f8f9fa;
}

.toggle-option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #667eea;
}

.lunar-date-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bazi-result-section {
    flex: 1;
    min-width: 300px;
}

.bazi-result-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.bazi-result-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.bazi-chart {
    margin-bottom: 2rem;
}

.bazi-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pillar {
    text-align: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
}

.pillar-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.gan, .zhi {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.25rem 0;
}

.bazi-analysis {
    margin-top: 2rem;
}

.bazi-analysis h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.analysis-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.bazi-no-result {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-result-content {
    text-align: center;
    max-width: 300px;
}

.bazi-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-result-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.no-result-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bazi-container {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .bazi-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chinese-bazi-calculator {
        padding: 10px;
    }
    
    .bazi-input-card,
    .bazi-result-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bazi-title {
        font-size: 2rem;
    }
    
    .bazi-subtitle {
        font-size: 1rem;
    }
    
    .bazi-pillars {
        grid-template-columns: 1fr;
    }
}
