/* Global Styles */
:root {
    /* 心理健康主题配色 - 柔和、温暖、舒适 */
    --primary-color: #5d8aa8;
    /* 柔和的蓝色，代表平静和信任 */
    --secondary-color: #87a96b;
    /* 温暖的绿色，代表成长和希望 */
    --accent-color: #ffbf00;
    /* 温暖的橙色，代表活力和积极 */
    --text-color: #2c3e50;
    /* 深灰色，提高可读性 */
    --light-text: #555555;
    /* 浅灰色，用于辅助文本 */
    --background-color: #f8f9fa;
    /* 柔和的米色背景，更舒适 */
    --card-bg: #ffffff;
    /* 白色卡片背景，保持清晰 */
    --border-color: #e8ecef;
    /* 柔和的边框色 */
    --header-height: 80px;
    --font-main: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 平滑过渡曲线 */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* 快速过渡 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* 小阴影 */
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    /* 中阴影 */
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    /* 大阴影 */
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.2);
    /* 悬停阴影 */

}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Main content styling */
main {
    padding: 0.5rem 0;
    max-width: 1440px;
    margin: 0 auto;
}

/*========公共===========*/
/* 谷歌搜索框 */
.main-index .google-search-section {
    padding: 0 0.5rem;
}

.google-search-section {
    padding: 0;
}

