:root {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #1d3436;
    background: #eef4f3;
}
* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at 0 0, #dff3ef 0, transparent 36%), radial-gradient(circle at 100% 100%, #dcefeb 0, transparent 30%), #eef4f3;
}
#app {
    width: min(760px, calc(100% - 32px));
    margin: 7vh auto 48px;
}
#centerdiv {
    overflow: hidden;
    border: 1px solid #d7e6e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(20, 72, 70, .13);
}
.layui-tab-card { border: 0; }
.layui-tab-card > .layui-tab-title {
    display: flex;
    height: 62px;
    padding: 0 14px;
    border: 0;
    background: linear-gradient(110deg, #103035, #176f69);
}
.layui-tab-card > .layui-tab-title li {
    flex: 1;
    height: 62px;
    padding: 0 12px;
    border: 0;
    color: #c6e4e0;
    font-size: 14px;
    line-height: 62px;
    text-align: center;
    cursor: pointer;
}
.layui-tab-card > .layui-tab-title .layui-this {
    background: rgba(255,255,255,.13);
    color: #fff;
    font-weight: 700;
}
.layui-tab-content { padding: 34px 42px 40px; }
.layui-form-item { margin-top: 19px; }
.layui-form-label { width: 108px; color: #567074; font-size: 13px; font-weight: 700; }
.layui-input-block { margin-left: 108px; }
.layui-input {
    display: block;
    width: 100%;
    height: 42px;
    padding-left: 13px;
    border: 1px solid #d4e2e0;
    border-radius: 7px;
}
.layui-btn {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(100deg, #137b76, #159a8f);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.layui-tab-item { display: none; }
.layui-tab-item.layui-show { display: block; }


:root {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #151821;
    background: #f3eee5;
}
body {
    background: #f3eee5;
    color: #151821;
}
#app { width: min(760px, calc(100% - 32px)); margin: 7vh auto 48px; }
#centerdiv {
    border: 2px solid #151821;
    border-radius: 5px;
    background: #f8f4ec;
    box-shadow: 8px 8px 0 #151821;
}
.layui-tab-card > .layui-tab-title {
    height: 62px;
    padding: 0;
    background: #151821;
    border-bottom: 2px solid #151821;
}
.layui-tab-card > .layui-tab-title li {
    height: 62px;
    padding: 0 12px;
    color: #f3eee5;
    font-size: 14px;
    line-height: 62px;
}
.layui-tab-card > .layui-tab-title .layui-this {
    color: #f8f4ec;
    background: #3157f6;
}
.layui-tab-card > .layui-tab-title li.is-disabled {
    background: #252832;
    color: #8f929b;
    cursor: not-allowed;
    opacity: .72;
}
.layui-tab-card > .layui-tab-title li.is-disabled::after {
    display: none;
}
.layui-tab-item input:disabled,
.layui-tab-item button:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.layui-tab-content { padding: 34px 42px 40px; }
.layui-form-label { color: #151821; font-size: 13px; font-weight: 700; }
.layui-input {
    height: 42px;
    border: 2px solid #151821;
    border-radius: 3px;
    color: #151821;
    background: #fffdf8;
}
.layui-input:focus { border-color: #3157f6 !important; box-shadow: 4px 4px 0 #3157f6; }
.layui-btn {
    height: 40px;
    border: 2px solid #151821;
    border-radius: 3px;
    background: #3157f6;
    color: #f8f4ec;
    font-weight: 700;
    box-shadow: 3px 3px 0 #151821;
}
.layui-btn:hover { background: #ff705b; color: #151821; }
.layui-form-item .layui-input-block > .layui-btn + .layui-btn,
.layui-btn-primary {
    border-color: #151821;
    background: #fffdf8;
    color: #3157f6;
}
.layui-btn-primary:hover { background: #ff705b; color: #151821; }
.lower-card {
    border: 0;
    border-top: 2px dashed #151821;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.claim-notice { color: #343740; font-size: 14px; line-height: 1.7; }
.result { color: #c74436; font-weight: 700; }





.global-loading {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(21, 24, 33, .38);
}
.global-loading[hidden], .result-modal[hidden] { display: none !important; }
.global-loading-content {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(100%, 360px);
    padding: 18px 24px;
    border: 2px solid #151821;
    background: #f8f4ec;
    color: #151821;
    box-shadow: 5px 5px 0 #151821;
    font-weight: 700;
    line-height: 1.6;
}

.global-loading-spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(21, 24, 33, .2);
    border-top-color: #151821;
    border-radius: 50%;
    animation: global-loading-spin .7s linear infinite;
}
@keyframes global-loading-spin {
    to { transform: rotate(360deg); }
}
.result-modal-panel {
    border: 2px solid #151821;
    border-radius: 5px;
    background: #f8f4ec;
    color: #151821;
    box-shadow: 8px 8px 0 #151821;
}
.result-modal-header { border-bottom: 2px dashed #151821; }
.result-modal-close { color: #151821; }
.result-modal-message, .steam-qr-instruction-warning { color: #343740; }
.steam-qr-modal-box { border: 2px solid #151821; background: #fffdf8; }
@media (max-width: 560px) {
    #app { width: calc(100% - 32px); margin-top: 48px; }
    .layui-tab-card > .layui-tab-title li { padding: 0 7px; font-size: 12px; }
    .layui-tab-content { padding: 34px 20px 30px; }
    .layui-form-label { width: 94px; }
    .layui-input-block { margin-left: 94px; }
}


@media (max-width: 560px) {
    #app { width: calc(100% - 24px); margin: 24px auto 32px; }
    #centerdiv { box-shadow: 6px 6px 0 #151821; }
    .layui-tab-card > .layui-tab-title li {
        min-width: 0;
        padding: 0 4px;
        font-size: clamp(11px, 3.3vw, 12px);
        white-space: nowrap;
    }
    .layui-tab-content { padding: 24px 14px 26px; }
    .layui-form-item { margin-top: 16px; }
    .layui-form-label { width: 88px; padding: 9px 8px 9px 0; font-size: 12px; }
    .layui-input-block { margin-left: 88px; }
    .layui-input { height: 42px; padding-left: 10px; font-size: 14px; }
    .layui-form-item .layui-input-block > .layui-btn { padding: 0 14px; }
    .claim-notice { font-size: 13px; line-height: 1.75; }
    .result-modal-panel {
        width: calc(100vw - 36px);
        max-height: calc(100vh - 36px);
        overflow: auto;
        box-shadow: 6px 6px 0 #151821;
    }
    .steam-qr-modal-box canvas,
    .steam-qr-modal-box img { max-width: 100%; height: auto; }
}

@media (max-width: 340px) {
    #app { width: calc(100% - 18px); }
    .layui-tab-content { padding-right: 11px; padding-left: 11px; }
    .layui-form-label { width: 78px; }
    .layui-input-block { margin-left: 78px; }
    .layui-form-item .layui-input-block > .layui-btn { padding: 0 9px; }
}


html,
body,
button,
input,
textarea,
select {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}
.layui-tab-card > .layui-tab-title {
    margin: 0;
    list-style: none;
}
.layui-tab-card > .layui-tab-title li { list-style: none; }
.layui-form-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
}
.layui-form-label {
    width: auto;
    padding: 0 14px 0 0;
    line-height: 1.5;
    text-align: left;
}
.layui-input-block {
    min-width: 0;
    margin-left: 0;
}
.layui-form-item > .layui-input-block:only-child { grid-column: 2; }

@media (max-width: 560px) {
    .layui-form-item { grid-template-columns: 88px minmax(0, 1fr); }
    .layui-form-label { width: auto; padding-right: 10px; }
    .layui-input-block { margin-left: 0; }
}

@media (max-width: 340px) {
    .layui-form-item { grid-template-columns: 78px minmax(0, 1fr); }
}











.result-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(21, 24, 33, .45);
}
.result-modal-panel {
    width: min(100%, 420px);
    max-height: 100%;
    overflow: auto;
    padding: 18px 20px 16px;
}
.result-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}
.result-modal-close {
    flex: 0 0 auto;
    padding: 0 4px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.result-modal-message {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-line;
}
.result-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.result-modal-actions .layui-btn { margin: 0; }
.steam-guard-input { margin-bottom: 10px; }
.steam-guard-input .layui-input { width: 100%; }


.modal-ok    { color: #157b77; font-weight: 700; }
.modal-warn  { color: #e6a23c; font-weight: 700; }
.modal-error { color: #b43c33; font-weight: 700; }
