/* 工具六（时间转换）专用样式 */

/* 页面头部 */
.page-header {
    background-color: #1e1e1e;
    padding: 40px 0;
    border-bottom: 1px solid #333333;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ff9800;
}

.page-header p {
    font-size: 16px;
    color: #b0b0b0;
    max-width: 700px;
}

/* 工具主体区域 */
.time-converter {
    padding: 48px 0;
}

/* 主要内容区域布局 */
.converter-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

/* 左侧时间输入面板 */
.time-input-panel {
    flex: 0 0 320px;
}

.panel-section {
    margin-bottom: 24px;
}

.panel-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

/* 时间输入区域 */
.time-input-group {
    margin-bottom: 16px;
}

.time-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
}

.text-input:focus {
    outline: none;
    border-color: #ff9800;
}

.date-time-picker {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.date-input, .time-input {
    flex: 1;
}

/* 时间转换选项 */
.conversion-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.conversion-option {
    padding: 12px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e0e0e0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.conversion-option:hover {
    background-color: #383838;
}

.conversion-option.active {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
    color: #ff9800;
}

/* 时间计算区域 */
.calculation-section {
    margin-top: 16px;
}

.calculation-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.amount-input {
    flex: 2;
}

.unit-select {
    flex: 1;
}

.calculation-btn {
    width: 100%;
    margin-bottom: 8px;
}

/* 右侧时间结果和信息区域 */
.results-panel {
    flex: 1;
    min-width: 300px;
}

/* 当前时间卡片 */
.current-time-card {
    text-align: center;
    padding: 24px;
    margin-bottom: 32px;
}

.current-date {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.current-time {
    font-size: 48px;
    font-weight: 700;
    color: #ff9800;
    margin-bottom: 8px;
    font-family: monospace;
}

.current-timezone {
    font-size: 14px;
    color: #888888;
}

/* 转换结果 */
.conversion-results {
    margin-bottom: 32px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.result-item {
    padding: 16px;
}

.result-label {
    font-size: 13px;
    color: #b0b0b0;
    margin-bottom: 4px;
}

.result-value {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    font-family: monospace;
}

/* 时间差计算 */
.time-difference {
    margin-bottom: 32px;
}

.date-pair {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.date-pair .date-time-picker {
    flex: 1;
    min-width: 250px;
}

.difference-result {
    padding: 24px;
    text-align: center;
    margin-top: 16px;
}

.difference-value {
    font-size: 24px;
    font-weight: 700;
    color: #ff9800;
    margin-bottom: 8px;
}

.difference-label {
    font-size: 14px;
    color: #b0b0b0;
}

/* 世界时钟 */
.world-clocks {
    margin-top: 32px;
}

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

.clock-item {
    padding: 16px;
    text-align: center;
}

.clock-city {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.clock-time {
    font-size: 18px;
    color: #ff9800;
    font-family: monospace;
    margin-bottom: 4px;
}

.clock-date {
    font-size: 13px;
    color: #b0b0b0;
}

.clock-offset {
    font-size: 12px;
    color: #888888;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .converter-container {
        flex-direction: column;
    }
    
    .time-input-panel {
        flex: 1 0 100%;
    }
    
    .date-time-picker {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-pair {
        flex-direction: column;
    }
    
    .current-time {
        font-size: 36px;
    }
}