/* 使用属性选择器匹配所有带语言后缀的类名，实现统一样式 */
section.google-search-section [class^="gsc-control-cse"],
section.google-search-section [class*=" gsc-control-cse"] {
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* 更具体的搜索框输入区域样式 */
section.google-search-section .gsc-input-box {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* 更具体的搜索按钮样式 */
section.google-search-section .gsc-search-button {
    background-color: #04bfd5;
    border: none;
    border-radius: 0 4px 4px 0;
    width: 4%;
    cursor: pointer;
}

section.google-search-section .gsc-search-button-v2 {
    padding: 0 20px;
    cursor: pointer;
}

section.google-search-section .gsc-search-button-v2 svg {
    width: 24px;
}

/* 解决搜索框输入区域 td 间距问题 */
section.google-search-section .table.gsc-search-box td.gsc-input {
    padding-right: 0;
}

/* 增强选择器特异性，确保样式生效 */
section.google-search-section table.gsc-search-box tr td.gsc-input {
    padding-right: 0;
    margin: 0;
}

/* 页头和面包屑 */
.page-header {
    background-color: var(--primary-color);
    color: white;
}

.page-header h1 {
    font-size: 1.5rem;
}

.breadcrumb {
    line-height: 2.5;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    font-size: inherit;
}

.breadcrumb a,
.breadcrumb .article-title {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.breadcrumb span {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0 0.25em;
    vertical-align: middle;
}

.breadcrumb a {
    color: #05c3f3;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #f77205;
    text-decoration: none;
}

.breadcrumb .article-title {
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    display: inline-block;
}

/* 查看全部按钮 */
.btn-viewall {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #04bfd5;
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-viewall:hover {
    background: #f39c12;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(45, 55, 72, 0.25);
}

/* Back to Top Button - 全局样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    text-align: center;
    padding: 0 15px;
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s ease forwards;
}

.back-to-top:hover {
    background-color: #f39c12;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 统一Loading容器样式 */
.kao-featured-loading,
.kao-card-loading,
.kao-categories-loading,
.kao-grid-loading,
.kao-list-loading,
.kao-tags-loading,
.kao-no-image-loading,
.kao-left-right-loading,
.kao-text-list-loading,
.kao-random-loading,
.kao-default-loading,
.kao-loading,
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #a0aec0;
}

/* 统一Loading图标样式 */
.kao-featured-loading i,
.kao-card-loading i,
.kao-categories-loading i,
.kao-grid-loading i,
.kao-list-loading i,
.kao-tags-loading i,
.kao-no-image-loading i,
.kao-left-right-loading i,
.kao-text-list-loading i,
.kao-random-loading i,
.kao-default-loading i,
.kao-loading i,
.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1da1f2;
}

/* 统一Loading文本样式 */
.kao-featured-loading p,
.kao-card-loading p,
.kao-categories-loading p,
.kao-grid-loading p,
.kao-list-loading p,
.kao-tags-loading p,
.kao-no-image-loading p,
.kao-left-right-loading p,
.kao-text-list-loading p,
.kao-random-loading p,
.kao-default-loading p,
.kao-loading p,
.kao-loading span,
.loading p,
.loading span {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
}

/* Header Styles */
.header {
    background-color: #2c3e50;
    background-image: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    position: relative;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 6px;
    left: 1.25rem;
    background-color: var(--accent-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: calc(100% - 2.5rem);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn i {
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .header .container {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    #google-sign-in-container {
        order: 3;
    }
    
    .mobile-menu-btn {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    .nav-links.show {
        display: flex;
        opacity: 1;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        pointer-events: auto;
        backdrop-filter: blur(50px);
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        display: none;
    }

    .nav-links.show a {
        color: #0474b9;
        padding: 0.5rem;
        margin: 0.15rem;
        border-radius: 10px;
        text-align: center;
        font-weight: 500;
        position: relative;
        font-size: 1rem;
        -webkit-tap-highlight-color: transparent;
        display: block;
        touch-action: manipulation;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    }

    .nav-links.show a:active {
        background-color: #ffbf00;
        color: white;
    }

    .mobile-menu-btn {
        display: block !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        border: 2px solid rgba(255, 255, 255, 0.2);
        font-size: 1.3rem;
        cursor: pointer;
        color: white;
        padding: 0.75rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
    }

    .mobile-menu-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .mobile-menu-btn:hover::before {
        opacity: 0.8;
    }

    .mobile-menu-btn:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .mobile-menu-btn:active {
        transform: scale(0.95);
    }

    .mobile-menu-btn.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border-color: transparent;
        transform: rotate(180deg);
    }

    .mobile-menu-btn.active i {
        transform: rotate(45deg);
    }
}

/* 通用页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding-top: 10px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-column h3 {
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    color: white;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
    font-size: 1rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    color: var(--primary-color);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

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

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

.partners-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.partner-item {
    display: inline-block;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    overflow: hidden;
    position: relative;
    width: 140px;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.partner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.partner-item:hover::after {
    left: 150%;
}

.partner-logo {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.partner-item:hover .partner-logo {
    opacity: 1;
}

@media (max-width: 480px) {

    .footer-column p,
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .logo img {
        content: url('/images/kaokon-m.svg');
    }
}

/* 通用图片容器与图片样式 */
.kao-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--img-radius);
    display: block;
}

/* ========================================
   通用互动按钮样式
   ======================================== */

.interaction-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.interaction-btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.interaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.interaction-btn .btn-text {
    font-size: 0.9rem;
}

.interaction-btn .count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

/* 点赞按钮激活状态 */
.like-btn.active {
    border-color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
}

.like-btn.active .fa-heart {
    color: #ff4757;
}

.like-btn.active .count {
    background-color: #ff4757;
}

/* 收藏按钮激活状态 */
.favorite-btn.active {
    border-color: var(--accent-color);
    background-color: rgba(255, 191, 0, 0.1);
}

.favorite-btn.active .fa-bookmark {
    color: var(--accent-color);
}

.favorite-btn.active .count {
    background-color: var(--accent-color);
}

/* 分享按钮样式 */
.share-btn:hover {
    border-color: #39aef7;
}

.share-btn:hover .fa-share-alt {
    color: #39aef7;
}

/* 评论按钮样式 */
.comment-btn:hover {
    border-color: #87a96b;
}

.comment-btn:hover .fa-comment {
    color: #87a96b;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .interaction-btn-group {
        gap: 0.5rem;
    }
    
    .interaction-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .interaction-btn .btn-text {
        display: none;
    }
    
    .interaction-btn .count {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        min-width: 1.2rem;
    }
}

@media (max-width: 480px) {
    .interaction-btn-group {
        justify-content: space-between;
        gap: 0.25rem;
    }
    
    .interaction-btn {
        flex: 1;
        min-width: auto;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }
}

.kao-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
    border-radius: inherit;
}

.kao-img-lg {
    height: 280px;
}

.kao-img-xl {
    height: 320px;
}

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

/* 模块统一尺寸规则 */
.article-list-item .kao-img-wrap {
    width: 200px;
    flex-shrink: 0;
}

.article-item .kao-img-wrap {
    width: 30%;
    min-width: 250px;
}

/* 404页面 */
/** 404 Page Styles - Modern and User-Friendly Design */

.not-found {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.not-found-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: pulse 2s ease-in-out infinite;
}
/* Google Sign-In Button */
#google-sign-in-container {
    display: flex;
    align-items: center;
    position: relative;
}

#google-sign-in {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
}

#google-sign-in:hover {
    background-color: #f5f5f5;
    border-color: #c6c6c6;
}

/* User Avatar Button (after login) */
#google-sign-in.user-avatar-button {
    padding: 2px;
    border: none;
    border-radius: 50%;
}

#google-sign-in.user-avatar-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

