/* ===============================
   全局重置 & 基础样式
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #3498db;
}

img {
    max-width: 100%;
    display: block;
}

input, button, select, textarea {
    font-family: inherit;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
}

button {
    background: #2c3e50;
    color: #fff;
    cursor: pointer;
    transition: 0.25s;
    border: none;
}

button:hover {
    background: #34495e;
}

/* ===============================
   顶部导航栏
=============================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 60px;
}

/* PC 端菜单 */
.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 500;
}

.nav-left img {
    height: 32px;
    width: auto;
}

/* ===============================
   移动端头部布局（左LOGO + 居中文字 + 右汉堡）
=============================== */
.mobile-header {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-link img {
    height: 38px; /* LOGO 放大 */
    width: auto;
}

.site-name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}
.site-name a {
    color: #333;
}

.hamburger {
    font-size: 24px; /* 汉堡适中大小 */
    background: none;
    border: none;
    color: #333;
    padding: 0;
    line-height: 1;
    display: none;
}

/* ===============================
   手机端响应式
=============================== */
@media (max-width: 768px) {
    .nav-left, .nav-right {
        display: none !important;
    }
    .mobile-header {
        display: flex !important;
    }
    .hamburger {
        display: block !important;
    }

    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 15px 20px;
        z-index: 998;
        display: none;
    }
    .mobile-menu.show {
        display: block;
    }
    .mobile-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f1f1f1;
    }
}

/* ===============================
   主体容器
=============================== */
.container {
    max-width: 1200px !important;
    width: 94% !important;
    margin: 85px auto 30px !important;
    padding: 0 10px !important;
    flex: 1;
}

/* ===============================
   卡片样式
=============================== */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: 0.25s;
    width: 100%;
}

/* ===============================
   列表 & 按钮样式
=============================== */
.user-menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}
.user-menu a {
    padding: 6px 14px;
    border-radius: 6px;
    background: #f1f3f5;
}
.user-menu a.active {
    background: #2c3e50;
    color: #fff !important;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.list-item {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    line-height: 1.7;
}
.url-box {
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2c3e50;
}
.url-item {
    margin: 4px 0;
}
.url-item a {
    color: #3498db;
    word-break: break-all;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.btn-sm {
    padding: 6px 12px;
    background: #2c3e50;
    color: #fff !important;
    border-radius: 5px;
    font-size: 13px;
}
.btn-sm.danger { background: #e74c3d; }
.btn-sm.success { background: #27ae60; }

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
}
.badge.wait {background:#f39c12;}
.badge.success {background:#27ae60;}
.badge.danger {background:#e74c3c;}

.empty {
    padding: 30px 0;
    text-align: center;
    color: #999;
}

/* ===============================
   表单
=============================== */
.form-box {
    max-width: 700px !important;
    width: 100% !important;
    margin: 0 auto !important;
}
.form-box p {
    margin-bottom: 16px;
}
.form-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-box input,
.form-box select,
.form-box textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
}
.btn-full {
    width: 100%;
    padding: 11px;
    font-size: 15px;
}

/* ===============================
   首页 / 帮助中心网格
=============================== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}
@media (max-width: 768px) {
    .app-grid { grid-template-columns: 1fr; }
    .help-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .help-grid { grid-template-columns: 1fr; }
}
.help-item {
    border: 1px solid #eee;
    padding: 18px;
    border-radius: 10px;
}
.content-box {
    line-height: 1.9;
}

/* ===============================
   底部版权
=============================== */
.footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 30px 15px;
    margin-top: 40px;
    text-align: center !important;
    color: #888;
    font-size: 14px;
    width: 100%;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center !important;
}
.footer-content p {
    margin: 6px 0 !important;
    text-align: center !important;
    width: 100% !important;
}
.footer-content a {
    color: #888;
}