/* 公历农历转换器样式 */
.calculator-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 20px 0;
}

/* 查询区域 */
.query-section {
    margin-bottom: 24px;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

/* 日历类型选择器 */
.calendar-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 80px;
}

/* 年份输入框 */
.year-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 80px;
    text-align: center;
}

/* 月份和日期选择器 */
.month-input,
.day-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 60px;
    background: white;
}

/* 输入标签 */
.input-label {
    font-size: 14px;
    color: #666;
    margin-left: 2px;
}

/* 查询按钮 */
.query-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.query-button:hover {
    background: #45a049;
}

/* 农历特有选项 */
.lunar-options {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.lunar-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.leap-checkbox {
    margin: 0;
}

/* 结果显示区域 */
.result-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    min-height: 120px;
    display: none;
}

.result-display.show {
    display: block;
}

.result-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.result-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.result-value {
    color: #666;
}

.zodiac-icon {
    font-size: 18px;
    margin-right: 4px;
}

/* 快捷操作 */
.quick-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.action-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background: #0056b3;
}

.action-button.secondary {
    background: #6c757d;
}

.action-button.secondary:hover {
    background: #545b62;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .date-input-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .convert-button {
        grid-column: span 1;
        width: 100%;
    }
    
    .conversion-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .conversion-section h3 {
        font-size: 16px;
    }
    
    .input-group input,
    .input-group select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .convert-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .conversion-section {
        background: #1e293b;
        border-color: #334155;
    }
    
    .conversion-section h3 {
        color: #f1f5f9;
    }
    
    .input-group label {
        color: #cbd5e1;
    }
    
    .input-group input,
    .input-group select {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .result-section {
        background: #334155;
        border-color: #475569;
    }
    
    .result-section h4 {
        color: #f1f5f9;
    }
    
    .result-label {
        color: #94a3b8;
    }
    
    .result-value {
        color: #f1f5f9;
    }
}

/* 使用说明卡片样式 */
.instructions-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.instructions-card .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.instructions-card .card-header .icon {
    color: white;
    opacity: 0.9;
}

.instructions-card .card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.instructions-card .card-content {
    padding: 24px;
}

.instruction-section {
    margin-bottom: 20px;
}

.instruction-section:last-child {
    margin-bottom: 0;
}

.instruction-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-section h4::before {
    content: "📋";
    font-size: 14px;
}

.instruction-section ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.instruction-section li {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
    color: #475569;
}

.instruction-section li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.instruction-section li strong {
    color: #1e293b;
    font-weight: 600;
}

/* 打印样式 */
@media print {
    .convert-button,
    .clear-button {
        display: none;
    }
    
    .conversion-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .result-section {
        display: block !important;
    }
    
    .instructions-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}