/* css/style.css - 工具卡片缩小版 */
/* 清爽简洁主题配色 */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-lighter: #e0e7ff;
    --secondary: #10b981;
    --secondary-light: #a7f3d0;
    --accent: #f59e0b;
    --accent-light: #fde68a;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --gray: #94a3b8;
    --dark: #1e293b;
    --darker: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* 新增永久VIP颜色变量 */
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: #FFF8DC;
    --permanent-light: #FFF9E6;
    --permanent-border: #FFD700;
    --permanent-accent: #D4A017;
}

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

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 主要内容区域 */
main {
    flex: 1 0 auto;
    padding: 1.5rem 0;
    width: 100%;
}

/* ========== 导航栏 ========== */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 30px rgba(79, 70, 229, 0.12);
    padding: 0.6rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Logo 区域 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* 导航链接 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    margin: 0;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    white-space: nowrap;
    font-size: 0.9rem;
}

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

.nav-link.active {
  
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
}

.nav-badge {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    margin-left: 0.25rem;
}

/* 导航操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    justify-content: flex-end;
}

/* 搜索框 */
.nav-search {
    position: relative;
    flex: 0 1 180px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.9rem 0.5rem 2.2rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.85rem;
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.user-info:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* VIP用户头像装饰 */
.user-avatar.vip-avatar {
    border: 1.5px solid #fbbf24;
    box-shadow: 
        0 0 15px rgba(245, 158, 11, 0.3),
        inset 0 0 15px rgba(245, 158, 11, 0.15);
    position: relative;
}

.user-avatar.vip-avatar::after {
    content: '✨';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.7rem;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* 永久VIP头像 */
.user-avatar.permanent-vip-avatar {
    background: linear-gradient(135deg, #FFF9E6, #FFF3BF) !important;
    color: #D4A017 !important;
    border: 1.5px solid #FFD700 !important;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.user-role {
    font-size: 0.7rem;
    color: var(--gray);
    white-space: nowrap;
}

/* VIP徽章 */
.vip-badge-3d {
    background: linear-gradient(145deg, 
        #f59e0b 0%, 
        #fbbf24 25%, 
        #fde68a 50%, 
        #fbbf24 75%, 
        #f59e0b 100%);
    color: #7c2d12;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 
        0 5px 15px rgba(245, 158, 11, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    animation: vip-badge-pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.vip-badge-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: vip-shine 3s infinite;
}

@keyframes vip-badge-pulse {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 
            0 5px 15px rgba(245, 158, 11, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: translateY(-1px) scale(1.02);
        box-shadow: 
            0 8px 25px rgba(245, 158, 11, 0.5),
            0 3px 6px rgba(0, 0, 0, 0.12),
            inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }
}

@keyframes vip-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* VIP霓虹发光效果 */
.vip-glow {
    position: relative;
}

.vip-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        #ffd700, #ffed4e, #ffd700, 
        #ffb347, #ffcc33, #ffd700);
    border-radius: inherit;
    z-index: -1;
    animation: vip-glow-rotate 3s linear infinite;
    filter: blur(3px);
    opacity: 0.7;
}

@keyframes vip-glow-rotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* VIP王冠旋转动画 */
.vip-crown {
    position: relative;
    display: inline-block;
    animation: crown-rotate 4s ease-in-out infinite;
    font-size: 0.85rem;
}

@keyframes crown-rotate {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        color: #fbbf24;
    }
    25% { 
        transform: rotate(-8deg) scale(1.05);
        color: #fde68a;
    }
    50% { 
        transform: rotate(0deg) scale(1.1);
        color: #f59e0b;
    }
    75% { 
        transform: rotate(8deg) scale(1.05);
        color: #d97706;
    }
}

/* 永久VIP徽章 */
.permanent-vip-badge {
    background: linear-gradient(135deg, #FFF9E6, #FFF3BF);
    color: #D4A017;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid #FFD700;
    font-size: 0.75rem;
}

/* 通知按钮 */
.notification-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
    flex-shrink: 0;
}

.notification-btn:hover {
    background: var(--primary-lighter);
    color: var(--primary);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* VIP解锁按钮 */
.vip-unlock-btn {
    position: relative;
    background: linear-gradient(135deg, 
        #f59e0b 0%, 
        #fbbf24 25%, 
        #fde68a 50%, 
        #fbbf24 75%, 
        #f59e0b 100%);
    color: #7c2d12;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

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

.vip-unlock-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

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

.vip-unlock-btn:hover .vip-crown {
    animation: crown-spin 0.8s ease;
}

@keyframes crown-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 移动端菜单按钮 - 只在移动端显示 */
.mobile-menu-btn {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--light-gray);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
    flex-shrink: 0;
}

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

/* ========== 主要内容样式 ========== */

/* 欢迎区域 */
.welcome-section {
    text-align: center;
    padding: 2rem 0;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

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

.welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--darker);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* 永久会员欢迎区域 */
.permanent-welcome-area {
    background: linear-gradient(135deg, #FFFDF6, #FFF9E6);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.permanent-welcome-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.permanent-welcome-content {
    text-align: left;
}

.permanent-welcome-content h2 {
    margin: 0 0 0.3rem 0;
    color: #D4A017;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.permanent-welcome-content p {
    margin: 0;
    color: #996515;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 总访问次数显示 */
.total-access-display {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.8rem 0;
    box-shadow: var(--shadow);
}

.total-access-display i {
    font-size: 1.1rem;
}

.total-access-number {
    font-size: 1.4rem;
    font-weight: 700;
}

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

/* 进度条区域 */
.progress-section {
    max-width: 500px;
    margin: 0 auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.progress-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 1s ease;
}

/* VIP进度条特效 */
.vip-progress {
    position: relative;
    overflow: hidden;
}

.vip-progress .progress-fill {
    background: linear-gradient(90deg, 
        #f59e0b, #fbbf24, #fde68a, 
        #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: progress-shimmer 2s linear infinite;
}

@keyframes progress-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 永久VIP进度条 */
.permanent-vip-progress {
    background: #FFF9E6 !important;
    border: 1px solid #FFD700 !important;
}

.permanent-vip-progress .progress-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500) !important;
}

.progress-status {
    font-size: 0.8rem;
    color: var(--gray);
    text-align: center;
}

/* 数据统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

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

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-lighter);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--primary);
    font-size: 1.2rem;
}

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

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

.stat-subinfo {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* 热门工具区域 */
.popular-tools-section {
    margin: 2.5rem 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

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

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

.popular-tools-title i {
    color: var(--accent);
    font-size: 1rem;
}

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

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

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

.popular-tool-rank {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.popular-tool-name {
    font-weight: 600;
    color: var(--darker);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

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

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

.tools-section {
    margin: 2.5rem 0;
}

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

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

.section-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 700px;
    margin-top: 0.3rem;
}

.access-count {
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--primary-light);
}

/* 工具分类样式 */
.category-section {
    margin-bottom: 2.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-lighter);
}

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

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

.category-tool-count {
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* VIP专属分类提示 */
.vip-category-label {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #7c2d12;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #fbbf24;
}

/* ========== 重点修复：工具卡片缩小 ========== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* 基础工具卡片样式 - 缩小版 */
.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0.8rem;
    min-height: 150px;
    border: 1px solid transparent;
}

.tool-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

/* 工具头部布局 */
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    padding: 0;
}

.tool-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-number {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    background: var(--light);
    color: var(--gray);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* 工具访问信息 */
.tool-access-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0;
}

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

.tool-access-number {
    font-weight: 600;
    color: var(--dark);
}

.tool-body {
    padding: 0 0 1rem;
    flex-grow: 1;
}

.tool-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--darker);
    line-height: 1.3;
}

.tool-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--gray);
    flex-grow: 1;
}

.tool-footer {
    margin-top: auto;
}

.tool-footer .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 600;
}

