/* ============================================
Unix时间戳工具样式
============================================ */

/* Input Group Text 样式 */
.tool-page-content .input-group-text {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 160px;
    flex-shrink: 0;
    justify-content: flex-start;
    white-space: nowrap;
    box-sizing: border-box;
}

.tool-page-content .input-group-text i {
    font-size: 1.1rem;
    color: #6366f1;
}

.tool-page-content .input-group-text:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: #9ca3af;
}

/* 复制按钮样式 */
.tool-page-content .copyCode,
.tool-page-content .btn-outline-secondary.copyCode {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    width: 80px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.tool-page-content .copyCode::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tool-page-content .copyCode:hover {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tool-page-content .copyCode:hover::before {
    width: 0;
    height: 0;
}

.tool-page-content .copyCode:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.tool-page-content .copyCode i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.tool-page-content .copyCode:hover i {
    transform: scale(1);
}

/* 转换按钮样式 */
.tool-page-content .btn-primary[id*="change"],
.tool-page-content .btn-primary[id*="bj-change"],
.tool-page-content .btn-primary[id*="unix-change"] {
    background: #6b7280;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    width: 90px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.tool-page-content .btn-primary[id*="change"]:active,
.tool-page-content .btn-primary[id*="bj-change"]:active,
.tool-page-content .btn-primary[id*="unix-change"]:active {
    box-shadow: 0 1px 3px rgba(107, 114, 128, 0.3);
}

.tool-page-content .btn-primary[id*="change"] i,
.tool-page-content .btn-primary[id*="bj-change"] i,
.tool-page-content .btn-primary[id*="unix-change"] i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

/* Input Group 整体样式优化 */
.tool-page-content .input-group {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.tool-page-content .input-group .form-control {
    border-left: none;
    border-right: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.tool-page-content .input-group .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.tool-page-content .input-group .form-control:first-child {
    border-left: 1px solid #d1d5db;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.tool-page-content .input-group .form-control:last-child {
    border-right: 1px solid #d1d5db;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.tool-page-content .input-group-text:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.tool-page-content .input-group-text:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 占位元素样式 - 用于第一行对齐 */
.tool-page-content .input-group-placeholder {
    display: block;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / 10%) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: none;
    border-right: none;
    border-radius: 8px;
    box-sizing: border-box;
    opacity: 0.6;
}
