/* ============================================
   城事圈 · 城市生活圈子门户
   现代都市风格设计
   ============================================ */

/* CSS变量定义 */
:root {
    --primary: #5B6CFF;
    --primary-dark: #4753E8;
    --primary-light: #EEF0FF;
    --secondary: #FF6B9D;
    --accent: #00D4AA;
    --bg-main: #F7F8FC;
    --bg-card: #FFFFFF;
    --text-dark: #1A1F36;
    --text-body: #4A5568;
    --text-muted: #8895A6;
    --border: #EDF0F5;
    --shadow-sm: 0 1px 3px rgba(26, 31, 54, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 31, 54, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 31, 54, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --gradient-primary: linear-gradient(135deg, #5B6CFF 0%, #8B5CF6 100%);
    --gradient-hero: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

/* 全局重置：仅作用于门户页（body.cc-portal）及自有头部/尾部，
   不污染论坛/家园等核心页面（核心页由 data/cache/style_*_common.css 提供样式） */
body.cc-portal *,
.top-bar *,
.header *,
.footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面底色/正文色/行高/最小宽度仅门户页覆盖；论坛等核心页保留核心白底、默认排版与 min-width:1200px */
body.cc-portal {
    min-width: 0;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
}

body.cc-portal a,
.top-bar a,
.header a,
.footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.cc-portal img {
    max-width: 100%;
    display: block;
}

/* 限定作用域：核心 module.css 的 .container 是帖子页气泡提示，不可覆盖 */
body.cc-portal .container,
.top-bar .container,
.header .container,
.footer .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   顶部通知条
   ============================================ */
.top-bar {
    background: #1A1F36;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-text i {
    color: var(--accent);
    margin-right: 4px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-links a:hover {
    color: #fff;
}

.top-bar .divider {
    opacity: 0.3;
}

/* ============================================
   头部
   ============================================ */
.header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(91, 108, 255, 0.35);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* 搜索框 */
.search-box {
    flex: 0 1 300px;
    width: 300px;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-main);
    border-radius: 24px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(91, 108, 255, 0.15);
}

.search-icon-left {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-box input {
    flex: 1;
    padding: 12px 16px 12px 44px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    margin-right: 6px;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.search-btn:hover {
    opacity: 0.9;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.login-btn {
    padding: 8px 18px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--primary-light);
}

.register-btn {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(91, 108, 255, 0.3);
    transition: transform 0.2s ease;
}

.register-btn:hover {
    transform: translateY(-1px);
}

/* 主导航（头部内联：logo 与搜索之间） */
.main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav ul::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.main-nav a i {
    font-size: 14px;
    opacity: 0.7;
}

/* 后台「导航设置」中配置的导航图标（图片），桌面/移动均显示 */
.main-nav a img.main-nav-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.main-nav a.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(91, 108, 255, 0.3);
}

.main-nav a.active i {
    opacity: 1;
}

/* 桌面端：头部放宽、导航纯文字（参考主流门户单行导航），图标留给移动端 */
@media (min-width: 769px) {
    .header .container {
        max-width: 1360px;
    }

    .header .logo-text span {
        display: none;
    }

    .main-nav a {
        gap: 0;
        padding: 9px 12px;
    }

    .main-nav a i {
        display: none;
    }
}

/* ============================================
   Hero区域
   ============================================ */
.hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(0, 212, 170, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 107, 157, 0.15) 0%, transparent 40%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #FFD700;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn-primary {
    padding: 14px 32px;
    background: #fff;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat strong {
    font-size: 28px;
    font-weight: 700;
}

.hero-stat span {
    font-size: 13px;
    opacity: 0.8;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   主体内容
   ============================================ */
.main-content {
    padding: 0 0 40px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

/* 快捷入口 */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--qc) 12%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--qc);
    transition: all 0.2s ease;
}

.quick-item:hover .quick-icon {
    background: var(--qc);
    color: #fff;
    transform: scale(1.05);
}

.quick-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
}

/* 内容布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   板块通用样式
   ============================================ */
.section-block {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.title-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.title-icon.hot {
    background: linear-gradient(135deg, #FF6B6B, #ee5a52);
}

.title-icon.new {
    background: linear-gradient(135deg, #00D4AA, #00b894);
}

.more-link {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.more-link:hover {
    color: var(--primary);
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    background: var(--bg-main);
    border: none;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
}

/* ============================================
   话题卡片网格
   ============================================ */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.topic-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.topic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.topic-img {
    position: relative;
    aspect-ratio: 5/3;
    overflow: hidden;
}

.topic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.topic-card:hover .topic-img img {
    transform: scale(1.05);
}

.topic-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.hot-tag .topic-cat {
    background: rgba(255, 107, 107, 0.9);
    color: #fff;
}

.topic-body {
    padding: 16px;
}

.topic-body h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-body h3 a:hover {
    color: var(--primary);
}

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

.topic-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.topic-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.topic-author a {
    color: var(--text-body);
    font-weight: 500;
}

.topic-author a:hover {
    color: var(--primary);
}

.topic-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.topic-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   动态Feed流
   ============================================ */
.feed-list {
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

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

.feed-avatar {
    flex-shrink: 0;
}

.feed-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.feed-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.feed-tag {
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
}

.feed-tag.event {
    background: #E6FFFA;
    color: #00B894;
}

.feed-tag.life {
    background: #FFF0F6;
    color: #E84393;
}

.feed-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.feed-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

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

.feed-images img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.feed-images img:hover {
    opacity: 0.85;
}

.feed-actions {
    display: flex;
    gap: 24px;
}

.feed-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
    transition: color 0.2s ease;
}

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

.feed-action-btn.liked {
    color: #FF4757;
}

.feed-action-btn.liked i {
    font-weight: 900;
}

/* ============================================
   右侧边栏
   ============================================ */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 天气卡片 */
.weather-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    color: #fff;
}

.weather-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #5B6CFF 0%, #8B5CF6 50%, #C77DFF 100%);
}

.weather-bg::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
}

.weather-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.weather-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-city {
    font-size: 13px;
    opacity: 0.9;
}

.weather-temp {
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.weather-desc {
    font-size: 13px;
    opacity: 0.85;
}

.weather-icon {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.weather-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    opacity: 0.85;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.weather-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

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

.sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-header h3 i {
    color: var(--primary);
}

/* 活跃圈友榜 */
.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #fff;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #fff;
}

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

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

.rank-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
}

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

.rank-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.rank-follow {
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.rank-follow:hover {
    background: var(--primary);
    color: #fff;
}

/* 热门圈子 */
.circle-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.circle-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circle-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

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

.circle-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
}

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

.circle-members {
    font-size: 12px;
    color: var(--text-muted);
}

.circle-join {
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

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

.circle-join.joined {
    background: var(--bg-main);
    color: var(--text-muted);
}

/* 同城活动 */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    transition: all 0.2s ease;
}

.event-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.event-date {
    width: 48px;
    height: 56px;
    background: linear-gradient(135deg, #FF6B9D, #EE5A8A);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.date-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.event-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.event-info span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   底部
   ============================================ */
.footer {
    background: #1A1F36;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 0;
    margin-top: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    margin: 16px 0;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.footer-logo i {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

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

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 13px;
    transition: color 0.2s ease;
}

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

.qr-code {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-placeholder {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.5);
}

.qr-code span {
    font-size: 12px;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
    opacity: 0.5;
}

/* ============================================
   回到顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-block,
.quick-entry {
    animation: fadeInUp 0.5s ease-out backwards;
}

.quick-entry {
    animation-delay: 0.05s;
}

.section-block:nth-child(1) {
    animation-delay: 0.1s;
}

.section-block:nth-child(2) {
    animation-delay: 0.2s;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .quick-entry {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 4px;
    }
    
    .header-inner {
        flex-wrap: wrap;
        gap: 14px 16px;
    }

    .user-info {
        margin-left: auto;
    }

    .main-nav {
        order: 2;
        flex-basis: 100%;
    }

    .search-box {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .main-nav ul {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav ul::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        white-space: nowrap;
        padding: 9px 13px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat strong {
        font-size: 22px;
    }
    
    .quick-entry {
        grid-template-columns: repeat(4, 1fr);
        padding: 16px;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    .feed-images img {
        width: 90px;
        height: 90px;
    }
    
    .feed-actions {
        gap: 16px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    body.cc-portal .container,
    .top-bar .container,
    .header .container,
    .footer .container {
        padding: 0 16px;
    }
    
    .logo-text span {
        display: none;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .quick-entry {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .quick-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .quick-label {
        font-size: 12px;
    }
    
    .section-block {
        padding: 16px;
    }
    
    .feed-item {
        gap: 12px;
    }
    
    .feed-avatar img {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   列表页 / 详情页公共：面包屑、页面Hero
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .sep {
    font-size: 10px;
    opacity: 0.6;
}

.breadcrumb .current {
    color: #fff;
}

.detail-breadcrumb {
    padding: 16px 0;
    color: var(--text-muted);
}

.detail-breadcrumb a {
    color: var(--text-muted);
}

.detail-breadcrumb a:hover {
    color: var(--primary);
}

.detail-breadcrumb .sep {
    color: var(--border);
}

.detail-breadcrumb .current {
    color: var(--text-body);
}

/* 列表页顶部Hero条 */
.page-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 212, 170, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 107, 157, 0.2) 0%, transparent 45%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 24px;
    padding-bottom: 36px;
}

.page-hero-body {
    margin-top: 18px;
}

.page-hero-title {
    font-size: 30px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-hero-title i {
    font-size: 26px;
    opacity: 0.9;
}

.page-hero-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
    max-width: 620px;
}

.page-hero-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    opacity: 0.85;
    flex-wrap: wrap;
}

.page-hero-meta i {
    margin-right: 4px;
}

/* ============================================
   列表页：子分类、排序、文章列表
   ============================================ */
.subcat-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.subcat-item {
    padding: 8px 18px;
    background: var(--bg-main);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    transition: all 0.2s ease;
}

.subcat-item i {
    margin-right: 6px;
    opacity: 0.7;
}

.subcat-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.subcat-item.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(91, 108, 255, 0.3);
}

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sort-tabs {
    display: flex;
    gap: 4px;
}

.sort-tab {
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.sort-tab i {
    margin-right: 5px;
}

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

.sort-tab.active {
    background: var(--primary-light);
    color: var(--primary);
}

.rss-link {
    font-size: 13px;
    color: var(--text-muted);
}

.rss-link:hover {
    color: #FF9800;
}

/* 文章列表项 */
.article-list {
    display: flex;
    flex-direction: column;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s ease;
}

.article-item:hover .article-title a {
    color: var(--primary);
}

.article-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-main);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-item:hover .article-thumb img {
    transform: scale(1.05);
}

.article-thumb.no-pic {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 32px;
    opacity: 0.4;
}

.article-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.article-top {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    background: linear-gradient(135deg, #FF6B6B, #ee5a52);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    vertical-align: 2px;
}

.article-summary {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author a {
    color: var(--text-body);
    font-weight: 500;
}

.article-author a:hover {
    color: var(--primary);
}

.article-more {
    margin-left: auto;
    color: var(--primary);
    font-weight: 500;
}

.article-more i {
    transition: transform 0.2s ease;
}

.article-more:hover i {
    transform: translateX(3px);
}

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

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

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

.empty-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 500;
}

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

.pagination .pg-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 8px;
}

.pagination .pg-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-body);
    transition: all 0.2s ease;
}

