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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.header {
    text-align: center;
    padding: 20px 0;
    background-color: #4a90e2;
    border-radius: 10px;
    margin-bottom: 20px;
}

.header h1 {
    color: white;
    font-size: 2em;
}

.search-box {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
    width: 100%;
}

.search-box input {
    width: calc(100% - 120px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-box button {
    width: 100px;
    padding: 12px 0;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.quick-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    width: 100%;
}

.link-btn {
    flex: 1;
    padding: 12px 0;
    background-color: white;
    color: #4a90e2;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid #4a90e2;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    font-size: 16px;
}

.link-btn:hover {
    background-color: #4a90e2;
    color: white;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.website-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0;
    background-color: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.website-item:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.website-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    padding: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.website-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.website-item span {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .website-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .website-item {
        padding: 10px 12px;
    }

    .search-box input {
        width: calc(100% - 100px);
    }
    
    .search-box button {
        width: 80px;
    }
}

@media screen and (max-width: 992px) {
    .website-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .website-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin: 10px 0;
        padding: 6px 0 20px;
    }

    .website-item a {
        padding: 6px;
        gap: 4px;
    }

    .website-item img {
        width: 16px;
        height: 16px;
    }

    .website-item span {
        font-size: 12px;
    }

    .search-box {
        gap: 8px;
    }

    .search-box input {
        width: calc(100% - 80px);
        padding: 10px;
        font-size: 14px;
    }

    .search-box button {
        width: 60px;
        padding: 10px 0;
        font-size: 14px;
    }

    .quick-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 10px 0;
    }

    .link-btn {
        flex: none;
        width: 100%;
        padding: 10px 0;
        font-size: 15px;
        min-width: 0;
    }

    .app-links {
        gap: 20px;
        padding: 10px 0;
    }

    .container {
        padding-bottom: 70px;
    }

    .app-item img {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }

    .app-item span {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 6px;
    }

    .website-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        margin: 10px 0;
        padding: 6px 0 20px;
    }

    .website-item a {
        padding: 4px;
        gap: 3px;
    }

    .website-item img {
        width: 14px;
        height: 14px;
    }

    .website-item span {
        font-size: 11px;
    }

    .search-box {
        gap: 6px;
    }

    .search-box input {
        width: calc(100% - 60px);
        padding: 8px;
        font-size: 13px;
    }

    .search-box button {
        width: 50px;
        padding: 8px 0;
        font-size: 13px;
    }

    .quick-links {
        gap: 8px;
        grid-template-columns: repeat(2, 1fr);
        margin: 10px 0;
    }

    .link-btn {
        padding: 8px 0;
        font-size: 14px;
    }

    .app-links {
        gap: 15px;
        padding: 8px 0;
    }

    .container {
        padding-bottom: 60px;
    }

    .app-item img {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }

    .app-item span {
        font-size: 11px;
    }
}

.app-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.app-item:hover {
    transform: translateY(-3px);
}

.app-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.app-item span {
    font-size: 14px;
    color: #666;
} 