/* VIP工具卡片特效 */
.tool-card.vip-tool-card {
    border: 1.5px solid transparent;
    background-clip: padding-box;
    background: linear-gradient(135deg, #ffffff, #fefce8);
}

.tool-card.vip-tool-card::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    background: linear-gradient(45deg, 
        #fbbf24, #fde68a, #f59e0b, 
        #fbbf24, #fde68a, #f59e0b);
    border-radius: var(--radius);
    z-index: -1;
    animation: border-glow 3s linear infinite;
    background-size: 400% 400%;
}

@keyframes border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.vip-tool-card .tool-icon {
    background: linear-gradient(135deg, #E8F4FF, #D4EAFF);
    color: #1D7CF2;
}

/* 永久VIP工具卡片 */
.permanent-vip-tool-card {
    border: 1.5px solid #FFD700 !important;
    background: white !important;
}

.permanent-vip-tool-card .tool-icon {
    background: white !important;
    color: #D4A017 !important;
    border: 1.5px solid #FFD700 !important;
}

.permanent-vip-tool-card .tool-number {
    background: #FFD700 !important;
    color: white !important;
}

/* VIP锁定工具样式 */
.tool-card.vip-locked {
    position: relative;
    border: 1.5px dashed var(--accent);
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    opacity: 1;
}

.tool-card.vip-locked .tool-icon {
    background: var(--accent-light);
    color: var(--accent);
}

.tool-card.vip-locked .tool-title {
    color: var(--dark);
    opacity: 1;
}

.tool-card.vip-locked .tool-description {
    color: var(--gray);
    opacity: 1;
}

/* 升级区域 */
.upgrade-section {
    background: linear-gradient(135deg, var(--primary-lighter), #f0f9ff);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upgrade-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0.5;
}

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

.upgrade-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--darker);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

/* VIP升级区域增强 */
.vip-upgrade-section {
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.1) 0%,
        rgba(254, 243, 199, 0.2) 50%,
        rgba(251, 191, 36, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.vip-upgrade-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #f59e0b, #fbbf24, #fde68a, 
        #fbbf24, #f59e0b);
    border-radius: var(--radius);
    z-index: -1;
    animation: upgrade-border-glow 4s linear infinite;
    background-size: 400% 400%;
    opacity: 0.5;
}

@keyframes upgrade-border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 1.2rem;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--darker);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

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

/* ========== 底部区域 ========== */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    color: var(--dark);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--primary-lighter);
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
    text-decoration: none;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--dark);
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    opacity: 1;
}

