:root {
    --cnlm-primary: #1677ff;
    --cnlm-primary-dark: #0958d9;
    --cnlm-primary-light: #e6f4ff;
    --cnlm-success: #52c41a;
    --cnlm-warning: #fa8c16;
    --cnlm-danger: #ff4d4f;
    --cnlm-text: #1f2937;
    --cnlm-text-light: #6b7280;
    --cnlm-text-lighter: #9ca3af;
    --cnlm-border: #e5e7eb;
    --cnlm-border-light: #f3f4f6;
    --cnlm-bg: #f3f5f9;
    --cnlm-card: #ffffff;
    --cnlm-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --cnlm-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
    --cnlm-radius: 8px;
    --cnlm-radius-sm: 4px;
    --cnlm-header-height: 60px;
    --cnlm-nav-height: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", "Segoe UI", Roboto, sans-serif;
    background: var(--cnlm-bg);
    color: var(--cnlm-text);
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: var(--cnlm-text);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--cnlm-primary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    outline: none;
}

.cnlm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cnlm-clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.cnlm-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cnlm-header-top {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.cnlm-header-top > * {
    flex-shrink: 0;
}

.cnlm-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: var(--cnlm-primary);
}

.cnlm-logo-icon {
    font-size: 28px;
}

.cnlm-logo-text {
    font-size: 20px;
    color: var(--cnlm-text);
}

.cnlm-logo img {
    max-height: 36px;
    width: auto;
    display: block;
}

.cnlm-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.cnlm-header-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.cnlm-header-links a {
    color: var(--cnlm-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cnlm-header-links a:hover {
    color: var(--cnlm-primary);
}

.cnlm-header-links .cnlm-link-login,
.cnlm-header-links .cnlm-link-register {
    color: var(--cnlm-primary);
}

.cnlm-nav-wrap {
    background: #fff;
    border-top: 1px solid var(--cnlm-border-light);
}

.cnlm-nav-row {
    height: var(--cnlm-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cnlm-nav-left {
    flex: 1;
}

.cnlm-nav-right {
    flex-shrink: 0;
}

.cnlm-nav {
    height: var(--cnlm-nav-height);
    display: flex;
    align-items: center;
}

.cnlm-search {
    position: relative;
    width: 280px;
}

.cnlm-search-input {
    width: 100%;
    height: 38px;
    padding: 0 42px 0 12px;
    border: 1px solid var(--cnlm-border);
    border-radius: var(--cnlm-radius-sm);
    font-size: 14px;
    transition: border-color 0.2s;
}

.cnlm-search-input:focus {
    border-color: var(--cnlm-primary);
}

.cnlm-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 38px;
    background: var(--cnlm-primary);
    color: #fff;
    border-radius: 0 var(--cnlm-radius-sm) var(--cnlm-radius-sm) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.cnlm-search-btn:hover {
    background: var(--cnlm-primary-dark);
}

/* ====== 手机版汉堡菜单按钮 ====== */
.cnlm-mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 110;
}

.cnlm-mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cnlm-text);
    border-radius: 2px;
    transition: all 0.3s;
}

.cnlm-mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.cnlm-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.cnlm-mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====== 手机版导航遮罩层 ====== */
.cnlm-mobile-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s;
}

.cnlm-mobile-mask.show {
    display: block;
    opacity: 1;
}

/* ====== 手机版导航面板 ====== */
.cnlm-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: #fff;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
}

.cnlm-mobile-panel.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.cnlm-mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cnlm-border-light);
    font-size: 16px;
    font-weight: bold;
    color: var(--cnlm-text);
    flex-shrink: 0;
}

.cnlm-mobile-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnlm-mobile-panel-close:hover {
    color: var(--cnlm-text);
}

