/*
Theme Name: 54like.com
Description: 54like.com博客主题，采用三栏布局设计
Author: AI Assistant
Version: 1.0
*/

/* CSS变量定义 - 绿色主题色方案 */
:root {
    --theme-color: #10b981;
    --focus-color: #059669;
    --focus-shadow-color: rgba(16, 185, 129, 0.3);
    
    --key-color: #1f2937;
    --main-color: #6b7280;
    --main-shadow: rgba(0, 0, 0, 0.08);
    --muted-color: #9ca3af;
    --muted-2-color: #d1d5db;
    --muted-3-color: #e5e7eb;
    
    --body-bg-color: #ffffff;
    --main-bg-color: #ffffff;
    --muted-bg-color: #f9fafb;
    --main-border-color: #e5e7eb;
    --muted-border-color: #f3f4f6;
    --main-radius: 8px;
    
    --blur-bg: rgba(255, 255, 255, 0.95);
    --float-btn-bg: rgba(16, 185, 129, 0.1);
    
    --header-bg: var(--blur-bg);
    --header-color: var(--main-color);
    --footer-bg: var(--main-bg-color);
    --footer-color: var(--muted-2-color);
    
    /* 辅助强调色 - 橙色，与绿色搭配 */
    --secondary-accent-color: #ff9800;
    --secondary-accent-hover: #f57c00;
    
    /* 浅绿色 - 用于导航按钮 */
    --light-green: #d1fae5;
    --light-green-hover: #a7f3d0;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6f7;
    color: var(--main-color);
    line-height: 1.6;
}

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

a:hover {
    color: var(--focus-color);
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 三栏布局 - 强制执行固定宽度 */
.content-wrap {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    width: 1216px; /* 200 + 700 + 300 + 16px间隔 */
    margin-left: auto;
    margin-right: auto;
}

.left-sidebar {
    width: 200px !important;
    background: white;
    border-radius: var(--main-radius);
    box-shadow: 0 1px 3px var(--main-shadow);
    padding: 20px;
    border: 1px solid var(--main-border-color);
    flex-shrink: 0;
}

.content-area {
    width: 700px !important;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: none;
    flex-shrink: 0;
}

.right-sidebar {
    width: 300px !important;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: none;
    flex-shrink: 0;
}

.sidebar-widget {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: 0 1px 3px var(--main-shadow);
    padding: 20px;
    border: 1px solid var(--main-border-color);
    margin-bottom: 3px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* 清除浮动 */
.content-wrap::after {
    content: "";
    display: table;
    clear: both;
}

/* 侧边栏组件优化 - 借鉴参考页面的简洁设计 */
.sidebar-widget {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 24px;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* 热门文章优化 - 减少数量 */
.hot-posts {
    margin-bottom: 0;
}

.hot-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hot-post-item:last-child {
    margin-bottom: 0;
}

/* Tag墙优化 - 减少标签数量 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    padding: 4px 8px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

/* 卡片样式 - 复刻zibll的卡片设计 */
.card {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: 0 2px 12px var(--main-shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--main-border-color);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px var(--main-shadow);
}

.card-header {
    border-bottom: 1px solid var(--muted-border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--key-color);
    margin: 0;
}

/* 文章列表样式 - 复刻zibll的文章卡片 */
.post-list {
    margin-top: 20px;
}

.post-item {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: 0 2px 8px var(--main-shadow);
    padding: 20px;
    margin-bottom: 1px;
    border: 1px solid var(--main-border-color);
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 16px var(--main-shadow);
    transform: translateY(-2px);
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--key-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: var(--key-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.post-meta {
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta span {
    display: inline-block;
}

.post-excerpt {
    color: var(--main-color);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.post-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--main-radius);
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.05);
}

.post-image.single {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* 侧边栏样式 - 复刻zibll的侧边栏设计 */
.sidebar-widget {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: 0 2px 8px var(--main-shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--main-border-color);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--key-color);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
}

/* 分页按钮样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--main-border-color);
    background: white;
    color: var(--main-color);
    border-radius: var(--small-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
}

.page-btn:hover {
    background: var(--muted-bg-color);
    border-color: var(--theme-color);
}

.page-btn.active {
    background: var(--secondary-accent-color);
    color: white;
    border-color: var(--secondary-accent-color);
}

.page-btn.active:hover {
    background: var(--secondary-accent-hover);
    border-color: var(--secondary-accent-hover);
}

/* 按钮样式 - 复刻zibll的按钮设计 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--theme-color);
    color: white;
    border: none;
    border-radius: var(--main-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--focus-shadow-color);
}

.btn:hover {
    background: var(--focus-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--focus-shadow-color);
}

.btn-outline {
    background: transparent;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--theme-color);
    color: white;
    box-shadow: 0 4px 16px var(--focus-shadow-color);
}

/* 导航按钮组 - 借鉴参考页面的设计 */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-btn {
    padding: 8px 12px;
    background: transparent;
    color: var(--main-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
}

.nav-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--theme-color);
}

.nav-btn.active {
    background: var(--light-green) !important;
    color: var(--key-color) !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
}

/* 无图文章默认图片样式 */
.post-item.no-image .post-excerpt::after {
    content: '';
    display: block;
    width: 100%;
    height: 200px;
    background-image: var(--random-image, url('images/random_01.jpg'));
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-top: 15px;
    background-repeat: no-repeat;
}

/* 单图文章图片样式 */
.post-item.single-image .post-thumbnail {
    width: 100%;
    margin-top: 15px;
}

.post-item.single-image .post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 美元发财主题图片 - 使用风景图 */
.post-item.no-image.money-theme .post-excerpt::after {
    background-image: url('https://picsum.photos/400/200?random=21');
}

.post-item.no-image.success-theme .post-excerpt::after {
    background-image: url('https://picsum.photos/400/200?random=22');
}

.post-item.no-image.wealth-theme .post-excerpt::after {
    background-image: url('https://picsum.photos/400/200?random=23');
}

/* 热门文章样式 - 优化版 */
.hot-posts {
    margin-bottom: 20px;
}

.hot-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 84px;
    align-items: center;
}

.hot-post-item:hover {
    background: #f8f9fa;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hot-post-item:last-child {
    margin-bottom: 0;
}

.hot-post-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hot-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--key-color);
    margin-bottom: 6px;
    line-height: 1.4;
}

