@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+Condensed:wght@400;700;800&family=Kdam+Thmor+Pro&family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

* {
    transition: all 0.3s ease-in-out;
}

body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #111;
    background-size: cover;
    margin: 0;
    color: rgb(173, 168, 162);
}

.background-image {
    background: url('https://cn.rustnoob.com/assets/img/background.webp') no-repeat 50%/cover;
    height: 1000px;
    width: 100%;
    position: absolute;
    margin-top: -20px;
}

.background-gradient {
    position: absolute;
    width: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    height: 1080px;
    background: radial-gradient(at center -10%, rgba(0, 0, 0, 0) 35%, rgba(20, 24, 20, 1) 80%) rgba(20, 24, 20, 0.45);
    top: 0;
    z-index: 0;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgb(32, 38, 32);
}

::-webkit-scrollbar-thumb {
    background: rgb(43, 52, 43);
}

::-moz-selection {
    color: rgb(173, 168, 162);
    background: rgb(20, 24, 20);
}

::selection {
    color: rgb(173, 168, 162);
    background: rgb(41, 49, 41);
}

.container {
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .templar-nav {
        max-width: 1055px !important;
    }
}

/* 新导航样式 */
.templar-nav {
    display: flex !important;
    justify-content: space-between !important;
    box-sizing: unset !important;
    align-items: center !important;
    height: 60px !important;
    z-index: 20 !important;
    background-color: #1a1a1a !important;
    padding: 0 12px !important;
    position: relative !important;
    margin-top: 15px !important;
    max-width: 1055px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(95%) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

.templar-nav-logo img {
    height: 70px !important;
    transition: transform .175s !important;
    vertical-align: middle !important;
}

.templar-nav-logo img:hover {
    transform: scale(1.08) !important;
}

.templar-nav-links {
    display: flex !important;
    list-style: none !important;
    flex-grow: 1 !important;
    margin: 0 !important;
    padding-left: 25px !important;
}

.templar-nav-links li {
    padding: 0 15px !important;
}

.templar-nav-links a {
    color: #bdbbbb !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    transition: color 0.3s ease !important;
    font-size: 21px !important;
    font-family: 'Encode Sans Condensed' !important;
    text-transform: uppercase !important;
}

.templar-nav-links a:hover {
    color: #e4e4e4 !important;
}

.templar-nav-links a.active {
    color: #e4e4e4 !important;
}

.templar-nav-discord-button {
    background-color: #5865F2 !important;
    color: white !important;
    padding: 8px 18px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    line-height: normal !important;
    border-radius: 8px !important;
    transition: background-color 0.3s !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    display: flex !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    height: 24px;
}

.templar-nav-discord-button i {
    margin-right: 8px !important;
    font-size: 18px !important;
}

.templar-nav-discord-button:hover {
    background-color: #4750b4 !important;
    color: white !important;
}

.templar-nav-qq-button {
    background-color: #12b7f5 !important;
    color: white !important;
    padding: 8px 18px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    line-height: normal !important;
    border-radius: 8px !important;
    transition: background-color 0.3s !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    display: flex !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    margin-right: 0px !important;
    height: 24px;
}

.templar-nav-qq-button i {
    margin-right: 8px !important;
    font-size: 18px !important;
}

.templar-nav-qq-button:hover {
    background-color: #0e9bd3 !important;
    color: white !important;
}

.burger {
    display: none !important;
    cursor: pointer !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 31px !important;
    padding-left: 15px !important;
}

.burger div {
    width: 35px !important;
    height: 3px !important;
    border-radius: 20px !important;
    background-color: #d4d4d4 !important;
}

.nav-right-items {
    display: flex;
    align-items: center;
}

.language-switcher-item {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.language-switcher {
    display: flex;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 5px;
    padding: 5px;
    margin-left: 15px;
    align-items: center;
}

.position-relative {
    position: relative;
}

.language-switcher-desktop-outer {
    display: flex;
    position: absolute;
    top: 15px;
    right: 2.5%;
    z-index: 100;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 5px;
    padding: 8px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.language-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 5px;
    text-decoration: none;
    color: #bdbbbb;
    font-weight: bold;
    font-family: 'Encode Sans Condensed', sans-serif;
    transition: all 0.3s ease;
    border-radius: 3px;
    text-transform: uppercase;
}

.language-switcher a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.1);
}

