* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    /* 公共主色（不随主题切换） */
    --primary: #6366f1;        /* Indigo - 主色调 */
    --primary-dark: #4f46e5;   /* 深色主色 */
    --primary-light: #818cf8;  /* 浅色主色 */
    --secondary: #8b5cf6;      /* Purple - 次要色 */
    --accent: #a855f7;         /* 强调色 */
    --success: #10b981;        /* Emerald - 成功色 */
    --danger: #ef4444;         /* Red - 危险色 */
    --warning: #f59e0b;        /* Amber - 警告色 */
    --info: #3b82f6;           /* Blue - 信息色 */
    --light: #ffffff;          /* 白色背景 */
    --light-gray: #f8fafc;     /* 浅灰背景 */
    --dark: #1e293b;           /* Slate - 深色文字 */
    --dark-gray: #475569;      /* 深灰色文字 */
    --gray: #64748b;           /* 灰色 */
    --border: #e2e8f0;         /* 边框色 */
    
    /* 默认使用深色主题变量 */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    
    --border-radius: 12px;     /* 更大的圆角 */
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 亮色主题变量覆盖 */
html[data-theme="light"] {
    --bg-dark: #f3f4f6;          /* 页面背景改为浅灰 */
    --bg-card: #ffffff;          /* 卡片为白色 */
    --bg-card-hover: #f9fafb;    /* 卡片悬停浅一点 */
    --text-primary: #0f172a;     /* 主文字深色 */
    --text-secondary: #4b5563;   /* 次要文字灰色 */
    --text-muted: #6b7280;       /* 弱化文字 */
    --border-color: #e5e7eb;     /* 边框更浅 */
}

/* 亮色主题下的导航栏样式覆盖 */
html[data-theme="light"] .top-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .top-nav.floating {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

/* 亮色主题下移动端折叠栏样式 */
html[data-theme="light"] .nav-center.active {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

html[data-theme="light"] .nav-menu {
    background: #ffffff !important;
}

html[data-theme="light"] .nav-link {
    color: var(--text-primary);
}

html[data-theme="light"] .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary);
}

/* 移动端折叠栏中的文字颜色（亮色主题） */
html[data-theme="light"] .nav-center.active .nav-link {
    color: var(--primary) !important;
}

/* 移动端折叠栏中被选中的文字颜色为白色（亮色主题） */
html[data-theme="light"] .nav-center.active .nav-link.active {
    color: white !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 顶部导航样式 */
.top-nav {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    transform: translateY(0);
    border-bottom: 1px solid var(--border-color);
}

/* 悬浮导航栏样式 */
.top-nav.floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(0);
    opacity: 1;
    animation: slideDownFloat 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    margin-bottom: 0;
}

