* { box-sizing: border-box; }
body.grp-body { background: #f1f5f9; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #334155; margin: 0; line-height: 1.6; }
.grp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.grp-main { padding: 30px 20px 60px; min-height: 60vh; }

/* Header */
.grp-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.grp-header .grp-wrap { display: flex; align-items: center; justify-content: space-between; }
.grp-logo { font-size: 20px; font-weight: 800; color: #1e293b; text-decoration: none; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.grp-nav a { color: #64748b; text-decoration: none; margin-left: 24px; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.grp-nav a:hover { color: #2563eb; }

/* Hero */
.grp-hero { background: linear-gradient(135deg, #eff6ff, #e0e7ff); padding: 50px 30px; text-align: center; border-radius: 16px; margin-bottom: 30px; }
.grp-hero h1 { margin: 0 0 12px; font-size: 32px; font-weight: 800; color: #1e3a8a; }
.grp-hero p { margin: 0; color: #3b82f6; font-size: 15px; }

/* Grid & Cards */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grp-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; display: flex; gap: 16px; text-decoration: none; color: inherit; transition: all 0.25s ease; }
.grp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1); border-color: #bfdbfe; }
.grp-card-logo { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #6366f1, #a855f7); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-weight: bold; font-size: 24px; }
.grp-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.grp-card-body { flex: 1; min-width: 0; }
.grp-card-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.grp-card-title { font-size: 17px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-card-meta { display: flex; gap: 14px; font-size: 12px; color: #64748b; margin-bottom: 8px; }
.grp-card-desc { font-size: 13px; color: #475569; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Home Page */
.grp-home-head { background: #fff; padding: 30px; border-radius: 16px; display: flex; gap: 24px; margin-bottom: 24px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.grp-hero-logo { width: 120px; height: 120px; border-radius: 16px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 48px; overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 16px rgba(37,99,235,0.2); }
.grp-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.grp-home-info { flex: 1; }
.grp-home-info h1 { margin: 0 0 10px; font-size: 28px; font-weight: 800; color: #0f172a; }
.grp-home-meta { font-size: 14px; color: #64748b; margin-bottom: 12px; }
.grp-home-desc { margin: 0 0 20px; color: #475569; font-size: 15px; line-height: 1.7; }
.grp-home-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.grp-alert { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; color: #1e3a8a; font-size: 14px; }

.grp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .grp-layout { grid-template-columns: 1fr; } .grp-home-head { flex-direction: column; align-items: center; text-align: center; } .grp-home-actions { justify-content: center; } }

/* Sidebar */
.grp-section-title { font-size: 18px; font-weight: 700; color: #0f172a; border-bottom: 2px solid #e2e8f0; padding-bottom: 12px; margin: 0 0 20px; }
.grp-thread-list { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.grp-thread-item { display: flex; justify-content: space-between; padding: 16px 20px; text-decoration: none; color: inherit; border-bottom: 1px solid #f1f5f9; transition: background 0.2s; }
.grp-thread-item:last-child { border-bottom: 0; }
.grp-thread-item:hover { background: #f8fafc; }
.grp-thread-title { font-size: 15px; font-weight: 500; color: #1e293b; display: flex; align-items: center; gap: 8px; }
.grp-thread-meta { font-size: 12px; color: #94a3b8; display: flex; gap: 16px; flex-shrink: 0; }

.grp-widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 24px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.grp-widget-title { padding: 16px 20px; font-size: 15px; font-weight: 700; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.grp-widget-title span { font-size: 12px; color: #94a3b8; font-weight: normal; }
.grp-chapter-list, .grp-forum-list { list-style: none; padding: 0; margin: 0; }
.grp-chapter-list li a { display: flex; gap: 10px; padding: 10px 20px; text-decoration: none; color: #334155; font-size: 13px; border-bottom: 1px solid #f1f5f9; transition: all 0.2s; }
.grp-chapter-list li a:hover { background: #eff6ff; color: #2563eb; padding-left: 24px; }
.ch-no { color: #94a3b8; min-width: 24px; font-weight: 500; }
.ch-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-forum-list li a { display: block; padding: 12px 20px; text-decoration: none; color: #334155; font-size: 13px; border-bottom: 1px solid #f1f5f9; transition: all 0.2s; }
.grp-forum-list li a:hover { background: #f8fafc; color: #2563eb; }

/* Thread List Table */
.grp-thread-table { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.grp-thread-row { display: flex; align-items: center; padding: 16px 24px; border-bottom: 1px solid #f1f5f9; transition: background 0.2s; }
.grp-thread-row:last-child { border-bottom: 0; }
.grp-thread-row:hover { background: #f8fafc; }
.grp-thread-head { background: #f8fafc; font-weight: 600; font-size: 13px; color: #64748b; }
.col-main { flex: 1; min-width: 0; }
.col-author { width: 140px; font-size: 13px; text-align: center; color: #64748b; }
.col-stat { width: 120px; font-size: 13px; text-align: right; color: #64748b; }
.col-stat strong { color: #2563eb; }

/* Thread Detail */
.grp-post-main { background: #fff; border-radius: 12px; padding: 30px; border: 1px solid #e2e8f0; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.grp-thread-title { margin: 0 0 20px; font-size: 26px; font-weight: 800; color: #0f172a; }
.grp-post-meta { font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.grp-avatar { background: #eff6ff; color: #2563eb; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.grp-post-content { font-size: 16px; line-height: 1.9; color: #334155; margin-bottom: 24px; }
.grp-post-actions { border-top: 1px dashed #e2e8f0; padding-top: 16px; display: flex; gap: 12px; }

.grp-post-item { display: flex; gap: 24px; background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e2e8f0; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.grp-post-side { width: 120px; flex-shrink: 0; text-align: center; }
.grp-post-body { flex: 1; min-width: 0; }

/* Forms & Buttons */
.grp-form-box, .grp-reply-box { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e2e8f0; margin-top: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.grp-form-group { margin-bottom: 20px; }
.grp-form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #1e293b; }
.grp-input { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: all 0.2s; background: #f8fafc; }
.grp-input:focus { border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }

.grp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: #334155; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.grp-btn:hover { border-color: #94a3b8; background: #f1f5f9; }
.grp-btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.2); }
.grp-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 8px -1px rgba(37,99,235,0.3); }
.grp-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }

/* Tags */
.grp-tag { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 4px; background: #ef4444; color: #fff; font-weight: 600; }
.grp-tag-ess { background: #f59e0b; }
.grp-lv { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 4px; background: #e0e7ff; color: #4338ca; font-weight: 700; }
.grp-badge { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 4px; border: 1px solid; font-weight: 600; }
.grp-badge-official { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.grp-badge-quality { background: #fdf5e6; color: #b8860b; border-color: #f0dca0; }
.grp-badge-custom { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }

/* Misc */
.grp-breadcrumb { font-size: 13px; color: #94a3b8; margin-bottom: 20px; }
.grp-breadcrumb a { color: #2563eb; text-decoration: none; font-weight: 500; }
.grp-breadcrumb a:hover { text-decoration: underline; }
.grp-empty { padding: 50px; text-align: center; color: #94a3b8; background: #fff; border-radius: 12px; border: 1px dashed #cbd5e1; font-size: 14px; }
.pagination { text-align: center; margin: 30px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; margin: 0 4px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; text-decoration: none; color: #475569; font-size: 13px; font-weight: 500; transition: all 0.2s; }
.pagination a:hover { border-color: #2563eb; color: #2563eb; }
.pagination .current { background: #2563eb; color: #fff; border-color: #2563eb; }
.grp-footer { text-align: center; padding: 30px 20px; font-size: 13px; color: #94a3b8; border-top: 1px solid #e2e8f0; background: #fff; margin-top: 40px; }

/* Manage Wrap */
.grp-manage-wrap { display: flex; gap: 24px; }
.grp-manage-nav { width: 200px; background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #e2e8f0; height: fit-content; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.grp-manage-nav a { display: block; padding: 12px 16px; color: #475569; text-decoration: none; border-radius: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.grp-manage-nav a:hover, .grp-manage-nav a.active { background: #eff6ff; color: #2563eb; }
.grp-manage-body { flex: 1; }

/* ============================================================
   全局修复：禁止任何鼠标悬停（hover）状态下的文字下划线
   ============================================================ */
.grp-wrap a:hover,
.grp-wrap a:focus,
.grp-wrap a:active,
.grp-admin a:hover,
.grp-admin a:focus,
.grp-admin a:active,
.grp-modal a:hover,
.grp-modal a:focus,
.grp-modal a:active,
.rdg-wrap a:hover,
.rdg-wrap a:focus,
.rdg-wrap a:active,
.grp-wrap .grp-card:hover .grp-card-title,
.grp-wrap .grp-thread-title:hover,
.grp-wrap .grp-forum-list li a:hover,
.grp-wrap .grp-chapter-list li a:hover,
.grp-wrap .grp-contrib-name:hover,
.grp-wrap .grp-member-chip:hover,
.grp-wrap .grp-tip-wall-user:hover,
.grp-wrap .nwdg-wrap a:hover,
.rdg-wrap .rdg-chapter-item:hover,
.rdg-wrap .rdg-thread-item a:hover {
    text-decoration: none !important;
}

/* ============================================================
   复古头部：横幅 + 信息卡 + 操作栏 + 快捷导航
   ============================================================ */
.grp-home-wrap { margin-bottom: 30px; }

.grp-banner-wrap {
    width: 100%; max-height: 240px; overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #e2e8f0;
}
.grp-banner { width: 100%; height: 100%; object-fit: cover; display: block; }

.grp-hero {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}
.grp-hero.has-banner { border-radius: 0 0 12px 12px; border-top: 0; }

.grp-hero-main {
    display: flex; gap: 24px; padding: 30px; align-items: center;
}

.grp-hero-logo {
    width: 110px; height: 110px; flex-shrink: 0;
    border-radius: 12px; overflow: hidden;
    background: #f8fafc; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.grp-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.grp-hero-logo .grp-logo-fallback { font-size: 40px; font-weight: bold; color: #cbd5e1; }

.grp-hero-body { flex: 1; min-width: 0; }
.grp-hero-body .grp-title { font-size: 26px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grp-hero-meta { display: flex; gap: 16px; font-size: 13px; color: #64748b; margin-bottom: 16px; }
.grp-hero-desc { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 0; }

/* 操作栏 */
.grp-hero-actionbar {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    padding: 16px 30px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.grp-action-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* 快捷导航 */
.grp-quicknav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.grp-quicknav-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 16px; text-decoration: none; color: inherit;
    transition: all 0.2s;
}
.grp-quicknav-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.grp-quicknav-icon { font-size: 24px; flex-shrink: 0; }
.grp-quicknav-text { display: flex; flex-direction: column; gap: 2px; }
.grp-quicknav-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.grp-quicknav-desc { font-size: 12px; color: #94a3b8; }

/* 版块 Tab 与搜索 */
.grp-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.grp-forum-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.grp-forum-tab { padding: 8px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; color: #475569; text-decoration: none; transition: all 0.2s; }
.grp-forum-tab:hover, .grp-forum-tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.grp-bar-search { display: flex; gap: 8px; }
.grp-bar-search input { width: 200px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; outline: none; }
.grp-bar-search button { padding: 8px 16px; border-radius: 6px; cursor: pointer; }

/* 主体网格 */
.grp-home-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.grp-home-main { min-width: 0; }
.grp-home-side { min-width: 0; }

@media (max-width: 900px) {
    .grp-hero-main { flex-direction: column; text-align: center; }
    .grp-quicknav { grid-template-columns: repeat(2, 1fr); }
    .grp-home-grid { grid-template-columns: 1fr; }
    .grp-hero-actionbar { justify-content: center; }
}

/* ============================================================
   三栏布局适配
   ============================================================ */
.group-main-col {
    background: #fff;
    border-radius: 8px;
    padding: 26px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    min-width: 0;
}
@media (max-width: 768px) {
    .group-main-col { padding: 20px 18px; }
}

/* 左侧菜单 */
.grp-side-links { list-style: none; padding: 0; margin: 0; }
.grp-side-links li { margin-bottom: 4px; }
.grp-side-links a {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: 6px;
    color: #475569; text-decoration: none;
    font-size: 13.5px; line-height: 1.4; transition: all .15s;
}
.grp-side-links a:hover { background: #eff6ff; color: #2563eb; text-decoration: none; }
.grp-side-links a.active { background: #2563eb; color: #fff; }

/* ============================================================
   头部卡片与横幅
   ============================================================ */
.grp-home-wrap { margin-bottom: 30px; }

.grp-banner-wrap {
    width: 100%; max-height: 240px; overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #e2e8f0;
}
.grp-banner { width: 100%; height: 100%; object-fit: cover; display: block; }

.grp-hero {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}
.grp-hero.has-banner { border-radius: 0 0 12px 12px; border-top: 0; }

.grp-hero-main {
    display: flex; gap: 24px; padding: 30px; align-items: center;
}

.grp-hero-logo {
    width: 110px; height: 110px; flex-shrink: 0;
    border-radius: 12px; overflow: hidden;
    background: #f8fafc; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.grp-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.grp-hero-logo .grp-logo-fallback { font-size: 40px; font-weight: bold; color: #cbd5e1; }

.grp-hero-body { flex: 1; min-width: 0; }
.grp-hero-body .grp-title { font-size: 26px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grp-hero-meta { display: flex; gap: 16px; font-size: 13px; color: #64748b; margin-bottom: 16px; }
.grp-hero-desc { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 0; }

/* 操作栏 */
.grp-hero-actionbar {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    padding: 16px 30px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.grp-action-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* 快捷导航 */
.grp-quicknav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.grp-quicknav-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 16px; text-decoration: none; color: inherit;
    transition: all 0.2s;
}
.grp-quicknav-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.grp-quicknav-icon { font-size: 24px; flex-shrink: 0; }
.grp-quicknav-text { display: flex; flex-direction: column; gap: 2px; }
.grp-quicknav-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.grp-quicknav-desc { font-size: 12px; color: #94a3b8; }

/* 版块 Tab 与搜索 */
.grp-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.grp-forum-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.grp-forum-tab { padding: 8px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; color: #475569; text-decoration: none; transition: all 0.2s; }
.grp-forum-tab:hover, .grp-forum-tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.grp-bar-search { display: flex; gap: 8px; }
.grp-bar-search input { width: 200px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; outline: none; }
.grp-bar-search button { padding: 8px 16px; border-radius: 6px; cursor: pointer; }

/* 主体网格 */
.grp-home-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.grp-home-main { min-width: 0; }
.grp-home-side { min-width: 0; }
.grp-side-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 20px; }

@media (max-width: 900px) {
    .grp-hero-main { flex-direction: column; text-align: center; }
    .grp-quicknav { grid-template-columns: repeat(2, 1fr); }
    .grp-home-grid { grid-template-columns: 1fr; }
    .grp-hero-actionbar { justify-content: center; }
}

/* 全局修复：禁止任何鼠标悬停（hover）状态下的文字下划线 */
.grp-wrap a:hover, .group-main-col a:hover, .group-layout-wrap a:hover,
.grp-wrap a:focus, .grp-wrap a:active { text-decoration: none !important; }

/* ============================================================
   三栏布局：圈子详情页紧凑化适配 (Compact Home)
   ============================================================ */

/* 压缩 Banner 高度 */
.grp-banner-wrap.compact-banner {
    max-height: 140px; /* 降低高度，避免占据太多首屏空间 */
}

/* 压缩 Hero 信息卡片 */
.compact-hero .grp-hero-main {
    padding: 16px 20px;
    gap: 16px;
}
.compact-hero .grp-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
}
.compact-hero .grp-hero-logo .grp-logo-fallback {
    font-size: 28px;
}
.compact-hero .grp-hero-body .grp-title {
    font-size: 20px;
    margin-bottom: 6px;
}
.compact-hero .grp-hero-meta {
    font-size: 12.5px;
    gap: 12px;
    margin-bottom: 10px;
}
.compact-hero .grp-hero-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制简介最多两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.compact-hero .grp-hero-actionbar {
    padding: 10px 20px;
    background: #fafbfc;
}
.compact-hero .grp-btn-sm {
    padding: 4px 12px;
    font-size: 12.5px;
    height: 28px;
    border-radius: 6px;
}

/* 压缩快捷导航 */
.compact-quicknav {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.compact-quicknav .grp-quicknav-item {
    padding: 8px 10px;
    justify-content: center; /* 居中显示 */
    border-radius: 6px;
}
.compact-quicknav .grp-quicknav-icon {
    font-size: 16px;
}
.compact-quicknav .grp-quicknav-title {
    font-size: 12.5px;
}
/* 隐藏多余的描述文字 */
.compact-quicknav .grp-quicknav-desc {
    display: none;
}

/* 压缩版块与搜索栏 */
.compact-bar {
    margin-bottom: 12px;
    gap: 12px;
}
.compact-bar .grp-forum-tab {
    padding: 4px 12px;
    font-size: 13px;
}
.compact-bar .grp-bar-search input {
    width: 140px;
    height: 28px;
    padding: 0 10px;
    font-size: 12.5px;
}
.compact-bar .grp-bar-search button {
    height: 28px;
    padding: 0 12px;
    font-size: 12.5px;
}

/* 帖子列表紧凑化 */
.compact-table {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.compact-table .grp-thread-row {
    padding: 10px 16px;
}
.compact-table .grp-thread-head {
    padding: 8px 16px;
    font-size: 12px;
}

/* 响应式修正：在极窄屏幕下，快捷导航折叠 */
@media (max-width: 1024px) {
    .compact-quicknav {
        grid-template-columns: repeat(3, 1fr);
    }
    .compact-hero .grp-hero-main {
        flex-direction: column;
        text-align: center;
    }
    .compact-hero .grp-hero-actionbar {
        justify-content: center;
    }
}

/* 全局修复：禁止任何鼠标悬停（hover）状态下的文字下划线 */
.grp-wrap a:hover, .group-main-col a:hover, .group-layout-wrap a:hover,
.grp-wrap a:focus, .grp-wrap a:active,
.compact-hero a:hover, .compact-quicknav a:hover { 
    text-decoration: none !important; 
}

/* ============================================================
   紧凑型圈子头部 (Compact Home Header)
   ============================================================ */

/* 限制 Banner 高度，防止在窄屏下过高 */
.grp-banner-compact {
    width: 100%;
    max-height: 140px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #e2e8f0;
    line-height: 0;
}
.grp-banner-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 核心信息卡片 */
.grp-hero-compact {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.grp-hero-compact.has-banner {
    border-radius: 0 0 8px 8px;
    border-top: none;
}

/* 上半部：Logo 与 文字信息 */
.grp-hero-main-compact {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
}

/* Logo 瘦身 */
.grp-hero-logo-compact {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grp-hero-logo-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.grp-hero-logo-compact .grp-logo-fallback {
    font-size: 24px;
    font-weight: bold;
    color: #cbd5e1;
}

/* 文字信息区 */
.grp-hero-info-compact {
    flex: 1;
    min-width: 0;
}

.grp-title-compact {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.grp-meta-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

/* 简介限制两行 */
.grp-desc-compact {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下半部：操作栏 (去除多余的空白) */
.grp-hero-actions-compact {
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* 按钮缩小 */
.grp-btn-sm {
    height: 28px;
    padding: 0 14px;
    font-size: 12.5px;
    border-radius: 6px;
}

/* 快捷导航高度压缩 */
.grp-quicknav-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.grp-quicknav-compact .grp-quicknav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 0;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.grp-quicknav-compact .grp-quicknav-item:hover {
    border-color: #bfdbfe;
    background: #f0f9ff;
    color: #2563eb;
}
.grp-quicknav-compact .grp-quicknav-icon {
    font-size: 16px;
}

/* 版块 Tab 压缩 */
.compact-bar {
    margin-bottom: 12px;
    gap: 12px;
}
.compact-bar .grp-forum-tab {
    padding: 4px 12px;
    font-size: 12.5px;
}
.compact-bar .grp-bar-search input {
    width: 140px;
    height: 28px;
    font-size: 12.5px;
}
.compact-bar .grp-bar-search button {
    height: 28px;
    font-size: 12.5px;
}

/* 帖子列表紧凑 */
.compact-table {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.compact-table .grp-thread-row {
    padding: 10px 16px;
}
.compact-table .grp-thread-head {
    padding: 8px 16px;
    font-size: 12px;
}

/* 移动端适配 */
@media (max-width: 900px) {
    .grp-hero-main-compact {
        flex-direction: column;
        text-align: center;
    }
    .grp-hero-logo-compact {
        margin: 0 auto;
    }
    .grp-hero-actions-compact {
        justify-content: center;
    }
    .grp-quicknav-compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   极简紧凑与编辑器适配补丁
   ============================================================ */

/* 压缩全局卡片间距和圆角 */
.grp-banner-compact, .grp-hero-compact { border-radius: 8px; }
.grp-quicknav-compact .grp-quicknav-item { border-radius: 6px; }
.grp-thread-table { border-radius: 6px; }

/* 修复主站编辑器在前台的渲染 */
.mn-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
    resize: vertical;
}
.mn-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* LiteLog 编辑器挂载后的容器样式修复 */
.editormd, .w-e-text-container {
    border-radius: 6px !important;
    border-color: #cbd5e1 !important;
}

/* 移除一些多余的 margin */
.grp-home-main .grp-thread-row:last-child {
    border-bottom: none;
}