/**
 * WP Community - 圈子社区插件样式
 */

/* 基础变量 */
:root {
    --wpc-primary: #1890ff;
    --wpc-primary-hover: #40a9ff;
    --wpc-secondary: #f5f5f5;
    --wpc-text: #262626;
    --wpc-text-secondary: #595959;
    --wpc-border: #d9d9d9;
    --wpc-border-radius: 8px;
    --wpc-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --wpc-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --wpc-transition: all 0.3s ease;
    
    /* 社区主题色 */
    --wpc-community-primary: #6366f1;
    --wpc-community-primary-light: #818cf8;
    --wpc-community-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --wpc-community-bg: #f8fafc;
    --wpc-community-card: #ffffff;
    --wpc-community-border: #e2e8f0;
    --wpc-community-text: #1e293b;
    --wpc-community-text-muted: #64748b;
    --wpc-community-accent: #f59e0b;
}

/* 通用容器 */
.wpc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  padding-top: 70px;
}

/* 按钮样式 */
.wpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--wpc-border-radius);
    cursor: pointer;
    transition: var(--wpc-transition);
    text-decoration: none;
    background: transparent;
}

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

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

.wpc-btn-secondary {
    background: #fff;
    color: var(--wpc-text);
    border-color: var(--wpc-border);
}

.wpc-btn-secondary:hover {
    border-color: var(--wpc-primary);
    color: var(--wpc-primary);
}

.wpc-btn-block {
    width: 100%;
}

.wpc-btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* 表单样式 */
.wpc-form-group {
    margin-bottom: 20px;
}

.wpc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--wpc-text);
}

.wpc-form-control {
   /* width: 100%;*/
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--wpc-text);
    background: #fff;
    border: 1px solid var(--wpc-border);
    border-radius: var(--wpc-border-radius);
    transition: var(--wpc-transition);
}

.wpc-form-control:focus {
    outline: none;
    border-color: var(--wpc-primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.wpc-form-control:disabled {
    background: var(--wpc-secondary);
    cursor: not-allowed;
}

.wpc-form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--wpc-text-secondary);
}

.wpc-form-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wpc-form-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

/* 消息提示 */
.wpc-error,
.wpc-success,
.wpc-warning,
.wpc-info {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--wpc-border-radius);
    font-size: 14px;
}

.wpc-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.wpc-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.wpc-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #d48806;
}

.wpc-info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #096dd9;
}

/* 认证页面 */
.wpc-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.wpc-auth-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #fff;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
}

/* 验证码输入框组 */
.wpc-verification-code-group {
    display: flex;
    gap: 12px;
}

.wpc-verification-code-group .wpc-form-control {
    flex: 1;
    text-align: center;
    letter-spacing: 4px;
    font-size: 18px;
    font-weight: 600;
}

.wpc-verification-code-group .wpc-btn {
    white-space: nowrap;
    padding: 10px 20px;
    min-width: 120px;
}

.wpc-verification-code-group .wpc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#wpc-code-status {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--wpc-text-secondary);
    transition: color 0.3s ease;
}

.wpc-auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: var(--wpc-text);
}

.wpc-auth-desc {
    text-align: center;
    color: var(--wpc-text-secondary);
    margin-bottom: 20px;
}

.wpc-auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--wpc-border);
}

.wpc-auth-links a {
    color: var(--wpc-primary);
    text-decoration: none;
}

.wpc-auth-links a:hover {
    text-decoration: underline;
}

.wpc-divider {
    margin: 0 10px;
    color: var(--wpc-border);
}

/* 用户中心 */
.wpc-user-center {
    max-width: 1200px;
    margin: 0 auto;
  padding-top: 70px;
}

.wpc-user-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    margin-bottom: 30px;
}

.wpc-user-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.wpc-user-info {
    flex: 1;
}

.wpc-user-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--wpc-text);
}

.wpc-user-bio {
    color: var(--wpc-text-secondary);
    margin-bottom: 20px;
}

.wpc-user-stats {
    display: flex;
    gap: 30px;
}

.wpc-stat-item {
    text-align: center;
}

.wpc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--wpc-text);
}

.wpc-stat-label {
    font-size: 14px;
    color: var(--wpc-text-secondary);
}

.wpc-user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 标签页 */
.wpc-user-tabs {
    background: #fff;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    overflow: hidden;
}

.wpc-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--wpc-border);
}

.wpc-tab-item {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wpc-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--wpc-transition);
}

