/* ========================================
   时间戳转换工具样式
   ======================================== */

/* 主内容 */
.main-content { 
    width: 100%; 
    max-width: 1000px;
    height: calc(100vh - 120px); 
    display: flex; 
    align-items: center; 
    padding: 0 20px; 
    padding-bottom: 50px; 
    z-index: 10; 
}
.container { width: 100%; height: 100%; }
.tool-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-xl); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    width: 100%;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 当前时间条 */
.current-time-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ct-item { display: flex; flex-direction: column; gap: 4px; }
.ct-item label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.big-ts { font-size: 20px; font-weight: 700; font-family: var(--font-mono); color: var(--primary-color); }
.big-date { font-size: 16px; color: var(--text-primary); font-family: var(--font-mono); }

.btn-now {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-secondary); padding: 6px 12px; border-radius: 4px;
    cursor: pointer; transition: 0.2s; font-size: 12px;
}
.btn-now:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* 转换区 */
.converter-area {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.panel:first-child { border-right: 1px solid var(--border-color); }

.panel-header {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    flex-shrink: 0;
}
.panel-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

/* 表单组 */
.input-group label, .res-item label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
    font-weight: 600;
}
.input-wrapper {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    align-items: center;
}
.input-wrapper:focus-within { border-color: var(--primary-color); }

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
}

.input-wrapper select {
    background: rgba(255,255,255,0.1);
    border: none;
    border-left: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.btn-copy, .btn-now-fill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.2s;
    border-left: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-copy:hover, .btn-now-fill:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

.result-group { display: flex; flex-direction: column; gap: 12px; }
.res-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.res-item label { margin-bottom: 0; min-width: 80px; }
.res-item input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
}
.res-item .btn-copy { border-left: none; padding: 4px 8px; }

.btn-convert {
    margin-top: auto;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-convert:hover { background: var(--primary-hover, #2563eb); }

/* 响应式 */
@media (max-width: 768px) {
    .converter-area { flex-direction: column; }
    .panel:first-child { border-right: none; border-bottom: 1px solid var(--border-color); }
    .current-time-bar { flex-direction: column; align-items: stretch; text-align: center; }
}
