/*
Theme Name: zzz
*/

/* 英雄区域轮播图样式 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-slide-bg.active {
    opacity: 1;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-slider-nav:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-nav.prev {
    left: 20px;
}

.hero-slider-nav.next {
    right: 20px;
}

.hero-slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: rgba(255,255,255,0.9);
}

.hero-indicator:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

/* 响应式英雄区域轮播图 */
@media (max-width: 768px) {
    .hero-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .hero-slider-nav.prev {
        left: 10px;
    }
    
    .hero-slider-nav.next {
        right: 10px;
    }
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #eaf6fa;
  transition: box-shadow 0.2s, background 0.2s;
}
body {
  padding-top: 64px;
}
@media (max-width: 600px) {
  .topbar { padding: 0 6px; }
  body { padding-top: 56px; }
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: #f7f8fa;
    color: #222;
    margin: 0;
    padding: 0;
}

#header, #footer {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 0 0;
}
#header .container, #footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
#header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #222;
}
#header form {
    flex: 1;
    max-width: 400px;
    margin: 0 32px;
}
#header input[type="text"] {
    width: 100%;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #eee;
    outline: none;
    font-size: 15px;
    background: #f7f8fa;
    transition: border 0.2s;
}
#header input[type="text"]:focus {
    border: 1.5px solid #409eff;
}
#header nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#header nav a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
}
#header nav a:hover {
    color: #409eff;
}

/* 主容器布局 */
#main-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1200px;
  margin: 32px auto 0 auto;
  gap: 32px;
  min-height: 600px;
}

/* 当侧边栏隐藏时，主内容区域占满全屏 */
#main-wrapper.no-sidebar {
  max-width: 100%;
  padding: 0 32px;
}

#main-wrapper.no-sidebar #main {
  flex: 1;
  max-width: 100%;
}
#main {
  flex: 2.5;
  min-width: 0;
}
#sidebar-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
  right: 0;
  align-self: flex-start;
  height: fit-content;
}
@media (max-width: 900px) {
  #main-wrapper {
    flex-direction: column;
    gap: 0;
    max-width: 100% !important;
    padding: 0 16px !important;
  }
  #sidebar-right {
    flex-direction: row;
    gap: 16px;
    margin-top: 24px;
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
  }
}

.swiper-container .swiper-slide img {
    height: 400px !important;
    object-fit: cover;
    width: 100%;
    display: block;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.profile-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}
.profile-bio {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}
.profile-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 8px;
}
.profile-stats div {
    font-size: 14px;
    color: #666;
    text-align: center;
}
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comments-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
    font-size: 14px;
}
.comments-list li:last-child {
    border-bottom: none;
}

/* 文章卡片美化与动态效果 */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px 28px 18px 28px;
  margin-bottom: 32px;
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(64,158,255,0.18);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}
.card h2 {
    font-size: 22px;
  margin: 0 0 10px 0;
    font-weight: bold;
  color: #222;
  transition: color 0.2s;
}
.card a:hover h2 {
  color: #409eff;
}
.card .meta {
  color: #7a8ca4;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.card .excerpt {
    color: #444;
    font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}
.card .read-more {
  display: inline-block;
  margin-top: 8px;
  color: #409eff;
  font-size: 15px;
    text-decoration: none;
  border-bottom: 1px solid #409eff;
  transition: color 0.2s, border 0.2s;
}
.card .read-more:hover {
  color: #ff9800;
  border-bottom: 1px solid #ff9800;
}
@media (max-width: 900px) {
  .card {
    padding: 16px 10px 12px 10px;
    margin-bottom: 18px;
  }
  
  .pagination-list {
    gap: 6px;
  }
  
  .pagination-btn {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
    padding: 0 12px;
  }
  
  .pagination-btn.prev,
  .pagination-btn.next {
    min-width: 70px;
    padding: 0 14px;
  }
  
  .pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
    padding: 0 12px;
  }
}

@media (max-width: 600px) {
  #main-wrapper {
    padding: 0 8px;
  }
  .card {
    padding: 12px;
  }
} 

/* 分页按钮美化 */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination-buttons {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.pagination-btn:hover {
    background: #f8f9fa;
    border-color: #00bcd4;
    color: #00bcd4;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.pagination-btn.current {
    background: #00bcd4 !important;
    border-color: #00bcd4 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,188,212,0.3) !important;
}

.pagination-btn.prev,
.pagination-btn.next {
    padding: 0 18px;
    font-size: 13px;
    min-width: 80px;
}

.pagination-btn.prev i,
.pagination-btn.next i {
    margin: 0 4px;
    font-size: 12px;
}

.pagination-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.pagination-list a,
.pagination-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.pagination-list a:hover {
    background: #f8f9fa;
    border-color: #00bcd4;
    color: #00bcd4;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.pagination-list .current {
    background: #00bcd4 !important;
    border-color: #00bcd4 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,188,212,0.3) !important;
}

.pagination-list .prev,
.pagination-list .next {
    padding: 0 18px;
    font-size: 13px;
    min-width: 80px;
}

.pagination-list .prev i,
.pagination-list .next i {
    margin: 0 4px;
    font-size: 12px;
}

.pagination-list .dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #999;
    cursor: default;
}