.wpc-tab-item:hover,
.wpc-tab-item.active {
    color: var(--wpc-primary);
    border-bottom-color: var(--wpc-primary);
}

.wpc-tabs-content {
    padding: 24px;
}

.wpc-tab-pane {
    display: none;
}

.wpc-tab-pane.active {
    display: block;
}

/* 帖子列表 */
.wpc-post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpc-post-item {
    padding: 20px;
    background: var(--wpc-secondary);
    border-radius: var(--wpc-border-radius);
    transition: var(--wpc-transition);
}

.wpc-post-item:hover {
    box-shadow: var(--wpc-shadow-hover);
}

.wpc-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wpc-author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.wpc-author-info {
    display: flex;
    flex-direction: column;
}

.wpc-author-name {
    font-weight: 500;
    color: var(--wpc-text);
    text-decoration: none;
}

.wpc-author-name:hover {
    color: var(--wpc-primary);
}

.wpc-post-time {
    font-size: 12px;
    color: var(--wpc-text-secondary);
}

.wpc-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wpc-post-title a {
    color: var(--wpc-text);
    text-decoration: none;
}

.wpc-post-title a:hover {
    color: var(--wpc-primary);
}

.wpc-post-excerpt {
    color: var(--wpc-text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.wpc-post-images {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wpc-post-image {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

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

.wpc-post-image-more {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
}

.wpc-post-topics {
    margin-bottom: 12px;
}

.wpc-topic-tag {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 8px;
    /*margin-bottom: 8px;*/
    font-size: 12px;
    color: var(--wpc-primary);
    background: rgba(24, 144, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--wpc-transition);
}

.wpc-topic-tag:hover {
    background: var(--wpc-primary);
    color: #fff;
}

.wpc-post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--wpc-text-secondary);
}

.wpc-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wpc-post-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* 圈子卡片 */
.wpc-circle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wpc-circle-card {
    background: #fff;
    border-radius: var(--wpc-border-radius);
    overflow: hidden;
    box-shadow: var(--wpc-shadow);
    transition: var(--wpc-transition);
}

.wpc-circle-card:hover {
    box-shadow: var(--wpc-shadow-hover);
    transform: translateY(-2px);
}

.wpc-circle-cover {
    height: 140px;
    overflow: hidden;
}

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

.wpc-circle-info {
    padding: 16px;
}

.wpc-circle-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wpc-circle-name a {
    color: var(--wpc-text);
    text-decoration: none;
}

.wpc-circle-name a:hover {
    color: var(--wpc-primary);
}

.wpc-circle-desc {
    font-size: 13px;
    color: var(--wpc-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.wpc-circle-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--wpc-text-secondary);
}

/* 圈子页面布局 */
.wpc-circles-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.wpc-circles-main {
    min-width: 0;
}

.wpc-circles-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpc-widget {
    background: #fff;
    padding: 20px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
  margin-bottom: 10px;
}

.wpc-widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wpc-border);
}

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

/* 帖子详情页 */
.wpc-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.wpc-post-header-detail {
    background: #fff;
    padding: 15px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    margin-bottom: 20px;
}

.wpc-post-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.wpc-post-circle-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--wpc-primary);
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.wpc-post-circle-tag:hover {
    background: var(--wpc-primary);
    color: #fff;
}

.wpc-post-title-large {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.wpc-post-author-detail {
    display: flex;
    align-items: center;
    gap: 16px;
  padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.wpc-author-avatar-large img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.wpc-author-info-large {
    display: flex;
    flex-direction: column;
}

.wpc-author-name-large {
    font-size: 16px;
    font-weight: 600;
    color: var(--wpc-text);
    text-decoration: none;
}

.wpc-author-level {
    font-size: 12px;
    color: var(--wpc-text-secondary);
}

.wpc-post-content {
  padding-top: 10px;
  
   /* background: #fff;
    padding: 30px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    margin-bottom: 20px;*/
    line-height: 1.8;
}

.wpc-post-images-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 5px;
}

.wpc-post-image-large {
    border-radius: 8px;
    overflow: hidden;
}

.wpc-post-image-large img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wpc-post-topics-detail {
    background: #fff;
    padding: 5px 15px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    margin-bottom: 10px;
}

.wpc-topics-label {
    font-weight: 500;
    margin-right: 8px;
}

.wpc-post-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.wpc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--wpc-border);
    border-radius: var(--wpc-border-radius);
    cursor: pointer;
    transition: var(--wpc-transition);
}

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

