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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}

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

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

header {
    background: #3b82f6;
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 30px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

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

.header-nav a.active {
    color: #4a3a00;
    background: #fbbf24;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 4px 12px;
    margin-right: 20px;
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    width: 180px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.user-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.user-menu .btn-login {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 4px;
}

.user-menu .btn-login:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
}

.main-content {
    padding: 25px 0;
    min-height: calc(100vh - 200px);
}

.main-content .container {
    display: flex;
    gap: 24px;
}

.main-left {
    width: 75%;
}

.sidebar {
    width: 23%;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.page-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
    color: #333;
}

.top-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top-post-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}

.top-post-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.top-post-item img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.top-post-item .top-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-post-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.5;
}

.top-post-item h3 a {
    color: #333;
    text-decoration: none;
}

.top-post-item h3 a:hover {
    color: #3b82f6;
}

.top-post-item .meta {
    font-size: 12px;
    color: #999;
}

.tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 500;
}

.tag.top {
    background: #fff1f0;
    color: #f5222d;
}

.tag.essence {
    background: #fffbe6;
    color: #fa8c16;
}

.tag.pending {
    background: #fffbe6;
    color: #faad14;
}

.tag.checked {
    background: #f6ffed;
    color: #52c41a;
}

.new-posts,
.hot-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

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

.post-item:hover {
    background: #fafafa;
}

.post-item .avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 14px;
    flex-shrink: 0;
}

.post-item .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item .avatar-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eef4ff;
    color: #3b82f6;
    font-size: 18px;
}

.post-item .post-info {
    flex: 1;
    min-width: 0;
}

.post-item .post-info h4 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-item .post-info h4 a {
    color: #333;
    text-decoration: none;
}

.post-item .post-info h4 a:hover {
    color: #3b82f6;
}

.post-item .post-info .meta {
    font-size: 12px;
    color: #bbb;
}

.post-item .post-stats {
    font-size: 12px;
    color: #bbb;
    flex-shrink: 0;
    display: flex;
    gap: 15px;
}

.sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-card .card-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item {
    padding: 12px;
    background: #fffbe6;
    border-radius: 6px;
    border-left: 4px solid #faad14;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s;
}

.notice-item:hover {
    background: #fff7e6;
}

.notice-item a {
    color: #3b82f6;
    text-decoration: none;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud .tag-item {
    display: inline-block;
    font-size: 13px;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #666;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.tags-cloud .tag-item:hover {
    background: #eef4ff;
    color: #3b82f6;
}

.member-card {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.member-card:last-child {
    border-bottom: none;
}

.member-card .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.member-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card .avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eef4ff;
    color: #3b82f6;
    font-size: 18px;
}

.member-card .info {
    flex: 1;
}

.member-card .info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
}

.member-card .info p {
    font-size: 12px;
    color: #bbb;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 6px;
    transition: background 0.3s;
}

.rank-item:hover {
    background: #f0f0f0;
}

.rank-item .rank-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    color: #666;
}

.rank-item .rank-num.top1 {
    background: #faad14;
    color: #fff;
}

.rank-item .rank-num.top2 {
    background: #bfbfbf;
    color: #fff;
}

.rank-item .rank-num.top3 {
    background: #d48806;
    color: #fff;
}

.rank-item .rank-info {
    flex: 1;
}

.rank-item .rank-info .name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.rank-item .rank-info .integral {
    font-size: 12px;
    color: #bbb;
}

.rank-item .rank-value {
    font-size: 14px;
    font-weight: bold;
    color: #3b82f6;
}

.login-page,
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.login-box,
.register-box {
    width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-box h2,
.register-box h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 26px;
    color: #333;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-group label .required {
    color: #f5222d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group .error {
    color: #f5222d;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 11px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background: #60a5fa;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e6e6e6;
}

.btn-danger {
    background: #f5222d;
    color: #fff;
}

.btn-danger:hover {
    background: #ff4d4f;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-full {
    width: 100%;
    padding: 13px;
    font-size: 16px;
}

