/* ============================================
   style1.css - 轻云工具箱·葫芦娃主题版（热门红色跳动）
   合并：原有style.css + tools.php专用样式 + index.php内联样式
   优化：容器宽度最大化，完全铺满屏幕无限制
   版本：v6.0 - 全屏铺满版（已移除所有max-width限制）
   ============================================ */

/* ===== 葫芦娃七兄弟配色 ===== */
:root {
    /* 葫芦娃七兄弟配色 */
    --huluwa-1: #ff4d4d;    /* 大娃（红）- 力量 */
    --huluwa-2: #ff9f4b;    /* 二娃（橙）- 千里眼 */
    --huluwa-3: #ffd966;    /* 三娃（黄）- 金刚 */
    --huluwa-4: #4ade80;    /* 四娃（绿）- 火 */
    --huluwa-5: #3b82f6;    /* 五娃（蓝）- 水 */
    --huluwa-6: #8b5cf6;    /* 六娃（紫）- 隐身 */
    --huluwa-7: #ec4899;    /* 七娃（粉）- 葫芦 */
    
    /* 葫芦娃光效 */
    --glow-1: rgba(255, 77, 77, 0.5);
    --glow-2: rgba(255, 159, 75, 0.5);
    --glow-3: rgba(255, 217, 102, 0.5);
    --glow-4: rgba(74, 222, 128, 0.5);
    --glow-5: rgba(59, 130, 246, 0.5);
    --glow-6: rgba(139, 92, 246, 0.5);
    --glow-7: rgba(236, 72, 153, 0.5);
    
    /* 热门红色 */
    --hot-red: #ff3b3b;
    --hot-glow: rgba(255, 59, 59, 0.6);
    
    /* 天蓝色系 - 用于动态边框 */
    --sky-light: #7ec8ff;
    --sky-primary: #3a9eff;
    --sky-deep: #1a7eff;
    --sky-glow: rgba(58, 158, 255, 0.5);
    
    /* 纯白卡片基底 */
    --white: #ffffff;
    --white-dark: #f8fafc;
    --gray-light: #f1f5f9;
    --gray-border: #e2e8f0;
    
    /* 文字颜色 */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    /* 基础配色 */
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3f37c9;
    --secondary: #4cc9f0;
    --accent: #f72585;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --lighter-gray: #f8fafc;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--white-dark);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
    min-height: 100vh;
}

/* 模态框显示时禁止body滚动 */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===== 主容器 - 完全铺满，无任何max-width限制 ===== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

/* 超大屏幕优化 - 增加左右边距保持内容舒适，但依然铺满 */
@media (min-width: 1921px) {
    .container {
        width: 100%;
        padding: 0 48px;
    }
}

/* 超宽屏优化（2560px+） */
@media (min-width: 2560px) {
    .container {
        width: 100%;
        padding: 0 64px;
    }
}

/* 4K屏幕优化（3840px+） */
@media (min-width: 3840px) {
    .container {
        width: 100%;
        padding: 0 96px;
    }
}

/* 中等屏幕优化 */
@media (max-width: 1600px) {
    .container {
        width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 1366px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 12px;
    }
}

/* ===== 导航栏 ===== */
.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--gray-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
}

/* 导航栏内容宽度同步 - 完全铺满 */
.nav-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1921px) {
    .nav-content {
        width: 100%;
        padding: 0 48px;
    }
}

@media (min-width: 2560px) {
    .nav-content {
        width: 100%;
        padding: 0 64px;
    }
}

@media (min-width: 3840px) {
    .nav-content {
        width: 100%;
        padding: 0 96px;
    }
}