.cnlm-mobile-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* 移动端搜索 */
.cnlm-mobile-search {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid var(--cnlm-border);
    border-radius: var(--cnlm-radius-sm);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cnlm-mobile-search-input {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    border: none;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.cnlm-mobile-search-btn {
    width: 48px;
    height: 44px;
    background: var(--cnlm-primary);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端用户操作 */
.cnlm-mobile-user {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cnlm-border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnlm-mobile-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--cnlm-radius-sm);
    background: var(--cnlm-primary-light);
    color: var(--cnlm-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.cnlm-mobile-user-btn:hover {
    background: #dbe4ff;
}

.cnlm-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cnlm-nav-item {
    position: relative;
}

.cnlm-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    transition: all 0.2s;
    border-radius: 4px;
    white-space: nowrap;
}

.cnlm-nav-link:hover {
    background: var(--cnlm-primary-light);
    color: var(--cnlm-primary);
}

/* 当前页导航高亮：蓝色实心背景 + 白色文字（仿 GKKM2 首页按钮） */
.cnlm-nav-link.active {
    background: var(--cnlm-primary);
    color: #fff;
}

.cnlm-nav-link.active:hover {
    background: var(--cnlm-primary-dark);
    color: #fff;
}

/* 导航图标：仿 GKKM2 —— 黑色小圆背景 + 白色小图标 */
.cnlm-nav-link .cnlm-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

/* 当前页（高亮时）图标反转为白底蓝色 */
.cnlm-nav-link.active .cnlm-nav-icon {
    background: #fff;
    color: var(--cnlm-primary);
}

.cnlm-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--cnlm-radius) var(--cnlm-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 50;
}

.cnlm-nav-item:hover .cnlm-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cnlm-nav-dropdown li {
    padding: 0;
}

.cnlm-nav-dropdown .cnlm-nav-link {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
}

.cnlm-nav-dropdown .cnlm-nav-link:hover {
    background: var(--cnlm-primary-light);
    color: var(--cnlm-primary);
}

.cnlm-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.cnlm-wrap {
    max-width: 1200px;
    margin: 5px auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
}

.cnlm-main {
    flex: 1;
    min-width: 0;
}

.cnlm-side {
    width: 300px;
    flex-shrink: 0;
}

.cnlm-announce {
    padding: 0;
    margin-bottom: 16px;
}

.cnlm-announce .cnlm-container {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--cnlm-radius);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #c62828;
    font-size: 14px;
    font-weight: bold;
}

.cnlm-announce-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.cnlm-announce-text {
    display: inline-block;
    padding-right: 50px;
    animation: cnlm-marquee 25s linear infinite;
}

.cnlm-announce-marquee:hover .cnlm-announce-text {
    animation-play-state: paused;
}

@keyframes cnlm-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.cnlm-announce a {
    color: var(--cnlm-primary);
    font-weight: 600;
}

.cnlm-announce-close {
    cursor: pointer;
    font-size: 18px;
    color: #d46b08;
    opacity: 0.7;
}

.cnlm-announce-close:hover {
    opacity: 1;
}

.cnlm-welcome {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: var(--cnlm-radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #0f5132;
}

.cnlm-welcome-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cnlm-new-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cnlm-new-user-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6fffb;
    color: #08979c;
    font-size: 14px;
}

.cnlm-tabs-wrap {
    background: #fff;
    border-radius: var(--cnlm-radius);
    margin-bottom: 16px;
    padding: 0 16px;
}

.cnlm-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--cnlm-border-light);
    padding: 0 4px;
}

.cnlm-tab-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--cnlm-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    text-decoration: none;
}

.cnlm-tab-item:hover {
    color: var(--cnlm-primary);
    text-decoration: none;
}

.cnlm-tab-item.active {
    color: var(--cnlm-primary);
    border-bottom-color: var(--cnlm-primary);
    font-weight: 600;
}

.cnlm-tabs-right {
    margin-left: auto;
}

.cnlm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: var(--cnlm-radius-sm);
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
}

.cnlm-btn-primary {
    background: var(--cnlm-primary);
    color: #fff;
}

.cnlm-btn-primary:hover {
    background: var(--cnlm-primary-dark);
    color: #fff;
}

.cnlm-list {
    background: #fff;
    border-radius: var(--cnlm-radius);
    overflow: hidden;
}

.cnlm-list-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cnlm-border-light);
    transition: background 0.2s;
}

.cnlm-list-item:last-child {
    border-bottom: none;
}

.cnlm-list-item:hover {
    background: #fafbfc;
}

.cnlm-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.cnlm-list-title {
    font-size: 15px;
    color: var(--cnlm-text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnlm-list-title:hover {
    color: var(--cnlm-primary);
}

.cnlm-list-meta {
    font-size: 12px;
    color: var(--cnlm-text-lighter);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cnlm-list-meta a {
    color: var(--cnlm-text-lighter);
}

.cnlm-list-meta a:hover {
    color: var(--cnlm-primary);
}

.cnlm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
}

.cnlm-badge-sort {
    background: var(--cnlm-primary-light);
    color: var(--cnlm-primary);
}

.cnlm-badge-top {
    background: #fff1f0;
    color: var(--cnlm-danger);
}

.cnlm-badge-essence {
    background: #f6ffed;
    color: var(--cnlm-success);
}

.cnlm-list-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cnlm-list-tag {
    padding: 1px 6px;
    background: var(--cnlm-border-light);
    color: var(--cnlm-text-light);
    border-radius: 3px;
    font-size: 11px;
}

.cnlm-list-tag:hover {
    background: var(--cnlm-primary-light);
    color: var(--cnlm-primary);
}

.cnlm-list-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 10px;
}

.cnlm-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--cnlm-text-lighter);
}