.form-links {
    text-align: center;
    margin-top: 25px;
}

.form-links a {
    color: #3b82f6;
    text-decoration: none;
}

.cate-page .cate-header {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.cate-page .cate-header h1 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.cate-page .cate-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.cate-header {
    background: linear-gradient(135deg, #eef4ff 0%, #e6f0ff 100%);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid #e8f0fe;
}

.cate-cover {
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cate-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cate-info h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.cate-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cate-meta {
    font-size: 13px;
    color: #999;
}

.cate-meta .post-count {
    display: inline-block;
    padding: 4px 12px;
    background: #3b82f6;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.cate-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.cate-filters form {
    display: flex;
    align-items: center;
}

.cate-filters select {
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    min-width: 140px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.cate-filters select:focus {
    border-color: #3b82f6;
}

.cate-filters a {
    padding: 10px 22px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    transition: all 0.3s;
}

.cate-filters a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.cate-filters a.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 22px;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-card .post-cover {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-card .post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-content .post-meta {
    margin-bottom: 10px;
}

.post-card .post-content h3 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
    flex-shrink: 0;
    line-height: 1.5;
}

.post-card .post-content h3 a {
    color: #333;
    text-decoration: none;
}

.post-card .post-content h3 a:hover {
    color: #3b82f6;
}

.post-card .post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-tags {
    margin-bottom: 14px;
}

.post-card .post-tags .tag-item {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    background: #eef4ff;
    color: #3b82f6;
    border-radius: 4px;
    margin-right: 6px;
}

.post-card .post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    color: #bbb;
    font-size: 12px;
}

.post-card .post-footer .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card .post-footer .author .avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card .post-footer .author .avatar-placeholder {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef4ff;
    color: #3b82f6;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card .post-footer .time {
    margin-right: 15px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.pagination a {
    padding: 10px 16px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #eef4ff;
    color: #3b82f6;
    border-color: #3b82f6;
}

.pagination .info {
    color: #999;
    font-size: 14px;
}

.post-detail {
    background: #fff;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.post-detail .post-header {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.post-detail .post-header .post-meta {
    margin-bottom: 15px;
}

.post-detail .post-header h1 {
    font-size: 26px;
    margin-bottom: 18px;
    color: #333;
    line-height: 1.4;
}

.post-detail .post-author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.post-detail .post-author .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.post-detail .post-author .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail .post-author .avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eef4ff;
    color: #3b82f6;
    font-size: 24px;
}

.post-detail .post-author .author-info {
    flex: 1;
}

.post-detail .post-author .author-info .name {
    font-size: 16px;
    font-weight: bold;
}

.post-detail .post-author .author-info .time {
    font-size: 13px;
    color: #bbb;
}

.post-detail .post-author .post-stats {
    font-size: 13px;
    color: #bbb;
}

.post-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
}

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

.post-content p {
    margin-bottom: 18px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 25px 0 12px;
    font-weight: bold;
}

.post-tags {
    margin-bottom: 25px;
}

.post-resources {
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 25px;
}

.post-resources h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.post-resources ul {
    list-style: none;
}

.post-resources ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-resources ul li:last-child {
    border-bottom: none;
}

.post-resources ul li a {
    color: #3b82f6;
    text-decoration: none;
}

.post-resources ul li .size {
    font-size: 12px;
    color: #bbb;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #eef4ff;
    color: #3b82f6;
}

.action-btn.active {
    background: #3b82f6;
    color: #fff;
}

.action-btn .icon {
    font-size: 16px;
}

.action-btn .count {
    font-weight: bold;
}

.comments-section {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.comments-section h2 {
    font-size: 18px;
    margin-bottom: 22px;
}

.comment-input {
    margin-bottom: 25px;
}

.comment-input textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 90px;
    outline: none;
}

.comment-input textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.comment-input button {
    margin-top: 12px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 18px;
    background: #fafafa;
    border-radius: 10px;
    transition: background 0.3s;
}

.comment-item:hover {
    background: #f5f5f5;
}

.comment-item .comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.comment-item .comment-header .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-item .comment-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-item .comment-header .avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eef4ff;
    color: #3b82f6;
    font-size: 18px;
}

.comment-item .comment-header .comment-info {
    flex: 1;
}

.comment-item .comment-header .comment-info .name {
    font-size: 14px;
    font-weight: bold;
}

.comment-item .comment-header .comment-info .time {
    font-size: 12px;
    color: #bbb;
}

.comment-item .comment-content {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
}

.comment-item .comment-actions {
    font-size: 13px;
}

.comment-item .comment-actions a {
    color: #3b82f6;
    text-decoration: none;
    margin-right: 18px;
}

.comment-item .comment-actions .likes {
    color: #bbb;
}

.replies-list {
    margin-top: 18px;
    padding-left: 56px;
    border-left: 2px solid #e8e8e8;
}

.reply-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
}

