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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #1a1a2e;
    color: #fff;
    line-height: 1.6;
}

.header {
    background-color: #16213e;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 100px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    display: inline-block;
}

.hero {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter></defs><rect width="800" height="200" fill="#f8f9fa"/><g filter="url(%23noise)"><rect width="800" height="200" fill="rgba(255,255,255,0.3)"/></g><circle cx="80" cy="80" r="50" fill="rgba(147,112,219,0.5)"/><circle cx="700" cy="50" r="60" fill="rgba(147,112,219,0.5)"/><circle cx="600" cy="150" r="40" fill="rgba(147,112,219,0.3)"/><circle cx="200" cy="150" r="30" fill="rgba(147,112,219,0.3)"/><circle cx="750" cy="120" r="40" fill="rgba(135,206,250,0.4)"/></svg>');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 80px;
    color: #3498db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 5px;
}

.hero .subtitle {
    font-size: 20px;
    color: #2c3e50;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
}

.motto {
    text-align: center;
    padding: 30px 20px;
    background-color: #16213e;
}

.motto p {
    font-size: 24px;
    color: #ecf0f1;
    margin-bottom: 10px;
}

.motto .english {
    font-size: 16px;
    color: #95a5a6;
    font-family: 'Arial', sans-serif;
}

.app-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background-color: #0f3460;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    min-height: 100px;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    margin-right: 15px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.5);
    border: none;
}

.app-info {
    margin-bottom: 0;
    margin-right: auto;
    flex-grow: 1;
}

.app-info h2 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.rating {
    margin-bottom: 5px;
    font-size: 12px;
}

.stars {
    color: #f39c12;
    font-size: 12px;
    margin-right: 4px;
}

.score {
    color: #ecf0f1;
    font-size: 12px;
}

.review-count {
    color: #bdc3c7;
    font-size: 10px;
    margin-bottom: 3px;
}

.description {
    color: #95a5a6;
    font-size: 10px;
}

.btn {
    background-color: #2ecc71;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 12px;
    align-self: center;
    width: auto;
    flex-shrink: 0;
}

.btn:hover {
    background-color: #27ae60;
}

.visitor-count {
    text-align: center;
    padding: 15px;
    background-color: #16213e;
    font-size: 16px;
    color: #ecf0f1;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #0f3460;
    color: #95a5a6;
    font-size: 14px;
    margin-top: 30px;
}

/* 错误信息样式 */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    border-radius: 10px;
    color: #e74c3c;
}

.error-message h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.error-message p {
    font-size: 16px;
    color: #ecf0f1;
}

@media (max-width: 1024px) {
    .app-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .app-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .app-cards-container {
        grid-template-columns: repeat(1, 1fr);
        padding: 10px;
    }
    
    .app-card {
        padding: 10px;
    }
    
    .icon-bg {
        width: 40px;
        height: 40px;
    }
}