.cnlm-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cnlm-pagination a,
.cnlm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--cnlm-border);
    border-radius: var(--cnlm-radius-sm);
    font-size: 13px;
    color: var(--cnlm-text);
    background: #fff;
    transition: all 0.2s;
	font-style: normal;
}

.cnlm-pagination a:hover {
    border-color: var(--cnlm-primary);
    color: var(--cnlm-primary);
}

/* 当前页面高亮: EMLOG 的 pagination() 函数将当前页输出为 <span>（无class），其他页为 <a> */
.cnlm-pagination span {
    background: var(--cnlm-primary);
    border-color: var(--cnlm-primary);
    color: #fff;
    font-weight: bold;
    cursor: default;
}

/* 省略号（EMLOG 用 <em> 标签输出）*/
.cnlm-pagination em {
    background: transparent;
    border: none;
    color: var(--cnlm-text-lighter);
    font-style: italic;
    padding: 0 4px;
    min-width: auto;
    height: auto;
}

.cnlm-widget {
    background: #fff;
    border-radius: var(--cnlm-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.cnlm-widget-title {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cnlm-text);
    border-bottom: 1px solid var(--cnlm-border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cnlm-widget-title::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--cnlm-primary);
    border-radius: 2px;
}

.cnlm-widget-body {
    padding: 12px 16px;
}

.cnlm-widget-desc {
    font-size: 12px;
    color: var(--cnlm-text-light);
    line-height: 1.6;
}

.cnlm-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
}

.cnlm-stats-item {
    text-align: center;
}

.cnlm-stats-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.cnlm-stats-num {
    font-size: 18px;
    font-weight: bold;
    color: var(--cnlm-text);
}

.cnlm-stats-label {
    font-size: 12px;
    color: var(--cnlm-text-light);
}

.cnlm-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cnlm-tag-cloud a {
    padding: 3px 8px;
    background: var(--cnlm-border-light);
    color: var(--cnlm-text-light);
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s;
}

.cnlm-tag-cloud a:hover {
    background: var(--cnlm-primary-light);
    color: var(--cnlm-primary);
}

.cnlm-top-list {
    counter-reset: top-item;
}

.cnlm-top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--cnlm-border-light);
    font-size: 13px;
}

.cnlm-top-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cnlm-top-item:first-child {
    padding-top: 0;
}

.cnlm-top-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cnlm-border-light);
    color: var(--cnlm-text-light);
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.cnlm-top-item:nth-child(1) .cnlm-top-rank {
    background: #ff4d4f;
    color: #fff;
}

.cnlm-top-item:nth-child(2) .cnlm-top-rank {
    background: #ff7a45;
    color: #fff;
}

.cnlm-top-item:nth-child(3) .cnlm-top-rank {
    background: #ffa940;
    color: #fff;
}

.cnlm-top-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cnlm-top-title a {
    color: var(--cnlm-text);
}

.cnlm-top-title a:hover {
    color: var(--cnlm-primary);
}

.cnlm-top-num {
    color: var(--cnlm-text-lighter);
    font-size: 12px;
    flex-shrink: 0;
}

.cnlm-user-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cnlm-user-card {
    text-align: center;
}