@media (max-width: 1600px) {
    .nav-content {
        width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 1366px) {
    .nav-content {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .nav-content {
        width: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        width: 100%;
        padding: 0 12px;
    }
}

.logo-area .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Logo */
.logo-icon {
    width: 60px;
    height: 60px;
    background-image: url('https://www.hirmb.cn/toolbox/images/hlw.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    animation: logoBounce 2s infinite ease-in-out;
    transform: translateZ(0);
    will-change: transform;
}

@keyframes logoBounce {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -5px, 0) rotate(5deg); }
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.logo-text span {
    background: linear-gradient(135deg, var(--huluwa-1), var(--huluwa-7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 导航链接 */
.nav-links { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.nav-link:hover {
    background: var(--gray-light);
    color: var(--huluwa-1);
}
.nav-link.active {
    background: linear-gradient(135deg, var(--huluwa-1), var(--huluwa-7));
    color: white;
}

/* 搜索框 - 宽屏优化 */
.nav-search { position: relative; }
.search-input {
    padding: 10px 16px 10px 40px;
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 30px;
    width: 280px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}
.search-input:focus {
    outline: none;
    border-color: var(--sky-primary);
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sky-primary);
    font-size: 1rem;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 4px 4px;
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 30px;
    transition: border-color 0.2s ease;
}
.user-info:hover {
    border-color: var(--sky-primary);
}
.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--huluwa-1), var(--huluwa-7));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateZ(0);
    border-radius: 50%;
}
.user-name {
    font-size: 1rem;
}

/* ===== 主要内容区域 ===== */
.main-content {
    padding: 0.2rem 0 1.5rem 0;
    min-height: calc(100vh - 160px);
}

/* ===== 欢迎区域 ===== */
.welcome-section {
    text-align: center;
    padding: 0.3rem 0 0.8rem 0;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
}

.welcome-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.badge-free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.badge-free::before {
    content: "🎁";
    font-size: 0.9rem;
}

.badge-total {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-total::before {
    content: "📦";
    font-size: 0.9rem;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.free-highlight {
    color: var(--success);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
}

.vip-count {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
    background: rgba(247, 37, 133, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
}

.welcome-cta {
    max-width: 500px;
    margin: 0 auto;
}

/* ===== 搜索区域（index.php专用） ===== */
.search-section {
    margin: 1rem 0 1.5rem;
}

.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: white;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-btn {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(67, 97, 238, 0.3);
}

.clear-search-btn {
    padding: 0.7rem 1.2rem;
    background: var(--light-gray);
    color: var(--gray);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.clear-search-btn:hover {
    background: var(--gray-border);
    color: var(--dark);
}

/* 分类筛选 */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.category-filter-btn {
    padding: 0.4rem 1rem;
    background: white;
    border: 1.5px solid var(--light-gray);
    border-radius: 30px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

.category-filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    color: white;
}

/* 筛选状态显示 */
.filter-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: white;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--dark);
    border: 1px solid var(--gray-border);
}

.filter-tag a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.filter-tag a:hover {
    color: var(--danger);
}

.filter-clear {
    margin-left: auto;
    color: var(--danger);
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    transition: background 0.2s;
}

.filter-clear:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ===== 文章列表（index.php专用） ===== */
.articles-list {
    margin: 1.5rem 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--light-gray);
}

.empty-icon {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* 文章列表项 */
.article-list-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    text-decoration: none;
    color: inherit;
}

.article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.article-list-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--light-gray);
}

.list-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 1.8rem;
}

.access-restricted-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    backdrop-filter: blur(4px);
}

.article-list-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 0.3rem;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    color: white;
}

.badge-external {
    background: var(--primary);
}