.pagination-list .dots:hover {
    background: transparent;
    border: none;
    color: #999;
    transform: none;
    box-shadow: none;
}

/* 兼容旧的分页样式 */
.pagination {
    margin: 32px 0 24px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    margin: 0 4px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #00bcd4;
    border-color: #00bcd4;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,188,212,0.3);
} 

/* 单篇文章页面美化 */
.single-post #main {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 40px 36px 32px 36px;
  margin-bottom: 32px;
  max-width: 900px;
}
.single-post h1.entry-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 18px;
  line-height: 1.3;
}
.single-post .entry-meta {
  color: #7a8ca4;
  font-size: 15px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.single-post .entry-content {
  color: #333;
  font-size: 17px;
  line-height: 1.9;
  word-break: break-word;
}
.single-post .entry-content p {
  margin: 18px 0;
}
.single-post .entry-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: block;
}
.single-post .entry-content blockquote {
  border-left: 4px solid #409eff;
  background: #f7faff;
  color: #555;
  margin: 18px 0;
  padding: 12px 18px;
  border-radius: 6px;
  font-style: italic;
}
.single-post .entry-content pre {
  background: #222;
  color: #fff;
  border-radius: 6px;
  padding: 14px 18px;
  overflow-x: auto;
  margin: 18px 0;
  font-size: 15px;
}
.single-post .entry-content code {
  background: #f5f5f5;
  color: #d6336c;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 15px;
}
@media (max-width: 900px) {
  .single-post #main {
    padding: 18px 4px 12px 4px;
    border-radius: 8px;
  }
  .single-post h1.entry-title {
    font-size: 1.3rem;
    }
} 

/* 美化布局基础样式 - 动态样式在header.php中生成 */ 

