/* 2-1 到 2-5 的样式 */

/* Banner轮播图 */
.banner-section {
    margin: 20px 0;
    position: relative;
}
.banner-images {
    position: relative;
}
.banner-section img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: none;
}
.banner-section img:first-child {
    display: block;
}
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}
.banner-prev {
    left: 10px;
}
.banner-next {
    right: 10px;
}
.banner-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.banner-indicators .indicator {
    width: 30px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-indicators .indicator.active {
    background-color: rgba(255, 255, 255, 1);
}
/* 大家都在看 */
.popular-section {
    margin: 20px 0;
}
.popular-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.popular-item {
    text-align: center;
}
.popular-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

/* 国产动漫 */
.domestic-section {
    margin: 20px 0;
}
.domestic-content {
    overflow: hidden;
}
.domestic-left {
    float: left;
    width: calc(100% - 300px);
}
.domestic-right {
    float: right;
    width: 280px;
}
.domestic-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.domestic-top .anime-item {
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.domestic-top .anime-item img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}
.domestic-top .anime-item p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}
.domestic-bottom ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.domestic-bottom li {
    margin: 5px 0;
}
.domestic-right ol {
    list-style: none;
    padding: 0;
}
.domestic-right li {
    margin: 5px 0;
    padding: 0;
    background: #f8f8f8;
    border-radius: 4px;
     overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.domestic-right li a {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}
.domestic-right li:hover {
    background: #ff6600;
    color: white;
}
.domestic-right li > span {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}
.top-rank {
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
}
/* 页脚样式 */
.footer-section {
    background-color: #f8f8f8;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

/* 页脚布局重新规划（从左到右依次显示） */
.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    margin: 0 10px;
}

.dbu_logo {
    text-align: left;
    margin-bottom: 10px;
}

.dbu_logo img {
    width: 150px;
    height: auto;
}

.dbu_logo p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin: 8px 0;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff6600;
}

.footer-contact li {
    color: #666;
    line-height: 1.6;
}

.ftcode {
    display: flex;
    gap: 15px;
}

.ftcode-item {
    text-align: center;
}

.ftcode-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.ftcode-item p {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.footer-copyright {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}

.footer-copyright a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

.footer-copyright a:hover {
    color: #ff6600;
}


.domestic-right li:nth-child(1) .top-rank {
    background: #ff0000;
}
.domestic-right li:nth-child(2) .top-rank {
    background: #ff6600;
}
.domestic-right li:nth-child(3) .top-rank {
    background: #ffcc00;
}
.domestic-right li:nth-child(4) .top-rank {
    background: #33cc33;
}
.domestic-right li:nth-child(5) .top-rank {
    background: #3399ff;
}
.domestic-right li:nth-child(n+6) .top-rank {
    background: #999999;
}
.domestic-right li span:last-child {
    margin-left: auto;
    white-space: nowrap;
}

/* 动漫榜单标题样式 */
.ranking-title {
    margin: 20px 0;
    overflow: hidden;
}
.ranking-title .more-link {
    float: right;
    font-size: 14px;
    color: #ff6600;
    text-decoration: none;
}

/* 日本动漫 */
.japan-section {
    margin: 20px 0;
}
.japan-list {
    overflow: hidden;
    list-style: none;
    padding: 0;
}
.japan-item {
    float: left;
    width: calc(14.2857% - 13px); /* 100% / 7 - 15px */
    margin-right: 15px;
    text-align: center;
    position: relative;
    min-height: 240px; /* 固定最小高度 */
}
.japan-item:nth-child(7n) {
    margin-right: 0;
}
.japan-item img {
    width: 100%;
    object-fit: cover; /* 确保图片填充不变形 */
    border-radius: 8px; /* 可选：圆角 */
}
.japan-item .rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 4px;
    z-index: 1; /* 确保评分在图片上方 */
}
.japan-item .anime-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    word-break: break-word; /* 防止名称过长换行 */
}

/* 欧美动漫 */
.western-section {
    margin: 20px 0;
}
.western-list {
    overflow: hidden;
    list-style: none;
    padding: 0;
}
.western-item {
    float: left;
    width: calc(14.2857% - 13px); /* 100% / 7 - 15px */
    margin-right: 15px;
    text-align: center;
    position: relative;
    min-height: 240px; /* 固定最小高度 */
}
.western-item:nth-child(7n) {
    margin-right: 0;
}
.western-item img {
    width: 100%;
    border-radius: 8px; /* 圆角 */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    object-position: top;
    height: 300px;
}
.western-item .rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 4px;
    z-index: 1; /* 确保评分在图片上方 */
}
.western-item .anime-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    word-break: break-word; /* 防止名称过长换行 */
}