.language-switcher a.active {
    background-color: #5865F2;
    color: #ffffff;
}

.mobile-discord-button-container {
    display: none;
    position: absolute;
    left: 38%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
}

.desktop-discord-button {
    display: flex;
}

.mobile-qq-button-container {
    display: none;
    position: absolute;
    left: 62%;
    transform: translate(-50%, -50%);
    top: 50%;
    z-index: 25;
}

.desktop-qq-button {
    display: flex;
    margin-left: 5px;
}

main {
    position: relative;
    padding: 20px 0;
}

.rust-link-container {
    margin-top: 50px;
    text-align: center;
}

.link-heading {
    color: rgb(220, 211, 202);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 38px;
    text-align: center;
    margin-bottom: 20px;
}

.link-info {
    color: rgb(220, 211, 202);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.justify-content-center {
    justify-content: center;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

.verification-container {
    background: rgba(25, 25, 25, .8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 50px;
}

.verification-step {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.verification-step h3 {
    font-size: 24px;
    color: #e4e4e4;
    margin-bottom: 20px;
    font-weight: 600;
}

.status-complete {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
    display: block;
}

.steamButton, .discordButton, .steamGroupButton {
    display: inline-block;
    padding: 15px 30px;
    width: 80%;
    max-width: 300px;
    margin: 15px auto;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.steamButton, .steamGroupButton {
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
}

.discordButton {
    background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
}

.steamButton:hover:enabled, .discordButton:hover:enabled, .steamGroupButton:hover:enabled {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.steamButton:active:enabled, .discordButton:active:enabled, .steamGroupButton:active:enabled {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.steamButton:disabled, .discordButton:disabled, .steamGroupButton:disabled {
    background: #333;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.steamInfo {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.steamInfo .label {
    font-weight: bold;
    color: #e4e4e4;
    display: inline-block;
    width: 120px;
}

.steamInfo .value {
    font-size: 18px;
    color: #fff;
}

.verification-complete {
    background: rgba(25, 25, 25, .8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    text-align: center;
    margin-bottom: 50px;
}

.status-icon {
    font-size: 60px;
    color: #2ecc71;
    margin-bottom: 20px;
}

.verification-message {
    font-size: 18px;
    margin-bottom: 30px;
}

.redirect-message {
    font-style: italic;
    color: #bdc3c7;
    margin-top: 20px;
}

.account-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.account-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.account-row:last-child {
    margin-bottom: 0;
}

.account-label {
    font-weight: bold;
    color: #e4e4e4;
    width: 100px;
    flex-shrink: 0;
}

.account-value {
    color: #fff;
    word-break: break-all;
}

.avatars {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.avatar-container {
    text-align: center;
}

.avatar-label {
    font-weight: 600;
    color: #e4e4e4;
    margin-bottom: 10px;
}

.avatar {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    height: 125px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-danger {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: rgb(6 79 137);
    color: rgb(204, 195, 190);
}

.btn-primary:hover {
    background: rgb(30 63 89);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgb(89, 85, 82);
    color: rgb(204, 195, 190);
}

.btn-secondary:hover {
    background: rgb(62 59 56);
    transform: translateY(-3px);
}

.btn-danger {
    background: rgb(150, 47, 32);
    color: rgb(199, 152, 151);
}

.btn-danger:hover {
    background: rgb(172, 56, 39);
    transform: translateY(-3px);
}

.unlink-container {
    background: rgba(25, 25, 25, .8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 50px;
}

.warning-message {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.warning-message i {
    font-size: 24px;
    margin-right: 15px;
}

.warning-message p {
    margin: 0;
}

/* 响应式样式 */
@media (max-width: 1250px) {
    .templar-nav-links {
        display: none !important;
        position: absolute !important;
        right: 0 !important;
        padding: 0 !important;
        padding-top: 10px !important;
        top: 52px !important;
        left: 0 !important;
        background-color: #1a1a1a !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .templar-nav-links li {
        padding: 15px 0 !important;
    }

    .burger {
        display: flex !important;
    }

    .nav-active {
        display: flex !important;
        z-index: 30 !important;
        border-bottom-right-radius: 10px !important;
        border-bottom-left-radius: 10px !important;
    }
    
    .language-switcher-desktop-outer {
        display: none;
    }
    
    .language-switcher-mobile {
        margin: 0 auto;
    }
    
    .nav-right-items {
        display: flex;
        align-items: center;
        position: relative;
    }
    
    .desktop-discord-button {
        display: none !important;
    }
    
    .mobile-discord-button-container {
        display: block;
        width: auto;
    }
    
    .templar-nav {
        justify-content: space-between !important;
        width: calc(85%) !important;
    }
    
    .desktop-qq-button {
        display: none !important;
    }
    
    .mobile-qq-button-container {
        display: block;
        width: auto;
    }
    
    .mobile-discord-button, .mobile-qq-button {
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    
    .mobile-discord-button i, .mobile-qq-button i {
        margin-right: 5px !important;
        font-size: 18px !important;
    }
}

@media (min-width: 1251px) {
    .language-switcher-mobile {
        display: none;
    }
    
    .mobile-discord-button-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .language-switcher-desktop-outer {
        right: 7.5%;
    }
    
    .mobile-discord-button {
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    
    .mobile-discord-button i {
        margin-right: 5px !important;
        font-size: 18px !important;
    }
    
    .verification-container,
    .verification-complete,
    .unlink-container {
        padding: 20px;
    }
    
    .link-heading {
        font-size: 30px;
    }
    
    .link-info {
        font-size: 18px;
    }
    
    .verification-step h3 {
        font-size: 20px;
    }
    
    .steamButton, .discordButton, .steamGroupButton {
        padding: 12px 20px;
        font-size: 18px;
    }
    
    .avatars {
        gap: 15px;
    }
    
    .avatar {
        height: 100px;
    }
}

@media (max-width: 450px) {
    .templar-nav-discord-button {
        font-size: 15px !important;
    }

    .templar-nav-discord-button i {
        margin-right: 5px !important;
        font-size: 20px !important;
    }

    .templar-nav {
        width: 85% !important;
        margin-top: 5px !important;
    }
    
    .mobile-discord-button, .mobile-qq-button {
        padding: 5px 8px !important;
        font-size: 13px !important;
    }
    
    .mobile-discord-button i, .mobile-qq-button i {
        margin-right: 3px !important;
        font-size: 16px !important;
    }
    
    .verification-container,
    .verification-complete,
    .unlink-container {
        padding: 15px;
    }
    
    .link-heading {
        font-size: 26px;
    }
    
    .link-info {
        font-size: 16px;
    }
    
    .verification-step h3 {
        font-size: 18px;
    }
    
    .steamButton, .discordButton, .steamGroupButton {
        padding: 10px 15px;
        font-size: 16px;
        width: 100%;
    }
    
    .account-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-label {
        margin-bottom: 5px;
    }
    
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .avatar {
        height: 80px;
    }
    
    .mobile-discord-button-container {
        left: 35%;
    }
    
    .mobile-qq-button-container {
        left: 65%;
    }
}

.language-switcher-section {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.language-switcher-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.6);
    border-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.language-switcher-container h3 {
    color: #bdbbbb;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.language-buttons {
    display: flex;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 5px;
    padding: 5px;
}

.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 5px;
    text-decoration: none;
    color: #bdbbbb;
    font-weight: bold;
    font-family: 'Encode Sans Condensed', sans-serif;
    transition: all 0.3s ease;
    border-radius: 3px;
    text-transform: uppercase;
}

.language-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.1);
}

.language-button.active {
    background-color: #5865F2;
    color: #ffffff;
}

.language-switcher-item {
    display: none;
}

@media (max-width: 992px) {
    .language-switcher-item {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .language-switcher-mobile {
        display: flex;
        justify-content: center;
    }
}

/* 单按钮居中样式 */
.single-button-container {
    left: 50% !important;
}






/* 页脚样式 */
footer {
    color: rgb(173, 168, 162);
    text-align: center;
    /*margin-top: 140px;*/
    background: rgba(15, 19, 15, 0.8);
    padding: 40px 20px;
    font-weight: 300;
}

footer img {
    height: 75px;
    filter: grayscale(1);
    opacity: 0.5;
    margin-bottom: 15px;
}

footer .copyright {
    font-weight: 400;
}

footer small {
    color: #999;
    font-size: 12px;
}