.cnlm-user-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.cnlm-user-name {
    font-size: 12px;
    color: var(--cnlm-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cnlm-user-card:hover .cnlm-user-name {
    color: var(--cnlm-primary);
}

.cnlm-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cnlm-link-list a {
    font-size: 12px;
    color: var(--cnlm-text-light);
}

.cnlm-link-list a:hover {
    color: var(--cnlm-primary);
}

.cnlm-widget-tabs {
    display: flex;
    border-bottom: 1px solid var(--cnlm-border-light);
    margin: 0 -16px 12px;
    padding: 0 16px;
}

.cnlm-widget-tab {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--cnlm-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.cnlm-widget-tab:hover {
    color: var(--cnlm-primary);
}

.cnlm-widget-tab.active {
    color: var(--cnlm-primary);
    border-bottom-color: var(--cnlm-primary);
    font-weight: 600;
}

.cnlm-widget-tab-content {
    display: none;
}

.cnlm-widget-tab-content.active {
    display: block;
}

.cnlm-recommend {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

.cnlm-recommend-item {
    display: block;
    width: 40px;
    padding: 10px 8px;
    background: var(--cnlm-primary);
    color: #fff;
    text-align: center;
    font-size: 12px;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    border-radius: 6px 0 0 6px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.cnlm-recommend-item:hover {
    background: var(--cnlm-primary-dark);
    color: #fff;
}

.cnlm-footer {
    background: #fff;
    border-top: 1px solid var(--cnlm-border-light);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 12px;
    color: var(--cnlm-text-light);
}

.cnlm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cnlm-footer a {
    color: var(--cnlm-text-light);
}

.cnlm-footer a:hover {
    color: var(--cnlm-primary);
}

.cnlm-footer-right {
    color: var(--cnlm-danger);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cnlm-footer-right span {
    color: var(--cnlm-border);
}

.cnlm-back-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--cnlm-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--cnlm-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 80;
    font-size: 16px;
    color: var(--cnlm-text-light);
}

.cnlm-back-top.show {
    opacity: 1;
    visibility: visible;
}

.cnlm-back-top:hover {
    background: var(--cnlm-primary);
    color: #fff;
    border-color: var(--cnlm-primary);
}

.cnlm-auth-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: none;
}

.cnlm-auth-mask.show {
    display: block;
}

.cnlm-auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: #fff;
    border-radius: var(--cnlm-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.cnlm-auth-modal.show {
    display: block;
}

.cnlm-auth-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: var(--cnlm-text-lighter);
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.cnlm-auth-close:hover {
    color: var(--cnlm-text);
}

.cnlm-auth-head {
    padding: 20px 24px 0;
}

.cnlm-auth-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--cnlm-border-light);
}

.cnlm-auth-tab {
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--cnlm-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.cnlm-auth-tab:hover {
    color: var(--cnlm-primary);
}

.cnlm-auth-tab.active {
    color: var(--cnlm-primary);
    border-bottom-color: var(--cnlm-primary);
}

.cnlm-auth-body {
    padding: 20px 24px 24px;
}

.cnlm-auth-panel {
    display: none;
}

.cnlm-auth-panel.active {
    display: block;
}

.cnlm-auth-form-row {
    margin-bottom: 14px;
}

.cnlm-auth-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--cnlm-border);
    border-radius: var(--cnlm-radius-sm);
    font-size: 14px;
    transition: border-color 0.2s;
}

.cnlm-auth-input:focus {
    border-color: var(--cnlm-primary);
}

.cnlm-auth-captcha-row {
    display: flex;
    gap: 10px;
}

.cnlm-auth-captcha-row .cnlm-auth-input {
    flex: 1;
}

.cnlm-auth-captcha-img {
    width: 100px;
    height: 40px;
    border: 1px solid var(--cnlm-border);
    border-radius: var(--cnlm-radius-sm);
    cursor: pointer;
}

.cnlm-auth-inline-row {
    display: flex;
    gap: 10px;
}

.cnlm-auth-inline-row .cnlm-auth-input {
    flex: 1;
}

.cnlm-auth-inline-btn {
    height: 40px;
    padding: 0 12px;
    background: var(--cnlm-primary-light);
    color: var(--cnlm-primary);
    border-radius: var(--cnlm-radius-sm);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.cnlm-auth-inline-btn:hover {
    background: var(--cnlm-primary);
    color: #fff;
}

.cnlm-auth-inline-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cnlm-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--cnlm-text-light);
    cursor: pointer;
    margin-bottom: 14px;
}

.cnlm-auth-checkbox input {
    accent-color: var(--cnlm-primary);
}

.cnlm-auth-submit {
    width: 100%;
    height: 40px;
    background: var(--cnlm-primary);
    color: #fff;
    border-radius: var(--cnlm-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.cnlm-auth-submit:hover {
    background: var(--cnlm-primary-dark);
}

.cnlm-auth-switch {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 13px;
}

.cnlm-auth-switch a {
    color: var(--cnlm-primary);
}

.cnlm-auth-switch a:hover {
    text-decoration: underline;
}

.cnlm-auth-alert {
    padding: 10px 12px;
    border-radius: var(--cnlm-radius-sm);
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.cnlm-auth-alert.error {
    display: block;
    background: #fff1f0;
    color: var(--cnlm-danger);
    border: 1px solid #ffa39e;
}

.cnlm-auth-alert.success {
    display: block;
    background: #f6ffed;
    color: var(--cnlm-success);
    border: 1px solid #b7eb8f;
}

.cnlm-auth-ext {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cnlm-border-light);
    text-align: center;
    font-size: 13px;
    color: var(--cnlm-text-light);
}

.cnlm-top-num {
    margin-left: auto;
    color: var(--cnlm-text-lighter);
    font-size: 12px;
}

.cnlm-blogger {
    text-align: center;
}

.cnlm-blogger-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.cnlm-blogger-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.cnlm-blogger-desc {
    font-size: 13px;
    color: var(--cnlm-text-light);
    line-height: 1.5;
}

.cnlm-widget-search-form {
    display: flex;
    gap: 5px;
}

.cnlm-widget-search-input {
    flex: 1;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--cnlm-border-light);
    border-radius: var(--cnlm-radius-sm);
    font-size: 13px;
    outline: none;
}

.cnlm-widget-search-input:focus {
    border-color: var(--cnlm-primary);
}

.cnlm-widget-search-btn {
    min-width: 60px;
    padding: 0 14px;
    height: 32px;
    border: none;
    background: var(--cnlm-primary);
    color: #fff;
    border-radius: var(--cnlm-radius-sm);
    cursor: pointer;
    font-size: 14px;
}

.cnlm-twitter-list {
    font-size: 13px;
}

.cnlm-twitter-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--cnlm-border-light);
}

