@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate {
    animation: slideUpFade 0.4s ease forwards;
}
.announcement-item {
    text-align: left;
}
.announcement-item h3 {
    font-size: 14px;
    margin: 10px 0 5px;
    font-weight: 600;
}
.announcement-item span {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
}
html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
    html,
    body {
        background: var(--glass-bg-dark);
    }
}
body {
    height: calc(100vh - var(--top-bar-height));
    padding-top: var(--top-bar-height);
}
.btn-disabled {
    background: var(--hover-color) !important;
    cursor: not-allowed !important;
    pointer-events: none;
    border: 1px solid transparent !important;
}
.btn--loading .btn__label {
    opacity: 0;
}
.btn--loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: var(--glass-bg);
    animation: spin .8s linear infinite;
}
.card {
    width: 100%;
    height: calc(100vh - var(--top-bar-height));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0;
}
.cardin {
    width: calc(100% - 56px);
    max-width: 800px;
    margin: auto;
    flex-shrink: 0;
    padding: 30px 0;
}
.center {
    text-align: center;
}
#dynamicMenu {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    z-index: 10011;
    text-align: center;
    padding: 24px 0px;
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(108, 117, 125, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
    #dynamicMenu {
        background: var(--glass-bg-dark);
        color: var(--glass-bg);
    }
}
#dynamicMenu h3 {
    font-size: 13px;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#dynamicMenu.show {
    transform: translateY(0);
}
.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-button.primary {
    background: var(--primary-color);
    color: var(--glass-bg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    position: relative;
}
.form-button.primary:hover {
    background: var(--hover-color);
}
.form-button.primary:active {
    transform: translateY(1px);
}
.form-button.primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.form-input,
.form-button {
    width: 100%;
    margin-top: 20px;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.2;
}
.form-input {
    background: var(--glass-bg);
    border: 1px solid rgba(33, 154, 131, 0);
    color: var(--text-secondary);
    transition: border-color 0.2s ease;
}
@media (prefers-color-scheme: dark) {
    .form-input {
        background: var(--bg-dark);
        color: var(--bg-light);
        border-color: rgba(33, 154, 131, 0.04);
    }
}
.form-input::placeholder {
    color: var(--text-secondary);
}
@media (prefers-color-scheme: dark) {
    .form-input::placeholder {
        color: var(--text-secondary);
    }
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.guide-success {
    color: var(--primary-color) !important;
}
.guide-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 15px 0;
    font-weight: 500;
    text-align: left;
}
h1,
h2,
h3 {
    color: var(--glass-bg-dark);
}
@media (prefers-color-scheme: dark) {
    h1,
    h2,
    h3 {
        color: var(--glass-bg);
    }
}
h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}
.h10 {
    height: 10px;
}
.h20 {
    height: 20px;
}
.h40 {
    height: 40px;
}
.hamburger {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--bg-dark);
    transition: 0.3s;
}
@media (prefers-color-scheme: dark) {
    .hamburger span {
        background-color: var(--bg-light);
    }
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.header-btn-wrap {
    display: flex;
    align-items: center;
}
.hidden {
    display: none !important;
}
@media (prefers-color-scheme: dark) {
    #iframeContainer {
        background: var(--bg-dark);
    }
}
@media (prefers-color-scheme: dark) {
    #iframeHeader {
        background: var(--bg-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--bg-light);
    }
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.left {
    text-align: left;
}
.menu-account-info {
    font-size: 13px;
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    border-top: none !important;
}
.menu-copyright {
    font-size: 11px;
    opacity: 0.4;
    margin: 0;
}
.menu-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.menu-group a {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    opacity: 0.6;
}
.menu-group a:hover {
    background: rgba(112, 112, 112, 0.2);
}
#menuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10010;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#menuOverlay.show {
    opacity: 1;
    pointer-events: auto;
}
.mini-action-btn {
    margin: 0 !important;
    padding: 0 12px;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.order-item {
    background: var(--glass-bg);
    border: 1px solid rgba(108, 117, 125, 0.1);
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}
@media (prefers-color-scheme: dark) {
    .order-item {
        background: var(--bg-dark);
    }
}
.order-item.animate {
    flex-direction: row;
}
p.sub {
    margin: 0 0 20px;
    font-size: 13px;
}
@media (prefers-color-scheme: dark) {
    p.sub {
        color: var(--bg-light);
    }
}
.page-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--glass-bg-dark);
    letter-spacing: 0.5px;
}
@media (prefers-color-scheme: dark) {
    .page-title-text {
        color: var(--glass-bg);
    }
}
.pay-btn-sm {
    margin: 0 !important;
    width: auto !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    height: auto !important;
    line-height: 1.2 !important;
}
.plan-desc {
    text-align: left;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.5;
    margin-bottom: 20px;
}
.rate-high {
    color: #ff9f43;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.rate-tag {
    background: rgba(128, 128, 128, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.right {
    text-align: right;
}
:root {
    --primary-color: #316C72;
    --hover-color: #254b50;
    --text-secondary: #6C757D;
    --bg-light: rgba(255, 255, 255, 0.6);
    --bg-dark: rgba(26, 26, 26, 0.8);
    --glass-bg: rgba(242, 242, 242, 1);
    --glass-bg-dark: rgba(20, 20, 20, 1);
    --top-bar-height: 60px;
}
.section-divider {
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 0.15;
    margin: 15px 0;
}
.server-name {
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: left;
}
.server-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(128, 128, 128, 0.15);
    white-space: nowrap;
}
.spanBtn {
    cursor: pointer;
    text-decoration: underline;
    color: var(--bg-light);
    font-size: 12px;
}
.spec-btn-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}
.specs-sheet {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 10011;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(108, 117, 125, 0.15);
    border-radius: 0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    gap: 10px;
    box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
    .specs-sheet {
        background: var(--glass-bg-dark);
        color: var(--bg-light);
    }
}
.specs-sheet.show {
    transform: translateY(0);
}
.status-cancelled {
    color: var(--text-secondary);
}
.status-completed {
    color: var(--primary-color);
}
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.status-offline {
    background-color: var(--text-secondary);
    opacity: 0.5;
}
.status-online {
    background-color: var(--primary-color);
    box-shadow: 0 0 4px var(--primary-color);
}
.status-pending {
    color: #d4a017;
}
.status-tag {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}
.status-text-offline {
    color: var(--text-secondary);
    font-size: 12px;
}
.status-text-online {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
}
.sub-url-box {
    margin-top: 10px;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.sub-url-input {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 12px;
    flex: 1;
    outline: none;
    text-overflow: ellipsis;
}
.text-link-std {
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
}
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10020;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 117, 125, 0.15);
    border-radius: 0 !important;
    box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
    .top-bar {
        background: var(--bg-dark);
    }
}
.top-bar .logo-small {
    height: 30px;
    width: auto;
    display: block;
}
.traffic-detail-text {
    font-size: 12px;
    color: var(--text-secondary);
}
.traffic-usage-positive {
    color: var(--primary-color);
    font-weight: 600;
}