
@charset "utf-8";

/* =============================================
   动漫详情页 · 红色主题重制版
   适配织梦内容页结构 | 全类名兼容
============================================= */
:root {
    /* 红色主题色阶 */
    --color-primary: #D0021B;
    --color-primary-light: #E63946;
    --color-primary-dark: #9B0015;
    --color-primary-bg: rgba(208, 2, 27, 0.06);
    
    /* 中性色 */
    --color-text: #222;
    --color-text-light: #666;
    --color-text-lighter: #999;
    --color-border: #ECECEC;
    --color-bg: #F8F8F8;
    --color-white: #FFFFFF;
    
    /* 通用规范 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
}

ul, ol, li, dl, dd {
    list-style: none;
}

img {
    border: 0;
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.clear {
    clear: both;
    height: 0;
    overflow: hidden;
}

/* ========== 顶部头部 ========== */
.topbg {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 10;
}

.top {
    width: 1200px;
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: block;
}

.logo img {
    height: 52px;
    width: auto;
}

.top_tel {
    display: flex;
    align-items: center;
}

.top_tel p {
    font-size: 14px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top_tel p font {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: "Arial Black", sans-serif;
    letter-spacing: 0.5px;
    font-style: normal;
}

/* ========== 主导航栏 ========== */
.navbg {
    width: 100%;
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(208, 2, 27, 0.18);
    position: relative;
    z-index: 100;
}

.nav {
    width: 1200px;
    height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav > li {
    position: relative;
    height: 54px;
    line-height: 54px;
    padding: 0 26px;
    float: left;
}

.nav > li > a {
    display: block;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav > li > a::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav > li:hover > a::after {
    width: 70%;
}

/* 下拉菜单占位样式 */
.nav li dl {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 130px;
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    padding: 6px 0;
}

.nav li:hover dl {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav li dl dd {
    line-height: 38px;
    text-align: center;
}

.nav li dl a {
    display: block;
    color: var(--color-text);
    font-size: 14px;
    padding: 0 18px;
}

.nav li dl a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* 右侧登录注册 */
.top-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 54px;
}

.top-right li {
    float: left;
    line-height: 54px;
}

.top-right a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.top-right a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* ========== 主体内容区 ========== */
.content {
    width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
}

/* 右侧主内容 */
.right {
    flex: 1;
    min-width: 0;
}

/* 内容页标题栏 */
.right_title {
    height: 46px;
    line-height: 46px;
    margin-bottom: 20px;
    padding: 0 20px;
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.right_name {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
}

.right_title p {
    font-size: 13px;
    color: var(--color-text-light);
}

.right_title p a {
    color: var(--color-text-light);
}

.right_title p a:hover {
    color: var(--color-primary);
}

/* 内容详情区 */
.right_con {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px 40px;
    box-shadow: var(--shadow-sm);
}

.right_con h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

.right_con .date {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-lighter);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--color-border);
}

.right_con .date span {
    color: var(--color-primary);
    font-weight: 500;
}

/* 内容图片优化 */
.right_con p img {
    max-width: 100%;
    height: auto !important;
    margin: 18px auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: zoom-in;
}

.right_con p img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(208, 2, 27, 0.12);
}

/* 分页区域 */
.pagee {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    position: relative;
    font-size: 14px;
    color: var(--color-text-light);
}

.pagee p {
    line-height: 28px;
    margin-bottom: 6px;
}

.pagee .back {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 6px 18px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
}

.pagee .back:hover {
    background-color: var(--color-primary-light);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ========== 友情链接 ========== */
.links_bg {
    width: 100%;
    background-color: #2A2A2A;
    padding: 14px 0;
    margin-top: 30px;
}

.links {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: #BBB;
    font-size: 13px;
}

.links img {
    width: 30px;
    height: 30px;
    margin-right: 6px;
    border-radius: 4px;
}

.links span {
    font-weight: 500;
    color: var(--color-white);
    margin-right: 8px;
}

.links a {
    color: #BBB;
    font-size: 13px;
    margin-right: 16px;
}

.links a:hover {
    color: var(--color-primary-light);
}

/* ========== 页脚 ========== */
.foot_bg {
    width: 100%;
    background-color: #F0F0F0;
    padding: 22px 0;
    border-top: 1px solid var(--color-border);
}

.foot {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 2.2;
}

.foot p {
    margin-bottom: 4px;
}

.foot p span {
    margin: 0 12px;
}

.foot a {
    color: var(--color-primary);
}

.foot a:hover {
    text-decoration: underline;
}

.foot_nav {
    width: 100%;
    background-color: #222;
    color: #888;
    text-align: center;
    line-height: 48px;
    font-size: 12px;
}

/* ========== 响应式适配 ========== */
@media screen and (max-width: 1240px) {
    .top, .nav, .content, .links, .foot {
        width: 100%;
    }
}

@media screen and (max-width: 960px) {
    .nav > li {
        padding: 0 14px;
    }
    .right_con {
        padding: 20px;
    }
    .right_con h1 {
        font-size: 22px;
    }
}

@media screen and (max-width: 640px) {
    .top {
        height: auto;
        padding: 14px 20px;
        flex-direction: column;
        gap: 10px;
    }
    .top_tel {
        display: none;
    }
    .nav > li {
        padding: 0 10px;
    }
    .nav > li > a {
        font-size: 14px;
    }
    .right_con {
        padding: 16px;
    }
    .right_con h1 {
        font-size: 18px;
    }
}
