/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
    color: #000;
    font-family:"./朱雀仿宋.ttf";
    font-size: 2em;
}

/* 顶部标题区域 */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    background-image: url("https://i.postimg.cc/vH1D8kLX/image.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    background-image: linear-gradient(to right,yellow, red);
    background-size: 0 3px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: 1s;
}

.header a {
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.header h1:hover {
    background-size:100% 3px;
}

.header hr {
    width: 60%;
    margin-bottom: 20px;
}

.intro-list {
    list-style: none;
    text-align: center;
}

.intro-list li {
    margin-top: 10px;
    font-size: 1.2rem;
    max-width: 800px;
    color: #000;
    background-image: linear-gradient(to right,skyblue,pink, rgb(212, 118, 212));
    background-size: 0 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: 1s;
}

.intro-list li:hover {
    background-size:100% 2px;
}

/* 内容区 */
.ys-lvtu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}
.ys-lvtu span{
    color: #eee;
    font-weight: bold;
}

/* 每一个地区卡片 */
.box {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.box > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.85;
}

.box:hover > img {
    transform: scale(1.05);
    opacity: 1;
}
.huiyi {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    color: #000;
    text-align: center;
    justify-content: center;
    line-height: 100px;
}

.huiyi1 {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.5rem;
    background-image: url(../tp/ys11.jpg);
    background-size: cover;
}

.huiyi1 > a{
    text-decoration: none;
    color: #000;
}

.huiyi1 >a:hover {
    transition: all 0.2s ease;
    border-bottom: 3px solid rgb(230, 190, 31);
    font-weight: bold;
}
.huiyi2 {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}



/* 鼠标悬停遮罩层 */
.hidden-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 20%, rgba(16, 13, 13, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box:hover .hidden-1 {
    opacity: 1;
}

.hidden-3 {
    font-size: 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.hidden-3:hover {
    transform: translateY(-5px);
}

.hidden-3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 40%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.hidden-3:hover::after {
    width: 60%;
    background-color: #ffc107;
}

.img5 {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* 角色立绘 */
.hidden-2, .hidden-4 {
    position: absolute;
    height: 95%;
    width: auto;
    top: 5%;
    object-fit: contain;
    pointer-events: none;
}

.hidden-2 { right: 5%; }
.hidden-4 { left: 5%; }

/* =========================================== */
/* 二级界面样式 */
/* =========================================== */

.lvtu2 {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
}

.lvtu2.active {
    display: block; /* 激活显示 */
}

.lvtu2 .container {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    padding-bottom: 20px;
}

.title-section {
    background: #f9f9f9;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    border-bottom: 2px solid #eee;
}

.region-icon {
    width: 40px;
    height: 40px;
}

.region-title {
    font-size: 2.5rem;
    color: #000;
    text-align: center;
}

.content-section {
    padding: 25px;
}

.guo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.lvtu-jt {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.lvtu-jt:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.lvtu-jt h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 8px;
}

.lvtu-jt span {
    display: block;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.lvtu-jt img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
}

/* 关闭按钮 */
.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: pink;
}
.footer {
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.footer a {
    text-decoration: none;
    color: #e5b4b4;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .box {
        width: 100%;
        height: 220px;
    }

    .hidden-3 {
        font-size: 2rem;
        padding: 10px 20px;
    }

    .lvtu2 .container {
        width: 95%;
        margin: 20px auto;
    }

    .region-title {
        font-size: 1.8rem;
    }
    
    .guo {
        grid-template-columns: 1fr;
    }
}