.cnlm-twitter-item:last-child {
    border-bottom: none;
}

.cnlm-twitter-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    float: left;
}

.cnlm-twitter-author {
    font-weight: 500;
    font-size: 12px;
}

.cnlm-twitter-time {
    font-size: 11px;
    color: var(--cnlm-text-lighter);
    margin-left: 8px;
}

.cnlm-twitter-content {
    margin-top: 6px;
    color: var(--cnlm-text-light);
    line-height: 1.4;
    clear: both;
}

.cnlm-empty {
    text-align: center;
    padding: 20px 10px;
    color: var(--cnlm-text-lighter);
    font-size: 13px;
}

/* EMLOG 日历组件样式 */
#calendar {
    color: var(--cnlm-text);
    font-size: 13px;
}

.calendartop {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    color: var(--cnlm-text);
    font-weight: 600;
}

.calendartop a {
    color: var(--cnlm-primary);
    text-decoration: none;
    padding: 0 4px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar td {
    text-align: center;
    padding: 6px 2px;
    line-height: 1.5;
    width: 14.28%;
}

.calendar td a {
    color: var(--cnlm-primary);
    font-weight: 600;
    text-decoration: none;
}

.calendar td a:hover {
    text-decoration: underline;
}

.calendar .week {
    color: var(--cnlm-text-light);
    font-weight: 600;
}

.calendar .day {
    color: #fff;
    background: var(--cnlm-primary);
    border-radius: var(--cnlm-radius-sm);
}

.cnlm-twitter-list .cnlm-empty {
    padding: 12px 10px;
}

.cnlm-article {
    background: #fff;
    border-radius: var(--cnlm-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--cnlm-shadow);
}

.cnlm-article-path {
    font-size: 13px;
    color: var(--cnlm-text-light);
    margin-bottom: 16px;
}

.cnlm-article-path a {
    color: var(--cnlm-primary);
    text-decoration: none;
}

.cnlm-article-path a:hover {
    text-decoration: underline;
}

.cnlm-article-head {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cnlm-border-light);
}

.cnlm-article-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cnlm-text);
    margin: 8px 0 12px;
}

.cnlm-article-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--cnlm-text-light);
    margin-bottom: 8px;
}

.cnlm-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.cnlm-article-meta a {
    color: var(--cnlm-primary);
    text-decoration: none;
}

.cnlm-article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--cnlm-text);
    word-wrap: break-word;
    overflow-x: auto;
}

.cnlm-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cnlm-radius-sm);
    margin: 8px 0;
}

.cnlm-article-body h1, .cnlm-article-body h2, .cnlm-article-body h3,
.cnlm-article-body h4, .cnlm-article-body h5, .cnlm-article-body h6 {
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--cnlm-text);
}