.badge-vip {
    background: linear-gradient(135deg, var(--accent), #d61c4e);
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #7c3a00;
}

.badge-locked {
    background: var(--gray);
}

.article-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.list-excerpt {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.list-tag {
    font-size: 0.65rem;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.list-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: var(--gray);
}

.list-category {
    background: var(--light-gray);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.list-date i,
.list-views i {
    margin-right: 0.2rem;
}

/* 文章锁定状态 */
.article-locked {
    opacity: 0.8;
    background: var(--lighter-gray);
}

.article-locked:hover {
    opacity: 0.9;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.8rem;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

.page-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    color: white;
}

.page-info {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== 统计数据网格（index.php专用） ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.stat-subinfo {
    font-size: 0.7rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

/* VIP提醒区域 */
.vip-alert {
    background: linear-gradient(135deg, #fff3e0, #ffe6cc);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--accent);
}

.vip-alert-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.vip-alert-content {
    flex: 1;
}

.vip-alert-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.vip-alert-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== 进度条样式 ===== */
.progress-preview {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.progress-preview:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.progress-title i {
    color: var(--primary);
    font-size: 0.9rem;
}

.progress-percent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

.progress-bar-container {
    height: 8px;
    background: var(--light-gray);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 30px;
    width: 0%;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 0 8px rgba(67, 97, 238, 0.4);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

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

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.progress-stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gray);
}

.progress-stat-item i {
    font-size: 0.7rem;
}

.progress-stat-item.free i {
    color: var(--success);
}

.progress-stat-item.vip i {
    color: var(--accent);
}

.progress-stat-value {
    font-weight: 700;
    color: var(--dark);
    margin-left: 0.2rem;
}

/* ===== VIP到期时间显示 ===== */
.vip-expire-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    margin-top: 0.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: #0c4a6e;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.vip-expire-info i {
    margin-right: 0.4rem;
    color: #0284c7;
}

.vip-expire-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    color: #92400e;
}

.vip-expire-critical {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #f87171;
    color: #7f1d1d;
}

/* ===== 热门工具区域 ===== */
.popular-tools-section {
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    padding: 24px;
    margin: 32px 0;
}

.popular-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.popular-tools-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.popular-tools-title i {
    color: var(--accent);
    font-size: 0.9rem;
    animation: hotIconJumpSmall 1s infinite ease-in-out;
}

.popular-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
}

.popular-tool-card {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border-radius: var(--radius);
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    border: 1px solid #fde68a;
}

.popular-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--hot-red);
}

.popular-tool-rank {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--hot-red), #ff8c8c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    animation: rankJump 1.5s infinite;
}

@keyframes rankJump {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -4px, 0); }
}

.popular-tool-info {
    flex: 1;
}

.popular-tool-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.popular-tool-access {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--gray);
}

.popular-tool-access i {
    color: var(--primary);
}

/* ===== 工具区域头部 ===== */
.tools-section {
    margin: 0.5rem 0;
}

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

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray);
    font-size: 0.85rem;
    max-width: 600px;
    margin-top: 0.1rem;
}

.access-count {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--primary-light);
}

/* ===== 分类标题 ===== */
.category-section {
    margin-bottom: 0.75rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-border);
    flex-wrap: wrap;
}

.category-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-title i {
    font-size: 0.85rem;
}

.category-tool-count {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* 分类标题大葫芦娃图标 */
.category-header h3.category-title::after {
    content: '';
    width: 60px;
    height: 60px;
    background-image: url('https://www.hirmb.cn/toolbox/images/hlw.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
    animation: categoryIconJump 2s infinite ease-in-out;
    transition: all 0.3s ease;
    flex-shrink: 0;
    transform: translateZ(0);
    will-change: transform;
}

/* ===== 工具网格布局 - 完全自适应铺满屏幕 ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

/* 大屏幕下每个卡片的最小宽度可以稍大一些 */
@media (min-width: 1920px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 22px;
    }
}

/* 超大屏幕下增加卡片最小宽度 */
@media (min-width: 2560px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}

/* 4K屏幕下进一步调整 */
@media (min-width: 3840px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 28px;
    }
}

/* 中等屏幕调整间距 */
@media (max-width: 1600px) {
    .tools-grid {
        gap: 18px;
    }
}

