/* 时间工具样式 */
.time-tool-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
}

.time-tool-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面头部 */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tool-title i {
    font-size: 32px;
}

.tool-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.tool-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    backdrop-filter: blur(10px);
}

/* 工具主体 */
.tool-main {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
}

@media (max-width: 992px) {
    .tool-main {
        grid-template-columns: 1fr;
    }
}

/* 主面板 */
.main-panel {
    padding: 30px;
    border-right: 1px solid #eee;
}

@media (max-width: 992px) {
    .main-panel {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* 侧边面板 */
.side-panel {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tab容器 */
.tab-container {
    height: 100%;
}

.tab-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #667eea;
}

.tab-btn.active {
    background: #667eea;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 计算区域 */
.calc-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
}

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

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 结果框 */
.result-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.result-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.result-summary {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #888;
}

.result-summary span {
    color: #333;
    font-weight: 500;
}

/* 倒计时显示 */
.countdown-display {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.countdown-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    min-width: 80px;
}

.countdown-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-message {
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 时区转换显示 */
.timezone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.timezone-arrow {
    font-size: 24px;
    color: #667eea;
}

.timezone-item {
    text-align: center;
}

.timezone-label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.timezone-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* 格式化显示 */
.format-display input {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    border: 2px dashed #ddd;
    border-radius: 10px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.format-examples {
    margin-top: 20px;
}

.format-examples h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.example-item {
    font-size: 13px;
    color: #666;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.example-item code {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
}

/* 提示卡片 */
.tips-card {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #007bff;
}

.tips-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0c63e4;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
}

.tips-list li {
    font-size: 14px;
    color: #0c63e4;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

/* 信息卡片 */
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timezone-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timezone-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.timezone-row span:first-child {
    color: #667eea;
    font-weight: 600;
}

.timezone-row span:last-child {
    color: #666;
}

/* 快捷工具 */
.quick-tools {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.quick-tools h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-tools .btn {
    margin-bottom: 8px;
}

.quick-tools .btn:last-child {
    margin-bottom: 0;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.toast-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .time-tool-section {
        padding: 40px 15px;
    }

    .tool-title {
        font-size: 28px;
    }

    .tool-subtitle {
        font-size: 16px;
    }

    .main-panel,
    .side-panel {
        padding: 20px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .calc-section {
        padding: 16px;
    }

    .countdown-display {
        gap: 8px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 12px;
    }

    .countdown-value {
        font-size: 24px;
    }

    .example-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}