.pagination .pg-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .pg-btn.current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.pagination .pg-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

/* Discuz核心分页类兼容：仅限门户页（body.cc-portal），避免覆盖论坛版块/帖子页的核心 .pg 分页样式 */
body.cc-portal .pg, body.cc-portal .pgb {
    text-align: center;
    margin-top: 28px;
}
body.cc-portal .pg a, body.cc-portal .pgb a, body.cc-portal .pg label, body.cc-portal .pgb label, body.cc-portal .pg strong, body.cc-portal .pgb strong {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    margin: 0 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-body);
    background: #fff;
}
body.cc-portal .pg strong, body.cc-portal .pgb strong {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* 侧边栏热门排行（列表/详情共用） */
.sidebar-hot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sidebar-hot-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.sidebar-hot-list li:last-child {
    border-bottom: none;
}

.hot-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-rank {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-rank.top-0 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.hot-rank.top-1 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: #fff; }
.hot-rank.top-2 { background: linear-gradient(135deg, #CD7F32, #B87333); color: #fff; }

.hot-text {
    font-size: 13px;
    color: var(--text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.hot-link:hover .hot-text {
    color: var(--primary);
}

.hot-views {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   详情页
   ============================================ */
.article-detail-page {
    padding-top: 8px;
}

.article-detail {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}

.article-cat-row {
    margin-bottom: 14px;
}

.detail-cat {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.article-detail-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

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

.detail-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.detail-publish-time {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-follow {
    margin-left: 4px;
}

.detail-stats {
    margin-left: auto;
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.article-cover img {
    width: 100%;
    display: block;
}

.article-summary-box {
    display: flex;
    gap: 12px;
    padding: 18px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.8;
}

.article-summary-box i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 4px;
}

/* 正文排版 */
.article-content {
    font-size: 16px;
    color: #2D3748;
    line-height: 1.9;
}

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

.article-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.article-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background: var(--bg-main);
    border-left: 4px solid #FFC75F;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-body);
    font-size: 15px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* 文章标签 */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-tags > i {
    color: var(--text-muted);
}

.article-tag {
    padding: 5px 14px;
    background: var(--bg-main);
    border-radius: 14px;
    font-size: 13px;
    color: var(--text-body);
    transition: all 0.2s ease;
}

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

/* 操作栏 */
.article-action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 76px;
    padding: 10px 18px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.action-btn i {
    font-size: 22px;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.action-btn.liked {
    color: #FF4757;
}

.action-btn.active {
    color: var(--primary);
}

/* 上一篇/下一篇 */
.article-neighbors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.neighbor {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    min-width: 0;
}

.neighbor:hover {
    background: var(--primary-light);
}

.neighbor.next {
    text-align: right;
}

.neighbor-label {
    font-size: 12px;
    color: var(--text-muted);
}

.neighbor:hover .neighbor-label {
    color: var(--primary);
}

.neighbor-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neighbor.disabled {
    visibility: hidden;
}

/* ============================================
   评论区
   ============================================ */
.comments-block {
    margin-top: 24px;
}

.comment-form {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

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

.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
    background: var(--bg-main);
}

.comment-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
}

.comment-form-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

.char-count em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

.comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(91, 108, 255, 0.3);
    transition: transform 0.2s ease;
}

.comment-submit:hover {
    transform: translateY(-1px);
}

.comment-login-tip,
.comment-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.comment-login-tip i,
.comment-empty i {
    font-size: 40px;
    opacity: 0.4;
    margin-bottom: 12px;
    display: block;
}

.comment-login-tip p,
.comment-empty p {
    margin-bottom: 16px;
    font-size: 14px;
}

.comment-login-tip .btn-primary {
    display: inline-block;
    padding: 10px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

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

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

.comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.comment-badge {
    padding: 1px 8px;
    background: linear-gradient(135deg, #FF6B6B, #ee5a52);
    color: #fff;
    font-size: 11px;
    border-radius: 8px;
}

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

.comment-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    word-break: break-word;
}

.comment-reply {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.comment-reply a {
    color: var(--primary);
}

/* 相关推荐 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.related-card {
    display: block;
}

.related-img {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-main);
    margin-bottom: 8px;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.06);
}

.related-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--text-muted);
    opacity: 0.4;
}

.related-card h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-card:hover h4 {
    color: var(--primary);
}

.related-card > span {
    font-size: 12px;
    color: var(--text-muted);
}

/* 侧边栏作者卡 */
.author-card {
    text-align: center;
}

.author-card-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.author-card-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0 4px;
}

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

.author-card-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.author-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.author-card-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-card-stats strong {
    font-size: 18px;
    color: var(--text-dark);
}

.author-card-stats span {
    font-size: 12px;
    color: var(--text-muted);
}

.author-card .author-follow-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    border-radius: 22px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(91, 108, 255, 0.3);
}

.author-card .author-follow-btn.followed {
    background: var(--bg-main);
    color: var(--text-muted);
    box-shadow: none;
}

/* ============================================
   列表/详情响应式
   ============================================ */
@media (max-width: 768px) {
    .page-hero-title {
        font-size: 24px;
    }

    .article-item {
        flex-direction: column;
        gap: 14px;
    }

    .article-thumb {
        width: 100%;
        height: 200px;
    }

    .article-more {
        margin-left: 0;
    }

    .article-detail {
        padding: 20px 16px;
    }

    .article-detail-title {
        font-size: 22px;
    }

    .detail-stats {
        margin-left: 0;
        width: 100%;
    }

    .article-neighbors {
        grid-template-columns: 1fr;
    }

    .neighbor.next {
        text-align: left;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comment-form {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .article-detail-meta {
        gap: 8px;
    }

    .detail-stats {
        gap: 12px;
        font-size: 12px;
    }

    .article-action-bar {
        gap: 8px;
    }

    .action-btn {
        min-width: 60px;
        padding: 8px 10px;
    }

    .article-content {
        font-size: 15px;
    }
}