/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #1a73e8;
}

a:hover {
    text-decoration: underline;
}

/* 头部样式 */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    margin-bottom: 20px;
}

#search-box {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    height: 44px;
    padding: 0 15px;
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
    transition: box-shadow 0.2s ease;
}

#search-box:hover,
#search-box:focus-within {
    box-shadow: 0 1px 10px rgba(32, 33, 36, 0.28);
}

#search {
    flex: 1;
    border: none;
    outline: 0;
    font-size: 16px;
    margin-left: 16px;
    background: transparent;
}

/* 网格布局 */
#grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    background: #000;
    display: block;
}

.video-info {
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #70757a;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header {
        padding: 15px 12px;
    }

    #search-box {
        height: 40px;
        max-width: 100%;
    }

    #search {
        font-size: 14px;
    }

    #grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .video-info {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .header {
        padding: 12px 10px;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .logo-container svg {
        width: 28px;
        height: 28px;
    }
}


.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}
