
.timestamp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.toggle-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.toggle-group {
    display: inline-flex;
    background: #e1d2f7;
    border-radius: 12px;
    padding: 4px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.toggle-item {
    position: relative;
    z-index: 2;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s ease;
    color: #434e5d;
    border: none;
    background: transparent;
}
.toggle-item.active {
    color: #fff;
}
.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 50%;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #38d6b7, #231ec3);
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    z-index: 1;
}
.toggle-group .toggle-item:nth-child(2).active ~ .toggle-slider {
    left: 50%;
}

/* 当前时间展示 */
.current-time {
    width: 100%;
    min-height: 60px;
    background: #e3f2fd;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #1a2533;
    text-align: center;
    border: 1px solid #bbdefb;
}

/* 模块标题 */
.section-title {
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: left;
}

/* 输入框样式 */
.input-group {
    width: 100%;
    margin-bottom: 1.8rem;
}

.timestamp-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.timestamp-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: #fff;
}

/* 按钮组 */

.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 1.8rem;
    gap: 1.2rem;
}

.action-btn {
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#convertBtn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    flex: 1;
}
#convertBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

#getNowBtn {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
    flex: 1;
}
#getNowBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

#copyBtn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    flex: 1;
}
#copyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* 结果区域 */
.result-area {
    width: 100%;
    min-height: 130px;
    padding: 1.2rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f8fafc;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 说明板块样式 */
.info-box {
    width: 100%;
    max-width: 600px;
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (min-width: 1920px) {
    .info-box {
        max-width: 878px !important;
    }
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 0.6rem;
}
.info-box p {
    color: #555;
    margin: 0.3rem 0;
}

/* 工具专属移动端适配 */
@media (max-width: 768px) {

    .btn-group {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.8rem 1rem;
    }
    .current-time {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        min-height: 52px;
    }
    .toggle-item {
        padding: 8px 14px;
        font-size: 14px;
    }
}