.reply-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reply-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reply-item .avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eef4ff;
    color: #3b82f6;
    font-size: 14px;
}

.reply-item .reply-content {
    flex: 1;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
}

.reply-item .reply-content .name {
    font-weight: bold;
    font-size: 13px;
}

.reply-item .reply-content .time {
    font-size: 12px;
    color: #bbb;
}

.reply-input {
    margin-top: 18px;
    padding-left: 56px;
    display: flex;
    gap: 12px;
}

.reply-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 13px;
}

.reply-input .btn-cancel {
    background: #fff;
    border: 1px solid #e8e8e8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    width: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    font-size: 18px;
    margin-bottom: 22px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.publish-page {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.publish-page h1 {
    font-size: 22px;
    margin-bottom: 25px;
}

.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 10px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #3b82f6;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #999;
}

.upload-placeholder span {
    font-size: 44px;
}

.upload-preview {
    position: relative;
}

.upload-preview img {
    max-width: 220px;
    max-height: 160px;
    border-radius: 10px;
}

.upload-preview .remove-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 26px;
    height: 26px;
    background: #f5222d;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-preview img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-preview .upload-tip {
    font-size: 12px;
    color: #bbb;
}

.tags-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f5f5f5;
    border-radius: 22px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-checkbox:hover {
    background: #eef4ff;
}

.tag-checkbox input[type="checkbox"] {
    display: none;
}

.tag-checkbox input[type="checkbox"]:checked+span {
    color: #3b82f6;
}

.tag-checkbox input[type="checkbox"]:checked {
    background: #eef4ff;
}

.resources-list {
    margin-top: 12px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}

.resource-item .remove-btn {
    width: 26px;
    height: 26px;
    background: #f5222d;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-page {
    padding: 25px 0;
    min-height: calc(100vh - 200px);
}

.member-page .container {
    display: flex;
    gap: 24px;
}

.member-sidebar {
    width: 230px;
    flex-shrink: 0;
}

.member-sidebar .member-info {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.member-sidebar .member-info .avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px;
}

.member-sidebar .member-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-sidebar .member-info .avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eef4ff;
    color: #3b82f6;
    font-size: 36px;
}

.member-sidebar .member-info h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.member-sidebar .member-info p {
    font-size: 13px;
    color: #bbb;
}

