a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
main,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

body {
    background-color: white;
    color: black;
}

.mobile-app {
    background-color: white;
    height: auto !important;
    max-width: 500px;
    margin: auto;
}

.mobile-body .swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    padding: 5px;
}

.mobile-body .swiper-slide-active {
    transform: scaleY(1);
    filter: none;
}

.mobile-body .slider-item {
    width: 65% !important;
    height: 100% !important;
    padding-right: 0 !important;
}

.slider-item {
    box-sizing: border-box;
}

.mobile-body .screenshot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.mobile-body .s-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(30px);
    z-index: -1;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: cover;
    text-align: center;
}

.screenshot-img {
    width: 340px;
    height: 475px;
    object-fit: cover;
}

.mobile-body .swiper-pagination .swiper-pagination-bullet {
    margin: 4px;
    background: #e0e0e0;
    opacity: 1;
}

.mobile-body .swiper-pagination .swiper-pagination-bullet-active {
    border: 2px solid #fed853;
    background: #fff;
}

.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: black;
    font-size: 1.8rem;
    font-weight: 800;
}

/* 头部控制区域 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
}

.search-toggle {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-toggle img {
    width: 30px;
    height: 30px;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    background-color: white;
}

.search-container input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 320px;
    background-color: #e0e0e0;
    color: black;
}

.search-container button {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* 默认隐藏 */
    transition: all 0.3s ease;
}

.search-container.show {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.search-button {
    border-radius: 0 4px 4px 0;
    margin-right: 10px;
}

.search-button img {
    width: 30px;
    height: 30px;
}

.search-close {
    color: black;
    border: none;
    padding: 8px 15px;
    margin: 0px 10px;
    display: block;
    border-radius: 4px;
}

.search-close img {
    width: 30px;
    height: 30px;
}

/* 折叠图标 */
.menu-toggle {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin-right: auto;
}

.menu-toggle img {
    width: 30px;
    height: 30px;
}

/* 侧边菜单容器 */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    /* 默认隐藏 */
    width: 320px;
    height: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

@media (min-width: 501px) {
    .sidebar.show {
        left: calc((100vw - 520px) / 2);
    }
}

@media (max-width: 500px) {
    .sidebar.show {
        left: 0;
    }
}

.sidebar ul {
    list-style: none;
    padding: 20px;
    flex-direction: column;
    /* 垂直排列 */
    display: flex;
}

.sidebar ul li {
    margin-bottom: 10px;
    width: 100%;
}

.sidebar ul li a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 15px;
    border-radius: 4px;
    display: block;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: black;
    background-color: #e0e0e0;
}

.nav:not(.sidebar) {
    display: none;
    /* 隐藏横向导航栏 */
}

/* 关闭按钮 */
.menu-close {
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-close img {
    width: 30px;
    height: 30px;
}

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 10px;
}

.footer-content h3 {
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-bottom a {
    text-decoration: none;
    color: #bdc3c7;
}

/* 主题切换按钮样式 */
.theme-toggle {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.theme-toggle img {
    width: 30px;
    height: 30px;
}

/* 暗色主题样式 */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-theme .header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .logo h1 {
    color: #e0e0e0;
}

.dark-theme .nav ul li a {
    color: #e0e0e0;
}

.dark-theme .nav ul li a:hover,
.dark-theme .nav ul li a.active {
    color: #e0e0e0;
    background-color: #2a2a2a;
}

.dark-theme .icon-more {
    color: #e0e0e0;
}

.dark-theme .search-bar input {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-theme button {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-theme .sidebar {
    background-color: #1e1e1e;
}

.dark-theme .search-container {
    background-color: #1e1e1e;
}

.dark-theme .mobile-app {
    background-color: #1e1e1e;
}

.dark-theme .mobile-body {
    background-color: #1e1e1e;
}

.dark-theme .footer {
    background-color: #1e1e1e;
}

.dark-theme .footer-content {
    border-color: #333;
}

.dark-theme .footer-content h3 {
    color: #e0e0e0;
}

.dark-theme .footer-bottom {
    border-color: #333;
    color: #aaa;
}

.dark-theme .part-text {
    color: #e0e0e0;
}

.dark-theme .video-card {
    background-color: #1e1e1e;
}

.dark-theme .card-title {
    color: #e0e0e0;
}

.dark-theme .card-desc {
    color: #757272;
}

.categorize-box {
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 10px;
}

.part-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    position: relative;
}

.part-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: black;
}

.part-right {
    font-size: 17px;
    font-weight: 400;
    line-height: 20px;
    color: #bfbfbf;
}

.part-right a {
    color: #bfbfbf;
    text-decoration: none;
}

.part-right img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.icon-more {
    margin-left: 5px;
    font-size: 14px;
    color: #bfbfbf;
    transition: color 0.3s ease;
}

.video-list {
    height: auto !important;
}

.video-name {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 57px 20px 20px 20px;
    background: linear-gradient(180deg, transparent 0, #000);
    font-size: 18px;
    font-weight: 400;
    line-height: 21px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.banner-video-name {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
    background: linear-gradient(180deg, transparent 0, #000);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.video-name-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 返回顶部按钮样式 */
.top-button {
    background: linear-gradient(135deg, #4e8cff, #7dceff);
    border: none;
    border-radius: 20px 0 0 20px;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(78, 140, 255, 0.3);
    width: 100%;
}

.top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 140, 255, 0.4);
}

.top-button:active {
    transform: translateY(0);
}

/* 浮动按钮容器样式 */
.float {
    position: fixed;
    bottom: 20px;
    right: 0px;
    z-index: 1000;
    display: none;
}

#backToTop {
    width: 80px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play {
    width: 100%;
    height: 400px;
    background-color: black;
    margin-top: 10px;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
}

.video-card {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    transition: transform 0.3s ease;
    width: 100%;
    margin: 0 10px 10px 10px;
}

.video-card:hover {
    transform: scale(1.02);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.card-image {
    position: relative;
    flex-shrink: 0;
    width: 165px;
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
}

.banner-image {
    position: relative;
    flex-shrink: 0;
    width: 155px;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

@media (max-width: 500px) {
    .card-image {
        width: 120px;
        height: 170px;
    }

    .banner-image {
        width: 110px;
        height: 144px;
    }

    .screenshot-img {
        width: 245px;
        height: 330px;
    }

    .card-desc {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hot-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
}

.fir-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    color: black;
    font-size: 12px;
    padding: 0px 16px;
    border-radius: 10px;
    font-weight: bold;
}

.fir-badge.rank-1 {
    background: #FFD700;
    /* 金色 */
}

.fir-badge.rank-2 {
    background: #C0C0C0;
    /* 银色 */
}

.fir-badge.rank-3 {
    background: #CD7F32;
    /* 铜色 */
}

.fir-badge.rank-default {
    background: #6d79cf;
}

.card-content {
    flex: 1;
    padding-left: 16px;
    margin-left: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    font-size: 14px;
    color: #bfbfbf;
    line-height: 1.5;
}

.card-meta {
    font-size: 12px;
    color: #87bdff;
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.card-meta img {
    width: 20px;
    height: 20px;
}