/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础配色方案 */
:root {
    --primary-red: #c83d3d; /* 混天绫红 */
    --accent-gold: #ffd700; /* 乾坤圈金 */
    --dark-bg: #36425f;
}

body {
    width: 100%;
    min-width: 1520px;
    background: rgb(57, 67, 98);
}

/* 导航栏样式 */
.main-nav {
    width: 1400px;
    background-size: cover;
    height: 50px;
    margin: 0 auto;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    top: 0;
    padding-top: 18px;
    padding-bottom: 10px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.3s;
    font-size: 22px;
}

.main-nav a:hover {
    background: var(--accent-gold);
    color: white;
}

/*字体注册*/
@font-face {
    font-family: "zjm";
    src: url("../img/font.ttf");
    font-weight: normal;
    font-style: normal;
}

/* 页面基础正文 */
.Apppage {
    width: 100%;
    margin: 0 auto;
}

/* 固定宽度容器 */
.main-container {
    width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.slider {
    position: relative;
    width: 30%;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.introduce {
    position: relative;
    width: 100%;
    background-image: url("../img/backbround.webp");
    background-size: cover, cover;
    height: 620px;
    padding: 20px;
    margin-top: -10px;
}

.title {
    width: 50%;
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

.title h1 {
    font-size: 44px;
    color: white;
    font-family: "zjm";
}

.title h2 {
    font-size: 26px;
    color: white;
    font-weight: 460;
}

.title p {
    font-size: 18px;
    color: white;
    font-weight: 320;
    text-indent: 2em;
    line-height: 30px;
}

.character {
    width: 100%;
    display: flex;
    margin-top: 40px;
}

.character-left {
    border-radius: 10px;
    width: 50%;
    padding: .4rem;
    background: white;
    height: 760px;
    min-height: 600px;
    margin: auto;
    overflow: hidden;
    display: grid;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    grid-template-columns: 1fr .7fr .3fr 1fr;
    grid-template-rows: 20% 40% 20% 20%;
    grid-template-areas: 'one two two three'
    'four five five five'
    'six five five five'
    'six seven eight eight';
}

.character-right {
    width: 50%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 0;
}

.child img:hover {
    transform: scale(1.1);
}

.child {

    &:nth-child(1),
    &:nth-child(2),
    &:nth-child(3) {
        img {
            width: 120%;
            height: 120%;
        }
    }

    &:first-child {
        grid-area: one;
        clip-path: polygon(0% 0%, 93.24% 0%, 105.04% 110.16%, 0% 90%);
    }

    &:nth-child(2) {
        grid-area: two;
        clip-path: polygon(0% 0%, 108.28% 0%, 96.45% 110.13%, 10.55% 110.93%);
    }

    &:nth-child(3) {
        grid-area: three;
        clip-path: polygon(15.05% 0%, 100% 0%, 99.35% 91.7%, 3.08% 108.48%);
    }

    &:nth-child(4) {
        grid-area: four;
        clip-path: polygon(0% -0.85%, 106.34% 9.98%, 121.32% 65.63%, 99.66% 109.89%, 1.86% 124.41%);

        img {
            width: 135%;
            height: 135%;
        }
    }

    &:nth-child(5) {
        grid-area: five;
        clip-path: polygon(6.4% 6.48%, 47.24% 5.89%, 100% 0%, 98.41% 96.85%, 53.37% 100%, 53% 63.21%, 3.23% 73.02%, 14.30% 44.04%);
    }

    &:nth-child(6) {
        grid-area: six;
        clip-path: polygon(2.14% 29.3%, 99.34% 15.42%, 98.14% 100.82%, 1.57% 101.2%);
    }

    &:nth-child(7) {
        grid-area: seven;
        clip-path: polygon(7.92% 33.47%, 96.31% 23.39%, 95.38% 100%, 5.30% 100.85%);
    }

    &:nth-child(8) {
        grid-area: eight;
        clip-path: polygon(2.5% 22.35%, 100% 0%, 100% 100%, 1.55% 100%);
    }

    &:nth-child(9) {
        grid-row-start: 3;
        grid-row-end: 4;
        grid-column-start: 2;
        grid-column-end: 4;

        clip-path: polygon(5.94% 28.66%, 100.61% -0.67%, 101.1% 108.57%, 5.4% 126.28%);

        img {
            object-position: 30% 50%;
            height: 135%;
        }
    }
}

.voice-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.voice-table th {
    background: rgba(255, 255, 255, 0.15);
    /*background: linear-gradient(45deg, #c83d3d 0%, #ffd700 100%);*/
    padding: 1.2rem;
    font-size: 1.1rem;
    text-align: left;
    color: white;
}

.voice-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: white;
}

.voice-table tr:not(:first-child):hover td {
    background: rgba(200, 61, 61, 0.1);
    transform: translateX(10px);
}

.voice-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.role-highlight {
    color: #ffd700;
    font-weight: bold;
}

.voice-table-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #ffd700;
    font-family: "zjm";
}

.container-title {
    color: #ffd700;
    text-align: center;
    margin-top: 30px;
    font-size: 33px;
    font-family: "zjm";
}

.music {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    /* 相对定位 */
    position: relative;
    width: 300px;
    height: 450px;
    margin: 20px;
    background-color: rgba(200, 61, 61, 0.5);
    border-radius: 20px;
    /* 溢出隐藏 */
    overflow: hidden;
    /* 弹性布局 */
    display: flex;
    /* 元素纵向排列 */
    flex-direction: column;
    /* 居中 */
    align-items: center;
    color: #fff;
    /* 阴影 */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* 不让其被挤压 */
    flex-shrink: 0;
}

.card .photo img {
    width: 100%;
    height: 100%;
    /* 保持原有尺寸比例，裁切长边 */
    object-fit: cover;
}

/* 默认大图 */
.card .photo {
    /* 绝对定位 */
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0%;
    overflow: hidden;
    /* 动画过渡 */
    transition: 0.5s;
}

/* 鼠标移入变小图 */
.card:hover .photo {
    top: 30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* 这里加个黑色到透明的渐变背景，可以更好的看清楚名字 */
.card .photo::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, #222);
}

.card h1 {
    position: absolute;
    top: 370px;
    transition: 0.5s;
    font-size: 30px;
    font-family: "zjm";
    font-weight: 600;
}

.card:hover h1 {
    top: 170px;
}

.card h2 {
    margin-top: 220px;
    width: 80%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.card p {
    width: 90%;
    text-indent: 32px;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 20px;
}

.card a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 32px;
    border-radius: 8px;
}

.card a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.story {
    width: 100%;
    display: flex;
    margin-top: 40px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.4);
}

