/* 全局基础样式 */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: black;
    color: white;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    scrollbar-width: none;
}

body {
    background-color: transparent;
    height: auto;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: -99;
    width: 100%;
    height: 100%;
    background: url("https://d2v87gzzgckecf.cloudfront.net/uploads/image/NbFybZkehW5znps.jpg");
    background-size: 50%;
    background-repeat: repeat-x;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s;
}

a:hover,
a:active {
    outline: 0;
    color: var(--bs-link-color);
}

/* 悬停放大效果 */
.zoom-in {
    display: inline-block;
    margin: 0;
    z-index: 99;
    transition: transform 0.3s ease;
}

.zoom-in:hover {
    transform: scale(1.1);
}

/* 导航栏渐变背景 */
.header-nav::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, #555555, transparent);
    filter: blur(0.2rem);
}

/* 导航链接样式 */
.navbar-nav .nav-item .nav-link {
    cursor: pointer;
}

/* Logo 图片样式 */
.logo img {
    width: clamp(2rem, 10vw, 3rem);
    margin-right: 0.3rem;
}

/* 简介盒子图片样式 */
.introduce-box img {
    width: 200px;
    border-radius: 1.7rem;
    overflow: hidden;
    box-shadow: 0 0 0.5rem 0.1rem #0ff,
    0 0 1rem 0.1rem #ff00ff,
    0 0 1.5rem 0.1rem #00ffff,
    0 0 2rem 0.1rem white;
}

/* 下载按钮样式 */
#download-btn {
    width: 12rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    border-radius: 0.5rem;
    margin: 0 auto;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    box-shadow: inset 20px 20px 20px rgba(170, 170, 170, 0.05),
    25px 35px 20px rgba(255, 255, 255, 0.05),
    25px 30px 30px rgba(255, 255, 255, 0.05),
    inset -20px -20px 25px rgba(97, 97, 97, 0.9);
    transition: box-shadow 0.5s;
}

#download-btn:hover {
    box-shadow: inset 20px 20px 20px rgba(146, 146, 146, 0.05),
    25px 35px 20px rgba(177, 177, 177, 0.05),
    25px 30px 30px rgba(71, 71, 71, 0.05),
    inset -20px -20px 25px rgba(114, 114, 114, 0.9);
}

#download-btn::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    left: 0.7rem;
    width: 0.33rem;
    height: 0.2rem;
    border-radius: 50%;
    background: #fff;
    opacity: 0.3;
}

#download-btn::after {
    content: "";
    position: absolute;
    top: 0.27rem;
    left: 0.46rem;
    width: 0.13rem;
    height: 0.13rem;
    border-radius: 50%;
    background: #fff;
    opacity: 0.6;
}

/* 发现区域样式 */
.discover-box {
    background-color: black;
    box-shadow: 0 -3rem 4rem 3rem black;
}

main,
footer {
    background-color: black;
    box-sizing: border-box;
}

.module-title {
    font-weight: bold;
}

/* 封面图样式 */
.cover-img {
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0.01rem 0.01rem 0.1rem rgba(255, 255, 255, 0.3);
}

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

/* 播放项卡片样式 */
.playlet-item .grid-card {
    border-radius: 1rem;
    overflow: hidden;
}

.playlet-item .playlet-title {
    width: 100%;
    min-height: 2.6rem;
    max-height: 50%;
    transition: opacity 0.2s ease-in-out;
}

.playlet-title p {
    line-height: 1.3rem;
    max-height: calc(1.3rem * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cover-img .playlet-title {
    padding: 0.5rem;
    min-height: 30%;
    max-height: 50%;
    opacity: 0;
}

.cover-img .playlet-title h5 {
    font-size: 0.875rem;
    font-weight: bold;
}

.cover-img .playlet-title p {
    font-size: 0.7rem;
    line-height: 1.3rem;
    max-height: calc(1.3rem * 3);
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-us a {
    text-decoration: underline;
    margin-bottom: 1rem;
}

.copyright p {
    font-size: 0.825rem;
    color: #757575;
}

/* 横版卡片样式 */
.drama-card-horizontal {
    background-color: #1e1e1e;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.drama-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* 海报区域 */
.drama-poster-horizontal {
    position: relative;
    min-width: 240px;
    max-width: 240px;
    overflow: hidden;
}

.drama-poster-horizontal img {
    width: 100%;
    height: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.drama-card-horizontal:hover .drama-poster-horizontal img {
    transform: scale(1.08);
}

/* 标签样式 */
.drama-badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-rating {
    top: 15px;
    left: 15px;
    background-color: #e63946;
    color: #fff;
}

.badge-type {
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* 内容区域 */
.drama-content {
    padding: 25px;
}

.drama-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.drama-meta {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 18px;
    display: flex;
    gap: 1.5rem;
}


.drama-desc {
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 22px;
}

/* 标签组 */
.tag-group {
    margin-bottom: 20px;
}

.tag-group .badge {
    background-color: #2d2d2d;
    color: #bbb;
    border: none;
    margin-right: 8px;
    margin-bottom: 8px;
}

.list-container .item {
    display: flex;
    flex-direction: row;
    border-radius: 1rem;
    overflow: hidden;
}

.list-container .item img {
    width: 10rem;
}

.card-body{
    flex: 1 1 0;
    min-width: 0;
}

.list-container .item h5 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-container .item p {
    font-size: 0.8rem !important;
    line-height: 1.3rem;
    max-height: calc(1.3rem * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-box {
    padding: 0 4rem;
}

#swiper1 {
    height: 300px;
}

.swiper-wrapper .cover-img {
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    border-radius: 1rem;
}

.swiper-step-button {
    width: 2.646rem;
    height: 2.646rem;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background-color: rgba(128, 128, 128, 0.4);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    top: calc(50% - 1.323rem);
}

#swiper-prev {
    left: 0.5rem;
}

#swiper-next {
    right: 0.5rem;
}

.download-container {
    height: 180px;
    margin-top: 1rem;
    align-items: center;
}

.download-container img {
    width: 200px;
    height: auto;
}

#Download .visible {
    display: none;
}


/* 响应式调整 */
@media (max-width: 768px) {
    .drama-poster-horizontal {
        min-width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .drama-content {
        padding: 20px 15px;
    }

    .list-container .item {
        border-radius: 0.3rem;
    }

    .list-container .item img {
        width: 5rem;
    }

    .card-body{
        flex: 1 1 0;
        min-width: 0;
    }

    .list-container .item h5 {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .list-container .item p {
        font-size: 0.3rem;
        line-height: 1.3rem;
        max-height: calc(1.3rem * 3);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 1025px) {
    .playlet-item:hover .cover-img .playlet-title {
        opacity: 1;
    }

    .playlet-item:hover > .playlet-title p {
        opacity: 0;
    }

    .introduce-box {
        margin-bottom: 12rem !important;
    }

    .introduce-box h1 {
        font-size: 4.35rem !important;
        text-wrap: nowrap;
    }

    #Download {
        width: 100%;
        justify-content: center;
        display: flex;
    }

    #Download a {
        flex: 0 1 auto;
        width: auto;
    }
}
