html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #f1f6fd;
    color: #474157;
    height: calc(100vh - 61px);
}

#mainbody > .container > .text-center {
    text-align: center;
    padding: 350px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody > .container > .text-center h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody > .container > .text-center > a {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    #mainbody > .container > .text-center {


        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody > .container > .text-center > h1 {


        font-size: 50px;
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}



/**/


:root {
    --primary: #18bc9c;
    --primary-light: #E8F3FF;
    --secondary: #6B7280;
    --light-bg: #F9FAFB;
    --dark-bg: #616161;
    --white: #FFFFFF;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease;
    --gap-sm: 0.8rem;
    --gap-md: 1.2rem;
    --gap-lg: 1.5rem;
    --error: #e74c3c;
    --error-light: #fdf2f2;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-bg);
    line-height: 1.5;
    font-size: 14px;
}

header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '🎬';
    font-size: 20px;
}

.header-actions {
    font-size: 13px;
    color: var(--secondary);
}

.page-title {
    font-size: 20px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 0.6rem;
}

.page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

/* 核心布局：紧凑的网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端4列 */
    gap: var(--gap-sm); /* 紧凑间距 */
    margin-bottom: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    width: 100%;
    height: 160px; /* 更紧凑的高度 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 0.8rem;
}

.video-title {
    font-size: 14px;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: var(--dark-bg);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
    font-size: 12px;
}

.video-episodes {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.lock-icon {
    font-size: 11px;
}

.loading-container {
    text-align: center;
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 60px;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-light);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-more {
    display: none;
    color: var(--secondary);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 0 auto;
    max-width: 400px;
}

.error-message {
    display: none;
    color: var(--error);
    padding: 1.2rem;
    background-color: var(--error-light);
    border-radius: var(--radius);
    margin: 0 auto;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.2);
    animation: fadeIn 0.3s ease;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.error-icon {
    font-size: 24px;
    color: var(--error);
}

.error-text {
    font-size: 14px;
    margin-bottom: 0.3rem;
}

.error-detail {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.retry-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.retry-btn:hover {
    background-color: #14967b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 188, 156, 0.3);
}

.retry-btn:active {
    transform: translateY(0);
}

.retry-btn.loading {
    background-color: var(--secondary);
    cursor: not-allowed;
}

.retry-btn .loader {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-text {
    font-size: 14px;
    margin-bottom: 1rem;
}
.loading {
    display: flex;  
    align-items: center;  
    justify-content: center;  
    width: 100%; 
    height: 60px;
    gap: 8px; 
}
main.content {
    
    padding: 20px 0;
}
.video-episode{
    color: #18bc9c;
    background-color: #e8f4ff;
    padding: 2px 6px;
    border-radius: 8px;
}
.video-quality{
    color: #f39c12;
    background-color: #e8f4ff;
    padding: 2px 6px;
    border-radius: 8px;
}   

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式适配 - 紧凑布局 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .video-thumbnail {
        height: 150px;
    }
}

/* 手机端：2列紧凑布局 */
@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem; /* 更紧凑的间距 */
    }
    
    .video-thumbnail {
        height: 130px; /* 适配手机的紧凑高度 */
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .error-message {
        margin: 0 1rem;
        padding: 1rem;
    }
}