.story-text {
    width: 50%;
    height: 350px;
    padding: 20px;
}

.story-text p {
    line-height: 30px;
    color: white;
    font-weight: 290;
    text-indent: 2em;
    font-size: 18px;
}

.story-img {
    width: 50%;
    height: 350px;
    padding: 20px;
}

.story-img img {
    width: 100%;
    border-radius: 20px;
}

.index-chart {
    width: 100%;
    height: 800px;
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    border-radius: 30px;
    padding-top: 30px;
    margin-top: 20px;
    padding-left: 20px;
}

#boxOfficeChart {
    width: 100%;
    height: 100%;
}

.dragon-footer {
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.dragon-footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 20px;
    opacity: 0.3;
}

.footer-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gold-text {
    color: #ffd700;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.beian {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 12px;
}

.link-item {
    color: #ffd700;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.link-item:hover {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.divider {
    color: rgba(255, 215, 0, 0.5);
    margin: 0 20px;
}

.card a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.story {
    width: 100%;
    display: flex;
    margin-top: 40px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.4);
}

.story-text {
    width: 50%;
    height: 350px;
    padding: 20px;
}

.story-text p {
    line-height: 30px;
    color: white;
    font-weight: 290;
    text-indent: 2em;
    font-size: 18px;
}

.story-img {
    width: 50%;
    height: 350px;
    padding: 20px;
}

.story-img img {
    width: 100%;
    border-radius: 20px;
}

.index-chart {
    width: 100%;
    height: 800px;
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    border-radius: 30px;
    padding-top: 30px;
    margin-top: 20px;
    padding-left: 20px;
}

#boxOfficeChart {
    width: 100%;
    height: 100%;
}
