/*
Theme Name: GameRob
Theme URI: https://example.com/gamerob
Author: Your Name
Author URI: https://example.com
Description: 一个现代化的游戏资讯WordPress主题
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamerob
*/

:root {
    --primary: 14 100% 57% !important;
}

@font-face {
    font-family: 'icomoon';
    src: url('/wp-content/themes/gamerob/assets/css/fonts/icomoon.woff?ver=1.0.0') format('woff'), url('/wp-content/themes/gamerob/assets/css/fonts/icomoon.woff2?ver=1.0.0') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.global-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.notification-content {
    display: flex;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.countdown-card {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 16px 32px;
    width: 100%;
    overflow: hidden;
    max-width: 100%;
}

.countdown-digit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 100px;
    background: rgba(122, 122, 122, 0.3);
    border-radius: 4px;
    margin: 0px 4px;
    font-size: 55px;
    line-height: 66px;
    color: white;
}

.countdown-label {
    margin-top: 8px;
    color: white;
    align-self: center;
    font-size: 12px;
}

.countdown-divider {
    margin: 32px 8px 8px;
    border-right-width: 3px;
    border-color: white;
    height: 44px;
    border-radius: 4px;
}

@media (min-width: 768px) and (max-width: 1155px) {
    .card {
        padding: 12px 20px;
    }

    .countdown-digit {
        width: 50px;
        height: 80px;
        font-size: 45px;
    }

    .countdown-divider {
        margin: 24px 4px 4px;
        height: 36px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .card h4 {
        font-size: 1.5rem;
    }

    .card h5 {
        font-size: 1rem;
    }
}

footer .menu-item {
    color: hsl(var(--muted-foreground));
}

.game-code-content .game-article-item a {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    text-decoration-line: underline;
    color: hsl(var(--primary));
    font-weight: 500;
}

.page-wiki-upcoming-games h2 {
    text-align: left;
}

/* 登录弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
}

.modal h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.remember-me label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: #FF5722;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    opacity: 0.9;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.form-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #000;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 90%;
    }

    .form-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="text"] {
        padding: 10px;
        font-size: 16px;
    }

    .form-group button {
        padding: 10px;
        font-size: 14px;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* 导航栏滚动样式 */
.site-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.page-code strong, .page-guide strong {
    color: inherit;
}
.page-code h2, .page-guide h2 {
    color: #000;
}

.code-content, .code-content code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#breadcrumbs {
    position: relative;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .comment-section-reply-item {
        margin-left: 1rem;
    }
}

@media (min-width: 1024px) {
    .code-content code {
        max-width: 102px;
    }

    #breadcrumbs {
        max-width: 1100px;
        padding-top: 1rem;
    }

    .comment-section-reply-item {
        margin-left: 2rem;
    }

    .thread-thumbnail {
        width: 320px;
    }
}

@media (max-width: 1023px) {
    #breadcrumbs {
        padding-top: 0.5rem;
        padding-left: 1rem;
    }
    #breadcrumbs .breadcrumbs {
        margin-bottom: 0.5rem !important;
    }
}

.w-comments-feed .comments-feed-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.thread-modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.thread-modal-content .close-btn {
    right: 2rem;
}

.thread-modal-content h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.thread-modal-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.thread-modal-content input[type="text"],
.thread-modal-content input[type="url"],
.thread-modal-content input[type="file"],
.thread-modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

