/* 清除基本樣式 */
* {
    margin: 0;
    padding: 0;
}

/* 啟用flex布局 */
.flexRow {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* 窗口最小寬度 */
body {
    min-width: 1400px;
}

.mask {
    position: absolute;
    z-index: 998;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    visibility: hidden;
}

.login {
    width: 450px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    visibility: hidden;
}

.loginCancle {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.loginCancle:hover {
    content: url("../../img/home/nav/loginCancleHover.png");
}


.login p {
    margin: 30px 0;
    color: black;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    opacity: 0.85;
}

.login input,
.login button {
    box-sizing: border-box;
}

.login input {
    width: 85%;
    height: 48px;
    margin-top: 20px;
    padding: 0px 15px;
    display: inline-block;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid lightgray;
    outline: none;
    border-radius: 8px;
    font-size: 14px;
    background-color: rgb(250, 250, 250);
}

::placeholder {
    color: rgb(165, 165, 165);
}

.login input:focus {
    border: 1px solid rgba(189, 147, 112, 0.849);
}

.login button {
    display: block;
    border: none;
    border-radius: 8px;
    width: 85%;
    height: 48px;
    margin-top: 50px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(185, 185, 185);
    font-size: 18px;
    background-color: rgb(230, 230, 230);
    cursor: not-allowed;
}

.help {
    width: 85%;
    color: rgba(189, 147, 112, 0.849);
    margin-top: -5px;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.help span:hover {
    color: rgb(221, 187, 159);
    cursor: pointer;
}

.more {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.more div {
    width: 85%;
    height: 1px;
    border-top: 2px solid rgba(224, 224, 224, 0.8);
    position: absolute;
    top: 50%;
}

.more p {
    width: 25%;
    color: rgb(200, 200, 200);
    font-size: 14px;
    background: rgb(255, 255, 255);
}

.loginIcon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0 0 40px 0;
}

.loginIcon img {
    width: 40px;
    height: 40px;
    margin-right: 25px;
    cursor: pointer;
}

/* 有使用到z-index */
nav {
    /* 用fixed實現stick效果 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    
    width: 100%;
    height: 66px;
    color: #fff;
    background-color: rgba(17, 17, 17, 0.75);
    box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.35);
}

.logoBox {
    width: 317px;
    height: 105px;

    /* 啟用定位 */
    position: relative;
}

.logo {
    position: absolute;
    left: 10%; /* 控制水平位置 */
    width: 20%; /* 設置寬度為父容器的 20% */
    height: auto; /* 確保圖片比例不變 */
    border-radius: 50%; /* 將圖片裁剪為圓形 */
    object-fit: cover; /* 確保圖片內容適應圓形 */
}

/* 有使用到z-index */
.itemBox {
    width: 600px;
    height: 66px;
    line-height: 66px;
    z-index: 1;
    position: relative;
}

.navMark {
    width: 28px;
    border: 2.8px solid rgb(69, 182, 226);
    transition: 0.15s all linear;
    position: relative;
    top: 0;
}

.newsNavMark {
    position: absolute;
    left: 62px;
}

.charNavMark {
    position: absolute;
    left: 124px;
}

.dataNavMark {
    position: absolute;
    left: 186px;
}

.items {
    height: 66px;
    display: flex;
    flex-direction: row;
    width: 600px;
    position: absolute;
    top: 0;
    left: 0;
}

.itemBox a {
    margin-right: 30px;
    display: block;
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
}

.itemBox a:hover {
    opacity: 1;
    text-shadow: 0px 0px 15px rgb(22, 138, 184), 
                 0px 0px 15px rgb(22, 138, 184),
                 0px 0px 15px rgb(22, 138, 184),
                 0px 0px 15px rgb(22, 138, 184);
}

.itemBox .active {
    opacity: 1;
    text-shadow: 0px 0px 15px rgb(22, 138, 184), 
                 0px 0px 15px rgb(22, 138, 184),
                 0px 0px 15px rgb(22, 138, 184),
                 0px 0px 15px rgb(22, 138, 184);
}

.playBox {
    margin-left: auto;
}

.playBox div {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    cursor: pointer;
}

.playBox div:hover {
    opacity: 1;
}

.loginImg {
    width: 27px;
    height: 27px;
    margin: 0 20px;
    opacity: 0.8;
}

.itemBox .dataList {
    cursor: pointer;
}

.itemBox .dataList ul {
    width: 200px;
    text-shadow: none;
    list-style: none;
    background-color: rgba(17, 17, 17, 0.9);
    transform: translateX(-15px);
    display: none;
}

.itemBox .dataList ul li {
    padding-left: 15px;
}

.itemBox .dataList ul li:hover {
    background-color: rgba(110, 110, 110, 0.3);
}

.itemBox .dataList:hover ul {
    display: block;
}