* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 80px 1.5rem 2rem;
    margin: 0;
}
.navbar {
    height: 80px !important;
}

.container-main {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 5px 15px 2px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
	margin-top: 20px;
}


 h1 {
        font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: #333;
    text-align: center;
}

.header h1 i {
    color: #0D6EFD;
    margin-right: 10px;
}
.subtitle {
        text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.tool-intro {
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 4px solid #0D6EFD;
}

.tool-intro p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.tool-intro strong {
    color: #0b1a33;
}

.main-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

/* ===== 转换面板 ===== */
.converter-panel {
    flex: 1;
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9edf4;
}

.panel-title {
    font-weight: 600;
    color: #0b1a33;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0D6EFD;
    padding-bottom: 0.4rem;
    display: inline-block;
}

.control-group {
    margin-bottom: 0.8rem;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.control-row label {
    font-size: 0.85rem;
    color: #475569;
    min-width: 60px;
}

.control-input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: 1px solid #dce2ec;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    outline: none;
    background: #ffffff;
    color: #0b1a33;
    width: 100%;
}

.control-input:focus {
    border-color: #0D6EFD;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.timestamp-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.3rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 15px;
    height: 15px;
    accent-color: #0D6EFD;
    cursor: pointer;
}

.btn-convert {
    padding: 0.4rem 1.2rem;
    background: #0D6EFD;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    margin-left: auto;
}

.btn-convert:hover {
    background: #0b5ed7;
    transform: scale(1.02);
}

.btn-convert:active {
    transform: scale(0.95);
}

/* ===== 结果组 ===== */
.result-group {
    margin-top: 1rem;
    background: #ffffff;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f4f9;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #64748b;
    font-size: 0.85rem;
}

.result-value {
    color: #0b1a33;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.result-value.highlight {
    color: #0D6EFD;
    font-weight: 700;
    font-size: 1rem;
}
/* ===== 当前时间戳 ===== */
.current-timestamp {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
    border-radius: 1rem;
    text-align: center;  /* 水平居中 */
}

.current-header {
    display: flex;
    flex-direction: column;  /* 纵向排列 */
    align-items: center;     /* 水平居中 */
    gap: 0.4rem;
}

.current-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.current-header span:first-child {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    color: rgba(255,255,255,0.85);
}

#currentTimestamp {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #ffffff;
}

.current-time {
    font-size: 1rem;
    opacity: 0.85;
    font-family: 'Courier New', monospace;
    color: rgba(255,255,255,0.8);
}

/* ===== 信息区 ===== */
.info-section {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-radius: 0.8rem;
    border: 1px solid #e9edf4;
}

.info-text {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.info-text i {
    color: #0D6EFD;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.info-text p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-text strong {
    color: #0b1a33;
}


@media (max-width: 992px) { .d-lg-flex { display: none; } }

/* ===== 响应式 ===== */
@media (max-width: 820px) {
    .main-layout {
        flex-direction: column;
    }
    .converter-panel {
        flex: 1;
    }
    .current-timestamp {
        flex-direction: column;
        text-align: center;
    }
    .current-header {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .container-main {
        padding: 1rem;
    }
    .converter-panel {
        padding: 1rem;
        border-radius: 1rem;
    }
    .header h1 {
        font-size: 1.3rem;
    }
    .header .subtitle {
        display: none;
    }
    .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
    }
    .control-row label {
        min-width: auto;
    }
    .timestamp-type {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .btn-convert {
        width: 100%;
        margin-left: 0;
    }
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .result-value {
        max-width: 100%;
        text-align: left;
        word-break: break-all;
    }
    .current-header span:nth-child(2) {
        font-size: 1.2rem;
    }
}