@media (max-width: 1366px) {
    .tools-grid {
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .tools-grid {
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .tools-grid {
        gap: 12px;
    }
}

/* 平板和手机端调整 */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

/* ===== 工具卡片样式 ===== */
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 14px 12px 12px;
    border: 2px solid var(--gray-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 165px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

/* 卡片头部：图标和序号一行 */
.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    width: 100%;
}

.tool-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--huluwa-1), var(--huluwa-3));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* 为不同卡片分配不同图标颜色 */
.tool-card:nth-child(7n+1) .tool-icon { background: linear-gradient(135deg, var(--huluwa-1), #ff7070); }
.tool-card:nth-child(7n+2) .tool-icon { background: linear-gradient(135deg, var(--huluwa-2), #ffb570); }
.tool-card:nth-child(7n+3) .tool-icon { background: linear-gradient(135deg, var(--huluwa-3), #ffe282); }
.tool-card:nth-child(7n+4) .tool-icon { background: linear-gradient(135deg, var(--huluwa-4), #6ce79c); }
.tool-card:nth-child(7n+5) .tool-icon { background: linear-gradient(135deg, var(--huluwa-5), #609fff); }
.tool-card:nth-child(7n+6) .tool-icon { background: linear-gradient(135deg, var(--huluwa-6), #a77cff); }
.tool-card:nth-child(7n+7) .tool-icon { background: linear-gradient(135deg, var(--huluwa-7), #f274b5); }

.tool-number {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-number {
    opacity: 0.8;
    transform: scale(1.05);
}

/* 序号跳动动画 */
.tool-card:nth-child(7n+1) .tool-number { color: var(--huluwa-1); animation: jump1 1.2s infinite; }
.tool-card:nth-child(7n+2) .tool-number { color: var(--huluwa-2); animation: jump2 1.3s infinite; }
.tool-card:nth-child(7n+3) .tool-number { color: var(--huluwa-3); animation: jump3 1.1s infinite; }
.tool-card:nth-child(7n+4) .tool-number { color: var(--huluwa-4); animation: jump4 1.4s infinite; }
.tool-card:nth-child(7n+5) .tool-number { color: var(--huluwa-5); animation: jump5 1.2s infinite; }
.tool-card:nth-child(7n+6) .tool-number { color: var(--huluwa-6); animation: jump6 1.5s infinite; }
.tool-card:nth-child(7n+7) .tool-number { color: var(--huluwa-7); animation: jump7 1.3s infinite; }

@keyframes jump1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -4px, 0) scale(1.05); color: var(--huluwa-1); text-shadow: 0 4px 10px rgba(255, 77, 77, 0.5); }
}
@keyframes jump2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -4px, 0) scale(1.05); color: var(--huluwa-2); text-shadow: 0 4px 10px rgba(255, 159, 75, 0.5); }
}
@keyframes jump3 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -4px, 0) rotate(3deg); color: var(--huluwa-3); text-shadow: 0 4px 10px rgba(255, 217, 102, 0.5); }
}
@keyframes jump4 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -5px, 0) scale(1.08); color: var(--huluwa-4); text-shadow: 0 4px 10px rgba(74, 222, 128, 0.5); }
}
@keyframes jump5 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -3px, 0) scale(1.03); color: var(--huluwa-5); text-shadow: 0 4px 10px rgba(59, 130, 246, 0.5); }
}
@keyframes jump6 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -6px, 0) scale(1.1); color: var(--huluwa-6); text-shadow: 0 4px 10px rgba(139, 92, 246, 0.5); }
}
@keyframes jump7 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -4px, 0) rotate(-3deg); color: var(--huluwa-7); text-shadow: 0 4px 10px rgba(236, 72, 153, 0.5); }
}

/* 卡片内容区域 - 居中 */
.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 0 8px 0;
}

.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 6px;
}

.tool-title-placeholder {
    display: none;
}

.tool-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    text-align: center;
    width: 100%;
}

.tool-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
}

/* VIP徽章 */
.vip-badge {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--huluwa-1), var(--huluwa-7));
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.vip-badge i {
    font-size: 0.45rem;
}

/* 免费徽章 */
.free-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
    border-radius: 20px;
    background: var(--success);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

/* 描述区域 */
.tool-info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tool-desc-placeholder {
    display: none;
}

.tool-desc-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    width: 100%;
}

.tool-description {
    font-size: 0.72rem;
    color: var(--gray);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-align: center;
    max-width: 95%;
}

/* 访问信息 */
.tool-access-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--gray);
    width: 100%;
    flex-wrap: wrap;
}

.tool-access-count {
    display: flex;
    align-items: center;
    gap: 3px;
}

.tool-access-count i {
    color: var(--primary);
    font-size: 0.6rem;
}

.tool-access-number {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.7rem;
}

/* 热门标记 */
.tool-hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--hot-red);
    background: rgba(255, 59, 59, 0.1);
    padding: 1px 5px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.6rem;
    animation: hotPulse 1.5s infinite;
}

.tool-hot-tag i {
    font-size: 0.55rem;
    animation: hotIconJump 1s infinite;
}