#google-sign-in.user-avatar-button img {
    width: 46px;
    height: 46px;
}

/* User Menu */
.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    padding: 0;
    min-width: 300px;
    z-index: 1000;
    margin-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.user-menu-profile {
    padding: 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
}

.user-menu-avatar {
    margin-right: 12px;
    font-size: 56px;
    color: #5f6368;
    flex-shrink: 0;
}

.user-menu-name {
    font-weight: 500;
    font-size: 16px;
    color: #202124;
    margin-bottom: 4px;
}

.user-menu-email {
    font-size: 14px;
    color: #5f6368;
}

.user-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-menu-item {
    display: block;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #202124;
}

.user-menu-item li {
    display: block;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.user-menu-item i {
    margin-right: 16px;
    color: #5f6368;
    font-size: 18px;
    width: 16px;
    text-align: center;
}

.user-menu-item:hover {
    background-color: #f1f3f4;
}

/* ========================================
   Toast通知样式 - 统一到comm.css中
   ======================================== */

.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.toast {
    min-width: 320px;
    max-width: 500px;
    padding: 20px 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.3s ease-out;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.toast.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
}

.toast.warning {
    background: linear-gradient(135deg, #ffb347 0%, #ffa502 100%);
    color: #fff;
}

.toast.success {
    background: linear-gradient(135deg, #2ed573 0%, #26af61 100%);
    color: #fff;
}

.toast.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
}

.toast-icon {
    font-size: 28px;
    flex-shrink: 0;
    font-weight: bold;
}

.toast-message {
    flex: 1;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 90%;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        padding: 16px 20px;
        font-size: 14px;
    }

    .toast-icon {
        font-size: 24px;
    }
}

/* ========================================
   分享模态框样式
   ======================================== */

#shareMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

#shareMenu.active {
    opacity: 1;
}

