/*
 * PC首页布局优化
 * 主题：简洁、现代、绿色品牌风格
 */

/* 基础页面 */
body {
    background: #f5f7fa;
    color: #303133;
}

nav.w1200,
.ey_art,
.eyou_yx,
.zhuanji,
.eyou_gall,
.ey_ruanjian,
.index_rank,
.link {
    box-sizing: border-box;
}

/* 顶部提示条 */
.ey_up {
    height: 32px;
    background: #f4f6f8;
    border-bottom: 1px solid #edf0f2;
}

.ey_up p {
    line-height: 32px;
    color: #7a8491;
}

/* Logo和搜索区域 */
.header {
    height: 100px;
    background: #fff;
}

.header header.w1200 {
    height: 100px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header header.w1200 > a {
    width: 230px;
    height: 70px;
    margin: 0;
    display: flex;
    align-items: center;
}

.header header.w1200 > a > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 230px;
    max-height: 70px;
    object-fit: contain;
}

.eyou_input {
    width: 390px;
    margin: 0;
}

.eyou_input form {
    position: relative;
    width: 100%;
}

.eyou_input input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 0 84px 0 42px;
    box-sizing: border-box;
    border: 1px solid #D6E4F7;
    border-radius: 22px;
    background-position: 15px center;
    background-color: #fafcfb;
    color: #333;
    transition: all .25s ease;
}

.eyou_input input[type="text"]:focus {
    border-color: #1677FF;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .10);
}

.eyou_input input[type="text"]::placeholder {
    color: #a0a7af !important;
}

.eyou_input button {
    top: 4px;
    right: 4px;
    width: 72px;
    height: 34px;
    border-radius: 18px;
    background: #1677FF;
    font-size: 14px;
    transition: background .25s ease;
}

.eyou_input button:hover {
    background: #0D5BCA;
}

/* 主导航 */
.eyou_nav {
    height: 60px;
    background: #1677FF;
    box-shadow: 0 3px 12px rgba(15, 95, 215, .14);
}

#menu {
    height: 60px;
}

.eyou_nav .eyou_zdh {
    width: 1200px;
    height: 60px;
}

.eyou_nav .nav-item {
    width: auto;
    flex: 1;
}

.eyou_nav ul > li > a {
    height: 60px;
    font-size: 18px;
    font-weight: 500;
    transition: background .2s ease;
}

.eyou_nav .nav-item:hover > a,
.eyou_nav .nav-item > a.menu-active {
    background: #0F5FD7;
}