@keyframes hotPulse {
    0%, 100% { background: rgba(255, 59, 59, 0.1); }
    50% { background: rgba(255, 59, 59, 0.2); }
}

@keyframes hotIconJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes hotIconJumpSmall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-1px) rotate(2deg); }
}

/* 按钮区域 */
.tool-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.tool-footer .btn,
.tool-footer .vip-locked-btn {
    width: 100%;
    max-width: 140px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--sky-light), var(--sky-primary));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px var(--sky-glow);
    background: linear-gradient(135deg, var(--sky-primary), var(--sky-deep));
}

/* VIP锁定按钮 */
.tool-footer .vip-locked-btn {
    background: var(--gray-light);
    color: var(--text-secondary);
    border: 2px solid var(--gray-border);
}

.tool-footer .vip-locked-btn:hover {
    background: linear-gradient(135deg, var(--huluwa-1), var(--huluwa-7));
    color: white;
    border-color: transparent;
}

.tool-footer .vip-locked-btn i {
    color: var(--huluwa-1);
    font-size: 0.65rem;
    transition: color 0.3s ease;
}

.tool-footer .vip-locked-btn:hover i {
    color: white;
}

/* 锁定卡片样式 */
.tool-card.vip-locked {
    background: var(--lighter-gray);
    border-color: var(--gray-border);
    opacity: 0.9;
}

.tool-card.vip-locked .tool-icon {
    opacity: 0.7;
    filter: grayscale(0.3);
}

/* 永久会员卡片 */
.tool-card.permanent-vip-tool-card {
    border-color: #FFD700;
    background: linear-gradient(to bottom, #fff, #fffaf0);
}

.tool-card.permanent-vip-tool-card::after {
    content: '∞';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.85rem;
    color: #FFD700;
    opacity: 0.4;
    font-weight: 800;
}

/* ===== VIP升级区域 ===== */
.upgrade-section {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), #f0f9ff);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upgrade-content {
    position: relative;
    z-index: 1;
}

.upgrade-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.upgrade-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.btn-vip-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent), #d61c4e);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(247, 37, 133, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
}

.btn-vip-upgrade:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(247, 37, 133, 0.5);
}

