/* 中国农历转换工具样式 */

.lunar-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title i {
    margin-right: 15px;
    font-size: 2.8rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.workspace {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.converter-panel {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.panel-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.panel-header h3 i {
    margin-right: 10px;
    color: #f5576c;
}

.conversion-type {
    display: flex;
    gap: 10px;
}

.type-btn {
    padding: 10px 20px;
    border: 2px solid #f5576c;
    background: white;
    color: #f5576c;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.type-btn:hover {
    background: #fff5f6;
}

.type-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: transparent;
}

.input-section {
    margin-bottom: 30px;
}

.date-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.date-inputs.hidden {
    display: none;
}

.input-group {
    flex: 1;
    min-width: 120px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #f5576c;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.action-btn:not(.primary) {
    background: #f0f0f0;
    color: #333;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.result-section.hidden {
    display: none;
}

.result-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h3 i {
    margin-right: 10px;
    color: #4CAF50;
}

.date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 25px;
}

.solar-date,
.lunar-date {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.solar-date .date-icon {
    background: linear-gradient(135deg, #ffd89b 0%, #f5576c 100%);
    color: white;
}

.lunar-date .date-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.date-info {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 0.9rem;
    color: #888;
}

.date-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.arrow {
    font-size: 1.5rem;
    color: #ccc;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #f5576c;
}

.detail-card.ganzhi-card {
    border-left-color: #667eea;
}

.detail-card.wuxing-card {
    border-left-color: #11998e;
}

.detail-card.color-card {
    border-left-color: #f5576c;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header i {
    color: #f5576c;
    font-size: 1.2rem;
}

.card-header span {
    font-weight: 600;
    color: #333;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: #666;
    font-size: 0.95rem;
}

.info-value {
    font-weight: 600;
    color: #333;
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.error-message {
    padding: 20px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.error-message.hidden {
    display: none;
}

.info-panel {
    width: 350px;
    flex-shrink: 0;
}

.info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: #f5576c;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li strong {
    color: #333;
}

.knowledge-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.knowledge-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.knowledge-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.knowledge-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .workspace {
        flex-direction: column;
    }

    .info-panel {
        width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .date-display {
        flex-direction: column;
        gap: 15px;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .panel-header {
        flex-direction: column;
        gap: 15px;
    }
}