/* ==================== 现代通用用户页与顶栏样式 (custom.css) ==================== */
* { box-sizing: border-box; }
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #eff0f3 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 仅隐藏复选框本身，绝不误杀汉堡按钮与侧边栏 */
#navSwitch, input[id="navSwitch"], .g_header2, .top-search, .head-fix {
    display: none !important;
}

/* 顶部吸顶导航栏样式 */
.g_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    background: #fff;
    padding: 0 12px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.g_logo a { display: flex; align-items: center; text-decoration: none; }
.g_logo img { height: 26px; display: block; }

.head-search {
    flex: 1;
    margin: 0 10px;
    position: relative;
}
.head-search form {
    display: flex;
    align-items: center;
    height: 32px;
    background: #f2f4f8;
    border-radius: 16px;
    border: 1px solid #e0e4ec;
    overflow: hidden;
    padding-left: 10px;
}
.head-search input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #333;
    outline: none;
}
.head-search button {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.head-search button svg {
    width: 14px;
    height: 14px;
    stroke: #666;
    stroke-width: 2.5;
    fill: none;
}

/* 搜索热词下拉菜单 */
.search-dropdown {
    display: none;
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 10px;
    z-index: 100;
}
.resou-title { font-size: 11px; color: #999; margin-bottom: 6px; }
.resou-list { display: flex; flex-wrap: wrap; gap: 6px; }
.resou-list a { font-size: 12px; color: #333; background: #f2f4f8; padding: 3px 8px; border-radius: 4px; text-decoration: none; }

.s_r { display: flex; align-items: center; }
.s_c { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #333; text-decoration: none; }

/* 微胶囊返回栏样式 */
.back-nav-row {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.app-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 24px !important;
    padding: 0 8px 0 4px !important;
    border-radius: 9999px !important;
    background: #f2f4f8 !important;
    border: 1px solid #e0e4ec !important;
    font-size: 11px !important;
    color: #444 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: absolute;
    left: 14px;
    z-index: 2;
}

/* ==================== 登录/注册/找密卡片：自动垂直水平居中 ==================== */
.login-card {
    background: #fff;
    width: calc(100% - 24px);
    max-width: 380px;
    margin: auto !important;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
    background: #f8f9fa;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
}
.form-group input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    padding-left: 8px;
}
.form-group svg {
    width: 18px;
    height: 18px;
    stroke: #999;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}
.btn-brand {
    width: 100%;
    height: 44px;
    background: #1481eb !important;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}
.btn-brand:active { opacity: 0.85; }
.log-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}
.log-btn a { color: #1481eb; text-decoration: none; }
.log-btn .a-gry { color: #999; }
.pwd_img img { height: 32px; border-radius: 4px; cursor: pointer; }

/* 找回方式选项卡片样式 */
.find-type-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.find-link-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #ebeef5;
    padding: 3px 16px;
    border-radius: 8px;
    color: #333 !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s;
    max-width: 180px;
    margin: 0 auto;
    width: 100%;
}
.find-link-item:active {
    background: #f2f4f8;
    border-color: #dcdfe6;
}
.find-link-item svg {
    position: absolute;
    right: 16px;
    stroke: #999;
    flex-shrink: 0;
}

/* ==================== 留言板美化样式 ==================== */
.gbook-main-wrap {
    width: calc(100% - 16px);
    margin: 10px auto 20px;
    box-sizing: border-box;
    flex: 1 0 auto;
}
@media screen and (min-width: 641px) {
    .gbook-main-wrap {
        max-width: 1440px !important;
        width: calc(100% - 48px) !important;
        margin: 14px auto 24px !important;
    }
}

.gbook-nav-bar {
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #f0f2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gbook-nav-bar .page-title {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gbook-nav-bar .page-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #1481eb;
    border-radius: 2px;
}

.gbook-card-box {
    background: #fff;
    padding: 16px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}
@media screen and (min-width: 641px) {
    .gbook-card-box {
        padding: 20px;
    }
}

.gbook-form-panel {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.gbook-form-panel .panel-cue {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
}
.gbook-form-panel textarea.gbook_content {
    width: 100%;
    height: 90px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}
.gbook-form-panel textarea.gbook_content:focus {
    border-color: #1481eb;
}

.form-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.action-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}
.action-left input.mac_verify {
    width: 75px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    outline: none;
    background: #fff;
}
.action-left .mac_verify_img {
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
}
.action-left .word-limit {
    color: #999;
    font-size: 12px;
}
.action-left .gbook_remaining {
    color: #1481eb;
    font-weight: bold;
}
.gbook-form-panel .gbook_submit {
    background: #1481eb;
    color: #fff;
    border: none;
    border-radius: 18px;
    height: 34px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.gbook-form-panel .gbook_submit:hover {
    background: #106ec9;
}

.gbook-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msg-card-item {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    padding: 14px;
}
.msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.msg-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.msg-user-badge .floor-tag {
    background: #e9f3fc;
    color: #1481eb;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.msg-user-badge .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.msg-user-badge .user-ip {
    font-size: 12px;
    color: #999;
}
.msg-header .msg-time {
    font-size: 12px;
    color: #aaa;
}
.msg-body-content {
    font-size: 13px;
    color: #444;
    line-height: 22px;
    white-space: pre-wrap;
    word-break: break-all;
}

.admin-reply-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-left: 3px solid #1481eb;
    border-radius: 4px 6px 6px 4px;
}
.reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.reply-title {
    font-size: 12px;
    font-weight: 600;
    color: #1481eb;
}
.reply-time {
    font-size: 11px;
    color: #aaa;
}
.reply-body-content {
    font-size: 12px;
    color: #666;
    line-height: 20px;
    word-break: break-all;
}