/* 永久会员专属感谢区域 */
.permanent-vip-thank-section {
    background: #FFFDF6 !important;
    border: 1.5px solid #FFD700 !important;
    border-radius: 12px !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    padding: 0.8rem !important;
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== 底部统计数据区域 ===== */
.stats-bottom-section {
    margin: 1rem 0 0.5rem;
    padding: 0.8rem 0 0;
    border-top: 1px solid var(--light-gray);
}

.total-access-display-bottom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.total-access-icon-bottom {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.total-access-number-bottom {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.total-access-label-bottom {
    font-size: 0.8rem;
    opacity: 0.9;
}

.stats-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.stat-card-bottom {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.stat-card-bottom:hover {
    border-color: var(--sky-primary);
}

.stat-icon-bottom {
    width: 40px;
    height: 40px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.stat-number-bottom {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.stat-label-bottom {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.stat-subinfo-bottom {
    font-size: 0.65rem;
    color: var(--primary);
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

/* ===== 会话时间显示 ===== */
.session-time-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 999;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: translateZ(0);
}

.session-time-display:hover {
    border-color: var(--sky-primary);
    transform: translate3d(0, -2px, 0);
}

.session-time-display i { 
    color: var(--sky-primary); 
    margin-right: 5px;
}

/* ===== VIP模态框样式 ===== */
.vip-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s;
    overflow: hidden;
}

.vip-modal-overlay.active {
    display: block;
    opacity: 1;
}

.vip-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000000;
    width: 90%;
    max-width: 380px;
    display: none;
}

.vip-modal-container.active {
    display: block;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.vip-modal-content {
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.vip-modal-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 1.2rem;
    text-align: center;
}

.vip-modal-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.vip-modal-icon i {
    color: white;
    font-size: 1.6rem;
}

.vip-modal-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.vip-modal-body {
    padding: 1.2rem;
    text-align: center;
}

.vip-modal-text {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.vip-tool-info {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 0.7rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}

.vip-tool-info span {
    color: #d97706;
    font-weight: 600;
}

.vip-modal-buttons {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.vip-modal-close-btn {
    flex: 1;
    padding: 0.7rem 0.9rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.vip-modal-close-btn:hover {
    background: #e5e7eb;
}

.vip-modal-upgrade-btn {
    flex: 1;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.vip-modal-upgrade-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateY(-2px);
}

/* ===== 动画效果 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

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

/* ===== 电脑端（>1024px）宽屏优化 ===== */
@media (min-width: 1025px) {
    .category-header h3.category-title::after {
        width: 70px;
        height: 70px;
    }
    .category-header h3.category-title {
        font-size: 1.6rem;
    }
    .tool-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .tool-number {
        font-size: 1.4rem;
    }
    .tool-card {
        min-height: 158px;
        padding: 14px 14px 12px;
    }
    .tool-title {
        font-size: 1rem;
    }
    .tool-description {
        font-size: 0.75rem;
    }
}

/* ===== 平板和移动端自适应 ===== */
@media (max-width: 768px) {
    .main-content {
        padding: 0.2rem 0 1.2rem 0;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .mobile-break {
        display: block;
    }
    
    .tool-card {
        padding: 12px 10px 10px;
        min-height: 150px;
    }
    
    .tool-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .tool-number {
        font-size: 1.2rem;
    }
    
    .tool-title {
        font-size: 0.9rem;
    }
    
    .tool-description {
        font-size: 0.68rem;
        max-width: 95%;
    }
    
    .popular-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .stats-grid-bottom {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .tool-footer .btn,
    .tool-footer .vip-locked-btn {
        max-width: 130px;
        padding: 5px 8px;
        font-size: 0.68rem;
    }
    
    .nav-links, .nav-search { display: none; }
    
    .category-header h3.category-title::after {
        width: 45px;
        height: 45px;
    }
    .category-header h3.category-title {
        font-size: 1.2rem;
    }
    .welcome-title { font-size: 1.6rem; }
    .upgrade-title { font-size: 1.3rem; }
    
    /* 文章列表移动端适配 */
    .article-list-item {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .article-list-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-btn, .clear-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-clear {
        margin-left: 0;
        margin-top: 0.3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .welcome-badge {
        gap: 0.5rem;
    }
    
    .badge-free, .badge-total {
        padding: 0.2rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .welcome-subtitle {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .vip-count {
        font-size: 1rem;
    }
    
    .progress-preview {
        padding: 0.8rem 1rem;
    }
    
    .btn-vip-upgrade {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        max-width: 220px;
    }
    
    .tool-card {
        padding: 10px 12px 8px;
        min-height: 145px;
    }
    
    .tool-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    
    .tool-number {
        font-size: 1.1rem;
    }
    
    .tool-title {
        font-size: 0.85rem;
    }
    
    .tool-description {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
        max-width: 100%;
    }
    
    .tool-access-info {
        gap: 5px;
    }
    
    .tool-footer .btn,
    .tool-footer .vip-locked-btn {
        max-width: 120px;
        padding: 5px 8px;
        font-size: 0.65rem;
    }
    
    .popular-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-header { gap: 8px; margin: 24px 0 12px; }
    .category-header h3.category-title::after {
        width: 35px;
        height: 35px;
        margin-left: 6px;
    }
    .category-header h3.category-title {
        font-size: 1rem;
    }
    .category-tool-count { 
        padding: 3px 10px; 
        font-size: 0.75rem; 
    }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .total-access-display-bottom { flex-direction: column; text-align: center; padding: 16px; }
    
    /* 文章列表移动端适配 */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 0.6rem;
        font-size: 0.75rem;
    }
}

/* ===== 管理员标识 ===== */
.admin-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
/* 强制所有容器铺满屏幕 - 紧急修复 */
html, body {
    width: 100%;
    overflow-x: hidden;
}

body > .container,
body > main,
body > .main-content,
#app > .container,
.app > .container,
.wrapper > .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 如果工具网格仍然受限，强制铺满 */
.tools-grid {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 确保每个卡片都能充分利用空间 */
.tool-card {
    width: 100% !important;
    min-width: 0 !important;
}