/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
}

/* Main content styles */
main {
    padding: 2.5rem 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231e3c72"><path d="M5,3C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19H5V5H12V3H5M15,3V5H17.59L8.46,14.13L9.87,15.54L19,6.41V9H21V3H15Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background-color: #f9fbff;
}

.card:hover::after {
    opacity: 0.7;
    transform: translateY(0);
}

.card:hover .card-content p {
    color: #2c3e50;
}

.card-image {
    height: 120px;
    background-color: rgba(245, 247, 250, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.text-logo {
    background: linear-gradient(135deg, #e8f4fc 0%, #d8e9f6 100%);
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.text-logo span {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
    padding: 0 10px;
}

/* 对于特别长的名称应用较小的字体大小 */
.card:nth-child(4) .text-logo span,     /* LightInTheBox */
.card:nth-child(9) .text-logo span,     /* Tmall Global */
.card:nth-child(15) .text-logo span {   /* Pinduoduo */
    font-size: 1.2rem;
}

.card:hover .text-logo {
    background: linear-gradient(135deg, #dbeafc 0%, #c8e1f7 100%);
}

.card:hover .text-logo span {
    transform: scale(1.1);
}

.card-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-content p {
    margin-bottom: 0;
    color: #5d6778;
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

/* Button styles */
.btn {
    display: none;
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

/* Responsive styles */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card-content h2 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
    }
} 