/* =========================================================
   网盘拉新 - 灰色商务风
   ========================================================= */
:root {
    --bg: #f4f5f7;
    --panel: #ffffff;
    --header-from: #3f444b;
    --header-to: #2b2f34;
    --primary: #3d4b5c;
    --primary-dark: #2f3a47;
    --accent: #6b7a8f;
    --text: #333a42;
    --text-mid: #5c646e;
    --text-light: #8a929c;
    --line: #e6e9ed;
    --line-dark: #d6dae0;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(45, 55, 65, 0.06);
    --shadow-hover: 0 10px 26px rgba(45, 55, 65, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ---------------- Header ---------------- */
.site-header {
    background: linear-gradient(120deg, var(--header-from), var(--header-to));
    box-shadow: 0 2px 12px rgba(30, 35, 40, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    flex: none;
}
.brand:hover { color: #fff; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    letter-spacing: 1px;
}

.brand-text { font-size: 19px; letter-spacing: 1px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    transition: background .18s ease, color .18s ease;
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
}

/* ---------------- Layout ---------------- */
.main-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 40px;
}

.content-col { flex: 1 1 auto; min-width: 0; }
.sidebar-col { flex: 0 0 300px; width: 300px; }

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin-bottom: 22px;
}

.panel-title {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
}
.panel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 54px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(120deg, #e9ecef, #dcdfe4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 30px;
    margin-bottom: 22px;
}
.hero-title {
    margin: 0 0 8px;
    font-size: 26px;
    color: var(--primary-dark);
    letter-spacing: 1px;
}
.hero-subtitle {
    margin: 0;
    color: var(--text-mid);
    font-size: 15px;
}

/* ---------------- Article ---------------- */
.article-header { margin-bottom: 18px; }

.article-title {
    margin: 6px 0 12px;
    font-size: 25px;
    line-height: 1.45;
    color: var(--primary-dark);
}
.article-title a { color: inherit; }
.article-title a:hover { color: var(--accent); }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-light);
    font-size: 13px;
}
.article-meta a { color: var(--accent); }

.category-tag {
    display: inline-block;
    background: #eef1f4;
    color: var(--primary);
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 13px;
}

.top-badge {
    display: inline-block;
    background: #b23b3b;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 6px;
    vertical-align: middle;
}
.top-badge.small { font-size: 11px; padding: 1px 6px; }

.article-content {
    font-size: 16px;
    line-height: 1.95;
    color: #3a4149;
    word-break: break-word;
}
.article-content p { margin: 0 0 16px; }
.article-content img {
    display: block;
    margin: 14px auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}
.article-content a { color: #2f6db3; text-decoration: underline; }
.article-content h2,
.article-content h3 { color: var(--primary); margin: 22px 0 12px; }

/* ---------------- Article list ---------------- */
.article-list { list-style: none; margin: 0; padding: 0; }

.article-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.article-item:last-child { border-bottom: none; }

.article-thumb {
    flex: 0 0 200px;
    width: 200px;
    height: 125px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #eef1f4;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }

.article-item-body { flex: 1 1 auto; min-width: 0; }

.article-item-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.5;
}
.article-item-title a { color: var(--primary-dark); }
.article-item-title a:hover { color: var(--accent); }

.article-item-summary {
    margin: 0 0 10px;
    color: var(--text-mid);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-mid); }
.breadcrumb .sep { margin: 0 6px; color: var(--line-dark); }

/* ---------------- Post nav ---------------- */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-mid);
}
.post-nav-item { max-width: 48%; }