/* 悬浮状态下的logo效果 */
.top-nav.floating .logo {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* 悬浮状态下的导航菜单 - 确保横向显示 */
.top-nav.floating .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* 悬浮状态下的导航链接效果 */
.top-nav.floating .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.top-nav.floating .nav-link:hover {
    transform: translateY(-1px);
}

/* 悬浮状态下的active样式 - 确保一致性 */
.top-nav.floating .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.top-nav.floating .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.top-nav.floating .nav-link.active:hover {
    transform: translateY(-1px);
    color: var(--primary);
}

/* 悬浮导航栏进入动画 */
@keyframes slideDownFloat {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        transform: translateY(-10%);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 当导航栏悬浮时，为body添加顶部间距 */
body.nav-floating {
    padding-top: 80px;
}

/* 移动端调整 */
@media (max-width: 768px) {
    /* 移动端全局字体缩小20% */
    html {
        font-size: 80%; /* 缩小20%，保留80% */
    }
    
    body.nav-floating {
        padding-top: 70px;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .top-nav.floating {
        padding: 8px 0;
    }
    
    .top-nav.floating .nav-container {
        padding: 0 15px;
    }
    
    /* 悬浮状态下移动端菜单也横向显示 */
    .top-nav.floating .nav-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .top-nav.floating .nav-center.active .nav-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-header {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 20px;
}

.nav-left {
    flex: 0 0 auto;
    min-width: 0;
}

.nav-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-right {
    flex: 0 0 auto;
    min-width: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.logo i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
    width: -webkit-max-content;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    cursor: pointer;
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    animation: slideInUnderline 0.3s ease-out;
}

.nav-link.active:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* active状态进入动画 */
@keyframes slideInUnderline {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 10px 40px 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    width: 200px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: var(--bg-card);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.ai-search-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 10px;
}

.ai-search-hint:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-search-hint i {
    font-size: 16px;
}

/* 主题切换按钮 */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

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

.btn-login, .btn-register {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-login {
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

.btn-register {
    background: var(--primary);
    color: white;
}

.btn-register:hover {
    background: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

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

.mobile-menu-btn.active {
    color: white !important;
    background: var(--primary) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #343131;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 移动端：首页 .container 里的 .header 区域 h1 / p 字体缩小 */
@media (max-width: 768px) {
    .container .header h1 {
        font-size: 1.5rem; /* 原来 2.5rem，缩小约 40% */
    }

    .container .header p {
        font-size: 0.8rem; /* 原来 1.2rem，缩小约 30%+ */
    }
}

/* 广告区域样式 */
.ads-container {
    margin: 13px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ads-top {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ads-left, .ads-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 65px;
    height: auto;
    max-height: 380px;
    overflow-y: auto;
    z-index: 999;
    flex-shrink: 0;
}

.ads-left {
    left: 10px;
}

.ads-right {
    right: 10px;
}

.ads-bottom {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ad-item {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

.ads-top .ad-item {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ads-top .ad-item img {
    max-height: 130px;
    object-fit: contain;
}

.ads-left .ad-item,
.ads-right .ad-item {
    width: 100%;
    height: 380px;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}

.ads-left .ad-item img,
.ads-right .ad-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ads-bottom .ad-item {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 主要内容区域布局 */
.main-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

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

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 响应式：小屏幕时自动调整 */
@media (max-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .ads-left, .ads-right {
        display: none; /* 移动端隐藏左右广告位 */
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端card-footer文字减小30% */
    .card-footer {
        font-size: 0.56rem; /* 0.8rem * 0.7 = 0.56rem */
    }
    
    .card-footer .btn {
        font-size: 0.56rem; /* 0.8rem * 0.7 = 0.56rem */
    }
    
    /* 移动端：复制链接、查看详情、分享按钮文字增大20%（相对于原始大小） */
    /* 原始大小：0.8rem，增大20%后：0.8rem * 1.2 = 0.96rem */
    /* 由于全局已缩小20%（html font-size: 80%），需要设置：0.96rem / 0.8 = 1.2rem */
    .card-footer .copy-btn,
    .card-footer .view-detail-btn,
    .card-footer .share-btn {
        font-size: 1.2rem !important; /* 在全局缩小20%的情况下，1.2rem * 0.8 = 0.96rem，即原始0.8rem的120% */
    }
}

/* 中等屏幕时调整左右广告位位置 */
@media (max-width: 1200px) {
    .ads-left {
        left: 5px;
    }
    
    .ads-right {
        right: 5px;
    }
}

.resource-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.resource-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.resource-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-badge {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.resource-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.card-footer {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card-footer .btn {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    padding: 6px 12px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-actions .share-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

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

.resource-detail {
    margin-bottom: 20px;
}

/* 资源链接行在移动端的换行表现 */
.resource-link-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 600px) {
    .resource-link-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .resource-link-row .copy-btn-mobile {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
        padding: 12px 0 !important;
    }
}

/* 资源链接行：按钮不被挤出屏幕，链接可缩略 */
.resource-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.resource-link-row strong {
    flex: 0 0 80px; /* 固定标签宽度 */
    margin-right: 4px;
}
.resource-link-row .resource-url-link {
    flex: 1 1 auto; /* 根据剩余空间动态伸缩 */
    min-width: 0;
    display: inline-block;
    max-width: calc(100% - 80px - 120px - 16px); /* 总宽度扣除标签、按钮和间距 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.resource-link-row .copy-btn-mobile {
    flex: 0 0 120px; /* 固定按钮宽度，避免挤压链接 */
}

@media (max-width: 600px) {
    .resource-link-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .resource-link-row strong {
        margin-right: 0;
        flex: 0 0 auto; /* 移动端恢复自适应 */
    }
    .resource-link-row .resource-url-link {
        width: 100%;
        white-space: normal;
        word-break: break-all;
        max-width: 100%;
        overflow: visible;
        text-overflow: unset;
    }
    .resource-link-row .copy-btn-mobile {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
        padding: 12px 0 !important;
    }
}

.resource-detail-content {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

.resource-detail-content::-webkit-scrollbar {
    width: 6px;
}

.resource-detail-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.resource-detail-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.resource-detail-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 600;
    width: 100px;
    color: var(--gray);
}

.detail-value {
    flex: 1;
    color: var(--text-primary);
}

.url-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.url-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.qr-code-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.qr-code {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.scroll-to-top {
    position: fixed;
    bottom: 90px; /* 调整到AI按钮上方，保持垂直对齐 */
    right: 35px; /* 与AI按钮完全水平对齐 */
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 999; /* 确保在AI按钮下方 */
}

/* 确保AI按钮与回到顶部按钮垂直对齐 - 覆盖CozeWebSDK样式 */
#ab1ac9d9bab12da47298 {
        bottom: 20px !important;
        right: 33px !important;
        width: 80px !important;
        height: 80px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        cursor: pointer !important;
        transition: transform 0.3s ease !important;
    }

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.scroll-to-top.show {
    display: flex;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success);
    color: white;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    z-index: 100000 !important; /* 确保显示在所有元素之上，包括模态框 */
    display: none;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    font-weight: 500;
    pointer-events: none; /* 不阻挡用户交互 */
}

.toast.show {
    display: block;
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--danger);
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* 悬浮面板按钮 */
/* 悬浮面板和主悬浮按钮容器 */
.floating-panel {
    position: fixed;
    bottom: 100px;
    right: 35px;
    z-index: 1000;
    transform: scale(0.8);
    transform-origin: bottom right;
}

/* 确保 floating-panel-content 不受父元素影响，独立居中 */
/* 注意：当父元素有 transform 时，子元素的 fixed 定位会失效，需要使用 vh/vw */
.floating-panel .floating-panel-content {
    position: fixed !important;
    top: 50vh !important;
    left: 50vw !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center !important;
    will-change: transform !important;
}

.floating-btn {
    width: 60px;
    height: 60px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.floating-btn:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.floating-btn.active {
    background: var(--primary);
    transform: rotate(45deg);
}

/* 悬浮面板展开后的两个功能按钮容器 */
.floating-panel-actions {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-panel.expanded .floating-panel-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--primary);
}

.floating-action-btn:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: #fff;
}

/* AI 搜索按钮：确保子元素在按钮内居中显示 */
#aiSearchBtn {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aiSearchBtn > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    pointer-events: auto;
}

/* 如果有多个子元素，都居中叠加显示 */
#aiSearchBtn > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 展开面板 */
/* 悬浮面板内容：以模态框形式居中显示 */
.floating-panel-content {
    position: fixed !important;
    top: 50vh !important;
    left: 50vw !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    padding: 20px;
    min-width: 320px;
    max-width: 400px;
    width: auto !important;
    height: auto !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    z-index: 1100 !important;
    will-change: transform !important;
}

.floating-panel-content.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) !important;
}

/* 移动端优化：确保对话框在屏幕中间显示 */
@media (max-width: 768px) {
    .floating-panel-content {
        position: fixed !important;
        top: 50vh !important;
        left: 50vw !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(1) !important;
        max-width: 90vw !important;
        min-width: 280px !important;
        width: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding: 15px !important;
        z-index: 1100 !important;
        /* 确保在移动端不会被其他元素遮挡 */
        -webkit-overflow-scrolling: touch;
    }
    
    .floating-panel-content.show {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* 微信公众号二维码区域 */
.wechat-qr-section {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wechat-qr-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.wechat-qr-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.wechat-qr-desc {
    font-size: 12px;
    color: var(--gray);
    margin-top: 10px;
    line-height: 1.4;
}

/* 快速反馈区域 */
.quick-feedback-section {
    margin-top: 20px;
}

.quick-feedback-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-feedback-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-feedback-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    background: var(--light);
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quick-feedback-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.feedback-form-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-form-btn:hover {
    background: #1e7e34;
}

/* 发布资源模态框 */
.publish-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.publish-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.publish-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border-radius: var(--border-radius);
    padding: 0;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.publish-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.publish-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.publish-header .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.publish-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.publish-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.publish-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-card);
    box-sizing: border-box;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
    background: var(--bg-card);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.required-asterisk {
    color: #e74c3c;
    margin-left: 3px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e1e8ed;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.login-prompt {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--border) 100%);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.login-prompt-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-prompt h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.login-prompt p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-prompt .btn {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .publish-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .publish-header {
        padding: 20px;
    }
    
    .publish-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* 用户发布区域 */
.user-publish-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-publish-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.publish-resource-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.publish-resource-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 反馈模态框 */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.feedback-modal.show {
    display: flex;
}

/* 反馈对话框内容：默认跟随主题变量 */
.feedback-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

/* 亮色主题下，显式使用白色背景（可选，强化对比） */
html[data-theme="light"] .feedback-content {
    background: #ffffff;
    color: #111827;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 加载更多样式 */
.load-more {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.load-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray);
}

.loading-more .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.no-more-data {
    text-align: center;
    padding: 20px;
    color: var(--gray);
    font-style: italic;
}

/* 文章页面样式 */
.articles-page {
    margin: 0 auto;
    padding: 20px;
}

.articles-content {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.articles-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.articles-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--bg-dark); /* 与页面整体背景保持一致 */
}

.article-card {
    background: var(--bg-dark); /* 使用与页面相同的背景色 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.article-cover {
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden; /* 确保内部头像裁剪为圆形 */
}

/* 头像图片固定为圆形 32x32（或由父元素尺寸控制） */
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.author-name {
    font-size: 0.9rem;
    color: var(--gray);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}

.heat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.heat-trend.up {
    color: var(--danger);
}

.heat-trend.down {
    color: var(--info);
}

.heat-trend.stable {
    color: var(--gray);
}

.heat-trend i {
    font-size: 0.8rem;
}

.article-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.article-heat {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* 文章详情页样式 */
.article-detail-page {
    margin: 0 auto;
    padding: 20px;
    max-width: 1000px;
}

.article-detail-content {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.article-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

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

.article-detail-author .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.article-detail-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-detail-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.article-detail-body h1,
.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4,
.article-detail-body h5,
.article-detail-body h6 {
    margin: 30px 0 15px 0;
    color: var(--dark);
}

.article-detail-body p {
    margin-bottom: 20px;
}

.article-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-detail-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--gray);
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.article-detail-body code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-detail-body pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-detail-body pre code {
    background: none;
    padding: 0;
}

.article-detail-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.share-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.back-to-articles {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light);
    color: var(--dark);
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

.back-to-articles:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* 关于我们页面样式 */
.about-page {
    margin: 0 auto;
    padding: 20px;
}

.about-content {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 移动端：关于我们主标题 #aboutTitle 字体缩小约 40% */
@media (max-width: 768px) {
    #aboutTitle {
        font-size: 1.2rem;
    }
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-dark);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-item p {
    color: #666;
    margin: 0;
}

.contact-section {
    margin: 50px 0;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 12px;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 微信相关联系方式的特殊布局 */
.contact-item:has(.wechat-qr-display) {
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-item:has(.wechat-qr-display) .wechat-qr-display {
    margin-left: 0;
    margin-top: 10px;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
}

.contact-item span {
    color: var(--dark);
    font-weight: 500;
}

.wechat-qr-display {
    margin-left: auto;
    text-align: center;
}

.wechat-qr-display .wechat-qr-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

.qr-desc {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.about-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #363434;
    margin-top: 40px;
}

.about-footer p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.about-footer .icp-info {
    margin: 5px 0;
    font-size: 13px;
}

.about-footer .icp-info a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-footer .icp-info a:hover {
    color: var(--primary);
}

/* 固定在底部的备案信息 */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95); /* 与整体暗色背景一致：#0f172a */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.6);
    padding: 12px 20px;
    text-align: center;
    z-index: 999;
    font-size: 12px;
    color: var(--text-secondary);
}

.fixed-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fixed-footer p {
    margin: 0;
}

.fixed-footer .icp-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fixed-footer .icp-link:hover {
    color: var(--primary);
}

/* 为固定备案信息预留底部空间，避免内容被遮挡 */
html body {
    padding-bottom: 50px !important;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .fixed-footer {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    .fixed-footer-content {
        gap: 10px;
        flex-direction: column;
    }
    
    html body {
        padding-bottom: 60px !important;
    }
}

@media (max-width: 480px) {
    .fixed-footer {
        padding: 8px 10px;
        font-size: 10px;
    }
    
    html body {
        padding-bottom: 50px !important;
    }
}

/* 微信二维码并排显示 */
.wechat-codes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.wechat-code-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wechat-code-item:hover {
    transform: translateY(-3px);
}

.wechat-code-item h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wechat-code-item .wechat-qr-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

.wechat-code-item .qr-desc {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* 产品展示模块样式 */
.products-section {
    margin: 50px 0;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 12px;
}

.products-section h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-item .product-name {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-item .product-qr {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 0 auto 10px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.product-item .product-qr-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background: #f0f0f0;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .articles-page {
        padding: 10px;
    }
    
    .articles-content {
        padding: 20px;
    }
    
    .articles-list {
        gap: 15px;
    }
    
    .article-card {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .article-cover {
        width: 100%;
        height: 150px;
    }
    
    .articles-header h2 {
        font-size: 1.5rem; /* 原来 2.5rem，缩小 40% */
    }
    
    .articles-header p {
        font-size: 0.66rem; /* 原来 1.1rem，缩小 40% */
    }
    
    .article-detail-page {
        padding: 10px;
    }
    
    .article-detail-content {
        padding: 20px;
    }
    
    .article-detail-title {
        font-size: 1.8rem;
    }
    
    .article-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-detail-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .article-detail-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .article-share {
        justify-content: center;
    }
    
    .about-page {
        padding: 10px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item:has(.wechat-qr-display) {
        flex-wrap: nowrap;
    }
    
    .contact-item:has(.wechat-qr-display) .wechat-qr-display {
        margin-left: 0;
        margin-top: 15px;
        flex-basis: auto;
    }
    
    .wechat-qr-display .wechat-qr-image {
        width: 100px;
        height: 100px;
    }
    
    .wechat-codes-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wechat-code-item .wechat-qr-image {
        width: 100px;
        height: 100px;
    }
    
    /* 产品展示移动端适配 */
    .products-section {
        padding: 20px 15px;
    }
    
    .products-grid {
        gap: 15px;
    }
    
    .product-item {
        padding: 15px 10px;
    }
    
    .product-item .product-name {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .product-item .product-qr,
    .product-item .product-qr-placeholder {
        width: 120px;
        height: 120px;
    }
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-body {
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-body h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.about-body h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.about-body p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.about-body ul, .about-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.about-body li {
    margin-bottom: 8px;
}

.about-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--gray);
}

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

.about-body a:hover {
    color: #6c5ce7;
    text-decoration: underline;
}

/* 登录注册模态框样式 */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.auth-modal.show {
    display: flex;
}

.auth-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.form-group input {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-card);
    flex: 1;
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.form-group input.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}


.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.btn-auth {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-primary-auth {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary-auth:active {
    transform: translateY(0);
}

.btn-primary-auth:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: #6c5ce7;
    text-decoration: underline;
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* 移动端用户名称样式 */
@media (max-width: 768px) {
    .user-name {
        max-width: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* 亮色主题下的用户菜单按钮反色处理 */
html[data-theme="light"] .user-menu-btn {
    color: var(--dark);
}

html[data-theme="light"] .user-menu-btn:hover {
    background: #e5e7eb;
    color: var(--primary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    display: none;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.user-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.user-dropdown a:last-child {
    color: #e74c3c;
}

.user-dropdown a:last-child:hover {
    background: #fdf2f2;
}

/* 免责申明样式 */
.auth-disclaimer {
    text-align: center;
    margin-top: 12px;
}

.auth-disclaimer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.auth-disclaimer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.disclaimer-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px 0;
    line-height: 1.6;
}

.disclaimer-section {
    margin-bottom: 20px;
}

.disclaimer-section h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
}

.disclaimer-section p {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.9rem;
}

.disclaimer-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.disclaimer-footer p {
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* 个人中心页面样式 */
.profile-page {
    display: none;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.profile-page.show {
    display: block;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.profile-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2rem;
}

.profile-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-sidebar {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    border: 1px solid var(--border-color);
}

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

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.profile-avatar-upload {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.profile-avatar-upload:hover {
    background: var(--primary-dark);
}

.profile-stats {
    margin-top: 20px;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-stat:last-child {
    border-bottom: none;
}

.profile-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-stat-value {
    color: var(--primary);
    font-weight: bold;
}

.profile-stat-value#profileMemberStatus {
    text-align: right;
    line-height: 1.4;
}

.daily-points-section {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.daily-points-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.daily-points-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.daily-points-btn:active {
    transform: translateY(0);
}

.daily-points-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.daily-points-tip {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-main {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-section {
    margin-bottom: 25px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.profile-form {
    display: grid;
    gap: 15px;
}

.profile-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-form-group label {
    min-width: 80px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
}

.profile-form-group input,
.profile-form-group select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
}

.profile-form-group input:focus,
.profile-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.profile-form-group input:disabled {
    background: var(--bg-card-hover);
    color: var(--text-muted);
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-profile {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-profile-primary {
    background: var(--primary);
    color: white;
}

.btn-profile-primary:hover {
    background: var(--primary-dark);
}

.btn-profile-secondary {
    background: var(--gray);
    color: white;
}

.btn-profile-secondary:hover {
    background: var(--dark-gray);
}

.btn-profile-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-profile-outline:hover {
    background: var(--primary);
    color: white;
}

.profile-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.profile-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--danger);
}

.profile-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--success);
}

/* 积分记录样式 */
.points-history-container {
    margin-top: 20px;
}

.points-history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.points-history-filters select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 150px;
}

.points-history-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.points-history-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.points-history-item:hover {
    background: var(--bg-card-hover);
}

.points-history-info {
    flex: 1;
}

.points-history-type {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.points-history-description {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 4px;
}

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

.points-history-points {
    font-weight: 600;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
}

.points-history-points.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.points-history-points.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.points-history-loading {
    padding: 40px;
    text-align: center;
    color: var(--gray);
}

.points-history-empty {
    padding: 40px;
    text-align: center;
    color: var(--gray);
}

.points-history-pagination {
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.points-history-pagination button {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.points-history-pagination button:hover {
    background: var(--bg-card-hover);
}

.points-history-pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.points-history-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 订单列表样式 */
.orders-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.orders-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.orders-item:hover {
    background: var(--bg-card-hover);
}

.orders-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.orders-order-number {
    font-size: 14px;
    color: var(--text-primary);
}

.orders-member-type {
    font-size: 14px;
    color: var(--text-secondary);
}

.orders-amount {
    font-size: 14px;
    color: var(--text-secondary);
}

.orders-amount strong {
    color: var(--text-primary);
    margin-right: 6px;
}

.amount-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.orders-pay-amount {
    font-size: 14px;
    color: var(--text-secondary);
}

.orders-pay-amount strong {
    color: var(--text-primary);
    margin-right: 6px;
}

.pay-amount-text {
    color: #10b981;
    font-weight: 600;
    font-size: 15px;
}

.orders-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
}

.orders-status.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.orders-status.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.orders-status.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.orders-status.status-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.orders-payment-result {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.orders-payment-result strong {
    color: var(--text-primary);
    margin-right: 6px;
}

.payment-result-text {
    color: var(--text-primary);
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    display: inline-block;
}

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

.orders-loading {
    padding: 40px;
    text-align: center;
    color: var(--gray);
}

.orders-error {
    padding: 40px;
    text-align: center;
    color: var(--danger);
}

.orders-pagination {
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .profile-form-group label {
        min-width: auto;
        text-align: left;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-page {
        margin: 10px;
        padding: 15px;
    }
    
    /* 移动端收藏列表优化 */
    .favorite-item {
        padding: 14px 16px;
    }
    
    .favorite-item:hover {
        padding-left: 18px;
        transform: translateX(2px);
    }
    
    .favorite-item-icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
    
    .favorite-item-title {
        font-size: 14px;
    }
    
    .favorite-item-meta {
        font-size: 12px;
    }
    
    .favorite-item-arrow {
        width: 28px;
        height: 28px;
        margin-left: 12px;
    }
    
    /* 移动端通知列表优化 */
    .notification-item {
        padding: 14px 16px;
    }
    
    .notification-item:hover {
        padding-left: 18px;
        transform: translateX(2px);
    }
    
    .notification-icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-meta {
        font-size: 12px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .form-group label {
        min-width: auto;
        text-align: left;
    }
    
    .error-message {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .auth-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: 350px;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .form-group input {
        padding: 12px 14px;
    }
    
    .btn-auth {
        padding: 12px 20px;
    }
}

/* 响应式设计 */

/* 大屏幕平板 (1024px - 1200px) */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .search-input {
        width: 180px;
    }
    
    .nav-menu {
        gap: 25px;
    }
}

/* 平板端 (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-header {
        height: 55px;
        gap: 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .search-input {
        width: 160px;
        font-size: 0.85rem;
    }
    
    .ai-search-hint {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .btn-login, .btn-register {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* 移动端 (481px - 768px) */
@media (max-width: 768px) {
    .top-nav {
        position: relative;
    }
    
    .nav-header {
        height: 50px;
        gap: 10px;
        position: relative;
    }
    
    .nav-left {
        flex: 0 0 auto;
        max-width: 40%;
    }
    
    .nav-center {
        display: none;
    }
    
    /* 移动端显示菜单容器 */
    .nav-center.active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
        width: 100%;
        background: var(--bg-card) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
    }
    
    .nav-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        min-width: 0;
    }
    
    .logo {
        font-size: 1.2rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .nav-menu {
        display: none;
        position: relative;
        background: var(--bg-card);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 10px;
        border-radius: 0 0 12px 12px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        /* 移除动画，避免与JavaScript内联样式冲突导致闪烁 */
        /* animation: slideDown 0.3s ease-out; */
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* 确保在 .nav-center.active 时菜单可见 */
    .nav-center.active .nav-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    /* 移动端折叠栏中的文字颜色 */
    .nav-center.active .nav-link {
        color: var(--primary) !important;
    }
    
    /* 移动端折叠栏中被选中的文字颜色为白色 */
    .nav-center.active .nav-link.active {
        color: white !important;
    }
    
    /* QQ浏览器兼容性 - 确保菜单显示 */
    .nav-center[style*="display: block"] .nav-menu.active {
        display: flex !important;
        visibility: visible !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    /* 悬浮状态下确保菜单横向显示 */
    .top-nav.floating .nav-center.active .nav-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .top-nav.floating .nav-center[style*="display: block"] .nav-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .nav-item {
        width: auto;
    }
    
    .nav-link {
        display: block;
        padding: 12px 16px;
        border-radius: 6px;
        transition: var(--transition);
    }
    
    .nav-link:hover {
        background: #f8f9fa;
        color: var(--primary);
    }
    
    .nav-link.active {
        background: var(--primary);
        color: white !important;
        font-weight: 600;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    }
    
    .nav-link.active::after {
        display: none; /* 移动端不显示下划线 */
    }
    
    .mobile-menu-btn {
        color: var(--primary);
        display: block;
    }
    
    .mobile-menu-btn.active {
        color: white !important;
        background: var(--primary) !important;
    }
    
    .nav-actions {
        gap: 6px;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .search-box {
        display: none;
    }
    
    .ai-search-hint {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .ai-search-hint span {
        display: none;
    }
    
    .user-actions {
        gap: 4px;
    }
    
    .mobile-menu-btn {
        color: var(--primary);
        margin-left: 4px;
    }
    
    .mobile-menu-btn.active {
        color: white !important;
        background: var(--primary) !important;
    }
    
    .btn-login, .btn-register {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* 小屏手机 (320px - 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 8px;
    }
    
    .nav-header {
        height: 45px;
        gap: 8px;
    }
    
    .nav-left {
        max-width: 35%;
    }
    
    .logo {
        font-size: 1rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .logo i {
        font-size: 0.9rem;
        margin-right: 4px;
    }
    
    .nav-menu {
        padding: 15px;
        gap: 10px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .nav-actions {
        gap: 6px;
    }
    
    .ai-search-hint {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .user-actions {
        gap: 4px;
    }
    
    .btn-login, .btn-register {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .mobile-menu-btn {
        color: var(--primary);
        font-size: 1rem;
        padding: 6px;
    }
    
    .mobile-menu-btn.active {
        color: white !important;
        background: var(--primary) !important;
    }
}

/* 超小屏手机 (320px以下) */
@media (max-width: 320px) {
    .nav-container {
        padding: 0 6px;
    }
    
    .nav-header {
        height: 40px;
        gap: 6px;
    }
    
    .nav-left {
        max-width: 30%;
    }
    
    .logo {
        font-size: 0.9rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .logo i {
        font-size: 0.8rem;
        margin-right: 3px;
    }
    
    .ai-search-hint {
        padding: 3px 5px;
        font-size: 9px;
    }
    
    .btn-login, .btn-register {
        padding: 3px 5px;
        font-size: 0.65rem;
    }
    
    .mobile-menu-btn {
        color: var(--primary);
        font-size: 0.9rem;
        padding: 4px;
    }
    
    .mobile-menu-btn.active {
        color: white !important;
        background: var(--primary) !important;
    }
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* AI智能搜索样式 */
.coze-web-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.coze-web-chat .coze-chat-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.coze-web-chat .coze-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.coze-web-chat .coze-chat-window {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e9ecef;
}

.coze-web-chat .coze-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.coze-web-chat .coze-chat-title {
    font-weight: 600;
    font-size: 16px;
}

.coze-web-chat .coze-chat-message {
    border-radius: 8px;
    margin: 8px 0;
}

.coze-web-chat .coze-chat-input {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 12px;
    font-size: 14px;
}

.coze-web-chat .coze-chat-send-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 8px 16px;
    font-weight: 500;
}

.coze-web-chat .coze-chat-send-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .coze-web-chat {
        bottom: 15px;
        right: 15px;
    }
    
    .coze-web-chat .coze-chat-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        max-width: 400px;
    }
    
    /* 移动端调整回到顶部按钮位置 - 垂直对齐 */
    .scroll-to-top {
        position:fixed;
        bottom: 90px; /* 移动端调整到AI按钮上方 */
        right: 35px; /* 与AI按钮水平对齐 */
    }
    
    /* 移动端AI按钮位置调整 - 与回到顶部按钮垂直对齐 - 覆盖CozeWebSDK样式 */
    #ab1ac9d9bab12da47298 {
        bottom: 20px !important;
        right: 33px !important;
        width: 80px !important;
        height: 80px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        cursor: pointer !important;
        transition: transform 0.3s ease !important;
    }
}

/* AI搜索动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 100000 !important; /* 确保显示在所有元素之上，包括模态框 */
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border);
    pointer-events: none; /* 不阻挡用户交互 */
}

.message-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.message-toast.message-error {
    border-left-color: var(--danger);
}

.message-toast.message-success {
    border-left-color: var(--success);
}

.message-toast.message-info {
    border-left-color: var(--info);
}

.message-toast i:first-child {
    font-size: 18px;
    color: var(--primary);
}

.message-toast.message-error i:first-child {
    color: var(--danger);
}

.message-toast.message-success i:first-child {
    color: var(--success);
}

.message-toast.message-info i:first-child {
    color: var(--info);
}

.message-toast span {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.message-close:hover {
    background: #f8f9fa;
    color: #666;
}

.message-close i {
    font-size: 12px;
}

/* 定价页面样式 */
.pricing-page {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-page-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.pricing-card.super-vip {
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px #fbbf24, var(--shadow-lg);
    background: radial-gradient(circle at top left, rgba(251,191,36,0.2), transparent 55%),
                radial-gradient(circle at bottom right, rgba(245,158,11,0.2), transparent 55%),
                var(--bg-card);
}

.pricing-card.super-vip .pricing-card-title {
    background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.super-vip .pricing-price-amount {
    color: #facc15;
}

.pricing-card.super-vip .pricing-price-badge,
.pricing-card.super-vip .pricing-btn-primary,
.pricing-card.super-vip .pricing-btn-outline {
    background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #ec4899 100%);
    border-color: transparent;
    color: #0f172a;
}

.pricing-card.super-vip .pricing-btn-outline:hover,
.pricing-card.super-vip .pricing-btn-primary:hover {
    box-shadow: 0 0 0 1px #facc15, 0 10px 25px rgba(234,179,8,0.45);
    transform: translateY(-1px);
}

.pricing-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pricing-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    min-height: 48px;
}

.pricing-price-section {
    margin-bottom: 32px;
}

.pricing-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.pricing-price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-price-unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.pricing-price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-price-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
}

.pricing-features-list {
    flex: 1;
    margin-bottom: 32px;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.pricing-feature-item i {
    color: var(--success);
    font-size: 1.125rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-feature-item span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.pricing-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

.pricing-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.pricing-btn-outline:hover {
    background: var(--primary);
    color: var(--text-primary);
}

.pricing-btn-free {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.pricing-btn-free:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.pricing-free-badge {
    display: inline-block;
    background: var(--success);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* 支付模态框 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.payment-modal.show {
    display: flex;
}

.payment-modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    height: 95vh;
    max-height: 95vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-modal-header {
    margin-bottom: 24px;
}

.payment-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.payment-modal-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.payment-qr-container {
    background: var(--light);
    padding: 24px;
    border-radius: var(--border-radius);
    margin: 24px 0;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.payment-qr-container img {
    width: 250px;
    height: 250px;
    display: block;
    border-radius: 8px;
}

.payment-tips {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 20px;
    text-align: center;
}

.payment-tips strong {
    color: var(--text-primary);
}

/* 支付步骤容器：整体居中，内部文字左对齐 */
.payment-steps {
    display: inline-block;
    text-align: left;
    width: 70%;
    padding-top: 15px;
}

.payment-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.payment-close-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.payment-plan-info {
    background: var(--bg-card-hover);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.payment-plan-info .plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.payment-plan-info .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 支付订单号提示（显示在模态框最上层） */
.payment-order-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    border: 2px solid rgba(239, 68, 68, 0.8);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4), 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: slideDown 0.3s ease-out, shake 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    min-width: 280px;
    pointer-events: none;
}

.payment-order-alert i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.payment-order-alert span {
    position: relative;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(-50%) translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-50%) translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(-50%) translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* 输入框错误状态 */
.pay-form .form-group input.input-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 4px 12px rgba(239, 68, 68, 0.1);
    animation: inputShake 0.5s ease-in-out;
}

@keyframes inputShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

/* 支付表单样式 */
.pay-form {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.pay-form-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.pay-form-header i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.pay-form-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* 订单号示例图片样式 */
.order-number-example {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-number-example:hover {
    transform: translateY(-2px);
}

.order-number-example .example-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-number-example .example-image:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    transform: scale(1.02);
}

.order-number-example .example-tip {
    font-size: 1.0rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.order-number-example:hover .example-tip {
    color: var(--primary);
}

.order-number-example .example-tip::before {
    content: "👆";
    font-size: 1rem;
}

.pay-form .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.pay-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.pay-form .form-group label i {
    color: var(--primary);
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pay-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    color: var(--text-primary);
    box-sizing: border-box;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.pay-form .form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.pay-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.pay-form .form-group input:valid {
    border-color: rgba(16, 185, 129, 0.5);
}

.input-wrapper .input-icon {
    position: absolute;
    right: 16px;
    color: var(--success);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pay-form .form-group input:valid + .input-icon {
    opacity: 1;
}

.pay-form .form-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pay-form .form-text i {
    color: var(--primary);
    font-size: 0.75rem;
    opacity: 0.7;
}

.pay-form .btn-submit-order {
    width: 100%;
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.5px;
}

.pay-form .btn-submit-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.pay-form .btn-submit-order:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.pay-form .btn-submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pay-form .btn-submit-order i {
    font-size: 0.9rem;
}

/* 图片上传区域样式 */
.pay-form .form-group .image-upload-container {
    margin-top: 0;
}

.image-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: var(--bg-card);
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.image-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.6;
}

.upload-placeholder p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.upload-placeholder small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.image-preview-container {
    margin-top: 16px;
}

.image-preview-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    max-width: 100%;
}

.image-preview-wrapper img {
    max-width: 100%;
    max-height: 300px;
    display: block;
    object-fit: contain;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-image-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.image-processing-status {
    margin-top: 12px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.image-processing-status i {
    font-size: 1rem;
}

/* 订单状态消息样式 */
.order-status-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    animation: slideInUp 0.3s ease-out;
    border: 2px solid;
}

.order-status-message .status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.order-status-message .status-content {
    flex: 1;
}

.order-status-message .status-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.order-status-message .status-text {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* 成功状态 */
.order-status-message.status-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.order-status-message.status-success .status-icon {
    color: #10b981;
    animation: successPulse 2s ease-in-out infinite;
}

/* 失败状态 */
.order-status-message.status-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.order-status-message.status-error .status-icon {
    color: #ef4444;
}

/* 处理中状态 */
.order-status-message.status-processing {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary);
}

.order-status-message.status-processing .status-icon {
    color: var(--primary);
    animation: spin 2s linear infinite;
}

/* 信息状态 */
.order-status-message.status-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.order-status-message.status-info .status-icon {
    color: #3b82f6;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .pricing-page-header h2 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-price-amount {
        font-size: 2.5rem;
    }
    
    .payment-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .payment-qr-container img {
        width: 200px;
        height: 200px;
    }
    
    /* 移动端支付订单号提示优化 */
    .payment-order-alert {
        top: 10px;
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 240px;
    }
    
    .payment-order-alert i {
        font-size: 1rem;
    }
    
    /* 移动端支付表单优化 */
    .pay-form {
        margin-top: 20px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .pay-form-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .pay-form-header i {
        font-size: 1.5rem;
    }
    
    .pay-form-header h4 {
        font-size: 1rem;
    }
    
    .order-number-example {
        margin-top: 12px;
    }
    
    .order-number-example .example-image {
        max-width: 240px;
    }
    
    .order-number-example .example-tip {
        font-size: 0.8rem;
    }
    
    .pay-form .form-group {
        margin-bottom: 20px;
    }
    
    .pay-form .form-group input {
        padding: 12px 16px;
        padding-right: 40px;
        font-size: 0.9rem;
    }
    
    .pay-form .btn-submit-order {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    /* 移动端订单状态消息优化 */
    .order-status-message {
        padding: 14px 16px;
        margin-top: 16px;
    }
    
    .order-status-message .status-icon {
        font-size: 1.3rem;
    }
    
    .order-status-message .status-title {
        font-size: 0.95rem;
    }
    
    .order-status-message .status-text {
        font-size: 0.85rem;
    }
}

/* 通知相关样式 */
.notification-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
}

.notifications-container {
    margin-top: 15px;
}

.notifications-list {
    min-height: 200px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    position: relative;
}

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

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item:hover {
    background: var(--bg-card-hover);
    padding-left: 24px;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-item:hover::before {
    opacity: 1;
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread::before {
    opacity: 1;
    background: var(--primary);
}

.notification-item.unread:hover {
    background: rgba(99, 102, 241, 0.1);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.notification-item:hover .notification-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.notification-item:hover .notification-icon::after {
    opacity: 1;
    animation: shine 0.5s ease;
}

/* 未读通知的默认高亮 */
.notification-item.unread .notification-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 资源发布类型通知：图标风格与“我的收藏”一致（无论已读/未读） */
.notification-item.notification-item-resource .notification-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}
.notification-item.notification-item-resource .notification-icon i {
    color: #ffffff;
}

.notification-icon i {
    font-size: 20px;
    color: var(--text-secondary);
    z-index: 1;
    position: relative;
    transition: color 0.3s ease;
}

.notification-item.unread .notification-icon i {
    color: white;
}

.notification-item:hover .notification-icon i {
    color: var(--primary);
}

.notification-item.unread:hover .notification-icon i {
    color: white;
}

.notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    transition: color 0.2s ease;
    width: 10px;
}

.notification-preview {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-left: 0;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.notification-type {
    padding: 4px 10px;
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.notification-item:hover .notification-type {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.notification-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-time::before {
    content: '🕐';
    font-size: 11px;
    opacity: 0.7;
}

.notifications-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    margin: 20px 0;
}

.notifications-empty::before {
    content: '🔔';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notifications-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--border-radius);
}

.notifications-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.notifications-pagination {
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

/* 收藏列表样式 */
.favorites-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    position: relative;
}

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

.favorite-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.favorite-item:hover {
    background: var(--bg-card-hover);
    padding-left: 24px;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-item:hover::before {
    opacity: 1;
}

.favorite-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.favorite-item-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.favorite-item:hover .favorite-item-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.favorite-item:hover .favorite-item-icon::after {
    opacity: 1;
    animation: shine 0.5s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.favorite-item-icon i {
    color: white;
    font-size: 20px;
    z-index: 1;
    position: relative;
}

.favorite-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 10px;
}

.favorite-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    transition: color 0.2s ease;
}

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

.favorite-item-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-item-meta::before {
    content: '📅';
    font-size: 12px;
    opacity: 0.7;
}

.favorite-item-arrow {
    margin-left: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card-hover);
}

.favorite-item:hover .favorite-item-arrow {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.favorite-item-arrow i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.favorite-item:hover .favorite-item-arrow i {
    transform: translateX(2px);
}

.favorites-pagination {
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.profile-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    margin: 20px 0;
}

.profile-empty::before {
    content: '📚';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.profile-section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 分页控件通用样式 */
.pagination-info {
    margin: 0 8px;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.pagination-current,
.pagination-total {
    font-weight: bold;
    color: var(--text-primary);
}

.pagination-size-selector {
    margin-left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-label {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.pagination-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 70px;
}

.points-history-pagination {
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

/* 自定义对话框样式 - 美观简洁的现代化设计 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.custom-alert {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.2s ease-out;
    pointer-events: auto !important;
}

.custom-alert-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    max-width: 380px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.2s ease-out;
    overflow: hidden;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.custom-alert-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.custom-alert-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.custom-alert-header h3 i {
    font-size: 1em;
}

.custom-alert-body {
    padding: 24px;
    text-align: center;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.custom-alert-body p {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.custom-alert-body p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.custom-alert-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.custom-alert-footer .btn {
    min-width: 90px;
    border-radius: 10px;
    padding: 9px 18px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.custom-alert-footer .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.custom-alert-footer .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

.custom-alert-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.custom-alert-footer .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-alert-footer .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.custom-alert-footer .btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 不同类型对话框的头部样式 */
.custom-alert.success .custom-alert-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.custom-alert.warning .custom-alert-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    position: relative;
    overflow: hidden;
}

.custom-alert.warning .custom-alert-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 使用次数限制对话框头部特殊样式 */
.usage-limit-content .custom-alert-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    position: relative;
    overflow: hidden;
}

.custom-alert.error .custom-alert-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.custom-alert.info .custom-alert-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 使用次数限制对话框特殊样式 - 美观简洁 */
.usage-limit-content {
    max-width: 420px;
    width: 90%;
}

.usage-limit-content .custom-alert-content {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 头部样式 - 简洁设计 */
.usage-limit-content .custom-alert-header {
    padding: 24px 24px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.usage-limit-content .custom-alert-header .header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-limit-content .custom-alert-header .header-icon i {
    font-size: 24px;
    color: white;
}

.usage-limit-content .custom-alert-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: white;
    letter-spacing: 0.2px;
}

/* 内容区域 */
.usage-limit-content .custom-alert-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.usage-limit-info {
    padding: 20px 24px;
    text-align: center;
    background: var(--bg-card);
}

.usage-limit-info .info-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 统计信息 - 简洁卡片布局 */
.usage-limit-stats {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--bg-card-hover);
}

.stat-item {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-card);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-unit {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 2px;
}

.stat-limit .stat-value {
    color: #3b82f6;
}

.stat-used .stat-value {
    color: #ef4444;
}

.stat-remaining .stat-value {
    color: #10b981;
}

/* 升级提示 - 简洁设计 */
.upgrade-hint {
    margin: 0;
    padding: 16px 24px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    border-top: 1px solid var(--border-color);
}

.upgrade-hint i {
    color: #f59e0b;
    font-size: 14px;
    flex-shrink: 0;
}

/* 底部按钮 - 简洁设计 */
.usage-limit-content .custom-alert-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    gap: 10px;
    flex-shrink: 0;
}

.usage-limit-content .custom-alert-footer .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 500;
}

.usage-limit-content .custom-alert-footer .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.usage-limit-content .custom-alert-footer .btn-secondary:hover {
    background: var(--bg-card-hover);
}

.usage-limit-content .custom-alert-footer .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.usage-limit-content .custom-alert-footer .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .custom-alert {
        padding: 16px;
    }
    
    .custom-alert-content {
        max-width: 100%;
        width: 100%;
        border-radius: 16px;
    }
    
    .custom-alert-header {
        padding: 16px 20px;
    }
    
    .custom-alert-header h3 {
        font-size: 1.05rem;
    }
    
    .custom-alert-body {
        padding: 20px;
    }
    
    .custom-alert-footer {
        padding: 14px 20px 18px;
        flex-direction: column;
        gap: 8px;
    }
    
    .custom-alert-footer .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* 使用次数限制对话框移动端优化 */
    .usage-limit-content {
        max-width: 100%;
    }
    
    .usage-limit-content .custom-alert-header {
        padding: 20px 20px 16px;
    }
    
    .usage-limit-content .custom-alert-header .header-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }
    
    .usage-limit-content .custom-alert-header .header-icon i {
        font-size: 20px;
    }
    
    .usage-limit-content .custom-alert-header h3 {
        font-size: 1.1rem;
    }
    
    .usage-limit-info {
        padding: 16px 20px;
    }
    
    .usage-limit-info .info-text {
        font-size: 13px;
    }
    
    .usage-limit-stats {
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .stat-label {
        margin-bottom: 0;
        font-size: 13px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .upgrade-hint {
        padding: 14px 20px;
        font-size: 12px;
    }
    
    .usage-limit-content .custom-alert-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .usage-limit-content .custom-alert-footer .btn {
        min-width: auto;
        width: 100%;
    }
}