.hot-post-title a {
    color: var(--key-color);
    text-decoration: none;
    transition: color 0.3s;
}

.hot-post-title a:hover {
    color: var(--theme-color);
}

.hot-post-excerpt {
    font-size: 12px;
    color: var(--muted-color);
    line-height: 1.5;
    margin: 0;
}

/* Tag墙样式 - 优化版 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-item:hover {
    background: var(--theme-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 68, 148, 0.3);
    border-color: transparent;
}

/* 友情链接样式 - 优化版 */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.link-item:hover {
    background: var(--theme-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 68, 148, 0.3);
    border-color: transparent;
}

/* 相关文章样式 */
.related-posts {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0 !important;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.related-title {
    color: #10b981;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.related-grid {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.related-item {
    background: #f8f9fa !important;
    border-radius: 0 !important;
    padding: 15px !important;
    transition: all 0.2s ease;
    width: 220px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-right: 1px solid #e9ecef !important;
    flex: 0 0 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

.related-item:last-child {
    border-right: none;
}

.related-item:first-child {
    border-radius: 8px 0 0 8px;
}

.related-item:last-child {
    border-radius: 0 8px 8px 0;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.related-thumb {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.related-title-text {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.related-title-text a {
    color: inherit;
    text-decoration: none;
}

.related-title-text a:hover {
    color: #10b981;
}

/* 无图文章缩略图样式 */
.post-thumbnail {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--main-radius);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: var(--main-radius);
}

/* 响应式设计 - 修复版 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .content-wrap {
        gap: 10px;
    }
    
    .left-sidebar {
        width: 180px;
    }
    
    .right-sidebar {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .left-sidebar {
        width: 160px;
    }
    
    .right-sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .content-wrap {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-sidebar,
    .right-sidebar {
        width: 100%;
    }
    
    .nav-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .post-images {
        flex-direction: column;
    }
    
    .post-image {
        width: 100%;
        height: auto;
    }
    
    .related-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* 未登录提示卡片样式 */
.login-prompt-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--main-border-color);
    box-shadow: 0 1px 3px var(--main-shadow);
}

.login-prompt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.login-message {
    font-size: 16px;
    font-weight: 500;
    color: var(--key-color);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--key-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.action-btn:hover {
    background: var(--muted-bg-color);
    border-color: var(--muted-2-color);
    transform: translateY(-1px);
}

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

.action-text {
    font-size: 14px;
}

/* 不同按钮的图标颜色 */
.post-btn .action-icon { color: #8b5cf6; }
.article-btn .action-icon { color: #3b82f6; }
.question-btn .action-icon { color: #ef4444; }
.collaboration-btn .action-icon { color: var(--theme-color); }

/* 文章列表样式 */
.post-list {
    margin-bottom: 30px;
}

/* 评论样式 */
.comments-area {
    margin-top: 40px;
}

.comment-item {
    border-bottom: 1px solid var(--muted-border-color);
    padding: 20px 0;
}

.comment-author {
    font-weight: 600;
    color: var(--key-color);
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 10px;
}

.comment-content {
    color: var(--main-color);
    line-height: 1.6;
}

/* 相关文章 */
.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.related-post-item {
    text-align: center;
}

.related-post-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--main-radius);
    margin-bottom: 10px;
}

.related-post-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--key-color);
    line-height: 1.4;
}

/* 头部样式 - 复刻zibll的头部设计 */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--main-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--main-shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    height: 55px;
}

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--key-color);
}