.thread-modal-content button[type="submit"] {
    background-color: hsl(var(--primary));
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.thread-modal-content button[type="submit"]:hover {
    background-color: hsl(var(--primary-foreground));
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select select {
    display: none; /* 隐藏原生下拉框 */
}

.topic-select-selected {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

.topic-select-items {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 99;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.topic-select-items div {
    padding: 10px;
    cursor: pointer;
}

.topic-select-items div:hover {
    background-color: #f1f1f1;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
}

.custom-file-upload, .above-image button {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: white;
    transition: background-color 0.3s ease;
    margin: 0 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
}

input[type="file"] {
    display: none;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.nav-elements {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 0 .5rem;
    font-family: Roboto, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    color: #101010;
    line-height: 1em;
    height: 100%;
    transition: all .3s ease;
}
.nav-elements .i-logout:before {
    padding: 0;
    font-size: 1.5em;
    display: inline-grid;
    justify-content: center;
}

.w-drop-down {
    position: relative;
}

.nav-link.nav-link-user {
    position: relative;
    padding: .5rem;
    border-radius: 2rem;
    font-size: .75rem;
    gap: .25rem;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    white-space: nowrap;
    text-transform: capitalize;
    height: 2rem;
}

.nav-elements .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
}
.drop-down.nav-user .nav-elements a {
    padding: .75rem;
}
.icon:before {
    font-family: icomoon;
    speak: none;
    font-style: normal;
    font-weight: 400;
}
.icon.i-user-full:before {
    content: "\E96A";
}

.nav-link.nav-link-user img {
    border-radius: 14px;
    height: 28px;
    width: auto;
}
.drop-down {
    background: #fff;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    position: absolute;
    top: 2.25rem;
    right: 0;
    z-index: 1000;
    box-shadow: 0 5px 25px 0 rgba(51, 51, 51, .2);
    transition: all .2s ease;
}
.drop-down:before {
    content: "";
    position: absolute;
    top: -.25rem;
    right: .5rem;
    background: #fff;
    width: 1rem;
    height: 1rem;
    -webkit-clip-path: polygon(0 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    transform: rotate(135deg);
}
.nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .5rem;
}
.drop-down.nav-user {
    min-width: 120px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    padding: 0;
    gap: 0;
}
.w-drop-down:hover {
    cursor: pointer;
}
.w-drop-down:hover>.drop-down {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all .1s ease;
    height: auto;
}
.drop-down.nav-user .nav-link {
    width: 100%;
    display: grid;
    grid-template-rows: 20px;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
}
.drop-down.nav-user .nav-link {
    grid-template-columns: 20px 1fr auto;
}
@media (min-width: 768px) {
    .drop-down.nav-user .nav-link {
        grid-template-rows: 16px;
    }
}

.nav-elements:hover {
    opacity: .75;
}
.nav-elements.w-drop-down:hover {
    opacity: inherit;
}
.side-navigation-topbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0 7em;

}
.side-navigation-topbar .close-icon:before {
    font-family: icomoon;
    font-style: normal;
    font-weight: 400;
    content: "\E949";
}
.side-navigation-topbar .search-icon:before {
    font-family: icomoon;
    font-style: normal;
    font-weight: bolder;
    content: "\E944";
    font-size: 1rem;
    color: #101010;
    cursor: pointer;
}
.side-navigation-topbar .close-icon {
    cursor: pointer;
}
#menu-side .menu-item {
    font-size: 1.5rem;
    font-weight: 400;
    color: #101010;
    line-height: 1em;
    height: 100%;
    text-transform: uppercase;
}

#menu-side .menu-item a:hover {
    text-decoration: underline;
    text-decoration-color: #FF5722;
}

#side-navigation {
    position: fixed;
    top: 0;
    left: -1000px;
    background-color: #fff;
    z-index: 1000;
    width: 100%;
    height: 100dvh;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    transition: all .3s ease-in;
    gap: 4rem;
    padding: 2rem 2rem 4.5rem;
}

