/* 时间戳转换器样式 */

/* 当前时间显示 */
.current-time-display {
    text-align: center;
    padding: 20px;
}

body {
    margin: 0;
}

.current-time-display h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #495057;
    font-weight: 600;
}

.current-timestamp {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.current-datetime {
    font-size: 16px;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

/* 转换器部分 */
.converter-section {
    margin-top: 20px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.category-title svg {
    color: #667eea;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

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

.form-input[type="datetime-local"] {
    font-family: 'Courier New', monospace;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

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

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* 结果卡片 */
.result-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result-content {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    white-space: pre-line;
    min-height: 60px;
    word-break: break-all;
}

/* 错误信息 */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "⚠️";
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .current-timestamp {
        font-size: 24px;
    }
    
    .current-datetime {
        font-size: 14px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

@media (max-width: 480px) {
    .current-time-display {
        padding: 15px;
    }
    
    .current-timestamp {
        font-size: 20px;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-content {
        font-size: 12px;
    }
}