.wpc-action-btn.liked {
    background: var(--wpc-primary);
    border-color: var(--wpc-primary);
    color: #fff;
}

/* 评论区 */
.wpc-comments-section {
    background: #fff;
    padding: 30px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
}

.wpc-comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.wpc-comment-form {
    margin-bottom: 30px;
}

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

.wpc-comment-item {
    display: flex;
    gap: 16px;
}

.wpc-comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.wpc-comment-body {
    flex: 1;
}

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

.wpc-comment-author {
    font-weight: 500;
    color: var(--wpc-text);
    text-decoration: none;
}

.wpc-comment-time {
    font-size: 12px;
    color: var(--wpc-text-secondary);
}

.wpc-comment-content {
    line-height: 1.6;
    margin-bottom: 8px;
}

.wpc-comment-actions {
    display: flex;
    gap: 16px;
}

.wpc-comment-actions button {
    font-size: 13px;
    color: var(--wpc-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.wpc-comment-actions button:hover {
    color: var(--wpc-primary);
}

.wpc-comment-replies {
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--wpc-border);
}

.wpc-reply-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.wpc-reply-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.wpc-reply-body {
    flex: 1;
}

.wpc-reply-form {
    margin-top: 12px;
}

/* 会员中心 */
.wpc-member-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.wpc-member-sidebar {
    background: #fff;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    overflow: hidden;
}

.wpc-member-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpc-member-menu li {
    border-bottom: 1px solid var(--wpc-border);
}

.wpc-member-menu li:last-child {
    border-bottom: none;
}

.wpc-member-menu a {
    display: block;
    padding: 16px 20px;
    color: var(--wpc-text);
    text-decoration: none;
    transition: var(--wpc-transition);
}

.wpc-member-menu a:hover,
.wpc-member-menu li.active a {
    background: rgba(24, 144, 255, 0.05);
    color: var(--wpc-primary);
}

.wpc-member-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
}

.wpc-avatar-preview {
    text-align: center;
    margin-bottom: 20px;
}

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

/* 话题页面 */
.wpc-topics-header {
    text-align: center;
    margin-bottom: 40px;
}

.wpc-topics-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wpc-topics-header p {
    color: var(--wpc-text-secondary);
}

.wpc-hot-topics {
    background: #fff;
    padding: 30px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    margin-bottom: 30px;
}

.wpc-hot-topics h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.wpc-topic-cloud-large {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wpc-topic-tag-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--wpc-primary);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--wpc-transition);
}

.wpc-topic-tag-large:hover {
    background: var(--wpc-primary);
    color: #fff;
}

.wpc-topic-count {
    font-size: 12px;
    opacity: 0.8;
}

.wpc-all-topics {
    background: #fff;
    padding: 30px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
}

.wpc-all-topics h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.wpc-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.wpc-topic-card {
    padding: 20px;
    background: var(--wpc-secondary);
    border-radius: var(--wpc-border-radius);
    transition: var(--wpc-transition);
}

.wpc-topic-card:hover {
    background: rgba(24, 144, 255, 0.1);
}

.wpc-topic-link {
    text-decoration: none;
    color: inherit;
}

.wpc-topic-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--wpc-primary);
}

/* 空状态 */
.wpc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--wpc-text-secondary);
}

.wpc-empty-state p {
    margin-bottom: 16px;
}

/* 分页 */
.wpc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.wpc-pagination a,
.wpc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--wpc-transition);
}

.wpc-pagination a {
    background: #fff;
    border: 1px solid var(--wpc-border);
    color: var(--wpc-text);
}

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

.wpc-pagination span.current {
    background: var(--wpc-primary);
    color: #fff;
}

.wpc-pagination span.dots {
    border: none;
}

/* ==================== 全面响应式设计 ==================== */