.cnlm-article-body p {
    margin: 12px 0;
}

.cnlm-article-body a {
    color: var(--cnlm-primary);
    text-decoration: none;
}

.cnlm-article-body a:hover {
    text-decoration: underline;
}

.cnlm-article-body pre, .cnlm-article-body code {
    background: #f5f5f5;
    border-radius: var(--cnlm-radius-sm);
    padding: 2px 6px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
}

.cnlm-article-body pre {
    padding: 12px;
    overflow-x: auto;
    line-height: 1.5;
}

.cnlm-article-body blockquote {
    border-left: 4px solid var(--cnlm-primary);
    background: #f8f9fa;
    margin: 12px 0;
    padding: 10px 16px;
    color: var(--cnlm-text-light);
}

.cnlm-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.cnlm-article-body th, .cnlm-article-body td {
    border: 1px solid var(--cnlm-border-light);
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
}

.cnlm-article-body th {
    background: #fafafa;
    font-weight: 600;
}

.cnlm-article-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
    padding: 16px;
    background: #fafafa;
    border-radius: var(--cnlm-radius-sm);
}

.cnlm-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--cnlm-border-light);
    background: #fff;
    border-radius: var(--cnlm-radius-sm);
    font-size: 14px;
    color: var(--cnlm-text);
    cursor: pointer;
    transition: all 0.2s;
}

.cnlm-action-btn:hover {
    border-color: var(--cnlm-primary);
    color: var(--cnlm-primary);
}

.cnlm-article-related {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cnlm-border-light);
}

.cnlm-article-related-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--cnlm-text);
    margin-bottom: 12px;
}

.cnlm-related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cnlm-related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: var(--cnlm-radius-sm);
    font-size: 13px;
}

.cnlm-related-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--cnlm-text);
    text-decoration: none;
}

.cnlm-related-title:hover {
    color: var(--cnlm-primary);
    text-decoration: underline;
}

.cnlm-related-date {
    color: var(--cnlm-text-lighter);
    margin-left: 10px;
    flex-shrink: 0;
}

/* ==================== 文章评论（按图2效果重写） ==================== */
/* ==================== 文章评论（参考图效果） ==================== */
.cnlm-article-comments {
    margin-top: 24px;
    padding: 20px 24px;
    background: #fff;
    border-radius: var(--cnlm-radius);
    border: 1px solid var(--cnlm-border-light);
}

/* 标题区 */
.comment-header {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--cnlm-text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cnlm-border-light);
}

.comment-header b {
    font-weight: 600;
}

/* ⭐ 顶层评论卡片：浅灰圆角背景，整行 flex */
.cnlm-article .comment {
    display: flex;
	flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #f5f7fa;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.cnlm-article .comment:hover {
    border-color: var(--cnlm-border-light);
}

/* 头像 */
.cnlm-article .avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-top: 0;
}

.cnlm-article .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* 中部主信息区：用户名 + 时间 + 内容 */
.cnlm-article .comment-main {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cnlm-article .comment-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--cnlm-text-light);
    margin-bottom: 4px;
}

.cnlm-article .comment-author {
    color: #333;
    font-weight: 600;
    margin-right: 8px;
}

.cnlm-article .comment-time {
    color: var(--cnlm-text-lighter);
    font-size: 12px;
    margin-right: 8px;
}

.cnlm-article .comment-reply-to {
    color: var(--cnlm-text-light);
    font-size: 12px;
    margin-right: 8px;
}

.cnlm-article .comment-reply-to a {
    color: var(--cnlm-primary);
    text-decoration: none;
}

.cnlm-article .comment-content {
    color: #333;
    word-break: break-word;
    font-size: 14px;
}

/* ⭐ 右侧操作区：回复/删除按钮，右对齐 */
.cnlm-article .comment-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 2px;
}

/* 回复按钮：文字链接样式 */
.cnlm-article .com-reply {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--cnlm-primary);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.cnlm-article .com-reply:hover {
    color: #1173b8;
    text-decoration: underline;
}

