/* ABCDE网站 前台样式 V1.1 */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #eef3f9;
    color: #33404f;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #2563eb; text-decoration: none; }
a:hover { color: #1748b8; }

/* ===== 顶部 ===== */
.topbar {
    background: #1f66e0;
    box-shadow: 0 2px 10px rgba(24, 71, 160, 0.18);
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 66px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.logo a {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    max-height: 48px;
    display: block;
}

/* 拒绝页顶栏右侧入口：保持蓝色顶栏上的对比度 */
.topnav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.topnav a { color: #fff; opacity: 0.9; }
.topnav a:hover { color: #fff; opacity: 1; text-decoration: underline; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}

.top-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.top-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.top-nav a,
.top-nav .user-tag {
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    line-height: normal;
}

.top-nav a:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.top-nav .user-tag {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== 主内容 ===== */
.page {
    width: 100%;
    max-width: 1240px;
    margin: 24px auto 32px;
    background: #ffffff;
    border: 1px solid #e3eaf4;
    border-radius: 10px;
    padding: 0 30px 30px;
    flex: 1;
    box-shadow: 0 8px 28px rgba(28, 52, 92, 0.06);
}

.notice {
    margin: 0 -30px;
    padding: 14px 30px;
    border-bottom: 1px solid #eef2f8;
    border-radius: 10px 10px 0 0;
    text-align: center;
    color: #4b5b72;
    font-size: 13.5px;
    background: #f8fbff;
}

.page-title {
    font-size: 21px;
    font-weight: 700;
    margin: 26px 0 6px;
    color: #1f2f4c;
}

.page-subtitle {
    color: #7d8ba1;
    font-size: 13px;
    margin-bottom: 16px;
}

.breadcrumb {
    font-size: 13px;
    color: #8b98ac;
    margin: 18px 0 4px;
}

.breadcrumb a { color: #4c7bd9; }

/* ===== 版块 ===== */
.section-block {
    margin-top: 30px;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding-bottom: 0;
}

.section-head .section-name {
    font-size: 19px;
    font-weight: 700;
    color: #1f2f4c;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 6px;
}

.section-head .section-name a { border-bottom: 0; }

.section-head .section-name:before {
    content: "📁";
    font-size: 18px;
}

.section-head .section-name a { color: #1f2f4c; }

.section-head .section-info {
    font-size: 12px;
    color: #98a4b8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-height: 96px;
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 14px;
    color: #33404f;
    gap: 7px;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    position: relative;
}

.card:hover {
    border-color: #b9d1fa;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.card .card-name {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #2563eb;
    text-align: center;
}

.card .card-desc {
    width: 100%;
    font-size: 12px;
    color: #8b98ac;
    line-height: 1.55;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .card-sub {
    font-size: 11.5px;
    color: #b07a12;
    background: #fff8e8;
    border-radius: 4px;
    padding: 1px 7px;
}

.card .card-sub.muted-tag { color: #6f7d92; background: #f3f6fa; }

.empty-hint {
    padding: 26px;
    text-align: center;
    color: #98a4b8;
    background: #fbfcfe;
    border: 1px dashed #dfe7f2;
    border-radius: 8px;
}
/* ===== 分页 ===== */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 30px 0 6px;
    flex-wrap: wrap;
}

.pg-btn {
    padding: 6px 14px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #4a5a75;
    font-size: 13px;
    line-height: 20px;
    border-radius: 6px;
}

.pg-btn:hover { border-color: #2563eb; color: #2563eb; }

.pg-btn.disabled { color: #b9c3d3; border-color: #e8edf5; cursor: default; }

.pg-num {
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    color: #4a5a75;
    font-size: 13px;
    background: #fff;
}

.pg-num:hover { border-color: #2563eb; color: #2563eb; }

.pg-num.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.pg-dot { color: #98a4b8; padding: 0 2px; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; margin: 14px 0; }

table.data {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 8px;
}

table.data th, table.data td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f8;
}

table.data th {
    background: #f7faff;
    font-weight: 600;
    color: #4a5a75;
    white-space: nowrap;
}

table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #fafcff; }

table.data td.num { width: 70px; color: #7d8ba1; }

.table-empty { text-align: center; color: #98a4b8; padding: 34px; }

/* ===== 表单 ===== */
.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

.search-bar input[type="text"], .search-bar select {
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 160px;
    color: #33404f;
}

.search-bar input[type="text"]:focus, .search-bar select:focus {
    outline: none;
    border-color: #7fa9ef;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar-wide { flex-wrap: nowrap; }
.search-bar-wide .search-input { flex: 1 1 auto; width: auto; min-width: 240px; }
.search-bar-wide select { flex: 0 0 auto; min-width: 130px; }
.search-bar-wide .search-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .search-bar-wide { flex-wrap: wrap; }
    .search-bar-wide .search-input { min-width: 100%; }
    .search-bar-wide .search-right { width: 100%; margin-left: 0; justify-content: flex-end; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s;
}

.btn:hover { background: #1748b8; border-color: #1748b8; color: #fff; }

.btn.ghost {
    background: #fff;
    color: #2563eb;
    border-color: #c7d8f2;
}

.btn.ghost:hover { background: #f2f7ff; color: #1748b8; }

.btn.small { padding: 4px 10px; font-size: 12.5px; min-height: 28px; }

.btn.danger { background: #d9534f; border-color: #d9534f; }
.btn.danger:hover { background: #c3413d; border-color: #c3413d; }

.btn.light { background: #eef4ff; color: #2563eb; border-color: #d7e4fb; }

.form-box {
    width: 96%;
    max-width: 1120px;
    margin: 18px auto;
}

.form-row { margin-bottom: 16px; }

.form-row > label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #33404f;
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    font-size: 14px;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    color: #33404f;
}

.form-row textarea { min-height: 150px; resize: vertical; }

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: #7fa9ef;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row .hint, .hint { font-size: 12px; color: #98a4b8; margin-top: 4px; }

/* 新帖附件 */
.attach-field {
    padding: 12px 14px;
    border: 1px dashed #dbe3ef;
    border-radius: 8px;
    background: #fbfcfe;
}

.attach-field input[type="file"] {
    width: 100%;
    font-size: 13px;
    color: #5a6b83;
}

.attach-field input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 14px;
    border: 1px solid #d7e4fb;
    border-radius: 6px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
}

.attach-picked { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12.5px; color: #5a6b83; }
.attach-picked .picked-item { display: flex; gap: 8px; align-items: center; }
.attach-picked .picked-size { color: #98a4b8; }

.post-attachments {
    margin-top: 14px;
    padding: 12px 12px 18px;
    border-top: 1px dashed #e2e9f3;
}

.post-attachments .attach-title { margin-bottom: 8px; padding: 0 10px; font-size: 13px; font-weight: 600; color: #4a5a75; }
.post-attachments ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.post-attachments li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    flex-wrap: wrap;
    padding: 7px 10px;
    border: 1px solid #eef2f8;
    border-radius: 6px;
    background: #fafcff;
    font-size: 13.5px;
    line-height: 1.6;
}
.post-attachments .attach-file { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 1 1 240px; }
.post-attachments .attach-name { display: block; min-width: 0; color: #2563eb; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-attachments .attach-name:hover { text-decoration: underline; }
.post-attachments .attach-size { flex-shrink: 0; color: #98a4b8; font-size: 12.5px; }
.post-attachments .attach-actions { display: flex; gap: 8px; flex-shrink: 0; }
.post-attachments .attach-link {
    padding: 2px 10px;
    border: 1px solid #d7e4fb;
    border-radius: 5px;
    background: #f2f7ff;
    color: #2563eb;
    font-size: 12.5px;
    text-decoration: none;
    white-space: nowrap;
}
.post-attachments .attach-link:hover { background: #e6efff; text-decoration: none; }

/* ===== 附件在线预览 ===== */
.attach-preview {
    margin-top: 16px;
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.attach-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid #e6ecf5;
    background: #f7faff;
    font-size: 13px;
    color: #526079;
}

.attach-preview-info { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; min-width: 0; }
.attach-preview-title { font-weight: 600; color: #1f2f4c; word-break: break-all; }
.attach-preview-meta { color: #8b98ac; white-space: nowrap; }
.attach-preview-frame { display: block; width: 100%; height: calc(100vh - 300px); min-height: 520px; border: 0; background: #f4f6fa; }
.attach-preview-image { padding: 18px; text-align: center; background: #f4f6fa; }
.attach-preview-image img { max-width: 100%; max-height: calc(100vh - 320px); border-radius: 6px; }
.attach-preview-text {
    margin: 0;
    padding: 18px 22px;
    max-height: calc(100vh - 300px);
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, Menlo, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #2b3648;
}
.attach-preview-tip { padding: 9px 18px; border-bottom: 1px solid #f3e3c4; background: #fff7e8; color: #8a5a12; font-size: 12.5px; }
.attach-preview-note { padding: 46px 22px; text-align: center; }
.attach-preview-note-title { margin-bottom: 10px; font-size: 16px; font-weight: 600; color: #1f2f4c; }
.attach-preview-note p { margin-bottom: 14px; color: #6f7d92; }
.attach-preview-note .btn { margin-top: 4px; }
.muted { color: #98a4b8; font-size: 13px; }
.req { color: #d9534f; }

.check-group { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.check-group label.inline, label.inline { font-weight: normal; display: inline-flex; align-items: center; gap: 6px; }

.form-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; align-items: center; }

.alert {
    padding: 11px 15px;
    margin: 16px 0;
    font-size: 14px;
    border-radius: 6px;
}

.alert-ok { background: #eef8f1; border: 1px solid #bfe3c8; color: #256b32; }
.alert-error { background: #fdecea; border: 1px solid #f5c6cb; color: #a22; }

.deny-box {
    padding: 50px 20px;
    text-align: center;
}

.deny-box h2 { font-size: 20px; color: #1f2f4c; margin-bottom: 10px; }
.deny-box p { color: #6f7d92; margin-bottom: 18px; }

/* ===== 轻论坛 ===== */
.forum-list { margin-top: 16px; }

.forum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.forum-row:hover { border-color: #b9d1fa; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08); }

.forum-row .forum-name { font-size: 15px; font-weight: 700; color: #2563eb; }
.forum-row .forum-desc { font-size: 12.5px; color: #8b98ac; margin-top: 3px; }
.forum-row .forum-meta { font-size: 12px; color: #98a4b8; white-space: nowrap; }

.rules-box {
    background: #f6faff;
    border: 1px solid #dfeafb;
    border-left: 3px solid #7fa9ef;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 14px 0 6px;
    font-size: 13px;
    color: #52617a;
    line-height: 1.8;
}

.rules-box .rules-title { font-weight: 700; color: #2563eb; margin-bottom: 4px; }

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 4px;
}

.category-chips a {
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #5a6b83;
    font-size: 13px;
}

.category-chips a:hover { border-color: #9dbcfb; color: #2563eb; }

.category-chips a.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.thread-list { margin-top: 14px; }

.thread-row {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f8;
    align-items: center;
}

.thread-row:hover { background: #fafcff; }

.thread-row .thread-title { flex: 1; font-size: 15px; color: #25344f; font-weight: 600; }
.thread-row .thread-title a { color: #25344f; }
.thread-row .thread-title a:hover { color: #2563eb; }
.thread-row .thread-meta { font-size: 12px; color: #98a4b8; white-space: nowrap; }

.cat-badge {
    display: inline-block;
    background: #eef4ff;
    color: #2563eb;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11.5px;
    margin-right: 6px;
    font-weight: normal;
    vertical-align: 1px;
}

.post-box {
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    margin-top: 18px;
    background: #fff;
    overflow: hidden;
}

.post-box .post-head {
    background: #f7faff;
    border-bottom: 1px solid #e6ecf5;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #7d8ba1;
}

.post-box .post-body {
    padding: 20px 22px;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.post-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.reply-list { margin-top: 24px; }

.reply-item {
    border-bottom: 1px solid #eef2f8;
    padding: 16px 4px;
}

.reply-item .reply-head {
    font-size: 12px;
    color: #8b98ac;
    margin-bottom: 7px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.reply-item .reply-body { font-size: 14px; line-height: 1.8; word-break: break-word; }

.thread-form {
    width: 96%;
    max-width: 1120px;
    margin: 10px auto 0;
}

.thread-form .form-row > label { font-size: 14px; }

/* ===== 相册 ===== */
.category-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 22px;
}

.category-nav a {
    padding: 6px 16px;
    border: 1px solid #dbe3ef;
    background: #fff;
    font-size: 13.5px;
    color: #5a6b83;
    border-radius: 20px;
}

.category-nav a.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.album-item { display: block; }

.album-cover {
    width: 100%;
    padding-top: 75%;
    background: #f2f6fc center/cover no-repeat;
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    position: relative;
}

.album-name {
    padding: 9px 4px;
    font-size: 14px;
    color: #33404f;
    text-align: center;
}

.album-intro {
    background: #f7faff;
    border-left: 3px solid #7fa9ef;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin: 14px 0;
    color: #52617a;
    font-size: 14px;
}

.album-meta { color: #98a4b8; font-size: 12px; margin-bottom: 18px; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.photo-item {
    cursor: zoom-in;
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    background: #fafcff;
    overflow: hidden;
}

.photo-item img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.photo-item .photo-name {
    text-align: center;
    font-size: 13px;
    padding: 7px 6px;
    color: #5a6b83;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 86vw;
    max-height: 82vh;
    transition: transform 0.15s;
    background: #111;
    border-radius: 4px;
}

.lightbox .lb-tools {
    position: absolute;
    top: 18px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lightbox .lb-tools button {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 14px;
    padding: 7px 12px;
    cursor: pointer;
    border-radius: 6px;
}

.lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 64px;
    cursor: pointer;
    border-radius: 6px;
}

.lightbox .lb-nav.prev { left: 18px; }
.lightbox .lb-nav.next { right: 18px; }

.lightbox .lb-caption {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    text-align: center;
    color: #eee;
    font-size: 14px;
}

/* ===== 产品分类 ===== */
.product-search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.product-search .search-input {
    flex: 1;
    min-width: 240px;
    height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    color: #33404f;
    background: #fff;
}

.product-search .search-input:focus {
    outline: none;
    border-color: #7fa9ef;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.product-search .btn { height: 46px; padding: 0 24px; border-radius: 8px; }
.product-search .btn.clear { background: #eef1f6; border-color: #eef1f6; color: #6f7d92; }
.product-search .btn.clear:hover { background: #e3e8f1; color: #4a5a75; }

.cat-tabs, .subcat-tabs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cat-tabs a, .subcat-tabs a {
    padding: 7px 18px;
    border-radius: 22px;
    background: #f3f6fb;
    border: 1px solid #eef2f8;
    color: #4a5a75;
    font-size: 13.5px;
    font-weight: 600;
}

.cat-tabs a.active, .subcat-tabs a.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.subcat-tabs {
    padding-bottom: 12px;
    border-bottom: 1px dashed #e6ecf5;
    margin-bottom: 16px;
}

.subcat-tabs a {
    background: #fff;
    border: 1px solid #dbe3ef;
    font-weight: normal;
    font-size: 13px;
    padding: 5px 15px;
}

.filter-card {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 10px;
    padding: 8px 18px;
    margin-bottom: 12px;
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    flex-wrap: wrap;
    border-bottom: 1px dashed #eef2f8;
}

.filter-row:last-child { border-bottom: 0; }

.filter-label {
    font-size: 13px;
    color: #4a5a75;
    min-width: 92px;
    padding-top: 5px;
    font-weight: 700;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-pills a {
    padding: 4px 13px;
    border-radius: 14px;
    border: 1px solid #e2e9f4;
    background: #f7faff;
    color: #5a6b83;
    font-size: 12.5px;
}

.filter-pills a:hover { border-color: #9dbcfb; color: #2563eb; }

.filter-pills a.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.product-table {
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px;
}

.product-head, .product-item {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    gap: 12px;
    padding: 12px 18px;
    font-size: 14px;
    align-items: center;
}

.product-head { background: #f7faff; color: #5a6b83; font-size: 13px; font-weight: 600; }

.product-item { color: #33404f; border-top: 1px solid #eef2f8; }
.product-item:hover { background: #fafcff; }
.product-item .model { color: #2563eb; font-weight: 600; }

.detail-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f8;
}

.detail-label { width: 130px; flex-shrink: 0; color: #6f7d92; font-size: 14px; }
.detail-value { flex: 1; color: #33404f; font-size: 14px; word-break: break-word; }

.info-content {
    background: #fafcff;
    border-left: 3px solid #7fa9ef;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    line-height: 1.8;
    margin-top: 4px;
    overflow: hidden;
}

.info-content img { max-width: 100%; height: auto; }
.info-content table { border-collapse: collapse; }
.info-content table td, .info-content table th { border: 1px solid #dfe7f2; padding: 5px 9px; }

.tag {
    display: inline-block;
    background: #eef4ff;
    color: #2563eb;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin: 2px 6px 2px 0;
}

/* ===== 登录/注册/会员 ===== */
.auth-box {
    max-width: 430px;
    margin: 30px auto 10px;
    background: #fff;
}

.auth-box h1 { font-size: 21px; text-align: center; margin-bottom: 6px; color: #1f2f4c; }
.auth-box .auth-tip { text-align: center; color: #8b98ac; font-size: 13px; margin-bottom: 22px; }
.auth-box .switch { text-align: center; margin-top: 16px; font-size: 13px; color: #6f7d92; }

.profile-grid { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; margin: 18px 0; font-size: 14px; }
.profile-grid .k { color: #8b98ac; }
.profile-grid .v { color: #33404f; }

.member-section { margin: 6px 0 26px; padding-top: 20px; border-top: 1px solid #edf1f7; }
.member-section .section-title { font-size: 16px; color: #22345c; margin: 0; }
.member-form { max-width: 460px; margin-top: 14px; }

/* ===== 页脚 ===== */
.footer {
    background: #1f2b45;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    color: #9fb0c8;
}

.footer-inner { max-width: 1240px; margin: 0 auto; }

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .album-grid, .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .form-box, .thread-form { width: 100%; }
}

@media (max-width: 720px) {
    html, body { overflow-x: hidden; }
    .page { width: auto; padding: 0 8px 20px; margin: 12px 6px 20px; }
    .notice { margin: 0 -8px; padding: 12px 8px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .album-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card { min-height: 86px; padding: 14px 10px; }
    .topbar-inner {
        position: relative;
        min-height: 58px;
        padding: 8px 16px;
        flex-wrap: nowrap;
    }
    .logo a { font-size: 20px; }
    .logo img { max-height: 38px; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .top-area {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 16px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: #1a5ed0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 14px 26px rgba(13, 36, 80, 0.28);
        z-index: 80;
    }
    .topbar.nav-open .top-area { display: flex; }
    .top-text { font-size: 13px; line-height: 1.6; }
    .top-nav { flex-direction: column; align-items: stretch; gap: 8px; }
    .top-nav a,
    .top-nav .user-tag {
        display: block;
        width: 100%;
        padding: 10px 14px;
        font-size: 15px;
    }
    .product-table { overflow-x: auto; overflow-y: hidden; }
    .product-head,
    .product-item {
        grid-template-columns: 1.6fr 1fr 1fr;
        min-width: 620px;
        font-size: 13px;
    }
    .product-head span,
    .product-item span { white-space: nowrap; }
    .table-wrap table.data { min-width: 620px; }
    .table-wrap table.data th,
    .table-wrap table.data td { white-space: nowrap; }
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .filter-label {
        min-width: 0;
        padding-top: 0;
    }
    .filter-pills { width: 100%; }
    .detail-row { flex-direction: column; gap: 4px; }
    .detail-label { width: auto; }
    .forum-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .thread-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .thread-row .thread-title { flex: none; width: 100%; }
    .thread-row .thread-meta { white-space: normal; }
}