.site-title a {
    color: var(--key-color);
    text-decoration: none;
    transition: color 0.3s;
}

.site-title a:hover {
    color: var(--theme-color);
}

.site-description {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: var(--muted-color);
}

.main-navigation {
    flex: 2;
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-navigation a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-color);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--theme-color);
}

.header-actions {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    color: var(--main-color);
    font-size: 14px;
}

/* 登录区域样式 - 参考图片设计 */
.login-area {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.login-area::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.login-area::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: rgba(255, 152, 0, 0.08);
    border-radius: 50%;
    z-index: 1;
}

.login-header {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.login-title {
    font-size: 16px;
    font-weight: 600;
    color: #ff9800;
    margin-bottom: 8px;
    white-space: nowrap;
}

.login-subtitle {
    font-size: 14px;
    color: #6c757d;
}

.login-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-btn {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--theme-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--theme-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 确保注册按钮颜色正确 */
.login-area .btn-outline {
    background: transparent !important;
    color: var(--theme-color) !important;
    border: 2px solid var(--theme-color) !important;
    box-shadow: none !important;
}

.login-area .btn-outline:hover {
    background: var(--theme-color) !important;
    color: white !important;
    box-shadow: 0 4px 16px var(--focus-shadow-color) !important;
}

/* 注册按钮样式 - 更美观的设计 */
.register-btn {
    background: var(--theme-color) !important;
    color: white !important;
    border: 2px solid var(--theme-color) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
}

.register-btn:hover {
    background: var(--theme-hover-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

/* 未登录卡片样式 - 完全按照图片设计 */
.not-logged-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.login-input-area {
    flex: 1;
}

.login-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 25px;
    font-size: 15px;
    color: #374151;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-input:focus {
    border-color: #10b981;
    background: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.login-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

/* 完美复刻登录区域样式 - 直接模块，无包裹 */
.login-area-perfect {
    background: url('/wp-content/themes/54like-theme/images/bg.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 3px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* 功能按钮区域样式 - 简洁版 */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: none;
    position: relative;
    overflow: hidden;
    min-width: auto;
    justify-content: flex-start;
    flex: none;
    max-width: none;
    background: transparent;
    color: #374151;
}

.action-btn::before {
    display: none;
}

.action-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.post-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.post-btn .action-icon {
    background: #9333ea;
    color: white;
}

.article-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.article-btn .action-icon {
    background: #3b82f6;
    color: white;
}

.question-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.question-btn .action-icon {
    background: #ef4444;
    color: white;
}

.cooperation-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.cooperation-btn .action-icon {
    background: #10b981;
    color: white;
}

.action-btn:hover {
    transform: none;
    box-shadow: none;
    background: #f3f4f6;
}

.action-text {
    position: relative;
    z-index: 2;
}

.login-header-perfect {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.login-text-image {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-button-perfect {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.login-btn-perfect {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    font-size: 13px !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3) !important;
    min-width: 120px !important;
    letter-spacing: 0.5px !important;
}

.login-btn-perfect:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
    color: white;
}

.login-footer-perfect {
    position: relative;
    z-index: 2;
}

.login-footer-perfect p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.register-link-perfect {
    color: #10b981;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    margin-left: 3px;
}

.register-link-perfect:hover {
    color: #059669;
    text-decoration: underline;
}

/* 用户交互卡片模块 - 独立卡片 */
.user-interaction-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.user-interaction-card .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-interaction-card .user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-interaction-card .user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-interaction-card .login-input-area {
    flex: 1;
}

.user-interaction-card .login-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 25px;
    font-size: 15px;
    color: #374151;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-interaction-card .login-input:focus {
    border-color: #10b981;
    background: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.user-interaction-card .login-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

/* 功能按钮区域样式 - 居中显示 */
.user-interaction-card .action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    margin: 0;
}

.user-interaction-card .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: none;
    position: relative;
    overflow: hidden;
    min-width: auto;
    justify-content: flex-start;
    flex: none;
    max-width: none;
    background: transparent;
    color: #374151;
}

.user-interaction-card .action-btn::before {
    display: none;
}

.user-interaction-card .action-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.user-interaction-card .post-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.user-interaction-card .post-btn .action-icon {
    background: #9333ea;
    color: white;
}

.user-interaction-card .article-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.user-interaction-card .article-btn .action-icon {
    background: #3b82f6;
    color: white;
}

.user-interaction-card .question-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.user-interaction-card .question-btn .action-icon {
    background: #ef4444;
    color: white;
}

.user-interaction-card .cooperation-btn {
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.user-interaction-card .cooperation-btn .action-icon {
    background: #10b981;
    color: white;
}

.user-interaction-card .action-btn:hover {
    transform: none;
    box-shadow: none;
    background: #f3f4f6;
}

.user-interaction-card .action-text {
    position: relative;
    z-index: 2;
}

/* 文章列表样式 - 独立卡片模式 */
.post-list {
    margin-bottom: 30px;
}

.post-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    min-height: 200px; /* 最小高度而不是固定高度 */
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-item .post-thumbnail {
    width: 100%;
    height: 240px;
    border-radius: 8px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

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

.post-item .post-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--key-color);
}

.post-item .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item .post-title a:hover {
    color: var(--theme-color);
}

.post-item .post-meta {
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 8px;
}

.post-item .post-excerpt {
    font-size: 14px;
    color: var(--main-color);
    line-height: 1.6;
    margin: 10px 0 15px 0;
    flex: 1;
    display: block;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 完整显示3行 */
    -webkit-box-orient: vertical;
    max-height: 70px; /* 3行的高度 */
}

/* 无图文章随机图片样式 */
.post-item.no-image .post-thumbnail {
    background-image: var(--random-image, url('images/random_01.jpg'));
}

.post-item.no-image.success-theme .post-thumbnail {
    background-image: url('https://picsum.photos/400/200?random=21');
}

.post-item.no-image.wealth-theme .post-thumbnail {
    background-image: url('https://picsum.photos/400/200?random=23');
}

/* Widget容器样式 - 透明包裹 */
.widget-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 6px;
}

.widget-container:last-child {
    margin-bottom: 0;
}

/* 页脚样式 - 简化版 */
.site-footer {
    background: #f5f6f7;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
    padding: 10px 0;
}

.footer-content {
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding: 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}


/* 友情链接样式 */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: block;
    padding: 8px 12px;
    background: var(--muted-bg-color);
    color: var(--main-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--main-border-color);
}

.link-item:hover {
    background: var(--muted-3-color);
    color: var(--key-color);
    transform: translateX(3px);
}

/* 自定义模块样式 */
.custom-content {
    font-size: 14px;
    line-height: 1.6;
}

.custom-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.custom-content li {
    margin-bottom: 5px;
    color: var(--muted-color);
}

.custom-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
}

.custom-banner .banner-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
}