/* 大屏桌面 (1200px+) */
@media (max-width: 1200px) {
    .wpc-container {
        max-width: 100%;
        padding: 16px;
      padding-top: 60px;
    }
    
    .wpc-circles-layout,
    .wpc-topic-layout {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
}

/* 平板横屏 (992px - 1199px) */
@media (max-width: 992px) {
    .wpc-circles-layout,
    .wpc-topic-layout,
    .wpc-post-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wpc-circles-sidebar,
    .wpc-topic-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .wpc-circles-sidebar .wpc-widget,
    .wpc-topic-sidebar .wpc-widget {
        margin-bottom: 0;
    }
    
    .wpc-circle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpc-topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wpc-topic-cloud-large {
        gap: 10px;
    }
    
    .wpc-topic-tag-large {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* 平板竖屏 (768px - 991px) */
@media (max-width: 768px) {
    :root {
        --wpc-border-radius: 6px;
    }
    
    .wpc-container {
        padding: 12px;
      padding-top: 50px;
    }
    
    /* 通用布局 */
    .wpc-circles-layout,
    .wpc-topic-layout,
    .wpc-post-layout,
    .wpc-member-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wpc-circles-sidebar,
    .wpc-topic-sidebar {
        order: -1;
        grid-template-columns: 1fr;
    }
    
    /* 用户中心 */
    .wpc-user-center {
        padding: 0;
    }
    
    .wpc-user-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 16px;
        gap: 20px;
    }
    
    .wpc-user-avatar-large img {
        width: 80px;
        height: 80px;
    }
    
    .wpc-user-name {
        font-size: 22px;
    }
    
    .wpc-user-bio {
        font-size: 14px;
    }
    
    .wpc-user-stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .wpc-stat-value {
        font-size: 20px;
    }
    
    .wpc-stat-label {
        font-size: 12px;
    }
    
    /* 标签页 */
    .wpc-tabs-header {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .wpc-tab-item {
        padding: 12px 16px;
        font-size: 13px;
        flex: 1;
        text-align: center;
        min-width: auto;
    }
    
    .wpc-tabs-content {
        padding: 16px;
    }
    
    /* 圈子页面 */
    .wpc-circles-page {
        padding: 12px 0;
    }
    
    .wpc-circles-header {
        padding: 32px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .wpc-circles-header h2 {
        font-size: 24px;
    }
    
    .wpc-circles-header p {
        font-size: 14px;
    }
    
    .wpc-circle-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wpc-circle-card {
        border-radius: 12px;
    }
    
    .wpc-circle-cover {
        height: 140px;
    }
    
    .wpc-circle-info {
        padding: 16px;
    }
    
    .wpc-circle-name {
        font-size: 16px;
    }
    
    .wpc-circle-detail-header {
        border-radius: 12px;
    }
    
    .wpc-circle-cover-large {
        height: 160px;
    }
    
    .wpc-circle-info-large {
        padding: 20px;
    }
    
    .wpc-circle-title {
        font-size: 20px;
    }
    
    .wpc-circle-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .wpc-circle-actions .wpc-btn {
        width: 100%;
        padding: 10px;
    }
    
    /* 话题页面 */
    .wpc-topics-page {
        padding: 12px 16px;
    }
    
    .wpc-topics-header {
        padding: 32px 16px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .wpc-topics-header h2 {
        font-size: 26px;
    }
    
    .wpc-topics-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .wpc-topic-search {
        /*flex-direction: column;*/
        gap: 10px;
    }
    
    .wpc-topic-search .wpc-form-control,
    .wpc-topic-search .wpc-btn-primary {
        /*width: 100%;*/
        padding: 12px 16px;
    }
    
    .wpc-hot-topics,
    .wpc-all-topics {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .wpc-hot-topics h3,
    .wpc-all-topics h3 {
        font-size: 18px;
    }
    
    .wpc-topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .wpc-topic-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .wpc-topic-name {
        font-size: 15px;
    }
    
    .wpc-topic-tag-large {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .wpc-topic-header {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .wpc-topic-title-large {
        font-size: 24px;
    }
    
    /* 帖子列表 */
    .wpc-post-list {
        gap: 12px;
    }
    
    .wpc-post-list > h3 {
        font-size: 16px;
        padding-left: 12px;
    }
    
    .wpc-post-item {
        padding: 16px;
        border-radius: 12px;
    }
    
    .wpc-post-author {
        margin-bottom: 12px;
    }
    
    .wpc-author-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .wpc-post-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .wpc-post-excerpt {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .wpc-post-images {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .wpc-post-image,
    .wpc-post-image-more {
        width: calc(33.333% - 4px);
        height: 90px;
        border-radius: 6px;
    }
    
    .wpc-post-topics {
        margin-bottom: 12px;
    }
    
    .wpc-topic-tag {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .wpc-post-meta {
        gap: 12px;
        font-size: 12px;
    }
    
    /* 侧边栏小部件 */
    .wpc-widget {
        padding: 16px;
        border-radius: 12px;
    }
    
    .wpc-widget-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    /* 认证页面 */
    .wpc-auth-container {
        padding: 20px 16px;
        min-height: auto;
    }
    
    .wpc-auth-box {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .wpc-auth-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .wpc-form-group {
        margin-bottom: 16px;
    }
    
    .wpc-form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .wpc-form-control {
        padding: 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 验证码输入框 */
    .wpc-verification-code-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .wpc-verification-code-group .wpc-form-control {
        text-align: left;
        letter-spacing: 2px;
    }
    
    .wpc-verification-code-group .wpc-btn {
        width: 100%;
        padding: 12px;
    }
    
    /* 发布表单 */
    .wpc-post-form-container {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .wpc-post-form-container h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    /* 帖子详情页 */
    .wpc-post-header-detail {
        padding: 20px;
        border-radius: 12px;
    }
    
    .wpc-post-title-large {
        font-size: 20px;
    }
    
    .wpc-post-content {
        padding: 20px;
        border-radius: 12px;
    }
    
    .wpc-post-images-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .wpc-comments-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .wpc-comment-item {
        gap: 12px;
    }
    
    .wpc-comment-avatar img {
        width: 32px;
        height: 32px;
    }
    
    /* 空状态 */
    .wpc-empty-state {
        padding: 40px 20px;
    }
    
    .wpc-empty-state p {
        font-size: 14px;
    }
    
    /* 分页 */
    .wpc-pagination {
        gap: 4px;
        margin-top: 20px;
    }
    
    .wpc-pagination a,
    .wpc-pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    /* 按钮 */
    .wpc-btn {
        padding: 10px 16px;
        font-size: 14px;
      width: 30%;
    }
    
    .wpc-btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 话题详情内容 */
    .wpc-content-item {
        padding: 16px;
        border-radius: 12px;
    }
    
    .wpc-content-title {
        font-size: 16px;
    }
    
    .wpc-content-excerpt {
        font-size: 14px;
    }
}

/* 手机竖屏 (480px - 767px) */
@media (max-width: 480px) {
    .wpc-container {
        padding: 8px;
    }
    
    /* 圈子网格 */
    .wpc-circle-grid {
        grid-template-columns: 1fr;
    }
    
    /* 话题网格 */
    .wpc-topics-grid {
        grid-template-columns: 1fr;
    }
    
    .wpc-topic-card {
        padding: 16px;
    }
    
    .wpc-topic-card-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .wpc-topic-tag-large {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 标签页 */
    .wpc-tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .wpc-tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    .wpc-tab-item {
        flex: 0 0 auto;
        padding: 12px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* 帖子图片 */
    .wpc-post-image,
    .wpc-post-image-more {
        width: calc(33.333% - 4px);
        height: 80px;
    }
    
    .wpc-post-images-large {
        grid-template-columns: 1fr;
    }
    
    /* 用户中心 */
    .wpc-user-stats {
        gap: 16px;
    }
    
    .wpc-stat-item {
        min-width: 60px;
    }
    
    /* 话题云 */
    .wpc-topic-cloud-large {
        gap: 8px;
    }
    
    /* 表单 */
    .wpc-form-group small {
        font-size: 11px;
    }
    
    /* 消息提示 */
    .wpc-error,
    .wpc-success,
    .wpc-warning,
    .wpc-info {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 超小屏手机 (小于 480px) */
@media (max-width: 360px) {
    .wpc-container {
        padding: 6px;
    }
    
    .wpc-circles-header h2,
    .wpc-topics-header h2 {
        font-size: 20px;
    }
    
    .wpc-circle-title,
    .wpc-topic-title-large {
        font-size: 18px;
    }
    
    .wpc-post-title {
        font-size: 15px;
    }
    
    .wpc-tab-item {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .wpc-topic-tag-large {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .wpc-post-image,
    .wpc-post-image-more {
        height: 70px;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .wpc-auth-container {
        min-height: auto;
        padding: 16px;
    }
    
    .wpc-circles-header,
    .wpc-topics-header {
        padding: 24px 16px;
    }
    
    .wpc-circle-cover-large {
        height: 120px;
    }
}

/* iPhone 刘海屏适配 */
@supports (padding-top: env(safe-area-inset-top)) {
    .wpc-container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    @media (max-width: 768px) {
        .wpc-container {
            padding-left: max(12px, env(safe-area-inset-left));
            padding-right: max(12px, env(safe-area-inset-right));
        }
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --wpc-community-bg: #0f172a;
        --wpc-community-card: #1e293b;
        --wpc-community-border: #334155;
        --wpc-community-text: #f1f5f9;
        --wpc-community-text-muted: #94a3b8;
    }
    
    .wpc-circle-card,
    .wpc-post-item,
    .wpc-widget,
    .wpc-hot-topics,
    .wpc-all-topics,
    .wpc-topic-card,
    .wpc-content-item,
    .wpc-post-form-container,
    .wpc-post-header-detail,
    .wpc-post-content,
    .wpc-comments-section,
    .wpc-auth-box {
        background: var(--wpc-community-card);
        border-color: var(--wpc-community-border);
    }
    
    .wpc-circle-name a,
    .wpc-post-title a,
    .wpc-content-title a,
    .wpc-topic-name {
        color: var(--wpc-community-text);
    }
    
    .wpc-circle-desc,
    .wpc-post-excerpt,
    .wpc-content-excerpt,
    .wpc-topic-description {
        color: var(--wpc-community-text-muted);
    }
    
    .wpc-form-control {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .wpc-pagination a {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }
}

/* 发布帖子表单 */
.wpc-post-form-container {
    background: #fff;
    padding: 24px;
    border-radius: var(--wpc-border-radius);
    box-shadow: var(--wpc-shadow);
    margin-bottom: 20px;
}

.wpc-post-form-container h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 登录提示 */
.wpc-login-to-comment {
    text-align: center;
    padding: 30px;
    background: var(--wpc-secondary);
    border-radius: var(--wpc-border-radius);
}

.wpc-login-to-comment a {
    color: var(--wpc-primary);
    text-decoration: none;
}

/* 侧边栏作者信息 */
.wpc-author-widget {
    text-align: center;
}

.wpc-author-widget-avatar {
    margin-bottom: 16px;
}

.wpc-author-widget-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.wpc-author-widget-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wpc-author-widget-name a {
    color: var(--wpc-text);
    text-decoration: none;
}

.wpc-author-widget-bio {
    font-size: 13px;
    color: var(--wpc-text-secondary);
    margin-bottom: 16px;
}

.wpc-author-widget-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* 相关帖子 */
.wpc-related-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpc-related-post {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wpc-border);
}

.wpc-related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wpc-related-post a {
    display: block;
    color: var(--wpc-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.wpc-related-post a:hover {
    color: var(--wpc-primary);
}

.wpc-related-post-time {
    font-size: 12px;
    color: var(--wpc-text-secondary);
}

/* 话题列表 */
.wpc-topic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpc-topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--wpc-secondary);
    border-radius: 4px;
    color: var(--wpc-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--wpc-transition);
}

.wpc-topic-item:hover {
    background: rgba(24, 144, 255, 0.1);
    color: var(--wpc-primary);
}

/* ==================== 话题页面专属样式 ==================== */

/* 话题页面整体 */
.wpc-topics-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px 20px;
  padding-top: 70px;
}

/* 话题页面头部 - 社区风格 */
.wpc-topics-header {
    text-align: center;
    padding: 10px 10px;
    background: var(--wpc-community-gradient);
    border-radius: 24px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.wpc-topics-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.wpc-topics-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wpc-topics-header p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

/* 话题搜索框 */
.wpc-topic-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wpc-topic-search .wpc-form-control {
    flex: 1;
    padding: 10px 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    backdrop-filter: blur(10px);
}

.wpc-topic-search .wpc-form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.wpc-topic-search .wpc-btn-primary {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    background: #0806e3;
    color: #f6f6f6;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.wpc-topic-search .wpc-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 热门话题区域 */
.wpc-hot-topics {
    background: var(--wpc-community-card);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
}

.wpc-hot-topics h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--wpc-community-text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpc-hot-topics h3::before {
    content: '🔥';
    font-size: 24px;
}

/* 话题云 - 大标签 */
.wpc-topic-cloud-large {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.wpc-topic-tag-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--wpc-community-primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.wpc-topic-tag-large:hover {
    background: var(--wpc-community-gradient);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.wpc-topic-tag-large .wpc-topic-count {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 500;
}

/* 所有话题区域 */
.wpc-all-topics {
    background: var(--wpc-community-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
}

.wpc-all-topics h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--wpc-community-text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--wpc-community-border);
}

.wpc-all-topics h3 small {
    font-size: 14px;
    color: var(--wpc-community-text-muted);
    font-weight: 500;
    margin-left: 8px;
}

/* 话题网格 */
.wpc-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* 话题卡片 */
.wpc-topic-card {
    background: var(--wpc-community-bg);
    border-radius: 16px;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.wpc-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wpc-community-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wpc-topic-card:hover {
    background: #fff;
    border-color: var(--wpc-community-primary-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.wpc-topic-card:hover::before {
    transform: scaleX(1);
}

.wpc-topic-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.wpc-topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    
}

.wpc-topic-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--wpc-community-primary);
    margin: 0;
}

.wpc-topic-card .wpc-topic-count {
    font-size: 13px;
    color: var(--wpc-community-text-muted);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.wpc-topic-description {
    font-size: 14px;
    color: var(--wpc-community-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.wpc-topic-slug {
    font-size: 12px;
    color: var(--wpc-community-text-muted);
    font-family: 'Monaco', 'Consolas', monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
}

/* 空状态 */
.wpc-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.wpc-empty-state p {
    font-size: 16px;
    color: var(--wpc-community-text-muted);
    margin-bottom: 8px;
}

.wpc-empty-state p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpc-community-text);
}

/* 话题详情页样式 */
.wpc-topic-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.wpc-topic-header {
    background: var(--wpc-community-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
    position: relative;
    overflow: hidden;
}

.wpc-topic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--wpc-community-gradient);
}

.wpc-topic-title-large {
    font-size: 36px;
    font-weight: 800;
    color: var(--wpc-community-text);
    margin: 16px 0 12px;
}

.wpc-topic-title-large::before {
    content: '#';
    color: var(--wpc-community-primary);
}

.wpc-topic-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.wpc-topic-stats span {
    font-size: 15px;
    color: var(--wpc-community-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 话题布局 */
.wpc-topic-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}

.wpc-topic-main {
    min-width: 0;
}

.wpc-topic-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wpc-topic-sidebar .wpc-widget {
    background: var(--wpc-community-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
}

/* 内容列表 */
.wpc-content-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpc-content-item {
    background: var(--wpc-community-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
    transition: all 0.2s ease;
}

.wpc-content-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--wpc-community-primary-light);
}

.wpc-content-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wpc-content-type-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.wpc-content-post .wpc-content-type-tag {
    background: rgba(245, 158, 11, 0.1);
    color: var(--wpc-community-accent);
}

.wpc-content-circle-post .wpc-content-type-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--wpc-community-primary);
}

.wpc-content-time {
    font-size: 13px;
    color: var(--wpc-community-text-muted);
}

.wpc-content-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wpc-content-title a {
    color: var(--wpc-community-text);
}

.wpc-content-title a:hover {
    color: var(--wpc-community-primary);
}

.wpc-content-excerpt {
    color: var(--wpc-community-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.wpc-content-topics {
    margin-bottom: 16px;
}

.wpc-content-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--wpc-community-text-muted);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .wpc-topic-layout {
        grid-template-columns: 1fr;
    }
    
    .wpc-topic-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .wpc-topics-header {
        padding: 36px 20px;
    }
    
    .wpc-topics-header h2 {
        font-size: 28px;
    }
    
    .wpc-topic-search {
        /*flex-direction: column;*/
    }
    
    .wpc-hot-topics,
    .wpc-all-topics {
        padding: 24px;
    }
    
    .wpc-topics-grid {
        grid-template-columns: 1fr;
    }
    
    .wpc-topic-header {
        padding: 28px 24px;
    }
    
    .wpc-topic-title-large {
        font-size: 26px;
    }
}

/* 推荐圈子 */
.wpc-recommended-circles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpc-recommended-circle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wpc-border);
}

.wpc-recommended-circle:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wpc-recommended-circle a {
    color: var(--wpc-text);
    text-decoration: none;
    font-weight: 500;
}

.wpc-recommended-circle a:hover {
    color: var(--wpc-primary);
}

.wpc-recommended-circle span {
    font-size: 12px;
    color: var(--wpc-text-secondary);
}

/* ==================== 圈子页面专属样式 ==================== */

/* 圈子页面整体背景 */
.wpc-circles-page {
    background: var(--wpc-community-bg);
    min-height: 100vh;
    padding: 24px 0;
}

/* 圈子页面布局优化 */
.wpc-circles-layout {
    display: grid;
    /*grid-template-columns: 1fr 320px;*/
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
  padding-top: 70px;
}

/* 圈子列表头部 */
.wpc-circles-header {
    text-align: center;
    padding: 10px 10px;
    background: var(--wpc-community-gradient);
    border-radius: 20px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.wpc-circles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.wpc-circles-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.wpc-circles-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* 圈子网格 - 社区风格 */
.wpc-circles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* 圈子卡片 - 现代化设计 */
.wpc-circle-card {
    background: var(--wpc-community-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--wpc-community-border);
}

.wpc-circle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: var(--wpc-community-primary-light);
}

.wpc-circle-cover {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.wpc-circle-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.wpc-circle-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wpc-circle-card:hover .wpc-circle-cover img {
    transform: scale(1.05);
}

.wpc-circle-info {
    padding: 20px;
}

.wpc-circle-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wpc-circle-name a {
    color: var(--wpc-community-text);
    text-decoration: none;
    transition: color 0.2s;
}

.wpc-circle-name a:hover {
    color: var(--wpc-community-primary);
}

.wpc-circle-desc {
    font-size: 14px;
    color: var(--wpc-community-text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpc-circle-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--wpc-community-text-muted);
    font-weight: 500;
}

.wpc-circle-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpc-circle-stats span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wpc-community-accent);
}

/* 圈子详情头部 */
.wpc-circle-detail-header {
    background: var(--wpc-community-card);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
}

.wpc-circle-cover-large {
    height: 240px;
    position: relative;
}

.wpc-circle-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpc-circle-info-large {
    padding: 28px 32px;
}

.wpc-circle-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--wpc-community-text);
    margin-bottom: 12px;
}

.wpc-circle-description {
    font-size: 15px;
    color: var(--wpc-community-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.wpc-circle-stats-large {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.wpc-circle-stats-large span {
    font-size: 15px;
    color: var(--wpc-community-text-muted);
    font-weight: 500;
}

.wpc-circle-actions {
    display: flex;
    gap: 12px;
}

.wpc-circle-actions .wpc-btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
}

.wpc-circle-actions .wpc-btn-primary {
    background: var(--wpc-community-gradient);
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.wpc-circle-actions .wpc-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

/* 帖子列表 - 社区风格 */
.wpc-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpc-post-list > h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wpc-community-text);
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 4px solid var(--wpc-community-primary);
}

.wpc-post-item {
    background: var(--wpc-community-card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
    transition: all 0.2s ease;
}

.wpc-post-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--wpc-community-primary-light);
}

.wpc-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wpc-author-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wpc-community-border);
}

.wpc-author-name {
    font-weight: 600;
    color: var(--wpc-community-text);
}

.wpc-post-time {
    font-size: 13px;
    color: var(--wpc-community-text-muted);
}

.wpc-post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.wpc-post-title a {
    color: var(--wpc-community-text);
}

.wpc-post-title a:hover {
    color: var(--wpc-community-primary);
}

.wpc-post-excerpt {
    color: var(--wpc-community-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* 侧边栏样式 */
.wpc-circles-sidebar .wpc-widget {
    background: var(--wpc-community-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
}

.wpc-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--wpc-community-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--wpc-community-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpc-widget-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--wpc-community-gradient);
    border-radius: 2px;
}

/* 话题标签 - 社区风格 */
.wpc-topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpc-topic-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--wpc-community-primary);
    background: rgba(99, 102, 241, 0.08);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wpc-topic-tag:hover {
    background: var(--wpc-community-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 发布表单 */
.wpc-post-form-container {
    background: var(--wpc-community-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wpc-community-border);
    margin-bottom: 24px;
}

.wpc-post-form-container h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wpc-community-text);
    margin-bottom: 24px;
}

    /* 顶部主导航 */
.wpc-main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wpc-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 5px;
}

/* 导航菜单项 */
.wpc-nav-item {
    display: inline-block;
    padding: 14px 20px;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

/* 鼠标悬浮 */
.wpc-nav-item:hover {
    color: #007cba;
    background: #f7f7f7;
}

/* 当前页面高亮（最重要） */
.wpc-nav-item.active {
    color: #007cba;
    border-bottom-color: #007cba;
    font-weight: 500;
    background: #fcfcfc;
}

/* 手机适配 */
@media (max-width: 768px) {
    .wpc-nav-container {
        justify-content: center;
    }
    .wpc-nav-item {
        padding: 12px 15px;
        font-size: 14px;
    }
}
