/* ===== 全局样式 ===== */
.date-calculator-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: none;
    overflow: hidden;
}

/* ===== 标题区域 ===== */
.calculator-header {
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

.calculator-title {
    margin-bottom: 15px;
}

.calculator-title i {
    color: #4361ee;
	font-size: 2.5rem;
    background: linear-gradient(135deg, #4361ee, #4895ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calculator-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== 主计算区域 ===== */
.date-calculator-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.date-difference-section,
.date-projection-section {
    background: linear-gradient(135deg, #f5f9ff 0%, #edf5ff 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.io-black-mode .date-difference-section,
.io-black-mode .date-projection-section {
	background: rgba(10, 10, 10, .4);
}

/* 区块头部样式 */
.section-header {
    margin-bottom: 25px;
}

.section-header .io{
	font-size: 1.25rem;
	margin-right: 5px;
}

.section-header h3 {
    font-size: 1.25rem;
}

/* 输入区域 */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    align-items: center;
    gap: 8px;
    height: 100%;
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #4a4e69;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.form-control:focus {
    outline: none;
    border-color: #4895ef;
    box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.2);
}

/* 按钮样式 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-gradient {
    background: linear-gradient(135deg, #4361ee, #4895ef) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3) !;
}

.btn-gradient:hover {
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4361ee;
    color: #4361ee;
}

.btn-outline:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

/* 结果框样式 */
.result-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(72, 149, 239, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.result-box.show {
    opacity: 1;
    height: auto;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.result-text {
    width: 100%;
}

.result-label {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.result-value {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.highlight {
    font-size: 2rem;
    font-weight: 700;
    color: #4361ee;
    line-height: 1;
}

.result-unit {
    font-size: 1.2rem;
    color: #6c757d;
}

/* 警告提示样式 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert-error {
    background-color: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: #e63946;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .input-row,
    .projection-inputs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .calculator-title {
        font-size: 1.6rem;
    }
    
    .date-calculator-card {
        padding: 20px;
    }
    
    .highlight {
        font-size: 1.8rem;
    }
    
    .result-unit {
        font-size: 1rem;
    }
}