﻿:root {
    /*--primary-color: #6366f1;
    --secondary-color: #f8fafc;
    --text-color: #334155;*/
    --light-text: #64748b;
    --border-color: #e2e8f0;
    --foreign-tag: #ef4444;
    --chinese-tag: #10b981;
    --deepseek-tag: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #f1f5f9;
    padding: 0;
    margin: 0;
}

header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

.category {
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #6366f1;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

    .category-title i {
        margin-right: 0.5rem;
        font-size: 1.1rem;
    }

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.ai-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .ai-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-color: #6366f1;
    }

.ai-icon {
    height: 60px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: #6366f1;
}

    .ai-icon img {
        max-height: 40px;
        max-width: 40px;
        object-fit: contain;
    }

.ai-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ai-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #334155;
}

.ai-desc {
    color: var(--light-text);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.ai-link {
    display: inline-block;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: color 0.2s;
    align-self: flex-start;
}

    .ai-link:hover {
        color: #4f46e5;
        text-decoration: underline;
    }

footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    background-color: white;
    color: var(--light-text);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.tag {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .tag.foreign {
        background-color: #fee2e2;
        color: var(--foreign-tag);
    }

    .tag.chinese {
        background-color: #dcfce7;
        color: var(--chinese-tag);
    }

    .tag.deepseek {
        background-color: #ede9fe;
        color: var(--deepseek-tag);
    }

    .tag.new {
        background-color: #dbeafe;
        color: #2563eb;
    }

@media (max-width: 768px) {
    .ai-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    h1 {
        font-size: 1.5rem;
    }
}