/* 删除按钮：红色文字链接 */
.cnlm-article .comment-delete {
    color: #e74c3c;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.cnlm-article .comment-delete:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* ⭐ 子评论外层：左侧缩进，子卡片有蓝色边框 */
.cnlm-article .comment-children-wrap {
    margin-left: 60px;
    margin-bottom: 10px;
}

/* ⭐ 子评论卡片：白色背景 + 蓝色细边框，更小的内边距 */
.cnlm-article .comment-children {
    background: #fff;
    border: 1px solid #cfe0f5;    /* 蓝色边框 */
    border-radius: 8px;
    padding: 12px 16px;
}

.cnlm-article .comment-children .avatar,
.cnlm-article .comment-children .avatar img {
    width: 32px;
    height: 32px;
}

/* 翻页 */
#pagenavi {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}

#pagenavi a,
#pagenavi span {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid var(--cnlm-border-light);
    border-radius: 4px;
    color: var(--cnlm-text-light);
    text-decoration: none;
}

#pagenavi a:hover {
    border-color: var(--cnlm-primary);
    color: var(--cnlm-primary);
}

#pagenavi span {
    background: var(--cnlm-primary);
    border-color: var(--cnlm-primary);
    color: #fff;
}

/* 评论表单 */
#comments {
    margin-top: 24px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.comment-post {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid var(--cnlm-border-light);
}

.commentform {
    width: 100%;
    box-sizing: border-box;
}

.cnlm-article .commentform .log_comment {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--cnlm-border-light);
    border-radius: var(--cnlm-radius-sm);
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    background: #fff;
}

.cnlm-article .commentform .log_comment:focus {
    border-color: var(--cnlm-primary);
}

.cnlm-article .comment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.cnlm-article .comment-info .com_control {
    flex: 1;
    min-width: 120px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--cnlm-border-light);
    border-radius: var(--cnlm-radius-sm);
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}

.cnlm-article .comment-info .com_control:focus {
    border-color: var(--cnlm-primary);
}

.cnlm-article .com_submit_p {
    text-align: right;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

#comment_submit,
#cancel-reply {
    padding: 8px 20px;
    border: none;
    border-radius: var(--cnlm-radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

#comment_submit {
    background: var(--cnlm-primary);
    color: #fff;
}

#comment_submit:hover {
    opacity: 0.9;
}

#cancel-reply {
    background: #fff;
    border: 1px solid var(--cnlm-border-light);
    color: var(--cnlm-text-light);
}

#cancel-reply:hover {
    border-color: var(--cnlm-primary);
    color: var(--cnlm-primary);
}

/* 返回按钮 */
.cnlm-article-back {
    margin-top: 24px;
    text-align: center;
}

.cnlm-back-btn {
    padding: 10px 40px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: var(--cnlm-radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.cnlm-back-btn:hover {
    background: #555;
}

.cnlm-article .com_submit_p .cancel-reply {
    background: #fff;
    color: var(--cnlm-text);
    border-color: var(--cnlm-border-light);
}

.cnlm-article #pagenavi {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.cnlm-article #pagenavi a {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid var(--cnlm-border-light);
    border-radius: var(--cnlm-radius-sm);
    color: var(--cnlm-text);
    text-decoration: none;
}

.cnlm-article #pagenavi a:hover,
.cnlm-article #pagenavi .current {
    border-color: var(--cnlm-primary);
    color: var(--cnlm-primary);
}

