/* ========== 全站统一公用基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    background-color: #f5f7fa;
    padding: 0;
    min-width: 1200px; /* PC端固定最小宽度 */
}

/* ========== 全站统一导航栏 ========== */
.navbar {
    background-color: #28a745;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.navbar-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-logo {
    font-size: 20px;
    font-weight: 700;
}
.navbar-menu {
    display: flex;
    gap: 30px;
}
.navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}
.navbar-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ========== 全站统一页脚 ========== */
.footer {
    background-color: #333;
    color: #ccc;
    padding: 20px 15px;
    margin-top: 40px;
}
.footer-container {
    max-width: 1920px;
    margin: 0 auto;
}
.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

/* ========== 时间戳工具专属样式（基于公用样式扩展） ========== */
.timestamp-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin: 20px 0;
}
.timestamp-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #28a745;
}
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-primary {
    background-color: #28a745;
    color: #fff;
    flex: 1;
    min-width: 120px;
}
.btn-primary:hover {
    background-color: #218838;
}
.btn-reset {
    background-color: #6c757d;
    color: #fff;
    flex: 1;
    min-width: 120px;
}
.btn-reset:hover {
    background-color: #5a6268;
}
.result-box {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
    font-size: 14px;
    color: #333;
    min-height: 48px;
    word-break: break-all;
}
.tips {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* ========== 全站统一移动端适配（含导航+时间戳适配） ========== */
@media only screen and (max-width: 767px) {
    body {
        min-width: unset !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* 主导航统一适配 */
    .navbar {
        padding: 10px 15px !important;
    }
    .navbar-container {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    .navbar-menu {
        gap: 15px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .navbar-menu a {
        font-size: 13px !important; /* 统一14px，不偏小 */
    }

    /* 时间戳工具移动端适配（保留你的原有逻辑） */
    .timestamp-card {
        padding: 20px 15px !important;
    }
    .btn-group {
        flex-direction: column !important;
    }
    .btn-primary, .btn-reset {
        min-width: unset !important;
        width: 100% !important;
    }
}