#menu-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
}
.sidenav-elements {
    display: flex;
    flex-direction: column;
    gap: 0 1rem;
    font-family: Roboto, sans-serif;
    color: #101010;
    text-transform: uppercase;
    transition: all .3s ease;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: none;
}
.sidenav-elements-avatar {
    width: 2rem;
}
.sidenav-elements-avatar img {
    border-radius: 78px;
}
.sidenav-elements-name {
    font-size: 1.25rem;
}
.sidenav-elements-arrow {
    cursor: pointer;
    color: #FF5722;
    margin-left: auto;
}
.sidenav-elements-arrow:before {
    font-family: icomoon;
    font-style: normal;
    content: "\E94C";
    font-size: 1.125rem;
    transform: rotate(0);
    transition: all .3s ease;
    display: block;
}
.sidenav-elements-arrow.active:before {
    content: "\E94C";
    font-size: 1.125rem;
    transition: all .3s ease;
    transform: rotate(-45deg);
    display: block;
}
.i-logout:before {
    font-family: icomoon;
    font-style: normal;
    font-weight: 400;
    content: "\E925";
}
.i-logout {
    color: #FF5722;
    font-size: 0.875rem;
}
.i-logout span:hover {
    border-bottom: 2px solid #FF5722;
}
#side-navigation .sfsi_shortcode_container {
    margin-left: -5px;
}
#side-navigation .sfsi_shortcode_container .sfsi_wDiv {
    display: flex;
    gap: 11px;
}
.i-user {
    font-size: 1.25em;
}
.i-user:before {
    font-family: icomoon;
    font-style: normal;
    font-weight: 400;
    content: "\E947";
}
.sidenav-elements .no-login a span:hover {
    border-bottom: 2px solid #FF5722;
}
#nav-left {
    position: absolute;
    line-height: 65px;
    cursor: pointer;
    left: 50%;
    transform: translateX(-50%);
    width: 1322px;
    z-index: -1;
}
#nav-left span:before,.relative-nav-left:before {
    content: "\E940";
    font-family: icomoon;
    font-style: normal;
    font-weight: 400;
    font-size: 1.5rem;
}
.relative-nav-left {
    cursor: pointer;
    display: none;
}
.nav-header-container {
    gap: 2rem;
    justify-content: space-between;
}
.custom-logo-link {
    flex-shrink: 0;
}
.nav-menu-container, .nav-menu-container li:not(:first-child) {
    margin: 0 1rem;
}
.header-search-content-side {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, .95);
    backdrop-filter: blur(8px);
    z-index: 19999999;
}
.header-search-content-close {
    position: absolute;
    top: 5px;
    right: 5px;
}
.header-search-content-close:before {
    font-family: icomoon;
    font-style: normal;
    font-weight: 400;
    content: "\E94B";
    font-size: 2rem;
    color: #f2f2f2;
    cursor: pointer;
    padding: 1rem;
}
.header-search-content-form {
    margin: 0 auto;
    width: 90%;
    position: relative;
    border:0;
}
.header-search-content-form:before {
    font-family: icomoon;
    font-style: normal;
    font-weight: 400;
    content: "\E944";
    color: #FF5722;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 22px;
}
.header-search-content-form input {
    font-size: 1.4em;
    font-weight: 700;
    color: #e2e2e2;
    font-family: Roboto, sans-serif;
    width: 100%;
    height: 100%;
    padding: 1rem 1rem 1rem 4rem;
    background: none;
    border: 1px solid hsl(var(--border));
}

@media screen and (max-width: 1322px) {
    #nav-left {
        display: none;
    }
    .relative-nav-left {
        display: block;
    }
    .nav-menu-container, .nav-menu-container li:not(:first-child) {
        margin: 0 !important;
    }
    .nav-header-container {
        justify-content: flex-start;
    }
}
@media screen and (max-width: 1096px) {
    #search-input-header {
        width: 12rem;
    }
}
@media screen and (max-width: 1024px) {
    .search-input-header-container {
        display: none;
    }
}

@media (min-width: 1024px) {
    .nav-link.nav-link-user {
        padding: 0;
        background-color: #fff;
        color: #181818;
    }
    .nav-link.nav-link-user.logged-in {
        padding: 2px 2px 2px 8px;
    }
    .nav-link.nav-link-user.logged-out {
        padding: 4px 8px;
    }
    .nav-link.nav-link-user:before {
        color: #FF5722;
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    #side-navigation {
        max-width: 420px;
        padding: 3rem 3rem 6rem;
        box-shadow: 100px 0 200px rgba(0,0,0,.3);
    }
}

@media (max-width: 767px) {
    .display-card.tag.large .w-img, .display-card.tag.medium .w-img, .display-card.tag.small .w-img, .display-card.tag.undefined .w-img {
        margin: 0 1rem;
        width: calc(100% - 2rem) !important;
        border-radius: 8px 8px 0 0;
    }

    .display-card.tag.large .w-img .body-img.portrait, .display-card.tag.medium .w-img .body-img.portrait, .display-card.tag.undefined .w-img .body-img.portrait {
        width: 50%;
        margin: 0 auto;
    }
}