/* 时间戳转换器样式 */
.timestamp-converter-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
}

.timestamp-converter-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面头部 */
.calculator-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);
    }
}

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

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

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

.calculator-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);
}

/* 计算主体 */
.calculator-main {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* 输入区域 */
.calculator-inputs {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.converter-container {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .converter-container {
        flex-direction: column;
    }
    
    .swap-btn {
        transform: rotate(90deg);
        align-self: center;
    }
}

.converter-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.box-header h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-header i {
    color: #667eea;
}

.timestamp-input {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.timestamp-input label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.timestamp-input input[type="radio"] {
    accent-color: #667eea;
}

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

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

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

.result-box {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

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

.result-item span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'Monaco', 'Menlo', monospace;
}

.swap-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.swap-btn:hover {
    transform: rotate(180deg);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

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

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

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 快捷操作 */
.quick-actions {
    background: #fff3e6;
    border-radius: 12px;
    padding: 20px;
}

.quick-actions h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 结果展示 */
.calculator-results {
    padding: 30px;
}

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

.details-title i {
    color: #667eea;
}

.info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-section p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 常用时间戳 */
.common-timestamps {
    margin-bottom: 24px;
}

.timestamps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.timestamp-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timestamp-card:hover {
    background: #e8eef8;
    transform: translateY(-2px);
}

.timestamp-value {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.timestamp-label {
    font-size: 13px;
    color: #666;
}

/* 格式说明 */
.format-guide {
    margin-bottom: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.guide-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.guide-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.guide-item h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.guide-item p {
    margin: 0 0 6px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .timestamp-converter-section {
        padding: 30px 15px;
    }

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

    .calculator-inputs,
    .calculator-results {
        padding: 20px;
    }

    .timestamp-input {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons {
        flex-direction: column;
    }

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