/* ---------------- Pager ---------------- */
.pager-wrap { margin-top: 24px; text-align: center; }
.pager { display: inline-flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager li > a,
.pager li > span {
    display: inline-block;
    min-width: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: #fff;
    color: var(--text-mid);
    font-size: 14px;
}
.pager li.active > a,
.pager li > a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pager li.disabled > span { color: #c2c8cf; background: #f7f8fa; }

/* ---------------- Sidebar ---------------- */
.widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}
.widget-title {
    margin: 0 0 14px;
    font-size: 16px;
    color: var(--primary);
    padding-left: 11px;
    border-left: 3px solid var(--primary);
    line-height: 1.2;
}
.widget-text { margin: 0; color: var(--text-mid); font-size: 14px; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { border-bottom: 1px dashed var(--line); }
.widget-list li:last-child { border-bottom: none; }
.widget-list a {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    color: var(--text-mid);
    font-size: 14px;
}
.widget-list a:hover { color: var(--primary); }
.widget-list em { color: var(--text-light); font-style: normal; }

/* ---------------- Ads ---------------- */
.ad-banner { margin-top: 18px; }
.ad-widget { text-align: center; }
.ad-item { margin-bottom: 14px; text-align: center; }
.ad-item:last-child { margin-bottom: 0; }
.ad-item img { border-radius: 6px; }

.in-article-ad {
    margin: 20px 0;
    padding: 14px;
    background: #fafbfc;
    border: 1px dashed var(--line-dark);
    border-radius: 6px;
    text-align: center;
}
.in-feed-ad { margin-bottom: 10px; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: linear-gradient(120deg, #33383e, #262a2f);
    color: #b6bcc4;
    margin-top: 20px;
    padding: 28px 0;
    font-size: 14px;
}
.friend-links { margin-bottom: 14px; }
.friend-links-title { color: #dfe3e8; }
.friend-links a { color: #b6bcc4; margin-right: 14px; }
.friend-links a:hover { color: #fff; }
.footer-meta p { margin: 4px 0; }
.footer-meta a { color: #b6bcc4; }

/* ---------------- Misc ---------------- */
.empty-tip { color: var(--text-light); text-align: center; padding: 30px 0; }

.error-box {
    background: #fbf1f1;
    border: 1px solid #ecd4d4;
    color: #a33;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}
.error-tip { color: var(--text-mid); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .main-layout { flex-direction: column; }
    .sidebar-col { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 720px) {
    .container { padding: 0 12px; }
    .header-inner { height: 58px; gap: 12px; }
    .brand-text { font-size: 17px; }
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav {
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--header-to);
        padding: 8px 12px;
        gap: 2px;
        display: none;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 14px; }

    .panel { padding: 18px 15px; }
    .hero { padding: 22px 18px; }
    .hero-title { font-size: 21px; }
    .article-title { font-size: 20px; }

    .article-item { gap: 12px; }
    .article-thumb { flex-basis: 110px; width: 110px; height: 78px; }
    .article-item-title { font-size: 16px; }
    .article-item-summary { -webkit-line-clamp: 2; }
    .article-content { font-size: 15px; }
    .post-nav { flex-direction: column; gap: 8px; }
    .post-nav-item { max-width: 100%; }
}

/* =========================================================
   用户体系 / 评论 / 点赞 / 分享 / 表情
   ========================================================= */
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d5d9de;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,122,143,.14); }
textarea.form-control { min-height: 90px; resize: vertical; line-height: 1.7; }
.form-row { margin-bottom: 16px; }
.form-row > label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: #4a5158; }
.form-hint { color: var(--text-light); font-size: 12px; margin-top: 5px; }
.help-block { color: #c0392b; font-size: 12px; margin-top: 4px; }
.form-divider { margin: 22px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--primary); }

.btn {
    display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid transparent;
    font-size: 13px; cursor: pointer; background: #eef0f2; color: #444c55; line-height: 1.4; font-family: inherit;
}
.btn:hover { background: #e3e6e9; color: #333; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { background: #b23b3b; color: #fff; }
.btn-danger:hover { background: #9d3232; color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }

.flash { margin: 14px 0 0; padding: 11px 16px; border-radius: 6px; font-size: 14px; }
.flash-success { background: #edf6ee; border: 1px solid #cbe6cf; color: #2f7a3d; }
.flash-error { background: #fbf0f0; border: 1px solid #eecccc; color: #b23b3b; }
.flash-warning { background: #fdf6e8; border: 1px solid #f0e0b8; color: #96721f; }
.flash-info { background: #eef2f7; border: 1px solid #d3ddec; color: #35507a; }

/* 头部用户区 */
.header-user { display: flex; align-items: center; gap: 10px; margin-left: 12px; flex: none; }
.hu-link { color: rgba(255,255,255,.85); font-size: 14px; background: none; border: none; cursor: pointer; padding: 6px 8px; }
.hu-link:hover { color: #fff; }
.hu-btn { background: rgba(255,255,255,.16); color: #fff; padding: 7px 16px; border-radius: 6px; font-size: 14px; }
.hu-btn:hover { background: rgba(255,255,255,.26); color: #fff; }
.hu-user { display: flex; align-items: center; gap: 8px; color: #fff; }
.hu-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.35); }
.hu-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); color: #fff; font-size: 14px; }
.hu-name { font-size: 14px; }
.hu-logout { display: inline; margin: 0; }

/* 认证页 */
.auth-panel { max-width: 460px; margin: 10px auto; }
.auth-title { margin: 0 0 6px; font-size: 22px; color: var(--primary-dark); }
.auth-sub { margin: 0 0 22px; color: var(--text-light); font-size: 14px; }
.auth-foot { margin: 18px 0 0; text-align: center; color: var(--text-mid); font-size: 14px; }

/* 用户中心 */
.uc-head { display: flex; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.uc-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.uc-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: #eaedf0; color: var(--primary); font-size: 28px; }
.uc-name { margin: 0 0 6px; font-size: 20px; color: var(--primary-dark); }
.uc-meta { margin: 0 0 10px; color: var(--text-light); font-size: 13px; }
.uc-actions { display: flex; gap: 10px; }
.uc-stats { display: flex; gap: 30px; margin-top: 20px; }
.uc-stat { text-align: center; color: var(--text-mid); }
.uc-stat .num { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }
.uc-stat .label { font-size: 13px; }

.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.simple-list li:last-child { border-bottom: none; }
.sl-text { color: var(--text-mid); }
.sl-time { margin-left: auto; color: var(--text-light); font-size: 12px; }

.sl-status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; flex: none; }
.sl-0 { background: #fdf6e8; color: #96721f; }
.sl-1 { background: #e6f2e8; color: #2f7a3d; }
.sl-2 { background: #f2e9e9; color: #b23b3b; }

.avatar-edit { display: flex; gap: 16px; align-items: flex-start; }

.post-manage-list { list-style: none; margin: 0; padding: 0; }
.post-manage-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-manage-item:last-child { border-bottom: none; }
.pm-body { flex: 1; min-width: 0; }
.pm-title { margin: 0 0 8px; font-size: 16px; }
.pm-title a { color: var(--primary-dark); }
.pm-reason { margin: 0 0 8px; font-size: 13px; color: #b23b3b; }
.pm-pending { color: #96721f; }
.pm-actions { flex: none; }

.comment-manage-list { list-style: none; margin: 0; padding: 0; }
.comment-manage-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-manage-item:last-child { border-bottom: none; }
.cm-head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.cm-head a { color: var(--primary); }
.cm-time { margin-left: auto; color: var(--text-light); }
.cm-content { color: var(--text); font-size: 14px; }
.cm-actions { margin-top: 8px; }

/* 文章作者 */
.article-author { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mini-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mini-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: #eaedf0; color: var(--primary); font-size: 13px; }
.author-name { font-size: 14px; color: var(--primary); font-weight: 600; }
.article-meta-inline { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-light); font-size: 13px; }
.article-meta-inline a { color: var(--accent); }

/* 点赞 / 分享 */
.article-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
}
.like-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: 22px;
    border: 1px solid var(--line-dark); background: #fff; color: var(--text-mid); cursor: pointer; font-size: 14px;
    transition: all .18s ease;
}
.like-btn:hover { border-color: #d98a8a; color: #c0392b; }
.like-btn.liked { background: #fdeeee; border-color: #e6b3b3; color: #c0392b; }
.like-icon { font-size: 16px; }
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { color: var(--text-light); font-size: 13px; }
.share-item {
    padding: 6px 12px; border-radius: 6px; font-size: 13px; color: #fff; background: #8a929c;
}
.share-item:hover { color: #fff; opacity: .88; }
.share-weibo { background: #d52b2b; }
.share-qq { background: #2f8ed6; }
.share-qzone { background: #e6a817; }
.share-wechat { background: #2fae4e; }
.share-copy { background: #6b7a8f; }

/* 评论 */
.comment-login-tip { padding: 14px; background: #f7f8fa; border: 1px dashed var(--line-dark); border-radius: 6px; color: var(--text-mid); font-size: 14px; margin-bottom: 16px; }
.comment-form textarea { width: 100%; }
.comment-tools { display: flex; flex-wrap: wrap; gap: 20px; margin: 10px 0; }
.tool-label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.emoji-picker, .sticker-picker { display: flex; flex-wrap: wrap; gap: 3px; max-height: 96px; overflow-y: auto; max-width: 460px; padding: 6px; background: #fafbfc; border: 1px solid var(--line); border-radius: 6px; }
.emoji-item { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 3px; border-radius: 4px; }
.emoji-item:hover { background: #eef1f4; }
.sticker-item { border: none; background: transparent; padding: 2px; cursor: pointer; border-radius: 4px; line-height: 0; }
.sticker-item:hover { background: #eef1f4; }
.sticker-item img { width: 30px; height: 30px; object-fit: contain; }
.comment-submit { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.comment-audit-tip { color: #96721f; font-size: 13px; }
.comment-list { list-style: none; margin: 22px 0 0; padding: 0; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.comment-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: #eaedf0; color: var(--primary); font-size: 16px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { margin-bottom: 4px; }
.comment-name { font-weight: 600; color: var(--primary); font-size: 14px; }
.comment-time { margin-left: 10px; color: var(--text-light); font-size: 12px; }
.comment-text { color: var(--text); font-size: 14px; line-height: 1.8; word-break: break-word; }
.comment-sticker { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal-dialog { position: relative; background: #fff; border-radius: 10px; padding: 24px; width: 300px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.modal-title { margin: 0 0 14px; font-size: 16px; color: var(--primary); }
.modal-dialog img { width: 220px; height: 220px; }
.modal-tip { color: var(--text-light); font-size: 12px; margin: 10px 0 0; }
.modal-close { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 22px; color: #999; cursor: pointer; }
.panel-title.with-action { display: flex; align-items: center; justify-content: space-between; }
.widget-actions { display: flex; gap: 8px; margin-top: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.side-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.side-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: #eaedf0; color: var(--primary); font-size: 18px; }
.side-name { font-weight: 600; color: var(--primary); }

@media (max-width: 720px) {
    .header-user { margin-left: auto; }
    .main-nav { order: 3; }
    .uc-head { flex-direction: column; text-align: center; }
    .uc-actions { justify-content: center; }
    .uc-stats { justify-content: space-around; gap: 0; }
    .article-actions { flex-direction: column; align-items: stretch; }
    .emoji-picker, .sticker-picker { max-width: 100%; }
    .post-manage-item { flex-direction: column; gap: 8px; }
}

/* 编辑器表情/小黄鸡面板 */
.edit-tool-tabs { display: flex; gap: 6px; margin: 10px 0 6px; }
.edit-tool-tabs .etab { padding: 5px 14px; border: 1px solid var(--line-dark); background: #fff; color: var(--text-mid); border-radius: 6px; font-size: 13px; cursor: pointer; }
.edit-tool-tabs .etab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.edit-emoji-picker, .edit-sticker-picker { max-width: 100%; }
.article-sticker { width: 42px; height: 42px; object-fit: contain; vertical-align: middle; margin: 0 2px; border: none; box-shadow: none; display: inline-block; }

/* 评论表情面板（与发布编辑器一致） */
.comment-tools { margin: 10px 0; }
.comment-panel { max-height: 200px; overflow-y: auto; padding: 10px; background: #fafbfc; border: 1px solid var(--line); border-radius: 6px; }
.comment-panel.ed-panel-sticker { display: flex; flex-wrap: wrap; gap: 4px; }
.comment-panel .ed-emoji-group { margin-bottom: 8px; }
.comment-panel .ed-emoji-title { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.comment-panel .ed-emoji-row { display: flex; flex-wrap: wrap; gap: 2px; }
.comment-panel .ed-emoji { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; padding: 3px; border-radius: 5px; }
.comment-panel .ed-emoji:hover { background: #eef1f4; }
.comment-panel .ed-sticker { border: 1px solid transparent; background: transparent; padding: 3px; cursor: pointer; border-radius: 6px; line-height: 0; }
.comment-panel .ed-sticker:hover { background: #eef1f4; border-color: var(--line-dark); }
.comment-panel .ed-sticker img { width: 40px; height: 40px; object-fit: contain; }

@media (max-width: 720px) {
    .comment-panel { max-height: 170px; }
    .comment-panel .ed-sticker img { width: 34px; height: 34px; }
}

/* =========================================================
   评论回复 / 通知
   ========================================================= */
.comment-submit-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#toggleEmojiBtn.active, #toggleStickerBtn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.reply-to-bar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
    padding: 8px 12px; background: #eef2f7; border: 1px solid #d3ddec; border-radius: 6px;
    font-size: 13px; color: #35507a;
}
.reply-to-bar b { color: var(--primary); }
.reply-cancel { border: none; background: transparent; color: #b23b3b; cursor: pointer; font-size: 13px; margin-left: auto; }

.reply-btn {
    border: none; background: transparent; color: var(--text-light); cursor: pointer;
    font-size: 12px; padding: 0 6px; margin-left: 8px;
}
.reply-btn:hover { color: var(--primary); }

.reply-list { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.reply-item { display: flex; gap: 10px; padding: 10px 0 0; }
.comment-avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.reply-to { color: var(--text-light); font-size: 12px; margin-left: 4px; }
.reply-to b { color: var(--primary); }

/* 通知 */
.hu-notify { position: relative; }
.notify-badge {
    position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
    background: #d52b2b; color: #fff; border-radius: 9px; font-size: 10px; line-height: 16px;
    text-align: center; font-weight: 700;
}
.notify-list { list-style: none; margin: 0; padding: 0; }
.notify-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notify-item:last-child { border-bottom: none; }
.notify-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; flex: none; }
.notify-item.unread .notify-dot { background: #d52b2b; }
.notify-body { flex: 1; min-width: 0; }
.notify-text { color: var(--text); font-size: 14px; line-height: 1.7; }
.notify-text b { color: var(--primary); }
.notify-link { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--accent); }
.notify-time { color: var(--text-light); font-size: 12px; flex: none; }

/* 注册算术验证码 */
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-question {
    display: inline-block; padding: 9px 18px; background: #eef1f4; border: 1px solid var(--line-dark);
    border-radius: 6px; font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: 2px;
    white-space: nowrap; user-select: none;
}
.captcha-input { flex: 1; }
