/* 日期时间工具样式 */

/* 工具标题区 */
.tool-header {
    background-color: #ebf5fb;
    padding: 40px 0;
    border-bottom: 1px solid #d6eaf8;
}

.tool-desc {
    font-size: 18px;
    color: #34495e;
    margin-top: 10px;
}

/* 工具主体区 */
.tool-body {
    padding: 40px 0;
}

/* 功能选项卡 */
.function-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #34495e;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: 500;
}

/* 表单样式 */
.tab-content {
    padding: 10px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.date-offset-control {
    display: flex;
    gap: 10px;
}

.date-offset-control .form-control:first-child {
    flex: 1;
}

.date-offset-control .form-control:last-child {
    width: 120px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-item input {
    width: 16px;
    height: 16px;
}

/* 结果展示 */
.result-display {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.result-display h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.result-highlight {
    font-size: 20px;
    font-weight: 500;
    color: #3498db;
    margin: 10px 0;
}

.result-note {
    color: #7f8c8d;
    font-style: italic;
}

.diff-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.diff-item {
    padding: 8px 10px;
    background-color: #ffffff;
    border-radius: 4px;
}

.diff-label {
    font-weight: 500;
    color: #2c3e50;
}

.diff-value {
    color: #3498db;
}

/* 当前时间卡片 */
.current-time-card {
    margin-top: 30px;
}

.current-time-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.time-item {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.time-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.time-value {
    font-family: 'Courier New', monospace;
    color: #2c3e50;
}

/* 使用说明区 */
.tool-guide {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.guide-content {
    margin-top: 20px;
}

.guide-item {
    margin-bottom: 30px;
}

.guide-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.guide-item p {
    margin-bottom: 10px;
    color: #34495e;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .function-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .date-offset-control {
        flex-direction: column;
    }
    
    .date-offset-control .form-control:last-child {
        width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