.share-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#shareMenu.active .share-modal {
    transform: scale(1);
    opacity: 1;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.share-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.close-share {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-share:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #e74c3c;
    transform: rotate(90deg);
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.share-platform:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

.share-platform-icon {
    font-size: 32px;
    margin-bottom: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
}

.share-platform-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.share-url-section {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.share-url-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.share-url-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
}

.share-url-copy {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.share-url-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.share-url-copy:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .share-modal {
        padding: 24px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .share-platform {
        padding: 12px;
    }
    
    .share-platform-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .share-title {
        font-size: 20px;
    }
}

/* ========================================
   评论功能样式 - 统一到comm.css中
   ======================================== */

/* 评论模态框样式 */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comment-modal.active {
    opacity: 1;
    visibility: visible;
}

.comment-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.comment-modal.active .comment-modal-content {
    transform: translateY(0);
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.close-comment-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-comment-modal:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* 评论表单样式 */
.comment-form {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.cancel-comment,
.submit-comment {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-comment {
    background-color: #f3f4f6;
    color: #374151;
}

.cancel-comment:hover {
    background-color: #e5e7eb;
}

.submit-comment {
    background-color: #3b82f6;
    color: white;
}

.submit-comment:hover {
    background-color: #2563eb;
}

.submit-comment:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* 评论列表样式 */
.comments-list {
    padding: 24px;
}

.comments-list h4 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.comments-container {
    /* 移除固定高度和滚动条，改为紧凑布局 */
    max-height: none;
    overflow-y: visible;
}

.no-comments {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
    margin: 0;
}

/* 评论项样式 */
.comment-item {
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

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

.comment-author {
    font-weight: 600;
    color: #155979;
}

.comment-time {
    font-size: 0.6875rem;
    color: #6b7280;
}

.comment-content {
    color: #374151;
    line-height: 1.4;
    font-size: 0.8125rem;
    margin-bottom: 6px;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.like-comment {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.like-comment:hover {
    background-color: #f3f4f6;
    color: #ef4444;
}

.like-comment.liked {
    color: #ef4444;
}

.like-comment i {
    font-size: 0.75rem;
}

/* ========================================
   固定评论容器样式
   ======================================== */

/* 评论区域容器 */
.comments-section {
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* 评论表单区域 */
.comment-form-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
}

.comment-form-container {
    max-width: 100%;
}

.comment-form-title {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* 评论列表区域 */
.comments-list-section {
    margin-top: 24px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}



.add-comment-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.add-comment-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.add-comment-btn i {
    font-size: 0.75rem;
}

/* 评论容器 */
.comments-container {
    padding: 16px;
    /* 移除固定高度和滚动条，改为紧凑布局 */
    max-height: none;
    overflow-y: visible;
}

/* 评论表单操作按钮 */
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.cancel-comment-btn,
.submit-comment-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-comment-btn {
    background-color: #f3f4f6;
    color: #374151;
}

.cancel-comment-btn:hover {
    background-color: #e5e7eb;
}

.submit-comment-btn {
    background-color: #3b82f6;
    color: white;
}

.submit-comment-btn:hover {
    background-color: #2563eb;
}

/* 滚动条样式 */
.comments-container::-webkit-scrollbar {
    width: 6px;
}

.comments-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .comment-modal-header {
        padding: 16px 20px;
    }
    
    .comment-form {
        padding: 20px;
    }
    
    .comments-list {
        padding: 20px;
    }
       
    .comments-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        gap: 12px;
    }
    
    .pagination-buttons {
        justify-content: center;
    }
    
    .comment-actions {
        flex-direction: column;
    }
    
    .cancel-comment,
    .submit-comment {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .comment-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .comment-modal-header {
        padding: 12px 16px;
    }
    
    .comment-form {
        padding: 16px;
    }
    
    .comments-list {
        padding: 16px;
    }
    
    .comment-textarea {
        min-height: 100px;
    }
}

/* ========================================
   用户页面样式 - My Favorites & My Comments
   ======================================== */

/* 登录提示样式 */
.login-prompt {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 40px;
}

.login-prompt h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-prompt p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1rem;
}

.google-sign-in-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.google-sign-in-prompt:hover {
    background-color: #f5f5f5;
    border-color: #c6c6c6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 收藏页面样式 */
.favorites-header h1 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.favorites-intro {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.6;
}

.favorite-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.favorite-item:hover {
    background-color: #eaf4f8;
    box-shadow: 0 1px 3px rgba(229, 62, 62, 0.1);
}

.favorite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.favorite-meta {
    flex: 1;
    min-width: 0;
}

.favorite-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 2px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-title:hover {
    color: #667eea;
}

.favorite-time {
    font-size: 0.75rem;
    color: #718096;
}

.favorite-actions {
    margin-top: auto;
}

/* 通用删除按钮样式 */
.remove-favorite-btn,
.delete-comment-btn {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #718096;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 0.75rem;
    cursor: button;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.remove-favorite-btn:hover,
.delete-comment-btn:hover {
    background: #f7fafc;
    border-color: #e53e3e;
    color: #e53e3e;
    opacity: 1;
    cursor: pointer;
}

.no-favorites {
    text-align: center;
    padding: 24px 16px;
    color: #718096;
    font-size: 0.85rem;
}

/* 评论页面样式 */
.comments-header h1 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.comments-intro {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.6;
}

.comments-list {
    margin-top: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

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

.comment-article {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.comment-article:hover {
    color: #5d8aa8;
}

.comment-time {
    font-size: 0.75rem;
    color: #718096;
}

.comment-content {
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-actions {
    margin-left: 8px;
}

.no-comments {
    text-align: center;
    padding: 24px 16px;
    color: #718096;
    font-size: 0.85rem;
}

/* 统一分页样式 */
.favorites-pagination,
.comments-pagination,
.my-comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.total-count {
    margin-right: auto;
    font-weight: 500;
    color: #4a5568;
}

.page-info {
    font-size: 0.85rem;
    color: #718096;
    margin: 0 12px;
}

.pagination-btn {
    background: #5d8aa8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #4a7494;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-btn.active {
    background: #f39c12;
    font-weight: 600;
}

/* 移动端适配 - 768px */
@media (max-width: 768px) {
    /* 通用项目样式 */
    .favorite-item,
    .comment-item {
        padding: 8px;
        margin-bottom: 0.5rem;
    }
    
    /* 头部布局 */
    .favorite-header,
    .comment-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    /* 元数据区域 */
    .favorite-meta,
    .comment-meta {
        flex: 1;
        min-width: 0;
        margin-right: 8px;
    }
    
    /* 标题样式 */
    .favorite-title {
        -webkit-line-clamp: 1;
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }
    
    .comment-article {
        -webkit-line-clamp: 1;
        line-height: 1.3;
        margin-bottom: 2px;
    }
    
    /* 内容样式 */
    .comment-content {
        -webkit-line-clamp: 2;
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
    /* 操作按钮区域 */
    .favorite-actions,
    .comment-actions {
        margin-left: 0;
        margin-top: 0;
        width: auto;
        flex-shrink: 0;
    }
    
    /* 按钮样式 */
    .remove-favorite-btn,
    .delete-comment-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
        opacity: 0.8;
    }
    
    .remove-favorite-btn:hover,
    .delete-comment-btn:hover {
        opacity: 1;
    }
    
    /* 分页样式 */
    .favorites-pagination,
    .comments-pagination,
    .my-comments-pagination {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .total-count {
        display: none; /* 隐藏复杂的提示信息 */
    }
    
    .pagination-controls,
    .my-pagination-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 0;
    }
    
    /* 移动端页面信息样式 */   
    .total-count,
    .my-total-count {
        margin-right: 0;
        text-align: center;
    }
    
    .page-info,
    .my-page-info {
        margin: 0 8px;
        text-align: center;
    }
    
    .pagination-info {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    

}

/* Channel Badge Styles */
.channel-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.quiz-badge {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.favorite-channel,
.comment-channel {
    margin-bottom: 4px;
}

/* Title Bar with Filter Tabs */
.favorites-title-bar,
.comments-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.favorites-title-bar h2,
.comments-title-bar h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-color);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.filter-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 移动端适配 - 480px */
@media (max-width: 480px) {
    /* Title Bar and Filter Tabs */
    .favorites-title-bar,
    .comments-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .favorites-title-bar h2,
    .comments-title-bar h2 {
        font-size: 1.5rem;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .filter-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Channel Badges */
    .channel-badge {
        font-size: 10px;
        padding: 1px 6px;
        margin-right: 4px;
    }
    
    /* 项目样式 */
    .favorite-item,
    .comment-item {
        padding: 6px;
    }
    
    /* 标题样式 */
    .favorite-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 1px;
    }
    
    .comment-article {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 1px;
    }
    
    /* 时间样式 */
    .comment-time,
    .favorite-time {
        font-size: 0.65rem;
    }
    
    /* 内容样式 */
    .comment-content {
        font-size: 0.75rem;
        margin-top: 3px;
    }
    
    .favorite-actions,
    .comment-actions {
        margin-top: 0;
        width: auto;
        flex-shrink: 0;
    }
    
    .remove-favorite-btn,
    .delete-comment-btn {
        padding: 2px 4px;
        font-size: 0.6rem;
        border-width: 0.5px;
        opacity: 0.7;
    }
    
    .remove-favorite-btn:hover,
    .delete-comment-btn:hover {
        opacity: 1;
    }
}

/* 移动端适配 - 我的评论时间与操作容器 */
@media (max-width: 480px) {
    .my-comment-time-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .my-comment-time {
        font-size: 0.7rem;
        margin-right: auto;
    }
    
    .my-comment-actions {
        align-self: center;
    }
    
    .delete-comment-btn {
        padding: 2px 4px;
        font-size: 0.6rem;
        border-width: 0.5px;
        opacity: 0.7;
    }
    
    .delete-comment-btn:hover {
        opacity: 1;
    }
}

/* ========================================
   我的评论页面专用样式
   ======================================== */

/* 我的评论区域容器 */
.my-comments-section {
    overflow: hidden;
}

/* 我的评论列表 */
.my-comments-list {
    margin-top: 0;
}

/* 我的评论项 */
.my-comment-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.my-comment-item:hover {
    background: #eaf4f8;
}

/* 我的评论头部 */
.my-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

/* 我的评论文章链接 */
.my-comment-article {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

/* 我的评论时间 */
.my-comment-time {
    font-size: 0.8rem;
    color: #718096;
}

/* 我的评论时间与操作容器 */
.my-comment-time-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 4px;
    gap: 12px;
}

/* 我的评论时间 */
.my-comment-time {
    font-size: 0.8rem;
    color: #718096;
    margin-right: auto;
}

/* 我的评论操作 */
.my-comment-actions {
    flex-shrink: 0;
}

/* 我的评论内容 */
.my-comment-content {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 我的评论操作 */
.my-comment-actions {
    margin-left: 12px;
    flex-shrink: 0;
}

/* 我的无评论状态 */
.my-no-comments {
    text-align: center;
    padding: 40px 16px;
    color: #718096;
    font-size: 0.9rem;
    background: #f7fafc;
}

/* 我的评论分页 */
.my-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.my-total-count {
    margin-right: auto;
}

.my-page-info {
    margin: 0 16px;
}

.my-pagination-btn {
    background: #5d8aa8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.my-pagination-btn:hover {
    background: #4a7a9a;
}

.my-pagination-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* 移动端适配 - 我的评论页面 */
@media (max-width: 768px) {   
    .my-comment-actions {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .my-comments-pagination {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .my-pagination-info {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }
    
    .my-pagination-controls {
        margin-left: auto;
    }
    
    .my-total-count {
        margin-right: auto;
    }
    
    .my-page-info {
        margin: 0 8px;
    }
}