/* ===== 移动端响应式设计 ===== */
@media (max-width: 768px) {
    /* 基础布局调整 */
    body {
        padding-top: 56px;
        font-size: 14px;
    }
    
    /* 顶部导航栏 */
    .topbar {
        padding: 0 10px;
    }
    
    #header .container, #footer .container {
        height: 56px;
        padding: 0 10px;
    }
    
    #header .logo {
        font-size: 18px;
    }
    
    #header form {
        max-width: 200px;
        margin: 0 15px;
    }
    
    #header input[type="text"] {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    #header nav ul {
        gap: 15px;
    }
    
    #header nav a {
        font-size: 14px;
    }
    
    /* 主容器布局 */
    #main-wrapper {
        flex-direction: column !important;
        gap: 0 !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 16px auto 0 auto !important;
    }
    
    #main {
        flex: 1 !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    #sidebar-right {
        flex: 1 !important;
        min-width: 0 !important;
        margin-top: 20px;
        padding-left: 0 !important;
        position: static !important;
        height: auto !important;
    }
    
    /* 文章卡片 */
    .card {
        margin-bottom: 15px !important;
        border-radius: 12px !important;
        padding: 15px !important;
    }
    
    .card h2 {
        font-size: 1.1em !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    .card .excerpt {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }
    
    .card .meta {
        font-size: 12px !important;
    }
    
    /* 文章网格布局 */
    .posts-grid, .posts-list, .posts-masonry, .posts-magazine {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .posts-list .post-card {
        flex-direction: column !important;
        padding: 15px !important;
    }
    
    .posts-list .post-thumbnail {
        width: 100% !important;
        height: 200px !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }
    
    .posts-list .post-content {
        padding: 0 !important;
    }
    
    /* 特色功能卡片 */
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .feature-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }
    
    .feature-card h3 {
        font-size: 1.1em !important;
    }
    
    .feature-card p {
        font-size: 13px !important;
    }
    
    /* 英雄区域 */
    .hero-section {
        margin-bottom: 20px !important;
        padding: 30px 15px !important;
        border-radius: 12px !important;
    }
    
    .hero-section h1 {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    
    .hero-section p {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }
    
    .hero-search {
        max-width: 100% !important;
    }
    
    .hero-search input[type="search"] {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    .hero-search button {
        padding: 8px 15px !important;
        font-size: 12px !important;
    }
    
    /* 轮播图 */
    .slider-wrapper {
        height: 250px !important;
    }
    
    .slide-content {
        padding: 20px !important;
    }
    
    .slide-content h2 {
        font-size: 1.5em !important;
        margin-bottom: 15px !important;
    }
    
    .slide-search {
        margin-top: 15px !important;
    }
    
    .slide-search input[type="search"] {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    .slide-search button {
        padding: 8px 15px !important;
        font-size: 12px !important;
    }
    
    .slider-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }
    
    .slider-nav.prev {
        left: 10px !important;
    }
    
    .slider-nav.next {
        right: 10px !important;
    }
    
    /* 分页 */
    .pagination-wrapper {
        margin-top: 20px !important;
    }
    
    .pagination-buttons {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .pagination-btn {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
        padding: 0 10px !important;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0 12px !important;
        font-size: 12px !important;
        min-width: 60px !important;
    }
    
    /* 侧边栏小工具 */
    .sidebar-widget {
        padding: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .sidebar-widget h3 {
        font-size: 1.1em !important;
        margin-bottom: 12px !important;
    }
    
    .sidebar-widget ul li {
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
        font-size: 13px !important;
    }
    
    /* 公告板块 */
    .announcement-section {
        padding: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .announcement-section h3 {
        font-size: 1.1em !important;
    }
    
    /* 积分兑换板块 */
    .points-section {
        padding: 20px 15px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .points-section h2 {
        font-size: 1.3em !important;
        margin-bottom: 12px !important;
    }
    
    .points-section p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .points-section a {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    /* 会员信息板块 */
    .member-info-section {
        padding: 20px 15px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .member-info-section h2 {
        font-size: 1.3em !important;
        margin-bottom: 15px !important;
    }
    
    .member-info-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .member-info-item {
        padding: 15px !important;
        border-radius: 10px !important;
    }
    
    .member-info-item h3 {
        font-size: 1.1em !important;
        margin-bottom: 8px !important;
    }
    
    .member-info-item p {
        font-size: 13px !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    body {
        padding-top: 50px;
        font-size: 13px;
    }
    
    #header .container, #footer .container {
        height: 50px;
        padding: 0 8px;
    }
    
    #header .logo {
        font-size: 16px;
    }
    
    #header form {
        max-width: 150px;
        margin: 0 10px;
    }
    
    #header input[type="text"] {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    #header nav ul {
        gap: 10px;
    }
    
    #header nav a {
        font-size: 13px;
    }
    
    #main-wrapper {
        padding: 0 8px !important;
        margin: 12px auto 0 auto !important;
    }
    
    .card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .card h2 {
        font-size: 1em !important;
    }
    
    .card .excerpt {
        font-size: 12px !important;
    }
    
    .hero-section {
        padding: 20px 12px !important;
        border-radius: 10px !important;
    }
    
    .hero-section h1 {
        font-size: 1.5em !important;
    }
    
    .hero-section p {
        font-size: 14px !important;
    }
    
    .slider-wrapper {
        height: 200px !important;
    }
    
    .slide-content h2 {
        font-size: 1.3em !important;
    }
    
    .feature-card {
        padding: 15px !important;
    }
    
    .feature-card h3 {
        font-size: 1em !important;
    }
    
    .pagination-btn {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }
    
    .sidebar-widget {
        padding: 12px !important;
    }
    
    .announcement-section,
    .points-section,
    .member-info-section {
        padding: 15px 12px !important;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 15px !important;
    }
    
    .hero-section h1 {
        font-size: 1.6em !important;
    }
    
    .slider-wrapper {
        height: 180px !important;
    }
    
    .slide-content {
        padding: 15px !important;
    }
    
    .slide-content h2 {
        font-size: 1.3em !important;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card,
    .feature-card,
    .sidebar-widget,
    .announcement-section,
    .points-section,
    .member-info-section {
        border-width: 0.5px;
    }
}

/* 侧边栏移动端优化 */
@media (max-width: 768px) {
    .profile {
        text-align: center !important;
        padding: 20px 15px !important;
    }
    
    .profile-avatar {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 15px auto !important;
    }
    
    .profile-name {
        font-size: 1.1em !important;
        margin-bottom: 15px !important;
    }
    
    .profile-stats {
        display: flex !important;
        justify-content: space-around !important;
        margin-bottom: 15px !important;
    }
    
    .profile-stats div {
        text-align: center !important;
        font-size: 13px !important;
    }
    
    .login-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .card {
        margin-bottom: 15px !important;
        border-radius: 12px !important;
        padding: 15px !important;
    }
    
    .card h2 {
        font-size: 1.1em !important;
        margin-bottom: 12px !important;
    }
    
    .comments-list li {
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    .comments-list li a {
        color: #666 !important;
        text-decoration: none !important;
        word-break: break-all !important;
    }
    
    .comments-list li a:hover {
        color: #409eff !important;
    }
}

@media (max-width: 480px) {
    .profile {
        padding: 15px 12px !important;
    }
    
    .profile-avatar {
        width: 50px !important;
        height: 50px !important;
    }
    
    .profile-name {
        font-size: 1em !important;
    }
    
    .profile-stats div {
        font-size: 12px !important;
    }
    
    .card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .card h2 {
        font-size: 1em !important;
    }
    
    .comments-list li {
        font-size: 12px !important;
    }
    
    .login-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* 修复移动端文字换行问题 */
@media (max-width: 768px) {
    .card h2,
    .card .excerpt,
    .comments-list li,
    .profile-name {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* 防止长标题溢出 */
    .card h2 {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* 防止长链接文字溢出 */
    .comments-list li a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
} 