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

        body {
            font-family: 'Arial', sans-serif;
            min-height: 100vh;
            background-color: #f5f7fa;
            padding: 20px 15px;
            color: #333;
            display: flex;
            flex-direction: column;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            width: 100%;
            flex: 1;
        }

        /* 头部样式 */
        .header {
            text-align: center;
            margin-bottom: 25px;
            padding: 15px 0;
        }

        .header h1 {
            font-size: 22px;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .header p {
            font-size: 14px;
            color: #7f8c8d;
        }

        /* 分类卡片样式 */
        .category-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .category-header {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            font-weight: 600;
            font-size: 16px;
        }

        .category-header .icon {
            margin-right: 8px;
            font-size: 18px;
        }

        /* 链接网格布局 - 关键部分 */
        .links-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            background-color: #f1f1f1;
        }

        .link-item {
            background-color: white;
            transition: all 0.2s ease;
        }

        .link-item a {
            display: block;
            padding: 12px 8px;
            text-align: center;
            text-decoration: none;
            color: white;
            font-size: 13px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            word-break: break-word;
            line-height: 1.3;
        }

        .link-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            z-index: 1;
            position: relative;
        }

        /* 分类颜色主题 */
        .category-main .category-header {
            color: #e74c3c;
            background-color: rgba(231, 76, 60, 0.05);
        }
        .category-main .link-item a { background-color: #e74c3c; }

        .category-fun .category-header {
            color: #3498db;
            background-color: rgba(52, 152, 219, 0.05);
        }
        .category-fun .link-item a { background-color: #3498db; }

        .category-contact .category-header {
            color: #2ecc71;
            background-color: rgba(46, 204, 113, 0.05);
        }
        .category-contact .link-item a { background-color: #2ecc71; }

        .category-other .category-header {
            color: #f39c12;
            background-color: rgba(243, 156, 18, 0.05);
        }
        .category-other .link-item a { background-color: #f39c12; }



        /* 响应式调整 - 确保始终每行三个 */
        @media (max-width: 600px) {
            .links-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .link-item a {
                font-size: 12px;
                padding: 10px 5px;
            }
            
            .header h1 {
                font-size: 20px;
            }
        }

        @media (max-width: 400px) {
            .link-item a {
                font-size: 11px;
                padding: 8px 4px;
            }
        }