/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #ff9000;
}

/* 年龄验证页面样式 */
.age-verification {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000;
    position: relative;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.age-verification-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px rgba(255, 255, 255, 0.5);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.language-selector {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.language-icon {
    margin-right: 5px;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 10px;
}

.age-verification-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 30px;
    margin-top: 50px;
}

.logo {
    width: 180px;
    height: auto;
}

.age-warning {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: bold;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
}

.btn-notice {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ff9000;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 30px;
    font-weight: bold;
}

.age-notice {
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.age-notice p {
    font-size: 18px;
    margin-bottom: 10px;
}

.terms-link {
    color: #ff9000;
    text-decoration: underline;
}

.age-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-age {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 15px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-enter {
    background-color: #333;
    color: #fff;
    border: 2px solid #ff9000;
}

.btn-enter:hover {
    background-color: #444;
}

.btn-exit {
    background-color: #333;
    color: #fff;
}

.btn-exit:hover {
    background-color: #444;
}

.parental-control {
    margin-bottom: 40px;
    font-size: 14px;
}

.parental-control p {
    font-size: 16px;
}

.footer {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    font-size: 16px;
}

.rta-logo {
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* 顶部导航栏样式 */
.top-nav {
    background-color: #000;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #252525;
}

.top-nav a {
    color: #95977b;
    font-size: 14px;
    margin: 0 10px;
    cursor: pointer;
}

.top-nav a:hover {
    color: #fff;
}

/* 主页样式 */
.main-header {
    background-color: #0f0f0f;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #252525;
}

.menu-icon {
    color: #ff9000;
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
}

.header-logo {
    width: 120px;
    margin-right: auto;
}

.user-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-icon {
    color: #000;
    background-color: #808080;
    border-radius: 50%;
    padding: 5px;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 25px;
    padding: 5px 15px;
    max-width: 700px;
    width: 700px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.search-input {
    background-color: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    width: 100%;
    outline: none;
}

.search-icon {
    color: #fff;
    margin-right: 8px;
}

.nav-tabs {
    display: flex;
    overflow-x: auto;
    background-color: #0f0f0f;
    padding: 0 20px;
    border-bottom: 1px solid #252525;
    /* 隐藏滚动条 */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* 隐藏滚动条 - Webkit浏览器 (Chrome, Safari等) */
.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 15px 20px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.nav-tab.active {
    color: #ff9000;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff9000;
}

.section-title {
    color: #fff;
    background-color: #000;
    font-size: 24px;
    margin: 20px;
    text-align: left;
    font-weight: bold;
}

.categories {
    display: flex;
    overflow-x: auto;
    padding: 15px 20px;
    gap: 10px;
    background-color: #000;
    /* 隐藏滚动条 */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* 隐藏滚动条 - Webkit浏览器 (Chrome, Safari等) */
.categories::-webkit-scrollbar {
    display: none;
}

.category {
    background-color: #272727;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #000;
}

.content-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #1a1a1a;
}

.card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-duration {
    position: absolute;
    bottom: 70px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.card-info {
    padding: 10px;
}

.card-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}

.ai-button {
    background-color: #ff9000;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    left: calc(50% + 360px);
}

/* 搜索结果样式 */
.search-result-count {
    grid-column: 1 / -1;
    color: #ff9000;
    font-size: 16px;
    margin: 10px 0;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 4px;
    text-align: center;
}

/* 无搜索结果样式 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 重置搜索按钮样式 */
.btn-reset-search {
    background-color: #ff9000;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-reset-search:hover {
    background-color: #e67e00;
}

/* 加载消息样式 */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 18px;
}

/* 错误消息样式 */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #ff6b6b;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .search-container {
        max-width: 500px;
        width: 500px;
    }
    
    .ai-button {
        left: calc(50% + 260px);
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .search-container {
        max-width: 400px;
        width: 400px;
    }
    
    .ai-button {
        left: calc(50% + 210px);
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .nav-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .category {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
        margin: 15px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 8px 15px;
    }
    
    .top-nav a {
        font-size: 12px;
        margin: 0 8px;
    }
    
    .main-header {
        padding: 8px 15px;
    }
    
    .header-logo {
        width: 100px;
    }
    
    .search-container {
        max-width: 300px;
        width: 300px;
        padding: 4px 12px;
    }
    
    .ai-button {
        position: static;
        margin-left: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .user-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .nav-tabs {
        padding: 0 15px;
    }
    
    .nav-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .categories {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .category {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
        margin: 15px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .card-meta {
        font-size: 11px;
    }
    
    .age-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-age {
        max-width: 90%;
    }
    
    .age-warning {
        font-size: 28px;
    }
    
    .age-notice {
        font-size: 14px;
    }
    
    .footer-links a {
        font-size: 12px;
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .top-nav {
        display: none;
    }
    
    .main-header {
        padding: 8px 10px;
    }
    
    .header-logo {
        width: 80px;
    }
    
    .menu-icon {
        margin-right: 8px;
    }
    
    .search-container {
        display: none;
    }
    
    .ai-button {
        display: none;
    }
    
    .user-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .nav-tabs {
        padding: 0 10px;
    }
    
    .nav-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .categories {
        padding: 10px;
        gap: 6px;
    }
    
    .category {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
        margin: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-meta {
        font-size: 10px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        display: block;
        width: 100%;
        margin: 3px 0;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 70px;
    }
    
    .nav-tab {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .category {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .section-title {
        font-size: 16px;
        margin: 8px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .card-info {
        padding: 8px;
    }
    
    .card-title {
        font-size: 11px;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 3px;
    }
    
    .card-meta span {
        font-size: 10px;
    }
    
    .age-warning {
        font-size: 24px;
    }
    
    .age-notice {
        font-size: 12px;
    }
    
    .age-notice p {
        font-size: 14px;
    }
    
    .btn-notice {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .btn-age {
        padding: 12px;
        font-size: 16px;
    }
    
    .logo {
        width: 150px;
    }
}

@media (max-width: 320px) {
    .header-logo {
        width: 60px;
    }
    
    .nav-tab {
        padding: 5px 6px;
        font-size: 10px;
    }
    
    .category {
        padding: 3px 5px;
        font-size: 10px;
    }
    
    .section-title {
        font-size: 14px;
        margin: 5px;
    }
    
    .content-grid {
        gap: 5px;
        padding: 5px;
    }
    
    .card-info {
        padding: 5px;
    }
    
    .age-warning {
        font-size: 20px;
    }
    
    .age-notice {
        font-size: 11px;
    }
    
    .age-notice p {
        font-size: 12px;
    }
    
    .btn-notice {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .btn-age {
        padding: 10px;
        font-size: 14px;
    }
    
    .logo {
        width: 120px;
    }
}