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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-image: url('https://pic.616pic.com/bg_w1180/00/08/12/iMlSkKcijy.jpg!/fw/1120');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #1f2937;
    min-height: 100vh;
    padding: 1rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header p {
    color: #f3f4f6;
    font-size: 1rem;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    border: 1px solid rgba(255,255,255,0.4);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
}

.link-item {
    background: white;
    border-radius: 16px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.link-item:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 8px 16px -8px rgba(59,130,246,0.3);
    background: #fafcff;
}

.link-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.link-info {
    flex: 1;
    overflow: hidden;
}

.link-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-info p {
    font-size: 0.7rem;
    color: #5b6e8c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-links {
    text-align: center;
    color: #6c757d;
    padding: 1rem;
    background: rgba(0,0,0,0.05);
    border-radius: 16px;
    margin-top: 0.5rem;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 2rem;
    backdrop-filter: blur(8px);
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #e2e8f0;
    font-size: 0.8rem;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

footer a {
    color: #fff;
}

/* 手机版额外优化 */
@media (max-width: 640px) {
    body {
        padding: 0.8rem;
    }
    .category-card {
        padding: 1rem;
    }
    .links-grid {
        grid-template-columns: 1fr;
    }
    .link-item {
        padding: 0.7rem;
    }
    .link-icon {
        width: 36px;
        height: 36px;
    }
    .category-title {
        font-size: 1.3rem;
    }
}