@media (max-width: 992px) {
    .cnlm-side {
        display: none;
    }

    .cnlm-recommend {
        display: none;
    }

    .cnlm-header-links {
        display: none;
    }

    .cnlm-mobile-menu-btn {
        display: flex;
    }

    .cnlm-nav-wrap {
        display: none;
    }

    .cnlm-search {
        display: none;
    }

    .cnlm-main {
        width: 100%;
        padding-right: 0;
    }

    .cnlm-mobile-panel .cnlm-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 0;
        font-size: 15px;
        color: #333;
        height: auto;
        line-height: 1.6;
        border-radius: 0;
        white-space: normal;
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
        background: transparent;
    }

    .cnlm-mobile-panel .cnlm-nav-link:hover {
        background: rgba(78, 115, 223, 0.05);
        color: var(--cnlm-primary);
    }

    .cnlm-mobile-panel .cnlm-nav-link.active {
        background: rgba(78, 115, 223, 0.08);
        color: var(--cnlm-primary);
        font-weight: bold;
    }

    .cnlm-mobile-panel .cnlm-nav-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--cnlm-primary);
        color: #fff;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-weight: bold;
        line-height: 1;
    }

    .cnlm-mobile-panel .cnlm-nav-link.active .cnlm-nav-icon {
        background: var(--cnlm-primary);
        color: #fff;
    }

    .cnlm-mobile-panel .cnlm-nav-list {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cnlm-mobile-panel .cnlm-nav-item {
        border-bottom: 1px solid var(--cnlm-border-light);
        margin: 0;
        padding: 0;
        list-style: none;
        position: static;
    }

    .cnlm-mobile-panel .cnlm-nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-radius: 0;
        background: #f9f9f9;
        padding-left: 0;
        margin-left: 36px;
        display: none;
        transform: none;
        z-index: auto;
    }

    .cnlm-mobile-panel .cnlm-nav-dropdown ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cnlm-mobile-panel .cnlm-nav-dropdown li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .cnlm-mobile-panel .cnlm-nav-item:hover .cnlm-nav-dropdown {
        display: block;
    }

    .cnlm-mobile-panel .cnlm-nav-dropdown .cnlm-nav-link {
        padding: 12px 0;
        font-size: 14px;
        gap: 8px;
    }

    .cnlm-mobile-panel .cnlm-nav-dropdown .cnlm-nav-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .cnlm-mobile-panel .cnlm-nav-arrow {
        margin-left: auto;
        font-size: 12px;
        color: #999;
    }

    .cnlm-mobile-panel .cnlm-mobile-search {
        display: flex;
        margin-bottom: 24px;
        border: 1px solid var(--cnlm-border);
        border-radius: var(--cnlm-radius-sm);
        overflow: hidden;
        position: relative;
        z-index: 2;
        background: #fff;
    }

    .cnlm-mobile-panel .cnlm-mobile-search-input {
        flex: 1;
        height: 44px;
        padding: 0 12px;
        border: none;
        font-size: 14px;
        outline: none;
        background: #fff;
        box-sizing: border-box;
    }

    .cnlm-mobile-panel .cnlm-mobile-search-btn {
        width: 48px;
        height: 44px;
        background: var(--cnlm-primary);
        color: #fff;
        border: none;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cnlm-mobile-panel .cnlm-mobile-nav {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .cnlm-mobile-panel .cnlm-nav {
        height: auto;
        display: block;
        align-items: normal;
    }

    .cnlm-mobile-panel .cnlm-mobile-search {
        margin-bottom: 28px !important;
        padding: 0;
        z-index: 10 !important;
        position: relative !important;
    }

    .cnlm-mobile-panel .cnlm-mobile-nav {
        margin-top: 0 !important;
        padding-top: 0 !important;
        clear: both;
        position: relative;
        z-index: 1;
        margin-top: 28px !important;
    }

    .cnlm-mobile-panel .cnlm-nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    .cnlm-mobile-panel .cnlm-nav-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid var(--cnlm-border-light) !important;
    }
}

@media (max-width: 768px) {
    .cnlm-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .cnlm-announce {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .cnlm-list-avatar {
        display: none;
    }

    .cnlm-auth-modal {
        width: 90%;
        max-width: 360px;
    }
}
/* ==========================================================================
   评论回复：独立回复框样式
   HTML 结构（module.php 中生成）：
   <div class="comment">
       ...
       <div class="comment-actions">
           <button class="com-reply" data-cid="...">回复</button>
       </div>
       <div class="comment-reply-box" id="reply-box-...">
           <form class="reply-form-inline">
               <textarea class="reply-textarea">
               <div class="reply-fields">昵称/邮箱</div>
               <div class="reply-actions">发表 / 取消</div>
           </form>
       </div>
   </div>
   ========================================================================== */

/* ===== 整个回复输入框容器 ===== */
.cnlm-article .comment-reply-box {
    display: none;
    width: 100%;
	flex-basis: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    box-sizing: border-box;
}

/* ===== 回复框中的 textarea ===== */
.cnlm-article .reply-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d7dde3;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    font-family: inherit;
}
.cnlm-article .reply-textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* ===== 回复框中的昵称/邮箱输入字段（游客） ===== */
.cnlm-article .reply-fields {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cnlm-article .reply-fields input {
    flex: 1;
    min-width: 120px;
    padding: 6px 10px;
    border: 1px solid #d7dde3;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.cnlm-article .reply-fields input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* ===== 回复按钮行 ===== */
.cnlm-article .reply-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.cnlm-article .reply-submit {
    padding: 6px 16px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.cnlm-article .reply-submit:hover {
    background: #3a7bc8;
}
.cnlm-article .reply-cancel {
    padding: 6px 14px;
    background: #f2f4f7;
    color: #555;
    border: 1px solid #d7dde3;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.cnlm-article .reply-cancel:hover {
    background: #e6e9ee;
    color: #333;
}