/* 动漫资讯 */
.news-section {
    margin: 20px 0;
}
.news-content {
    display: block;
    overflow: hidden;
}
.news-left {
    float: left;
    width: calc(100% - 420px); /* 整体宽度减去右边部分的宽度 */
    box-sizing: border-box;
    margin-right: 20px; /* 添加右边距 */
}
.news-left ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
}
.news-left li {
    margin: 0;
    padding: 0;
}
.news-left li:nth-child(3n+1) {
    margin-left: 0;
}
.news-left li:nth-child(3n) {
    margin-right: 0;
}
.news-middle {
    margin: 0 20px;
    flex: 1;
}
.news-right {
    width: 400px;
    float: right;
}
.news-right a {
    display: block;
}
.news-right img {
    width: 100%;
    height: auto;
}
.news-left ul {
    list-style: none;
    padding: 0;
}
.news-left .new_item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    float: left;
    box-sizing: border-box;
}
.news-left .news_tit {
    margin-bottom: 10px;
}
.news-left .news_tit a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.news-left .news_tit a:hover {
    color: #ff6600;
}
.news-left .new_des {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}
.news-left .news_bott {
    display: block;
    overflow: hidden;
    font-size: 12px;
    color: #999;
}
.news-left .news_bott .news-meta {
    float: left;
    margin-right: 10px;
}
.news-left .news_bott .views {
    float: left;
    margin-right: 10px;
}
.news-left .news_bott a {
    color: #ff6600;
    text-decoration: none;
}
.news-left .news_bott a:hover {
    text-decoration: underline;
}
.news-middle ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.news-middle .news-item {
    text-align: center;
}
.news-middle .news-item img {
    width: 100%;
    height: auto;
}
.news-middle .news-item p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* 动漫榜单 */
.ranking-section {
    margin: 20px 0;
}
.ranking-content {
    display: block;
    overflow: hidden;
}
.ranking-item {
    display: block;
    float: left;
    width: 25%;
    box-sizing: border-box;
}
.ranking-item ol {
    list-style: none;
    padding: 0;
}
.ranking-item li {
    margin: 5px 0;
}
.ranking-item .top-rank {
    background: #ff6600;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
}

/* 榜单主容器样式 */
.bangdan_main {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: space-between;
}

/* 榜单项目样式 */
.bangdan-item {
    flex: 1;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* APP下载广告样式 */
.app-ad {
    width: 220px;
    background: linear-gradient(135deg, #ff6600, #ff9900);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
    flex-shrink: 0;
}

.app-ad h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.app-ad .qr-code {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    display: inline-block;
}

.app-ad .qr-code img {
    width: 120px;
    height: 120px;
    display: block;
}

.app-ad p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.app-ad .download-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.app-ad .download-btn:hover {
    background: white;
    color: #ff6600;
}

.bangdan-item h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 8px;
    background-color: rgba(255, 102, 0, 0.05);
    padding: 8px 0;
    border-radius: 4px;
    height: 50px;
    line-height: 50px;
}

.bangdan-item h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6600;
    border-radius: 3px;
}

.bangdan-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bangdan-item li {
    margin: 8px 0;
    white-space: nowrap;
    overflow: hidden;
}

.bangdan-item li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.bangdan-item li a:hover {
    color: #ff6600;
}

/* 榜单数字样式 */
.bdnum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 前三名特殊颜色 */
.bangdan-item li:nth-child(1) .bdnum {
    background: #ff0000;
}

.bangdan-item li:nth-child(2) .bdnum {
    background: #ff6600;
}

.bangdan-item li:nth-child(3) .bdnum {
    background: #ffcc00;
    color: #333;
}

/* 其他排名默认颜色 */
.bangdan-item li:nth-child(n+4) .bdnum {
    background: #999999;
}

.title {
    width: 100%;
    overflow: hidden;
}

.title h2 {
    float: left;
}

.title a {
    float: right;
}
.footer-section {
    background-color: #f8f8f8;
    padding: 20px 0;
    border-top: 1px solid #e7e7e7;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 20px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    padding: 0 20px;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.footer-links ul, .footer-contact ul, .footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li, .footer-social li {
    margin-bottom: 10px;
}

.footer-links a, .footer-social a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover, .footer-social a:hover {
    color: #000;
}

.footer-copyright {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #e7e7e7;
    margin-top: 20px;
}

.footer-copyright p {
    margin: 0;
    color: #666;
}

.footer-copyright a {
    color: #666;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #000;
}

.ftcode-item img {
    width: 150px;
}

.ftcode-item {
    float: left;
    margin-right: 15px;
    margin-left: 15px;
}

.ftcode {
    overflow: hidden;
    padding: 20px;
    text-align: center;
}
.dbu_logo {
    text-align: left;
    width: 200px;
    line-height: 25px;
    font-size: 13px;
}