.contact-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-lighter);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    min-width: 300px;
}

.quick-links-column {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.quick-links-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary-lighter);
}

.quick-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.quick-link:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(5px);
}

.quick-link i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.footer-newsletter {
    background: var(--white);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary-lighter);
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--primary-lighter);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--gray);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.newsletter-btn {
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;
}

.newsletter-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid var(--primary-lighter);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-stats {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--white);
    border: 1px solid var(--primary-lighter);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.05);
    font-weight: 500;
}

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

.footer-links-horizontal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-link-horizontal {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* VIP解锁模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 350px;
    width: 90%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* VIP模态框增强 */
.vip-modal {
    background: linear-gradient(135deg, 
        rgba(254, 243, 199, 0.95),
        rgba(251, 191, 36, 0.95));
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #f59e0b, #fde68a, #f59e0b) 1;
    box-shadow: 
        0 15px 35px rgba(245, 158, 11, 0.25),
        0 0 50px rgba(251, 191, 36, 0.15);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    grid-column: 1 / -1;
}

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

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

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

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-lighter);
}

.btn-success {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* 智能工具箱Logo样式 */
.logo-with-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon-custom {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

/* 响应式设计 - 移动端 */
@media (max-width: 1024px) {
    .container {
        padding: 0 0.9rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-quick-links {
        min-width: auto;
    }
    
    .welcome-title {
        font-size: 1.6rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .nav-content {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .logo-area {
        min-width: auto;
        flex: 1;
    }
    
    .nav-actions {
        min-width: auto;
        width: 100%;
        order: 3;
        justify-content: space-between;
        margin-top: 0.8rem;
    }
    
    .nav-search {
        max-width: none;
        flex: 1;
    }
    
    .user-details {
        display: none;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 0.8rem;
    }
    
    .upgrade-section {
        padding: 1.5rem 1rem;
    }
    
    .upgrade-title {
        font-size: 1.4rem;
    }
    
    .upgrade-subtitle {
        font-size: 0.95rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-quick-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .vip-badge-3d {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .vip-unlock-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
    
    .popular-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        min-height: 140px;
        padding: 0.7rem;
    }
    
    .permanent-welcome-area {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.9rem;
    }
    
    .permanent-welcome-content {
        text-align: center;
    }
    
    .footer-newsletter {
        padding: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon-custom {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .total-access-display {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .tool-card {
        min-height: 130px;
        padding: 0.7rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .tool-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .tool-title {
        font-size: 0.9rem;
    }
    
    .tool-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .tool-footer .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        min-height: 28px;
    }
    
    .footer-stats {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .footer-stat {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

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

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

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* 工具使用动画 */
.tool-use-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: toolUse 0.6s ease;
}

@keyframes toolUse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* 工具卡片内部元素间距优化 */
.tool-card > *:not(:last-child) {
    margin-bottom: 0.6rem;
}

/* 分类标题优化 */
.category-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.category-tool-count {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--light);
    border-radius: 10px;
}

/* 统计卡片优化 */
.stat-card {
    padding: 1rem;
}

.stat-number {
    font-size: 1.4rem;
}

.stat-label {
    font-size: 0.8rem;
}

/* VIP专属飘落特效 */
.vip-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fbbf24, transparent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: vip-particle-fall 3s linear infinite;
}

@keyframes vip-particle-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* VIP悬浮提示框 */
.vip-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #7c2d12;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    z-index: 1000;
    white-space: nowrap;
    border: 1px solid #fbbf24;
    animation: tooltip-bounce 0.3s ease;
}

@keyframes tooltip-bounce {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* 确保底部始终在页面底部 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.footer {
    flex-shrink: 0;
    width: 100%;
}
/* css/style.css 中添加或修改以下内容 */

/* ========== 手机端专属优化 ========== */
@media (max-width: 768px) {
    /* 整体布局优化 */
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    /* 导航栏优化 */
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-content {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .logo-area {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-actions {
        width: 100%;
        order: 3;
        justify-content: space-between;
        margin-top: 0;
    }
    
    /* 用户信息优化 */
    .user-info {
        padding: 0.3rem 0.6rem;
    }
    
    .user-details {
        display: none;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* VIP徽章优化 */
    .vip-badge-3d {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .permanent-vip-badge {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    
    /* 欢迎区域优化 */
    .welcome-section {
        padding: 1.2rem 0;
        margin-bottom: 1rem;
    }
    
    .welcome-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    /* 永久会员欢迎区域优化 */
    .permanent-welcome-area {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin: 1rem auto;
        gap: 0.8rem;
    }
    
    .permanent-welcome-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .permanent-welcome-content h2 {
        font-size: 1rem;
    }
    
    .permanent-welcome-content p {
        font-size: 0.85rem;
    }
    
    /* 总访问次数显示优化 */
    .total-access-display {
        flex-direction: row;
        padding: 0.6rem 1rem;
        margin: 0.5rem 0;
    }
    
    /* 统计卡片优化 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1.2rem 0;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* 热门工具区域优化 */
    .popular-tools-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .popular-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .popular-tool-card {
        padding: 0.8rem;
    }
    
    /* ========== 重点：工具卡片优化 ========== */
    
    /* 重新设计非VIP工具卡片颜色 */
    .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) {
        background: linear-gradient(135deg, #ffffff, #f8fafc);
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
    }
    
    /* 基础工具卡片样式优化 */
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.8rem;
    }
    
    .tool-card {
        padding: 0.9rem;
        min-height: 150px;
        border-radius: 10px;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        background: linear-gradient(135deg, #ffffff, #f8fafc);
        border: 1px solid #e2e8f0;
    }
    
    .tool-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
        border-color: #cbd5e1;
    }
    
    /* 工具图标优化 */
    .tool-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        background: linear-gradient(135deg, #e0e7ff, #f0f9ff);
        color: var(--primary);
        border-radius: 8px;
        margin-bottom: 0.7rem;
    }
    
    /* 非VIP工具图标颜色 */
    .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) .tool-icon {
        background: linear-gradient(135deg, #f1f5f9, #ffffff);
        color: #64748b;
        border: 1px solid #e2e8f0;
    }
    
    /* 工具编号优化 */
    .tool-number {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        background: #f8fafc;
        color: #94a3b8;
        border: 1px solid #e2e8f0;
        border-radius: 5px;
    }
    
    /* 工具标题优化 */
    .tool-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        color: #1e293b;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* 非VIP工具标题颜色 */
    .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) .tool-title {
        color: #334155;
    }
    
    /* 工具描述优化 */
    .tool-description {
        font-size: 0.75rem;
        line-height: 1.4;
        color: #64748b;
        margin-bottom: 0.8rem;
        flex-grow: 1;
    }
    
    /* 非VIP工具描述颜色 */
    .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) .tool-description {
        color: #94a3b8;
    }
    
    /* 工具访问信息优化 */
    .tool-access-info {
        margin-bottom: 0.6rem;
        padding: 0.3rem 0;
    }
    
    .tool-access-count {
        font-size: 0.7rem;
        color: #94a3b8;
    }
    
    /* 工具按钮优化 */
    .tool-footer .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-height: 32px;
        border-radius: 6px;
        width: 100%;
    }
    
    /* 非VIP工具按钮样式 */
    .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) .btn-primary {
        background: linear-gradient(135deg, #64748b, #94a3b8);
        color: white;
        border: none;
    }
    
    .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) .btn-primary:hover {
        background: linear-gradient(135deg, #475569, #64748b);
    }
    
    /* VIP锁定工具优化 */
    .tool-card.vip-locked {
        background: linear-gradient(135deg, #fefce8, #fef3c7);
        border: 1px dashed #fbbf24;
        opacity: 0.95;
    }
    
    .tool-card.vip-locked .tool-icon {
        background: #fef3c7;
        color: #d97706;
        border: 1px solid #fbbf24;
    }
    
    .tool-card.vip-locked .btn-outline {
        background: rgba(245, 158, 11, 0.1);
        border-color: #f59e0b;
        color: #92400e;
    }
    
    /* VIP工具卡片优化 */
    .vip-tool-card {
        background: linear-gradient(135deg, #ffffff, #f0f9ff);
        border: 1px solid rgba(79, 70, 229, 0.2);
    }
    
    .vip-tool-card .tool-icon {
        background: linear-gradient(135deg, #dbeafe, #eff6ff);
        color: var(--primary);
        border: 1px solid rgba(79, 70, 229, 0.2);
    }
    
    /* 永久VIP工具卡片优化 */
    .permanent-vip-tool-card {
        background: linear-gradient(135deg, #ffffff, #fffdf6);
        border: 1px solid rgba(255, 215, 0, 0.3);
    }
    
    .permanent-vip-tool-card .tool-icon {
        background: linear-gradient(135deg, #fff9e6, #fff3bf);
        color: #b45309;
        border: 1px solid rgba(255, 215, 0, 0.3);
    }
    
    /* 分类标题优化 */
    .category-section {
        margin-bottom: 1.8rem;
    }
    
    .category-header {
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    /* 升级区域优化 */
    .upgrade-section {
        padding: 1.2rem;
        margin: 1.5rem 0;
        border-radius: 10px;
    }
    
    .upgrade-title {
        font-size: 1.2rem;
    }
    
    .upgrade-subtitle {
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.2rem 0;
    }
    
    /* 底部区域优化 */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-quick-links {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .footer-newsletter {
        padding: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding-top: 1rem;
    }
    
    .footer-stats {
        justify-content: center;
        gap: 0.6rem;
    }
    
    .footer-stat {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 */
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.7rem;
    }
    
    .tool-card {
        padding: 0.8rem;
        min-height: 140px;
    }
    
    .tool-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .tool-title {
        font-size: 0.85rem;
    }
    
    .tool-description {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .tool-footer .btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
    }
    
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .total-access-display {
        padding: 0.5rem 0.8rem;
    }
    
    .total-access-number {
        font-size: 1.2rem;
    }
    
    /* 搜索框优化 */
    .nav-search {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-input {
        width: 100%;
    }
}

/* ========== 新增：简洁动画效果 ========== */
.mobile-fade-in {
    opacity: 0;
    animation: mobileFadeIn 0.4s ease forwards;
}

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

/* ========== 新增：非VIP工具卡片颜色系统 ========== */
.tool-card.free-tier {
    position: relative;
    overflow: hidden;
}

.tool-card.free-tier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #64748b, #94a3b8, #cbd5e1);
}

/* 非VIP工具卡片标签 */
.tool-badge.free {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* 工具卡片悬停效果优化 */
.tool-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 工具卡片内容区域优化 */
.tool-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-description {
    flex-grow: 1;
}

/* 响应式工具卡片布局优化 */
@media (max-width: 768px) {
    .tool-card {
        display: grid;
        grid-template-rows: auto 1fr auto;
        grid-template-columns: auto 1fr;
        gap: 0.6rem;
    }
    
    .tool-header {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 0;
    }
    
    .tool-access-info {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-bottom: 0.5rem;
    }
    
    .tool-body {
        grid-column: 1 / -1;
        grid-row: 3;
    }
    
    .tool-footer {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 0.5rem;
    }
}

/* ========== 新增：卡片加载动画 ========== */
@keyframes cardLoading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.tool-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: cardLoading 1.5s ease-in-out infinite;
}

/* ========== 新增：触摸优化 ========== */
@media (hover: none) {
    .tool-card {
        transition: transform 0.15s ease;
    }
    
    .tool-card:active {
        transform: scale(0.98);
    }
    
    /* 增大触摸区域 */
    .btn, .nav-link, .user-info {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========== 新增：暗色模式支持（可选） ========== */
@media (prefers-color-scheme: dark) {
    @media (max-width: 768px) {
        .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) {
            background: linear-gradient(135deg, #1e293b, #0f172a);
            border-color: #334155;
            color: #e2e8f0;
        }
        
        .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) .tool-title {
            color: #e2e8f0;
        }
        
        .tool-card:not(.vip-tool-card):not(.permanent-vip-tool-card):not(.vip-locked) .tool-description {
            color: #94a3b8;
        }
    }
}