.member-nav {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.member-nav ul {
    list-style: none;
}

.member-nav ul li {
    margin-bottom: 6px;
}

.member-nav ul li:last-child {
    margin-bottom: 0;
}

.member-nav ul li a {
    display: block;
    padding: 13px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.member-nav ul li a:hover {
    background: #eef4ff;
    color: #3b82f6;
}

.member-nav ul li.active a {
    background: #3b82f6;
    color: #fff;
}

.member-sidebar .avatar-box {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.member-sidebar .avatar-box img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
}

.member-sidebar .avatar-box h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.member-sidebar .avatar-box p {
    font-size: 13px;
    color: #bbb;
}

.member-nav a {
    display: block;
    padding: 13px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.member-nav a:hover {
    background: #eef4ff;
    color: #3b82f6;
}

.member-nav a.active {
    background: #3b82f6;
    color: #fff;
}

.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.integral-balance {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 25px;
    padding: 20px;
    background: #eef4ff;
    border-radius: 10px;
}

.integral-balance .label {
    font-size: 14px;
    color: #666;
}

.integral-balance .value {
    font-size: 32px;
    font-weight: bold;
    color: #3b82f6;
}

.integral-table {
    width: 100%;
    border-collapse: collapse;
}

.integral-table th,
.integral-table td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.integral-table th {
    background: #fafafa;
    font-weight: bold;
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: #bbb;
    font-size: 14px;
}

.member-content {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.member-content h2 {
    font-size: 19px;
    margin-bottom: 25px;
}

.notices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.notice-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: background 0.3s;
}

.notice-item:hover {
    background: #f5f5f5;
}

.notice-item.unread {
    background: #eef4ff;
}

.notice-item .notice-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.notice-item .notice-content p {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.notice-item .notice-content .time {
    font-size: 12px;
    color: #bbb;
}

.integral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.total-integral {
    font-size: 16px;
}

.total-integral strong {
    font-size: 26px;
    color: #3b82f6;
}

.integral-list table {
    width: 100%;
    border-collapse: collapse;
}

.integral-list th,
.integral-list td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.integral-list th {
    background: #fafafa;
    font-weight: bold;
}

.integral-list .positive {
    color: #52c41a;
}

.integral-list .negative {
    color: #f5222d;
}

.search-page {
    max-width: 900px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.search-bar input {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.search-bar input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.search-filters {
    display: flex;
    gap: 22px;
    margin-bottom: 25px;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.filter-group select {
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.search-results h3 {
    font-size: 16px;
    margin-bottom: 18px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 60px;
    color: #bbb;
}

/* 首页栏目区：全部栏目逐行列表 */
.cates-section {
    margin-bottom: 24px;
}

.cates-list {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.cate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.cate-row:last-child {
    border-bottom: none;
}

.cate-row:hover {
    background: #f0f7ff;
    color: #3b82f6;
}

.cate-row.is-parent {
    background: #f8fafc;
    font-weight: bold;
}

.cate-row.is-child {
    padding-left: 44px;
}

.cate-row.is-child .cate-name::before {
    content: '└';
    color: #bbb;
    margin-right: 8px;
    font-weight: normal;
}

.cate-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cate-count {
    flex-shrink: 0;
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

footer {
    background: linear-gradient(180deg, #2d3a4d 0%, #253042 100%);
    color: #b5c0cd;
    margin-top: 50px;
    padding: 45px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 35px;
}

.footer-brand .footer-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-brand .footer-desc {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    max-width: 420px;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-about {
    flex: 1;
    max-width: 480px;
    margin: 0 40px;
}

.footer-about h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px;
}

.footer-about p {
    color: #b5c0cd;
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

.cate-tag {
    background: #eef4ff;
    color: #3b82f6;
}

.cate-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cate-nav-item {
    padding: 6px 0;
}

.cate-nav-item>a {
    display: block;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cate-nav-item>a:hover {
    color: #3b82f6;
    background: #f0f6ff;
}

.cate-nav-item>a.active {
    color: #fff;
    background: #3b82f6;
}

.cate-nav-sub {
    list-style: none;
    padding: 0;
    margin: 2px 0 0 18px;
}

.cate-nav-sub a {
    display: block;
    color: #777;
    font-size: 13px;
    padding: 4px 10px;
    border-left: 2px solid #e5eaf0;
    transition: all 0.2s ease;
}

.cate-nav-sub a:hover {
    color: #3b82f6;
    border-left-color: #3b82f6;
    padding-left: 14px;
}

.cate-nav-sub a.active {
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 500;
}

.post-gallery-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.post-gallery-strip .gallery-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-gallery-strip .gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 24, 32, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 86vw;
    max-height: 86vh;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: #ef4444;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 14px;
    border-radius: 999px;
}

.search-bar form {
    display: flex;
    gap: 12px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px;
}

.footer-col a {
    color: #b5c0cd;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.2;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    border-top: 1px solid #3b4e68;
    padding: 20px 0;
}

.footer-beian {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 12px;
    color: #8b9bb2;
}

.footer-beian a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-beian a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    color: #8b9bb2;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-wrap: wrap;
        padding: 10px;
    }

    .logo {
        margin-right: 15px;
        font-size: 18px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        margin-top: 12px;
        gap: 15px;
    }

    .search-box {
        width: 100%;
        order: 2;
        margin-right: 0;
        margin-top: 10px;
    }

    .search-box input {
        width: 100%;
    }

    .main-content .container {
        flex-direction: column;
    }

    .main-left {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .top-post-item {
        flex-direction: column;
    }

    .top-post-item img {
        width: 100%;
        height: auto;
    }

    .post-card {
        flex-direction: column;
    }

    .post-card .post-cover {
        width: 100%;
        height: auto;
    }

    .member-page {
        flex-direction: column;
    }

    .member-sidebar {
        width: 100%;
    }

    .member-nav ul {
        display: flex;
        flex-wrap: wrap;
    }

    .member-nav ul li {
        margin-right: 6px;
    }

    .member-nav ul li a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .login-box,
    .register-box {
        width: 100%;
        padding: 25px;
    }

    .footer-top {
        flex-direction: column;
        gap: 25px;
    }

    .footer-nav {
        gap: 40px;
    }

    .footer-about {
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .post-detail {
        padding: 20px;
    }

    .post-detail h1 {
        font-size: 20px;
    }

    .post-actions {
        flex-direction: column;
    }

    .action-btn {
        justify-content: center;
    }

    .replies-list {
        padding-left: 15px;
    }

    .reply-input {
        padding-left: 15px;
        flex-direction: column;
    }

    .modal-content {
        width: 90%;
        padding: 25px;
    }
}

.jicpb {
    color: #fff;
}

.post-content a {
    text-decoration: none;
}

.post-content img {
    border-radius: 15px;
}

.footer-gaww-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== 听书播放器（Web Speech API） ===== */
.listen-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 1px solid #3b82f6; border-radius: 16px; background: #fff; color: #3b82f6; font-size: 13px; line-height: 1.4; cursor: pointer; transition: all .2s; }
.listen-btn:hover { background: #eef4ff; }
.listen-btn.playing { background: #3b82f6; color: #fff; }
body.tts-on { padding-bottom: 140px; }
.tts-player { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; padding: 12px 16px; background: #fff; border-top: 1px solid #eef0f3; box-shadow: 0 -4px 20px #d8dee8; }
.tts-player.open { display: block; }
.tts-player-card { max-width: 760px; margin: 0 auto; }
.tts-player-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: #3b82f6; }
.tts-close { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f6; color: #999; font-size: 16px; line-height: 1; cursor: pointer; }
.tts-close:hover { background: #ef4444; color: #fff; }
.tts-progress { height: 4px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.tts-progress-bar { width: 0; height: 100%; background: #3b82f6; transition: width .3s; }
.tts-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tts-btn { padding: 5px 14px; border: 1px solid #3b82f6; border-radius: 14px; background: #fff; color: #3b82f6; font-size: 13px; line-height: 1.4; cursor: pointer; transition: all .2s; }
.tts-btn:hover { background: #3b82f6; color: #fff; }
.tts-rate { padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 14px; background: #fff; color: #333; font-size: 13px; cursor: pointer; }
.tts-count { margin-left: auto; color: #999; font-size: 13px; }
.post-content .tts-reading, .post-detail h1.tts-reading { background: #eef4ff; border-radius: 4px; box-shadow: 0 0 0 4px #eef4ff; transition: background .3s; }
@media (max-width: 768px) { .listen-btn { padding: 5px 10px; font-size: 12px; } .tts-controls { flex-wrap: wrap; } .tts-count { width: 100%; margin-left: 0; } body.tts-on { padding-bottom: 180px; } }