.ey_sme {
    top: 60px;
    left: 50%;
    width: 320px;
    height: auto;
    min-height: 56px;
    padding: 12px 20px;
    border: 0;
    border-radius: 0 0 10px 10px;
    background: #0F5FD7;
    transform: translateX(-50%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.ey_sme::before {
    display: none;
}

/* 图标导航区域 */
nav.w1200 {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #edf0f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(32, 74, 140, .05);
}

.Navigation {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 12px;
}

.Navigation a {
    min-width: 0;
    padding: 12px 6px;
    border-radius: 12px;
    text-align: center;
    transition: all .25s ease;
}

.Navigation a:hover {
    background: #F2F7FF;
    transform: translateY(-3px);
}

.Navigation a img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
    color: transparent;
    background-color: #f7f9f8;
    border: 1px solid #eef1ef;
    border-radius: 16px;
}

.Navigation a span {
    width: 100%;
    margin-top: 10px;
    color: #353b38;
    font-size: 14px;
    line-height: 22px;
}

/* 三组推荐词 */
.ey_txtbar {
    width: 100%;
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    background: transparent;
}

.ey_txtbar > div {
    min-height: 108px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    background: #fff;
}

.ey_txtbar > div > button {
    width: 38px;
    height: 100%;
    padding: 10px 8px;
    background-image: none;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

.ey_navtxtbar > button {
    background: linear-gradient(180deg, #ff7195, #f44978);
}

.ey_txtbaro > button {
    background: linear-gradient(180deg, #ffbd51, #ff9f24);
}

.ey_txtbart > button {
    background: linear-gradient(180deg, #78AEFF, #3E7DE0);
}

.ey_txtbar > div > div {
    width: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 9px;
    align-content: center;
}

.ey_txtbar > div > div > a {
    width: auto;
    height: 30px;
    margin: 0 !important;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f9f8;
    color: #59615d;
    font-size: 13px;
    line-height: 30px;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey_txtbar > div > div > a:hover {
    background: #EAF3FF;
    color: #1268D8;
}

/* 轮播图和头条区域 */
.ey_art {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
    gap: 22px;
    align-items: stretch;
}

.ey_rot,
.eyou_tod {
    overflow: hidden;
    border: 1px solid #edf0f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(32, 74, 140, .05);
}

.ey_rot {
    width: auto;
    height: 350px;
}

.ey_rot_img {
    height: 350px;
    object-fit: cover;
}

.swiper-pagination {
    right: 18px !important;
    bottom: 14px !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.swiper-pagination span,
.swiper-pagination span:nth-child(1) {
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
    border: 0;
    background: rgba(255, 255, 255, .75);
    opacity: 1;
}

.swiper-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 5px;
    background: #1677FF;
}

.eyou_tod {
    padding: 22px 24px;
}

.eyou_tod h1 a {
    width: 100%;
    height: auto;
    margin: 0;
    color: #155FC2;
    font-size: 21px;
    line-height: 32px;
    text-align: left;
}

.eyou_tod p {
    width: 100%;
    margin: 10px 0 14px;
    color: #69716d;
    line-height: 24px;
    text-indent: 0;
}

.eyou_hot div {
    padding: 4px 0 0;
    border-top: 1px solid #edf0f2;
    border-bottom: 0;
}

.eyou_hot li {
    height: 39px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #edf0f2;
    text-indent: 0;
}

.eyou_hot li span {
    height: 39px;
    line-height: 39px;
}

.eyou_hot li span:nth-child(1) {
    width: calc(100% - 58px);
    padding-left: 15px;
    box-sizing: border-box;
    background-position: 0 center;
}

.eyou_hot li span:nth-child(2) {
    width: 58px;
    color: #a0a6a2;
    text-align: right;
}

/* 首页三栏资讯 */
.eyou_yx {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.game_news,
.hot_gl,
.latest_gl {
    width: auto;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(32, 74, 140, .04);
}

.eyou_alltxt {
    min-height: 34px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f2;
    background: none;
}

.eyou_alltxt p {
    position: relative;
    padding-left: 13px;
    color: #303733;
    font-size: 18px;
    text-indent: 0;
}

.eyou_alltxt p::before {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    border-radius: 3px;
    background: #1677FF;
    content: "";
}

.eyou_alltxt a {
    color: #8c938f;
}

.game_news li a,
.hot_gl li a,
.latest_gl li a {
    margin-top: 14px;
}

/* 下方各版块统一间距 */
.zhuanji,
.eyou_gall,
.ey_ruanjian,
.index_rank,
.link {
    margin-top: 26px;
}

.link {
    padding: 22px;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    background: #fff;
}

.link .content a {
    margin-top: 14px;
}

/* 交互细节 */
a,
button,
img {
    transition: all .22s ease;
}

/* 窄屏PC兼容 */
@media screen and (max-width: 1250px) {
    .w1200,
    #menu,
    .ey_art {
        width: calc(100% - 40px);
    }

    .eyou_nav .eyou_zdh {
        width: 100%;
    }

    .Navigation {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .ey_txtbar {
        grid-template-columns: 1fr;
    }

    .ey_art {
        grid-template-columns: 1fr;
    }

    .ey_rot {
        height: 400px;
    }

    .ey_rot_img {
        height: 400px;
    }

    .eyou_yx {
        grid-template-columns: 1fr;
    }
}
