

.gbook-main {
    padding: calc(var(--topbar-h) + 15px) 0 60px;   /* 面包屑与顶栏留 15，同详情页 */
}

.gbook-container {
    /* 容器不限宽（用户要求，同 show-container） */
    padding: 0 var(--page-pad-r) 0 var(--page-pad);
}

.gbook-page-hd {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 10px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.gbook-page-title {
    font-size: 24px;      /* 同全站 .section-title（24/700、行高 28） */
    font-weight: 700;
    line-height: 28px;
    color: var(--text-title);
}

.gbook-count {
    font-size: 14px;
    color: var(--text-2);
}
.gbook-count em { font-style: normal; color: var(--text-1); }

.gbook-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}

.gbook-list-wrap {
    /* 2026-09-30 使用者要求：每则留言做成白底卡片（同全站 .rank-col 的 1px 框＋圆角 5），
       外层不再铺灰底——原本外层与留言同为 --bg-card，只靠 #EEE 细线分隔，几乎看不出边界 */
    background: transparent;
    border: none;

    min-width: 0;
}

.gbook-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.gbook-item {
    display: flex;
    align-items: center;          /* 头像对整张卡片垂直置中（使用者 2026-10-01 要求） */
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}

.gbook-item:hover {
    border-color: var(--border-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.gbook-avatar {
    width: 40px;                  /* 同评论区 .cmt-avatar：青色圆＋白字 */
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-grad);
    color: var(--on-accent);
    font-size: 16px;
    text-transform: uppercase;
}

.gbook-body {
    flex: 1;
    min-width: 0;
}

/* 与 44px 头像同高，昵称／时间跟头像垂直置中，内容从头像下缘开始 */
.gbook-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-bottom: 4px;
}

.gbook-uname {
    font-size: 14px;
    color: var(--text-1);
    overflow-wrap: anywhere;
}

.gbook-time {
    font-size: 12px;
    color: var(--text-3);
}

.gbook-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2);
    word-break: break-word;
}

.gbook-reply {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.gbook-reply .mac-icon { flex-shrink: 0; color: var(--accent-2); margin-top: 3px; }

.gbook-reply strong {
    color: var(--accent);
    white-space: nowrap;
}

.gbook-empty {
    padding: 48px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gbook-empty-back {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-pill);
    color: var(--text-1);
    font-size: 13px;
    transition: background 0.2s;
}
.gbook-empty-back:hover { background: var(--fill-1); }

.gbook-list-wrap .pagination {
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    margin: 0;
}

.gbook-list-wrap .pg-btn,
.gbook-list-wrap .pg-num {
    border-radius: 50%;
    border: none;
    margin-left: 0;
    background: var(--bg-elevated);
    color: var(--text-2);
}

.gbook-list-wrap .pg-btn:hover,
.gbook-list-wrap .pg-num:hover {
    background: var(--accent);
    color: var(--on-accent);
}

.gbook-list-wrap .pg-num.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.gbook-list-wrap .pg-info {
    margin-left: auto;
}

.gbook-form-wrap {
    padding: 0 15px 15px;         /* 同排行栏 .rank-col：白底 1px 框，标题底线 */
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: sticky;
    top: calc(var(--topbar-h) + 12px);
    min-width: 0;
}

.gbook-form-title {
    margin: 0 0 15px;
    padding: 12px 0 10px;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: var(--text-title);
}

.gbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;                   /* main.css 的 .gbook-form 给留言举报页用（灰底框），这里还原 */
    background: none;
    border: 0;
}

.gbook-textarea {
    width: 100%;                  /* 同评论区 .cmt-textarea */
    min-height: 120px;
    margin: 0;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.gbook-textarea:focus {
    border-color: var(--accent);
}

.gbook-remain {
    font-size: 12px;
    color: var(--text-3);
    text-align: right;
}

.gbook-remain em {
    color: var(--accent);
    font-style: normal;
}

.gbook-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gbook-verify-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text-1);
    font-size: 13px;
    outline: none;
}

.gbook-verify-input:focus {
    border-color: var(--accent);
}

.gbook-submit-btn {
    display: inline-flex;          /* 同全站 .hl-btn-gradient：青色圆角 */
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 30px;
    background: var(--accent-grad);
    color: var(--on-accent);
    font-size: 14px;
    font-weight: 400;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color .15s;
}

.gbook-submit-btn:hover {
    background: var(--accent-hover);
}

@media (max-width: 900px) {
    .gbook-layout {
        grid-template-columns: 1fr;
    }

    .gbook-form-wrap {
        position: static;
    }
}

@media (max-width: 600px) {

    .gbook-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .gbook-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .gbook-page-title { font-size: 18px; line-height: 26px; }   /* 同全站手机版 .section-title */
    .gbook-form-title { font-size: 16px; }

    .gbook-form-wrap {
        padding: 0 12px 12px;
    }

    .gbook-main {
        padding-bottom: 80px;
    }
}

@media (min-width: 1200px) {
    html,
    body {
        overflow-x: visible;
        overflow-y: visible;
    }
}

.gbook-captcha-img {
    height: 36px;
    width: auto;
    max-width: 100%;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    vertical-align: middle;
}
