/*
 * wap.ac child theme of Twenty-One - custom.css
 *
 * Loaded automatically by the parent includes/head.tpl (assetExists custom.css), so it also applies
 * to order form pages. Scope rules:
 *   - No global reset (no `*` rules); only targeted selectors, so third-party module UIs stay intact.
 *   - Colours are CSS variables on :root.
 *   - Homepage blocks use the .wapac- prefix.
 */

/* ------------------------------------------------------------------
   1. Fonts
   Plus Jakarta Sans is self-hosted (see ../fonts/README.md). Two subsets share one family name and
   are picked by unicode-range. If the files are missing the browser falls back to the system stack.
   ------------------------------------------------------------------ */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-Variable-latin-ext.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-Variable-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   2. Design tokens
   ------------------------------------------------------------------ */
:root {
    --primary: #6f5d7d;
    --primary-hover: #5b4b68;
    --primary-soft: #f2edf6;
    --primary-border: #d9cfe2;
    --sidebar-active: #ece5f2;
    --sidebar-active-text: #3a2d45;
    --wapac-success: #387d3b;
    --wapac-danger: #dc3545;
    --wapac-info: #0e7490;
    --bg-subtle: #f6f6f4;
    --border-color: #dadbd8;
    --border-light: #e7e7e3;
    --text-main: #262829;
    --text-secondary: #4c5052;
    --text-muted: #62676a;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 2px 7px rgba(27, 32, 35, 0.07);
    --focus-ring: 0 0 0 2px rgba(111, 93, 125, 0.22);
    --wapac-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --wapac-font: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}
html:lang(zh-CN) {
    --wapac-font: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}
html:lang(zh-TW),
html:lang(zh-HK) {
    --wapac-font: "Plus Jakarta Sans", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC", sans-serif;
}
html:lang(ja) {
    --wapac-font: "Plus Jakarta Sans", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
}
/* Plus Jakarta Sans has no Cyrillic glyphs, so Russian puts the system fonts first. */
html:lang(ru) {
    --wapac-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html:lang(en),
html:lang(de) {
    --wapac-font: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.navbar,
.dropdown-menu,
.card,
.modal-content,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--wapac-font);
}
.wapac-mono,
code,
kbd,
pre,
samp {
    font-family: var(--wapac-mono);
}
.wapac-mono {
    font-variant-numeric: tabular-nums;
}

body {
    -webkit-font-smoothing: antialiased;
    /* Last line of defence against horizontal scrolling at 320px. */
    overflow-x: hidden;
    overflow-x: clip;
}

/* ------------------------------------------------------------------
   3. Links, focus, text colours
   ------------------------------------------------------------------ */
a {
    color: var(--primary);
}
a:hover {
    color: var(--primary-hover);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.text-primary { color: var(--primary) !important; }
a.text-primary:hover, a.text-primary:focus { color: var(--primary-hover) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ------------------------------------------------------------------
   4. Buttons (keep global .btn-success semantic green; only order-form CTAs use primary purple)
   ------------------------------------------------------------------ */
.btn-primary,
#order-standard_cart .btn-order-now,
#order-standard_cart .btn-checkout {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
}
.btn-primary:hover,
#order-standard_cart .btn-order-now:hover,
#order-standard_cart .btn-checkout:hover {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-primary:focus,
.btn-primary.focus,
#order-standard_cart .btn-order-now:focus,
#order-standard_cart .btn-checkout:focus {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 0.2rem rgba(111, 93, 125, 0.35);
}
.btn-primary.disabled,
.btn-primary:disabled,
#order-standard_cart .btn-order-now.disabled,
#order-standard_cart .btn-order-now:disabled {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
#order-standard_cart .btn-order-now:not(:disabled):not(.disabled):active,
#order-standard_cart .btn-checkout:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 93, 125, 0.35);
}
.btn-success {
    color: #fff;
    background-color: var(--wapac-success);
    border-color: var(--wapac-success);
    font-weight: 500;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: #2e6931;
    border-color: #2e6931;
}

.btn-outline-primary {
    color: #221d28;
    background-color: #fff;
    border-color: #b5a6c2;
    font-weight: 600;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 93, 125, 0.35);
}
.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: var(--primary);
    background-color: transparent;
}
.btn-link {
    color: var(--primary);
}
.btn-link:hover {
    color: var(--primary-hover);
}

/* Secondary buttons: weight 500/600 */
.btn-default,
.btn-secondary,
.btn-light {
    color: #24282e;
    background-color: #fff;
    border-color: #ced4da;
    font-weight: 500;
}
.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-light:hover,
.btn-light:focus,
.btn-default:not(:disabled):not(.disabled):active,
.btn-default:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active {
    color: #221d28;
    background-color: var(--primary-soft);
    border-color: var(--primary);
}
.btn-default:focus,
.btn-secondary:focus {
    box-shadow: var(--focus-ring);
}
.btn-default.disabled,
.btn-default:disabled {
    color: #5b616a;
    background-color: #f1f2f4;
    border-color: #dfe2e6;
}

/* ------------------------------------------------------------------
   5. Badges
   ------------------------------------------------------------------ */
.badge {
    font-weight: 600;
}
.badge:not([class*="badge-"]) {
    color: var(--primary-hover);
    background-color: var(--primary-soft);
}
.badge-primary {
    color: #fff;
    background-color: var(--primary);
}
.badge-info {
    color: #fff;
    background-color: var(--wapac-info);
}
.badge-success {
    color: #fff;
    background-color: var(--wapac-success);
}
.badge-danger {
    color: #fff;
    background-color: var(--wapac-danger);
}
.label.status-active {
    background-color: var(--wapac-success);
}

/* ------------------------------------------------------------------
   6. Header and navigation
   ------------------------------------------------------------------ */
#header.header {
    background: #fff;
    border-bottom: 1px solid #e3e6e9;
}
#header .navbar-light,
#header .main-navbar-wrapper {
    background-color: #fff;
}
#header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    color: #222327;
}
.wapac-brand-emblem {
    position: relative;
    display: inline-block;
    flex: none;
    width: 56px;
    height: 22px;
    overflow: hidden;
}
.wapac-brand-emblem img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    max-width: none !important;
    height: auto;
    transform: translate(-52.1%, -51.7%);
}
.wapac-brand-wordmark {
    font-size: 22px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
}
#header .main-navbar-wrapper .navbar-nav > li > a,
#header .navbar-nav .nav-link {
    font-weight: 600;
    color: #181a1e;
}
#header .main-navbar-wrapper .navbar-nav > li > a:hover,
#header .main-navbar-wrapper .navbar-nav > li > a:focus,
#header .main-navbar-wrapper .navbar-nav > li.show > a,
#header .navbar-nav .nav-link:hover {
    color: var(--primary);
}
#header .navbar-nav .badge {
    margin-inline-start: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #4e4258;
    background-color: #ebe3f0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
#header .navbar-nav .cart-btn .badge {
    color: #fff;
    background-color: var(--primary);
}
#header .navbar-nav .cart-btn:hover {
    color: var(--primary);
}

.dropdown-menu {
    border: 1px solid #eceef2;
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 38px rgba(18, 22, 30, 0.09), 0 2px 6px rgba(18, 22, 30, 0.04);
}
.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--primary-hover);
    background-color: var(--primary-soft);
}
.dropdown-item.active,
.dropdown-item:active {
    color: var(--sidebar-active-text);
    background-color: var(--sidebar-active);
}

/* Language / currency button */
/* 两段式（同设计初稿）：🌐 语言 ▾ | $ USD，整颗按钮点开下拉 */
.wapac-locale-btn {
    display: inline-flex;
    align-items: stretch;
    height: 36px;
    padding: 0 !important;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #22262b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
}
.wapac-locale-langpart,
.wapac-locale-cur {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    transition: background-color .15s ease, color .15s ease;
}
.wapac-locale-cur {
    border-inline-start: 1px solid #e5e8eb;
    color: #22262b;
    font-weight: 500;
}
.wapac-locale-btn:hover .wapac-locale-langpart,
.wapac-locale-btn:hover .wapac-locale-cur,
.wapac-locale-btn:focus-visible .wapac-locale-langpart {
    color: var(--primary-hover);
    background: var(--primary-soft);
}
.wapac-locale-btn:focus {
    box-shadow: none;
}
.wapac-locale-btn:focus-visible {
    box-shadow: var(--focus-ring);
}
.wapac-locale-caret {
    opacity: .75;
}

/* Product menu: multi-column mega menu (items built by includes/hooks/wapac_ui.php) */
.wapac-store-menu .dropdown-menu > li.dropdown-item {
    width: auto;
    padding: 2px 0;
    white-space: normal;
    background: transparent;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}
.wapac-store-menu .dropdown-menu > li.dropdown-item:hover {
    background: transparent;
}
.wapac-store-menu .dropdown-menu > li.dropdown-item > a.dropdown-item {
    display: block;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    border-radius: var(--radius-sm);
    color: #22262b;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}
.wapac-store-menu .dropdown-menu > li.dropdown-item > a.dropdown-item:hover,
.wapac-store-menu .dropdown-menu > li.dropdown-item > a.dropdown-item:focus {
    color: var(--primary-hover);
    background: var(--primary-soft);
}
.wapac-store-menu .dropdown-menu > li.wapac-menu-heading {
    padding: 0 0 6px;
}
.wapac-store-menu .dropdown-menu > li.wapac-menu-heading > a.dropdown-item {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: #14161a;
    background: transparent;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: default;
    pointer-events: none;
}

@media (min-width: 1200px) {
    #header .main-navbar-wrapper > .container {
        position: relative;
    }
    #header .main-navbar-wrapper .navbar-nav > li.wapac-store-menu {
        position: static;
    }
    .wapac-store-menu .dropdown-menu {
        -webkit-column-count: 5;
        column-count: 5;
        -webkit-column-gap: 28px;
        column-gap: 28px;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        width: auto;
        max-height: min(72vh, 520px);
        margin-top: 0;
        padding: 26px 30px 22px;
        overflow: auto;
        transform: none !important;
    }
    .wapac-store-menu .dropdown-menu > li.wapac-menu-heading {
        -webkit-column-break-before: always;
        break-before: column;
    }
    .wapac-store-menu .dropdown-menu > li.wapac-menu-heading:first-child {
        -webkit-column-break-before: auto;
        break-before: auto;
    }
}
@media (max-width: 1199.98px) {
    .wapac-store-menu .dropdown-menu {
        -webkit-column-count: 1;
        column-count: 1;
    }
    .wapac-store-menu .dropdown-menu > li.wapac-menu-heading {
        padding-top: 8px;
    }
    .wapac-store-menu .dropdown-menu > li.wapac-menu-heading:first-child {
        padding-top: 0;
    }
}

/* Breadcrumb */
.master-breadcrumb {
    background-color: #e9ecef;
    border-bottom: 1px solid #dfe3e7;
}
.master-breadcrumb .breadcrumb {
    background: transparent;
}
.master-breadcrumb a {
    color: var(--primary);
}

/* ------------------------------------------------------------------
   7. Cards, sidebar, tabs, forms, tables
   ------------------------------------------------------------------ */
.card {
    border-color: var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.card-title,
.pricing-card-title,
.card-header {
    overflow-wrap: anywhere;
}

.card-sidebar {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.card-sidebar .card-header {
    padding: 10px 14px;
    background: #f8f7fa;
    border-bottom: 1px solid var(--border-light);
}
.card-sidebar .card-title {
    color: #181a1e;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}
.card-sidebar .list-group-item {
    border-color: #f0eef3;
}
.list-group-item-action {
    color: #22262b;
    font-weight: 500;
}
.sidebar-menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.sidebar-menu-item-label {
    min-width: 0;
    overflow-wrap: anywhere;
}
.sidebar-menu-item-icon {
    color: #4a4f57;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--primary-hover);
    background-color: var(--primary-soft);
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus,
.list-group-item-action.active,
.list-group-item-action.active:hover,
.card-sidebar .list-group-item.active,
.card-sidebar .list-group-item.active:hover,
.sidebar .card-sidebar .list-group-item.active,
.sidebar .card-sidebar .list-group-item-action.active {
    color: var(--sidebar-active-text);
    background-color: var(--sidebar-active);
    border-color: var(--border-light);
    box-shadow: inset 3px 0 0 var(--primary);
    font-weight: 600;
}
.list-group-item.active .sidebar-menu-item-icon,
.list-group-item.active i {
    color: var(--primary);
}

.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}
.nav-tabs .nav-link {
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 6px 6px 0 0;
    color: #2a2e34;
    font-weight: 600;
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: #e4e7ea #e4e7ea transparent;
    color: #14161a;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #14161a;
    background-color: #fff;
    border-color: var(--border-color) var(--border-color) #fff;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--primary);
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}
.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: var(--focus-ring);
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

.page-link {
    color: var(--primary);
}
.page-item.active .page-link {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.table-list thead th {
    background: #f8f7fa;
    color: var(--text-secondary);
    font-weight: 600;
}
.table-list tbody tr[data-href] {
    cursor: pointer;
}
.table-list tbody tr:hover {
    background-color: var(--primary-soft);
}
.wapac-service-ip {
    white-space: nowrap;
}
/* IP 稍微加深（我的服务、总览服务表）：字色更深、字重 500 */
.wapac-services-card .wapac-service-ip,
.wapac-svc-table .wapac-mono {
    color: #181b20 !important;
    font-weight: 500;
}

/* Language / currency modal (stock modal, only restyled) */
.modal-localisation .item-selector .item {
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.modal-localisation .item-selector .item:hover {
    color: var(--primary-hover);
    background: var(--primary-soft);
}
.modal-localisation .item-selector .item.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

/* ------------------------------------------------------------------
   8. Overflow protection (320px)
   ------------------------------------------------------------------ */
#main-body,
#main-body .primary-content,
#main-body .row > [class*="col-"] {
    min-width: 0;
}
#main-body img {
    max-width: 100%;
    height: auto;
}
.products .product header span,
.products .product .product-desc,
.header-lined h1,
.header-lined p {
    overflow-wrap: anywhere;
}
.table-container {
    max-width: 100%;
}

/* ------------------------------------------------------------------
   9. Order forms (standard_cart / wapac_cart)
   ------------------------------------------------------------------ */
#order-standard_cart .products .product {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
#order-standard_cart .products .product header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    min-width: 0;
    font-weight: 600;
}
#order-standard_cart .products .product header .qty {
    float: none;
    padding: 2px 9px;
    border-radius: 999px;
    color: #1f6b24;
    background: #edf7ed;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
/* Out of stock: the sold-out button exists in this product card */
#order-standard_cart .products .product:has(.wapac-btn-soldout) header .qty {
    color: #4c5052;
    background: #f1f2f4;
}
.wapac-btn-soldout,
.wapac-btn-soldout[disabled] {
    color: #5b616a;
    background-color: #f1f2f4;
    border-color: #dfe2e6;
    opacity: 1;
    cursor: not-allowed;
}
/* Promo code row stacks on narrow screens */
@media (max-width: 575.98px) {
    #order-standard_cart .input-group:has([name="promocode"]),
    #order-standard_cart .view-cart-promotion-code .input-group {
        flex-wrap: wrap;
    }
    #order-standard_cart .input-group:has([name="promocode"]) > .form-control,
    #order-standard_cart .view-cart-promotion-code .input-group > .form-control {
        flex: 1 1 100%;
        width: 100%;
        border-radius: var(--radius-sm);
    }
    #order-standard_cart .input-group:has([name="promocode"]) > .input-group-append,
    #order-standard_cart .view-cart-promotion-code .input-group > .input-group-append {
        flex: 1 1 100%;
        width: 100%;
        margin: 8px 0 0;
    }
    #order-standard_cart .input-group:has([name="promocode"]) > .input-group-append .btn,
    #order-standard_cart .view-cart-promotion-code .input-group > .input-group-append .btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }
}

/* ------------------------------------------------------------------
   10. Product details polish & Root password card (includes/hooks/wapac_rootpw.php)
   ------------------------------------------------------------------ */
.product-status-active {
    background-color: var(--wapac-success);
}
.product-details .product-status-text {
    font-size: 14.5px;
    font-weight: 600;
    padding: 7px 12px;
}
.product-details h3,
.product-details h4 {
    color: #16181c;
    font-weight: 600;
}
/* 概览卡片：按设计初稿，左侧固定宽度的产品卡，右侧"标签｜数值"表格 + 按钮条 */
.product-details .wapac-overview-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}
.product-details .wapac-hero-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-details .product-status {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 0;
}
.product-details div.product-icon {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px 20px;
    border-radius: 0;
    font-size: inherit;
    line-height: 1.3;
}
.product-details .wapac-product-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #22252a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 34px;
}
.product-details div.product-icon h3 {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #16181c;
}
.product-details div.product-icon h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    color: #4f545c;
}
.product-details .product-status-text {
    border-radius: 0;
}
/* 升级 / 请求取消：和上面的产品卡同宽（学原版），两个按钮时上下各占一行 */
.product-details .wapac-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}
.product-details .wapac-hero-actions > [class*="col-"] {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.product-details .wapac-hero-actions .btn {
    padding: 9px 14px;
    font-size: 14.5px;
    font-weight: 600;
}
.product-details .wapac-meta-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-details .wapac-meta-head {
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #ece9f0;
}
.product-details .wapac-meta-title {
    font-size: 17px;
    font-weight: 600;
    color: #16181c;
}
.product-details .wapac-meta-table {
    width: 100%;
    border-collapse: collapse;
}
.product-details .wapac-meta-table tr {
    border-bottom: 1px solid #f2f4f6;
}
.product-details .wapac-meta-table tr:last-child {
    border-bottom: 0;
}
.product-details .wapac-meta-table th {
    text-align: left;
    font-weight: 500;
    color: #5a6069;
    padding: 10px 14px 10px 0;
    width: 40%;
    font-size: 14.5px;
    vertical-align: top;
}
.product-details .wapac-meta-table td {
    text-align: right;
    font-weight: 600;
    color: #181b20;
    padding: 10px 0;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.product-details .wapac-meta-table .wapac-meta-price {
    color: var(--primary-hover);
    font-size: 16.5px;
    font-weight: 700;
}
.product-details .wapac-hooks-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ece9f0;
    flex-wrap: wrap;
}
.product-details .wapac-hooks-bar .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
}
@media (max-width: 991.98px) {
    .product-details .wapac-overview-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}
.product-details-tab-container {
    padding: 24px 26px 28px;
    border-color: var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
/* 服务器信息标签页（设计初稿）：凭据卡、带宽卡、Proxmox 工具宫格 */
.product-details-tab-container {
    padding: 24px 28px 30px;
    box-shadow: var(--shadow-card);
}
.product-details-tab-container > #domain {
    text-align: left !important;
}
.product-details-tab-container > #domain > .module-client-area {
    margin-top: 26px;
}
.wapac-cred-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 8px 20px;
    margin-bottom: 18px;
}
.wapac-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 13px 0;
    border-bottom: 1px solid #eae8ee;
}
.wapac-cred-row:last-child {
    border-bottom: 0;
}
.wapac-cred-label {
    font-size: 14.5px;
    font-weight: 500;
    color: #555b64;
}
.wapac-cred-value-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}
.wapac-cred-value {
    font-size: 15px;
    font-weight: 600;
    color: #181b20;
    overflow-wrap: anywhere;
    text-align: right;
}
.wapac-cred-ip {
    font-size: 16px;
    font-weight: 700;
    color: #14161a;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.wapac-micro-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 11px;
    border: 1px solid #d4d8de;
    border-radius: 5px;
    background: #fff;
    color: #24282e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: all .12s ease;
}
.wapac-micro-btn:hover,
.wapac-micro-btn:focus {
    border-color: var(--primary);
    color: var(--primary-hover);
    background: var(--primary-soft);
    outline: 0;
}
.wapac-micro-btn:disabled {
    opacity: .6;
    cursor: wait;
}
.wapac-micro-btn svg {
    width: 14px;
    height: 14px;
    flex: none;
}
.wapac-rootpw-text {
    font-family: var(--wapac-mono);
    word-break: break-all;
}
.wapac-rootpw-masked {
    letter-spacing: 0.14em;
    color: var(--text-secondary);
}
.wapac-rootpw-foot {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: -4px;
}
.wapac-rootpw-note {
    color: var(--text-muted);
    font-size: 12.5px;
}
.wapac-rootpw-msg {
    font-size: 13px;
}
.wapac-rootpw-msg:empty {
    display: none;
}
.wapac-rootpw-msg.is-error {
    color: #b52b37;
}
.wapac-rootpw-msg.is-ok {
    color: var(--wapac-success);
}

/* 带宽用量 + 自动加购（插件自己的表单与"改动后才出现的保存按钮"保持不变，只改外观） */
.wapac-bw-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin: 0 0 26px;
}
.tab-content > .tab-pane > .wapac-bw-card {
    margin-top: 16px;
}
.wapac-bw-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.wapac-bw-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #16181c;
}
.wapac-bw-numbers {
    font-size: 14.5px;
    font-weight: 600;
    color: #262a30;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.wapac-bw-track {
    width: 100%;
    height: 9px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #ebe9f0;
    overflow: hidden;
}
.wapac-bw-fill {
    height: 100%;
    min-width: 8px;
    border-radius: 999px;
    background: #7d6a8e;
}
.wapac-autotraffic {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}
.wapac-autotraffic form.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f7fa;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 500;
    color: #1e2126;
}
.wapac-autotraffic .form-group {
    margin: 0;
    max-width: 100%;
    min-width: 0;
}
.wapac-autotraffic .checkbox {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.wapac-autotraffic input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.wapac-autotraffic .checkbox > span[style] {
    color: #b83242 !important;
    font-size: 15px;
    font-weight: 700;
}
.wapac-autotraffic input[type="number"] {
    height: 36px;
    padding: 2px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14.5px;
    font-weight: 600;
    color: #181b20;
    background: #fff;
}
.wapac-autotraffic input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(101, 86, 111, 0.16);
}
.wapac-autotraffic #autotraffic_submit {
    height: 36px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
}
.wapac-autotraffic #autotraffic_succ {
    font-weight: 600;
}
.wapac-autotraffic .text-info {
    margin: 10px 0 0 !important;
    color: var(--primary) !important;
    font-size: 13px;
    font-weight: 500;
}
.wapac-autotraffic .text-info small {
    font-size: inherit;
}
.wapac-autotraffic input,
.wapac-autotraffic select,
.wapac-autotraffic button {
    max-width: 100%;
}
.wapac-bw-updated {
    margin-top: 6px;
    text-align: right;
    font-size: 13px;
    color: #696f77;
}

/* Proxmox 工具宫格（js/wapac-details.js 按 MG 原按钮生成；原按钮行在生成后才隐藏） */
#layers.wapac-pve-ready .vue-app-main-container > .h4,
#layers.wapac-pve-ready .vue-app-main-container > .lu-tiles {
    display: none !important;
}
.wapac-pve-section + .wapac-pve-section {
    margin-top: 26px;
}
.wapac-pve-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece9f0;
}
.wapac-pve-title {
    margin: 0;
    font-size: 17.5px;
    font-weight: 600;
    color: #16181c;
}
.wapac-pve-hint {
    font-size: 13px;
    font-weight: 500;
    color: #6b7179;
}
.wapac-pve-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.wapac-pve-grid.is-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 7、8 个工具时按 4 列排，避免最后一行只剩一个 */
.wapac-pve-grid.is-tools.is-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* MG 信息表 / IP 表放在最下面，外框与上面的卡片统一 */
#layers .vue-app-main-container .lu-widget {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: none;
    overflow: hidden;
}
#layers .vue-app-main-container .lu-widget__header .lu-top__title {
    font-size: 16px;
    font-weight: 600;
    color: #16181c;
}
.wapac-pve-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 112px;
    padding: 20px 14px;
    border: 1px solid #e5e2ea;
    border-radius: var(--radius-lg);
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.wapac-pve-tile[hidden] {
    display: none;
}
.wapac-pve-tile:hover,
.wapac-pve-tile:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(78, 66, 88, 0.1);
    transform: translateY(-1px);
    background: #fdfcff;
    outline: 0;
}
.wapac-pve-tile:focus {
    outline: 0;
}
.wapac-pve-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
}
.wapac-pve-icon svg {
    width: 22px;
    height: 22px;
}
.wapac-pve-icon.tone-green { background: #edf7ed; color: #2e8b3c; }
.wapac-pve-icon.tone-red { background: #fdf0f1; color: #d63646; }
.wapac-pve-icon.tone-dark { background: #eef0f3; color: #2c343c; }
.wapac-pve-icon.tone-amber { background: #fef6e7; color: #c26d06; }
.wapac-pve-tile.is-primary { border-color: var(--primary-border); }
.wapac-pve-tile.is-primary .wapac-pve-icon { background: var(--primary); color: #fff; }
.wapac-pve-label {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e2126;
    overflow-wrap: anywhere;
}
.wapac-pve-tile.is-primary .wapac-pve-label { color: var(--sidebar-active-text); }

/* 账单标题旁的运行状态 */
.wapac-meta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.wapac-vm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid #cce7cd;
    background: #edf7ed;
    color: #2f7d32;
    font-size: 13px;
    font-weight: 600;
}
.wapac-vm-pill[hidden] {
    display: none;
}
.wapac-vm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #46a546;
}
.wapac-vm-pill.is-stopped {
    border-color: #f3c6ca;
    background: #fdf0f1;
    color: #b52b37;
}
.wapac-vm-pill.is-stopped .wapac-vm-dot {
    background: #dc3545;
}

/* 详情页标签栏（设计初稿） */
.wapac-detail-tabs {
    gap: 3px;
    border-bottom: 1px solid var(--border-color);
}
.wapac-detail-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    margin-bottom: -1px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #2a2e34;
}
.wapac-detail-tabs .nav-link i {
    width: 14px;
    font-size: 13px;
    opacity: .9;
}
.wapac-detail-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.65);
}

/* 侧栏线条图标（与初稿同款 SVG，用 mask 着色，随文字颜色变化） */
.wapac-ico {
    display: inline-block;
    width: 15px;
    height: 15px;
    flex: none;
    vertical-align: -2px;
    background-color: currentColor;
    -webkit-mask: var(--wapac-ico) center / contain no-repeat;
    mask: var(--wapac-ico) center / contain no-repeat;
}
.card-sidebar .card-title .wapac-ico {
    width: 14px;
    height: 14px;
    margin-right: 2px;
}
.sidebar-menu-item-icon.wapac-ico {
    color: #4a4f57;
}
.list-group-item.active .sidebar-menu-item-icon.wapac-ico {
    color: var(--primary);
}
.wapac-ico-info { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
.wapac-ico-monitor { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E"); }
.wapac-ico-wrench { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.wapac-ico-key { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E"); }
.wapac-ico-swap { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E"); }
.wapac-ico-ban { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='4.93' y1='4.93' x2='19.07' y2='19.07'/%3E%3C/svg%3E"); }
.wapac-ico-grid { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); }
.wapac-ico-chart { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E"); }
.wapac-ico-network { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='2' width='6' height='6' rx='1'/%3E%3Crect x='2' y='16' width='6' height='6' rx='1'/%3E%3Crect x='16' y='16' width='6' height='6' rx='1'/%3E%3Cpath d='M12 8v4m0 0H5v4m7-4h7v4'/%3E%3C/svg%3E"); }
.wapac-ico-download { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.wapac-ico-bell { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
.wapac-ico-camera { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); }
.wapac-ico-list { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E"); }
.wapac-ico-calendar { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.wapac-ico-user { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.wapac-ico-zap { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"); }
.wapac-ico-dot { --wapac-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3C/svg%3E"); }
.sidebar .list-group-item.wapac-item-danger:hover,
.sidebar .list-group-item.wapac-item-danger:focus {
    color: var(--wapac-danger);
    background-color: #fdf0f1;
}

@media (max-width: 991.98px) {
    .wapac-pve-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .product-details-tab-container {
        padding: 14px;
    }
    .wapac-cred-card,
    .wapac-bw-card {
        padding-inline: 12px;
    }
    .wapac-cred-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .wapac-cred-value {
        text-align: left;
    }
    .wapac-pve-grid,
    .wapac-pve-grid.is-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------------ */
#footer.footer {
    background: #fff;
    border-top: 1px solid #e3e6e9;
    color: var(--text-secondary);
}
.wapac-footer-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 24px clamp(16px, 3vw, 40px);
    padding-bottom: 28px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.wapac-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #222327;
    font-size: 21px;
    font-weight: 650;
}
.wapac-footer-brand .wapac-brand-wordmark {
    font-size: 20px;
}
.wapac-footer-brand:hover {
    color: #222327;
}
.wapac-footer-about p {
    margin: 9px 0 0;
}
.wapac-footer-column h2 {
    margin: 0 0 10px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
}
.wapac-footer-column ul,
.wapac-footer-community {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wapac-footer-community {
    margin-top: 11px;
}
.wapac-footer-column a,
.wapac-footer-community a {
    color: #363a40;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.wapac-footer-column a:hover,
.wapac-footer-community a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   12. Homepage (homepage.tpl)
   ------------------------------------------------------------------ */
/* skipMainBodyContainer drops .container, so neutralise the row/column gutters in that case */
#main-body > div:not(.container) > .row {
    margin-right: 0;
    margin-left: 0;
}
#main-body > div:not(.container) > .row > .primary-content {
    padding-right: 0;
    padding-left: 0;
}

.wapac-home {
    width: 100%;
    background: #fff;
    color: var(--text-main);
}
.wapac-home .container {
    max-width: 1160px;
    padding-inline: clamp(18px, 2.5vw, 28px);
}
.wapac-section {
    padding-block: clamp(52px, 6.2vw, 80px);
    background: #fff;
}
.wapac-section.wapac-gray {
    background: var(--bg-subtle);
    border-block: 1px solid var(--border-light);
}
.wapac-section-head {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}
.wapac-caption {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.015em;
}
.wapac-title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.wapac-subtitle {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}
.wapac-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 32px clamp(28px, 4.5vw, 60px);
}
.wapac-split > * {
    min-width: 0;
}

/* Hero */
.wapac-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f6f4f7;
    border-bottom: 1px solid var(--border-light);
}
.wapac-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(248, 246, 249, 0.68);
}
.wapac-hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 55%;
    filter: grayscale(1);
    opacity: 0.27;
}
.wapac-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: clamp(58px, 7.5vw, 96px) clamp(52px, 6.5vw, 84px);
    text-align: center;
}
.wapac-hero-copy {
    width: 100%;
    max-width: 740px;
}
.wapac-hero-since {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 7px 20px;
    border: 1px solid #3c3049;
    border-radius: 999px;
    background: #261e2f;
    box-shadow: 0 4px 14px rgba(38, 30, 47, 0.16);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.wapac-hero-since::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}
.wapac-hero-title {
    margin: 0 0 16px;
    color: var(--text-main);
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.wapac-hero-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(15px, 1.5vw, 16.5px);
    line-height: 1.78;
    text-wrap: pretty;
}
.wapac-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.wapac-hero-actions .btn-lg {
    padding: 11px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 5px;
}
.wapac-btn-faded {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary-border);
    font-weight: 600;
}
.wapac-btn-faded:hover,
.wapac-btn-faded:focus {
    color: var(--primary-hover);
    background: #ebe5ef;
    border-color: var(--primary);
}
.wapac-btn-light {
    color: #24282e;
    background: #fff;
    border-color: #ced4da;
    font-weight: 500;
}
.wapac-btn-light:hover,
.wapac-btn-light:focus {
    color: #221d28;
    background: var(--primary-soft);
    border-color: var(--primary);
}

/* Line tabs + plan cards. Without JS every panel stays visible and the tab row is hidden. */
.wapac-line-tabs {
    display: none;
}
.wapac-lines.is-ready .wapac-line-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 28px;
}
.wapac-lines.is-ready .wapac-line-panel:not(.is-active) {
    display: none;
}
.wapac-lines.is-ready .wapac-line-heading {
    display: none;
}
.wapac-line-heading {
    margin: 28px 0 14px;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 600;
}
.wapac-line-panel:first-child .wapac-line-heading,
.wapac-line-tabs + .wapac-line-panel .wapac-line-heading {
    margin-top: 0;
}
.wapac-line-tab {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: #22262b;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.wapac-line-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.wapac-line-tab.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}
.wapac-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.wapac-plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text-main);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}
.wapac-plan-card:hover,
.wapac-plan-card:focus {
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    transform: translateY(-2px);
}
.wapac-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.wapac-plan-card h3 {
    min-width: 0;
    margin: 0;
    color: var(--text-main);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.wapac-plan-card:hover h3 {
    color: var(--primary);
}
.wapac-plan-badge {
    flex: none;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.wapac-plan-badge.b-green {
    background: #edf7ed;
    color: #486450;
}
.wapac-plan-badge.b-purple {
    background: var(--primary-soft);
    color: var(--primary);
}
.wapac-plan-desc {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}
.wapac-plan-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
}
.wapac-plan-meta {
    min-width: 0;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.wapac-plan-go {
    flex: none;
    color: var(--primary);
    font-weight: 600;
}
.wapac-more-wrap {
    margin-top: 26px;
    text-align: center;
}

/* Tier list + region matrix */
.wapac-tier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}
.wapac-tier-list li {
    padding-left: 14px;
    border-left: 2px solid var(--primary-border);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}
.wapac-tier-list strong {
    color: var(--text-main);
    font-weight: 600;
}
.wapac-matrix-card {
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.wapac-matrix-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 600;
}
.wapac-matrix-head span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}
.wapac-matrix-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}
.wapac-matrix-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.wapac-region-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text-main);
    font-weight: 600;
}
.wapac-region-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #46a546;
}
.wapac-region-spec {
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}
.wapac-region-link {
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.wapac-region-link:hover {
    text-decoration: underline;
}

/* Feature grid */
.wapac-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 34px;
}
.wapac-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.wapac-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: var(--radius-lg);
    background: var(--primary-soft);
    color: var(--primary);
}
.wapac-feature-item h3 {
    margin: 0 0 7px;
    color: var(--text-main);
    font-size: 15.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.wapac-feature-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Client area illustration */
.wapac-service-visual {
    min-width: 0;
    margin: 0;
}
.wapac-service-preview {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.wapac-service-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px 4px;
}
.wapac-service-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-border);
}
.wapac-service-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-light);
    border-radius: 5px;
}
.wapac-service-visual figcaption {
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: 12.5px;
    text-align: center;
}
.wapac-capabilities {
    margin: 20px 0 24px;
    padding: 0;
}
.wapac-capabilities > div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: baseline;
    gap: 6px 16px;
    padding: 11px 0;
    border-top: 1px solid var(--border-color);
}
.wapac-capabilities > div:last-child {
    border-bottom: 1px solid var(--border-color);
}
.wapac-capabilities dt {
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.wapac-capabilities dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

/* Stats band */
.wapac-stats-band {
    padding-block: 36px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}
.wapac-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    text-align: center;
}
.wapac-stat-num {
    color: var(--text-main);
    font-size: clamp(28px, 3.6vw, 38px);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.wapac-stat-label {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13.5px;
}

/* Support + Telegram */
.wapac-support-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}
.wapac-support-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wapac-support-links li {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: border-color 0.15s ease;
}
.wapac-support-links li:hover {
    border-color: var(--primary);
}
.wapac-support-links a {
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 600;
}
.wapac-support-links li:hover a {
    color: var(--primary);
}
.wapac-support-links p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Payments */
.wapac-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wapac-payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
}
.wapac-payment-card > div {
    min-width: 0;
}
.wapac-payment-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
}
.wapac-pay-alipay { background: var(--primary-soft); color: #42667f; }
.wapac-pay-wechat { background: #edf3ed; color: #3d6950; }
.wapac-pay-usdt { background: #edf3ef; color: #386e5a; }
.wapac-payment-name {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.wapac-payment-desc {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

/* FAQ */
.wapac-faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.wapac-faq-wrap details {
    padding: 0 20px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: #fff;
}
.wapac-faq-wrap details + details {
    margin-top: 10px;
}
.wapac-faq-wrap summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 15px;
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.wapac-faq-wrap summary::-webkit-details-marker {
    display: none;
}
.wapac-faq-wrap summary::after {
    content: "+";
    flex: none;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}
.wapac-faq-wrap details[open] summary {
    color: var(--primary);
}
.wapac-faq-wrap details[open] summary::after {
    content: "\2212";
    color: var(--primary);
}
.wapac-faq-wrap details p {
    margin: 0;
    padding: 0 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.72;
}
.wapac-faq-wrap details a {
    display: inline-block;
    margin-inline-start: 6px;
    font-weight: 600;
}

/* Bottom CTA */
.wapac-cta-section {
    padding-block: 44px 56px;
    background: #fff;
}
.wapac-cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 38px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-subtle);
}
.wapac-cta-box > div:first-child {
    min-width: 0;
}
.wapac-cta-box h2 {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.wapac-cta-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14.5px;
}
.wapac-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* ------------------------------------------------------------------
   13. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .wapac-plan-grid,
    .wapac-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wapac-split {
        grid-template-columns: minmax(0, 1fr);
    }
    .wapac-payment-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 680px) {
    .wapac-plan-grid,
    .wapac-features-grid,
    .wapac-stats-row,
    .wapac-support-links {
        grid-template-columns: minmax(0, 1fr);
    }
    .wapac-service-visual {
        order: 2;
    }
    .wapac-cta-box {
        padding: 26px 22px;
    }
    .wapac-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 450px) {
    .wapac-matrix-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .wapac-matrix-row .wapac-region-spec {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .wapac-capabilities > div {
        grid-template-columns: minmax(0, 1fr);
    }
    .wapac-hero-since {
        padding-inline: 14px;
        font-size: 14px;
    }
    .wapac-footer-columns {
        grid-template-columns: minmax(0, 1fr);
    }
    .wapac-locale-langpart,
    .wapac-locale-cur {
        padding-inline: 6px;
        gap: 4px;
    }
    .wapac-rootpw-actions {
        width: 100%;
    }
    .nav-tabs .nav-link {
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wapac-plan-card,
    .wapac-line-tab,
    .wapac-support-links li {
        transition-duration: 0.01ms;
    }
    .wapac-plan-card:hover,
    .wapac-plan-card:focus {
        transform: none;
    }
}

/* ------------------------------------------------------------------
   15. standard_cart 残留配色统一为主色 + 白底页脚对比度修正（2026-11-24）
   ------------------------------------------------------------------ */
/* 购物车：商品表头、底线、清空购物车按钮（原 #005588）。standard_cart 的样式表在页面内容里加载、排在本文件之后，所以这一节统一加 body 前缀提高权重 */
body #order-standard_cart .view-cart-items-header {
    color: #fff;
    background-color: var(--primary);
}
body #order-standard_cart .view-cart-items {
    border-bottom-color: var(--primary);
}
body #order-standard_cart #btnEmptyCart {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
body #order-standard_cart #btnEmptyCart:hover,
body #order-standard_cart #btnEmptyCart:focus {
    color: #fff;
    background-color: #4a3d55;
    border-color: #4a3d55;
}
/* 结账："已经注册？"按钮（原 btn-info 青绿） */
body #order-standard_cart #btnAlreadyRegistered {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
body #order-standard_cart #btnAlreadyRegistered:hover,
body #order-standard_cart #btnAlreadyRegistered:focus {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
/* 结账：分隔小标题（个人信息、现有用户登录等，原深蓝字与边线）。只限购物车内的 span，body 也带这个类名 */
body #order-standard_cart span.primary-bg-color {
    color: var(--primary);
    border-color: var(--primary-border);
}
/* 结账：应付总额（原绿底绿字） */
body #order-standard_cart #totalDueToday {
    color: #3a2d45;
    background-color: var(--primary-soft);
    border-color: var(--primary-border);
}
body #order-standard_cart #totalDueToday #totalCartPrice {
    color: #3a2d45;
}
/* 结账：订阅邮件开关的"是"（原绿色） */
body #order-standard_cart .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
    color: #fff;
    background-color: var(--primary);
}
/* 页脚：原生 Twenty-One 是深色页脚，改白底后这些文字仍是白色或 #eee，几乎看不见 */
#footer.footer .nav-link {
    color: var(--text-secondary);
}
#footer.footer .nav-link:hover,
#footer.footer .nav-link:focus {
    color: var(--primary);
}
#footer.footer .list-inline-item > .btn {
    color: var(--text-main);
    background-color: #f6f3f8;
    border: 1px solid var(--primary-border);
}
#footer.footer .list-inline-item > .btn:hover,
#footer.footer .list-inline-item > .btn:focus {
    color: var(--primary-hover);
    background-color: var(--primary-soft);
}

/* ------------------------------------------------------------------
   16. 顶栏语言/货币下拉（替代原生语言弹窗，2026-11-24）
   Bootstrap 4 在 navbar 里的下拉默认 position: static，会把顶栏撑高，这里改为浮层并右对齐
   ------------------------------------------------------------------ */
#header .wapac-locale-dropdown {
    position: relative;
}
#header .wapac-locale-dropdown .wapac-locale-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    z-index: 1050;
    min-width: 172px;
    padding: 6px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(38, 30, 47, 0.12);
}
#header .wapac-locale-menu .dropdown-header {
    padding: 6px 16px 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}
#header .wapac-locale-menu .dropdown-item {
    padding: 7px 16px;
    color: var(--text-main);
    font-size: 14px;
}
#header .wapac-locale-menu .dropdown-item:hover,
#header .wapac-locale-menu .dropdown-item:focus {
    color: var(--primary-hover);
    background-color: #f6f3f8;
}
/* 父主题 header.header .toolbar .nav-link 权重更高（会改边框、字号、内边距），这里按两段式按钮压回去 */
header.header .toolbar .nav-link.wapac-locale-btn {
    height: 36px;
    padding: 0;
    border: 1px solid #ced4da;
    color: #22262b;
    font-size: 13px;
}
header.header .toolbar .nav-link.wapac-locale-btn:hover {
    color: #22262b;
}
#header .wapac-locale-menu .dropdown-item.active,
#header .wapac-locale-menu .dropdown-item:active {
    color: #3a2d45;
    background-color: var(--primary-soft);
    font-weight: 600;
}


/* ------------------------------------------------------------------
   17. MG Proxmox 面板字体统一为站点字体（2026-11-24）
   MG 的 layers-ui.css 把 #layers / .lu-app 写死为 Roboto；MG 样式表在页面内容里加载、排在本文件之后，
   所以加 body 前缀提高权重。图标使用独立的图标字体类，不受影响。
   ------------------------------------------------------------------ */
body #layers,
body #layers .lu-app,
body #layers .lu-app-main {
    font-family: var(--wapac-font);
}
body #layers input,
body #layers select,
body #layers textarea,
body #layers button {
    font-family: inherit;
}

/* ------------------------------------------------------------------
   18. 全站外框按设计预览稿对齐（2026-11-24）：内容宽度、Logo、主菜单
   ------------------------------------------------------------------ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}
#header .wapac-brand-wordmark {
    font-size: 24px;
}
/* 主菜单：桌面宽度下居中，16px / 600，色带高 64px，悬停紫色下划线（与预览稿 .nav-links 一致）。
   注意：Twenty-One 的 autoCollapse('#nav', 30) 以 #nav 高度 >= 30px 判定"放不下"并把项目收进"更多"，
   所以菜单项本身保持约 28px 高，64px 由外层容器撑出，下划线用 ::after 画在色带底边。 */
@media (min-width: 1200px) {
    #header .main-navbar-wrapper {
        padding-top: 0;
        padding-bottom: 0;
    }
    #header .main-navbar-wrapper > .container {
        min-height: 64px;
    }
    #header .main-navbar-wrapper #mainNavbar {
        position: relative;
        align-self: stretch;
        align-items: center;
    }
    #header .main-navbar-wrapper #nav {
        margin-right: auto !important;
        margin-left: auto !important;
        column-gap: clamp(20px, 2.45vw, 34px);
        align-items: center;
    }
    #header .main-navbar-wrapper .navbar-nav > li > a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 2px 2px !important;
        color: #181a1e;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        white-space: nowrap;
    }
    #header .main-navbar-wrapper .navbar-nav > li > a::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: -18px;
        left: 0;
        height: 2px;
        background: transparent;
    }
    #header .main-navbar-wrapper .navbar-nav > li > a:hover,
    #header .main-navbar-wrapper .navbar-nav > li > a:focus,
    #header .main-navbar-wrapper .navbar-nav > li.show > a {
        color: var(--primary);
    }
    /* 悬停 / 展开时只变字色，不画下划线（11-24 要求去掉悬停色线；浏览器默认的文字下划线也去掉） */
    #header .main-navbar-wrapper .navbar-nav > li > a:hover,
    #header .main-navbar-wrapper .navbar-nav > li > a:focus {
        text-decoration: none;
    }
    /* 当前栏目（includes/hooks/wapac_dash.php 加的 wapac-nav-active） */
    #header .main-navbar-wrapper .navbar-nav > li.wapac-nav-active > a {
        color: #111317;
    }
    #header .main-navbar-wrapper .navbar-nav > li.wapac-nav-active > a::before {
        background: var(--primary);
    }
    /* 右侧账户菜单贴右，不挤占居中的主菜单 */
    #header .main-navbar-wrapper #mainNavbar > .navbar-nav.ml-auto {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
}
/* "我的服务"数量角标（与预览稿 .nav-service-count 一致） */
#header .main-navbar-wrapper .navbar-nav > li > a .badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin: 0;
    padding: 0 4px;
    border-radius: 999px;
    color: #4e4258;
    background: #ebe3f0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* 首页"客户中心"一区：去掉示意图后，左侧文字、右侧 3 张功能卡片 */
.wapac-manage-split {
    align-items: center;
}
.wapac-manage-intro .btn {
    margin-top: 22px;
}
.wapac-manage-cards {
    display: grid;
    gap: 14px;
    margin: 0;
}
.wapac-manage-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.wapac-manage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
}
.wapac-manage-card dt {
    margin: 2px 0 6px;
    color: #181a1e;
    font-size: 16px;
    font-weight: 600;
}
.wapac-manage-card dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}
/* 头部第一行（Logo、语言、购物车）高度对齐预览稿 75px */
@media (min-width: 1200px) {
    #header > .navbar:not(.main-navbar-wrapper) {
        padding-top: 0;
        padding-bottom: 0;
    }
    #header > .navbar:not(.main-navbar-wrapper) > .container {
        min-height: 75px;
    }
}

/* ======================================================
   19. 商城页（产品分组）：按设计初稿的分组横幅 + 两列套餐卡片
   结构见 orderforms/wapac_cart/products.tpl；standard_cart 的 CSS 在本文件之后加载，选择器带 body 提高优先级。
   ====================================================== */
body #order-standard_cart.wapac-store .store-group-banner {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
}
body #order-standard_cart.wapac-store .store-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
body #order-standard_cart.wapac-store .store-group-kicker {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.01em;
}
body #order-standard_cart.wapac-store .store-region-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    border: 1px solid var(--primary-border);
}
body #order-standard_cart.wapac-store .store-group-banner h1 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f2328;
}
body #order-standard_cart.wapac-store .store-group-desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}
body #order-standard_cart.wapac-store .cart-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}
body #order-standard_cart.wapac-store .cart-plan-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    transition: border-color .15s ease, box-shadow .15s ease, transform .14s ease;
}
body #order-standard_cart.wapac-store .cart-plan-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 22px rgba(78, 66, 88, 0.09);
    transform: translateY(-1px);
}
body #order-standard_cart.wapac-store .cart-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0edf3;
    background: #fcfbfd;
}
body #order-standard_cart.wapac-store .cart-plan-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2328;
}
body #order-standard_cart.wapac-store .stock-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e8f3e8;
    color: #2f7d32;
    white-space: nowrap;
}
body #order-standard_cart.wapac-store .stock-pill.low {
    background: #fdf1e1;
    color: #b45309;
}
body #order-standard_cart.wapac-store .stock-pill.out {
    background: #f1f2f4;
    color: #777d85;
}
body #order-standard_cart.wapac-store .cart-plan-body {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(136px, 0.85fr);
    gap: 16px;
    padding: 16px 18px;
    flex: 1;
    align-items: center;
}
body #order-standard_cart.wapac-store .cart-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
body #order-standard_cart.wapac-store .cart-spec-features {
    margin-top: 7px;
}
body #order-standard_cart.wapac-store .cart-spec-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}
body #order-standard_cart.wapac-store .cart-spec-k {
    color: var(--text-muted);
    flex: none;
    white-space: nowrap;
}
body #order-standard_cart.wapac-store .cart-spec-v {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
body #order-standard_cart.wapac-store .cart-plan-specs .product-desc {
    font-size: 13px;
    color: var(--text-secondary);
}
body #order-standard_cart.wapac-store .cart-plan-specs .product-desc p {
    margin: 0;
}
body #order-standard_cart.wapac-store .cart-price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 16px;
    border-left: 1px solid #f0edf3;
    height: 100%;
}
body #order-standard_cart.wapac-store .cart-price-prefix {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
body #order-standard_cart.wapac-store .cart-price-main {
    font-size: 22px;
    font-weight: 700;
    color: #1f2328;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
body #order-standard_cart.wapac-store .cart-price-currency {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-left: 3px;
}
body #order-standard_cart.wapac-store .cart-price-cycle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0 14px;
}
body #order-standard_cart.wapac-store .cart-price-setup {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: -10px 0 12px;
}
body #order-standard_cart.wapac-store .cart-order-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
body #order-standard_cart.wapac-store .cart-order-btn i {
    margin-right: 4px;
}
body #order-standard_cart.wapac-store .cart-plan-foot {
    padding: 10px 18px;
    background: #faf9fb;
    border-top: 1px solid #f0edf3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--text-muted);
}
body #order-standard_cart.wapac-store .cart-option-note {
    color: var(--primary);
    font-weight: 600;
}
@media (max-width: 991.98px) {
    body #order-standard_cart.wapac-store .cart-plan-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 575.98px) {
    body #order-standard_cart.wapac-store .store-group-banner {
        padding: 16px 16px;
    }
    body #order-standard_cart.wapac-store .cart-plan-body {
        grid-template-columns: 1fr;
    }
    body #order-standard_cart.wapac-store .cart-price-col {
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid #f0edf3;
    }
}

/* ======================================================
   20. 登录页：按设计初稿的居中窄卡片（login.tpl）
   ====================================================== */
.wapac-login {
    padding: clamp(20px, 5vw, 60px) 0 40px;
}
.wapac-login .wapac-login-card {
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(24, 20, 32, 0.06);
    overflow: hidden;
}
.wapac-login .wapac-login-card > .card-body {
    padding: 30px 30px 26px;
}
.wapac-login .wapac-login-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.wapac-login .wapac-login-brand .wapac-brand-wordmark {
    font-size: 21px;
}
.wapac-login .wapac-login-brand .logo-img {
    max-height: 36px;
}
.wapac-login .wapac-login-title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f2328;
}
.wapac-login .wapac-login-sub {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.wapac-login .form-group {
    margin-bottom: 14px;
}
.wapac-login .form-control-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.wapac-login .wapac-pw-group .form-control {
    border-right: 0;
}
.wapac-login .wapac-pw-group .btn-reveal-pw {
    border: 1px solid #ced4da;
    border-left: 0;
    background: #fff;
    color: var(--text-muted);
    box-shadow: none;
}
.wapac-login .wapac-pw-group .btn-reveal-pw:hover,
.wapac-login .wapac-pw-group .btn-reveal-pw:focus {
    color: var(--primary);
}
.wapac-login .wapac-pw-group:focus-within .btn-reveal-pw {
    border-color: var(--primary);
}
.wapac-login .wapac-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 16px;
    font-size: 13px;
}
.wapac-login .wapac-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--text-secondary);
    cursor: pointer;
}
.wapac-login .wapac-login-remember input {
    accent-color: var(--primary);
    margin: 0;
}
.wapac-login .wapac-login-forgot {
    color: var(--text-muted);
}
.wapac-login .wapac-login-forgot:hover {
    color: var(--primary);
}
.wapac-login .btn-lg.btn-block {
    font-size: 15px;
    font-weight: 600;
    padding: 9px 16px;
}
.wapac-login .wapac-login-foot {
    padding: 16px 30px;
    background: #fff;
    border-top: 1px solid #f0edf3;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.wapac-login .wapac-login-foot a {
    font-weight: 600;
    margin-left: 4px;
}
@media (max-width: 575.98px) {
    .wapac-login .wapac-login-card > .card-body {
        padding: 24px 20px 20px;
    }
}

/* ======================================================
   21. 客户中心首页（总览）：按设计初稿
   统计卡（includes/wapac-dash-stats.tpl）、彩色账户卡与服务表格（includes/hooks/wapac_dash.php）、首页面板卡片
   ====================================================== */
.wapac-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.wapac-dash-stat {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-main);
    transition: border-color .15s ease, transform .12s ease;
}
a.wapac-dash-stat:hover,
a.wapac-dash-stat:focus {
    border-color: var(--primary);
    transform: translateY(-1px);
    color: var(--text-main);
    text-decoration: none;
}
.wapac-dash-num {
    font-size: 24px;
    font-weight: 700;
    color: #1f2328;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.wapac-dash-stat.accent-primary .wapac-dash-num { color: var(--primary); }
.wapac-dash-stat.accent-green .wapac-dash-num { color: #387d3b; }
.wapac-dash-stat.accent-warning .wapac-dash-num { color: #b45309; }
.wapac-dash-label {
    font-size: 12.5px;
    color: var(--text-muted);
}
@media (max-width: 767.98px) {
    .wapac-dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* 账户卡 */
.wapac-account-panel > .card-body,
.wapac-account-panel .collapsable-card-body > .card-body {
    padding: 0 0 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}
.wapac-account-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px 14px;
    background: linear-gradient(135deg, #f2edf6 0%, #f8f5fa 55%, #ffffff 100%);
    border-bottom: 1px solid #ece5f2;
}
.wapac-account-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(140deg, #8b78a0 0%, #6f5d7d 55%, #5b4b68 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(91, 75, 104, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.wapac-account-id {
    min-width: 0;
}
.wapac-account-name {
    font-size: 15.5px;
    font-weight: 650;
    color: #3a2d45;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.wapac-account-company,
.wapac-account-email {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.wapac-account-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px 0;
}
.wapac-account-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.wapac-account-tag.tag-green {
    background: #edf7ed;
    color: #2f6b31;
    border: 1px solid #cfe8cf;
}
.wapac-account-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3a9a3d;
    box-shadow: 0 0 0 2px rgba(58, 154, 61, 0.18);
}

/* 首页面板 → 初稿的 dash-card */
.client-home-cards .card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 18px;
    overflow: hidden;
    border-top-width: 1px;
}
.client-home-cards .card > .card-header {
    padding: 13px 18px;
    border-bottom: 1px solid #f0edf3;
    background: #fcfbfd;
}
.client-home-cards .card > .card-header .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2328;
    line-height: 30px;
}
.client-home-cards .card > .card-header .card-title > i {
    color: var(--primary);
}
.client-home-cards .card > .card-header .btn {
    background: #fff !important;
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}
.client-home-cards .card > .card-header .btn:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}
.client-home-cards .card > .list-group .list-group-item {
    padding: 13px 18px;
    border-color: #f2f0f5;
    font-size: 13.5px;
}
.client-home-cards .card > .card-footer:empty {
    display: none;
}
.client-home-cards .card > .card-footer {
    background: #fff;
    border-top: 1px solid #f2f0f5;
}

/* 服务表格 */
.wapac-svc-panel > .card-body {
    padding: 0;
}
.wapac-svc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.wapac-svc-table th {
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    background: #fff;
    border-bottom: 1px solid #f0edf3;
    white-space: nowrap;
}
.wapac-svc-table td {
    padding: 12px 18px;
    border-top: 1px solid #f2f0f5;
    vertical-align: middle;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}
.wapac-svc-table tbody tr:first-child td {
    border-top: 0;
}
.wapac-svc-table .wapac-svc-name {
    display: block;
    font-weight: 600;
    color: #1f2328;
}
.wapac-svc-table .wapac-svc-name:hover {
    color: var(--primary);
}
.wapac-svc-table .wapac-svc-host {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.wapac-svc-table .wapac-mono {
    font-family: var(--wapac-mono);
    font-size: 13px;
    white-space: nowrap;
}
.wapac-svc-table .wapac-svc-manage {
    text-align: right;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .wapac-svc-table th,
    .wapac-svc-table td {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ======================================================
   22. 配置 / 购物车 / 结账：按设计初稿只改外观（不改表单结构与脚本）
   ====================================================== */
/* 这三页不显示左侧分类栏，主体占满（与初稿一致；分类仍可从顶部菜单进入） */
body #order-standard_cart:has(#frmConfigureProduct) .cart-sidebar,
body #order-standard_cart:has(.view-cart-items) .cart-sidebar,
body #order-standard_cart:has(#frmCheckout) .cart-sidebar {
    display: none;
}
body #order-standard_cart:has(#frmConfigureProduct) .cart-body,
body #order-standard_cart:has(.view-cart-items) .cart-body,
body #order-standard_cart:has(#frmCheckout) .cart-body {
    width: 100%;
    float: none;
}
body #order-standard_cart .header-lined h1 {
    font-size: 24px !important;
    font-weight: 600;
    color: #1f2328;
    margin-bottom: 6px;
}
body #order-standard_cart .header-lined {
    margin-bottom: 18px;
}

/* 配置页：产品信息、周期卡片 */
body #order-standard_cart #frmConfigureProduct .product-info {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 16px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-secondary);
}
body #order-standard_cart #frmConfigureProduct .product-info .product-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2328;
    margin-bottom: 6px;
}
body #order-standard_cart #frmConfigureProduct label[for="inputBillingcycle"] {
    font-size: 14px;
    font-weight: 600;
    color: #1f2328;
}
body #order-standard_cart .wapac-cycle-select {
    display: none !important;
}
body #order-standard_cart .wapac-cycle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}
body #order-standard_cart .wapac-cycle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-main);
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
body #order-standard_cart .wapac-cycle-card:hover {
    border-color: var(--primary);
}
body #order-standard_cart .wapac-cycle-card:focus {
    outline: 0;
}
body #order-standard_cart .wapac-cycle-card:focus-visible {
    outline: 0;
    box-shadow: var(--focus-ring);
}
body #order-standard_cart .wapac-cycle-card.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--primary);
}
body #order-standard_cart .wapac-cycle-name {
    font-weight: 600;
    color: #1f2328;
}
body #order-standard_cart .wapac-cycle-price {
    font-weight: 600;
    color: var(--primary-hover);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
body #order-standard_cart .sub-heading {
    border-top-color: #ece9f0;
}
body #order-standard_cart .sub-heading span {
    color: var(--text-secondary) !important;
    font-weight: 600;
}

/* 订单摘要（配置页、购物车页共用） */
body #order-standard_cart .order-summary {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    padding: 0;
}
body #order-standard_cart .order-summary h2 {
    margin: 0;
    padding: 12px 18px;
    background: var(--primary);
    color: #fff;
    font-size: 15px !important;
    font-weight: 600;
    text-align: left;
}
body #order-standard_cart .order-summary .summary-container {
    background: #fff;
    border: 0;
    padding: 14px 18px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
body #order-standard_cart .order-summary .total-due-today {
    border-top: 1px solid #f0edf3;
    margin-top: 10px;
    padding-top: 12px;
}
body #order-standard_cart .order-summary .total-due-today .amt {
    font-size: 26px;
    font-weight: 700;
    color: #1f2328;
    font-variant-numeric: tabular-nums;
}
body #order-standard_cart #btnCompleteProductConfig,
body #order-standard_cart .order-summary .btn-checkout {
    display: block;
    width: 100%;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
}
body #order-standard_cart #orderSummary > .text-center {
    text-align: initial;
}

/* 购物车：已选商品卡片 */
body #order-standard_cart .view-cart-items-header {
    background: #fcfbfd;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-bottom: 1px solid #f0edf3;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
}
body #order-standard_cart .view-cart-items {
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-card);
}
body #order-standard_cart .view-cart-items .item {
    padding: 14px 18px;
    border-bottom: 1px solid #f2f0f5;
    background: #fff;
}
body #order-standard_cart .view-cart-items .item:last-child {
    border-bottom: 0;
}
body #order-standard_cart .view-cart-items .item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2328;
}
body #order-standard_cart .view-cart-items .item-group,
body #order-standard_cart .view-cart-items .item-domain {
    font-size: 12.5px;
    color: var(--text-muted);
}
body #order-standard_cart .view-cart-items .item-price {
    font-weight: 600;
    color: #1f2328;
    font-variant-numeric: tabular-nums;
}

/* 结账：付款方式做成卡片（原生单选框仍在卡片里） */
body #order-standard_cart #paymentGatewaysContainer .text-center {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    text-align: left !important;
}
body #order-standard_cart #paymentGatewaysContainer label.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2328;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
body #order-standard_cart #paymentGatewaysContainer label.radio-inline:hover {
    border-color: var(--primary);
}
body #order-standard_cart #paymentGatewaysContainer label.radio-inline:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--primary);
}
@media (max-width: 575.98px) {
    body #order-standard_cart .wapac-cycle-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ======================================================
   23. 总览页第二轮对齐（includes/hooks/wapac_dash.php 10001/9001 的输出）
   ====================================================== */
.wapac-account-tag.tag-purple {
    background: var(--primary-soft);
    color: #5b4b68;
    border: 1px solid var(--primary-border);
}
.wapac-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px 0;
}
.wapac-account-actions .btn {
    padding: 4px 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}
.wapac-btn-faded {
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    font-weight: 600;
}
.wapac-btn-faded:hover,
.wapac-btn-faded:focus {
    background: #ebe5ef;
    border-color: var(--primary);
    color: var(--primary-hover);
}
.wapac-btn-light {
    background: #fff;
    border: 1px solid #ced4da;
    color: #24282e;
    font-weight: 500;
}
.wapac-btn-light:hover,
.wapac-btn-light:focus {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: #221d28;
}
.sidebar .list-group-item.wapac-item-danger:hover,
.sidebar .list-group-item.wapac-item-danger:focus {
    color: var(--wapac-danger);
    background-color: #fdf0f1;
}
.wapac-svc-table th {
    padding: 11px 18px;
    background: #f8f7fa;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.wapac-ann-panel > .card-body {
    padding: 0;
}
.wapac-ann-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wapac-ann-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 13px 18px;
    border-top: 1px solid #f2f0f5;
}
.wapac-ann-list li:first-child {
    border-top: 0;
}
.wapac-ann-title {
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2328;
    overflow-wrap: anywhere;
}
.wapac-ann-title:hover {
    color: var(--primary);
}
.wapac-ann-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ======================================================
   24. 我的服务（clientareaproducts.tpl）：初稿的整宽卡片 + 标题后状态筛选 + 右侧搜索
   ====================================================== */
.wapac-services-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 20px 22px;
    margin-bottom: 20px;
}
.wapac-services-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 16px;
}
.wapac-services-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2328;
    white-space: nowrap;
}
.wapac-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.wapac-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.wapac-status-chip:hover {
    border-color: var(--primary);
    color: var(--primary-hover);
}
.wapac-status-chip:focus {
    outline: 0;
}
.wapac-status-chip:focus-visible {
    box-shadow: var(--focus-ring);
}
.wapac-status-chip.active {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--sidebar-active-text);
    font-weight: 600;
}
.wapac-chip-count {
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f1eff4;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.wapac-status-chip.active .wapac-chip-count {
    background: #fff;
    color: var(--primary);
}
.wapac-services-search {
    margin-left: auto;
}
.wapac-services-search .dataTables_filter {
    float: none !important;
    margin: 0;
    padding: 0;
    text-align: left;
}
.wapac-services-search .dataTables_filter label {
    position: relative;
    margin: 0;
    display: block;
}
.wapac-services-search .dataTables_filter label::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background-color: var(--text-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m17 17 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m17 17 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}
.wapac-services-search .dataTables_filter input {
    width: 260px !important;
    height: 36px;
    margin: 0 !important;
    padding: 0 12px 0 32px !important;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13.5px;
    box-shadow: none;
}
.wapac-services-search .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    outline: 0;
}
.wapac-services-card .table-container {
    margin: 0;
}
.wapac-services-card .dataTables_wrapper .listtable {
    border: 0;
    box-shadow: none;
}
.wapac-services-card .dataTables_info {
    display: none !important;
}
.wapac-services-card table.table-list {
    border-top: 1px solid var(--border-light) !important;
    margin: 0 !important;
}
.wapac-services-card table.table-list thead th {
    padding: 11px 12px;
    background: #f8f7fa;
    border-bottom: 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.wapac-services-card table.table-list tbody td {
    padding: 12px;
    border-top: 1px solid var(--border-light);
    text-align: left;
    vertical-align: middle;
    font-size: 13.5px;
    color: var(--text-main);
}
.wapac-services-card table.table-list tbody tr {
    cursor: pointer;
}
.wapac-services-card table.table-list tbody tr:hover td {
    background: #fcfbfd;
}
.wapac-service-name {
    display: block;
    font-weight: 600;
    color: #1f2328;
    overflow-wrap: anywhere;
}
.wapac-service-name:hover {
    color: var(--primary);
    text-decoration: none;
}
.wapac-service-sub {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.wapac-services-card th.wapac-col-manage,
.wapac-services-card td.wapac-col-manage {
    text-align: right !important;
    white-space: nowrap;
}
.wapac-btn-manage {
    padding: 4px 12px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: #24282e;
    font-size: 13px;
    font-weight: 600;
}
.wapac-btn-manage:hover,
.wapac-btn-manage:focus {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-hover);
}
@media (max-width: 767.98px) {
    .wapac-services-card {
        padding: 16px 14px;
    }
    .wapac-services-search {
        margin-left: 0;
        width: 100%;
    }
    .wapac-services-search .dataTables_filter input {
        width: 100% !important;
    }
}
/* 列宽：DataTables 会按内容写行内宽度，这里固定比例，产品列不再被挤成多行 */
.wapac-services-card #tableWapacServicesList2 {
    width: 100% !important;
    table-layout: fixed;
}
.wapac-services-card #tableWapacServicesList2 th:nth-child(1) { width: 31% !important; }
.wapac-services-card #tableWapacServicesList2 th:nth-child(2) { width: 15% !important; }
.wapac-services-card #tableWapacServicesList2 th:nth-child(3) { width: 17% !important; }
.wapac-services-card #tableWapacServicesList2 th:nth-child(4) { width: 14% !important; }
.wapac-services-card #tableWapacServicesList2 th:nth-child(5) { width: 11% !important; }
.wapac-services-card #tableWapacServicesList2 th:nth-child(6) { width: 12% !important; }
/* 窄屏：表格在卡片内横向滑动，不撑宽整页 */
@media (max-width: 991.98px) {
    .wapac-services-card .dataTables_wrapper .listtable {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .wapac-services-card #tableWapacServicesList2 {
        min-width: 820px;
    }
}

/* ======================================================
   25. 服务器信息标签页的显示顺序（clientareaproductdetails.tpl 的 #domain.wapac-flow）
   凭据卡 → 带宽卡 → 常用操作 / 更多工具 → MG"IP 地址"表 → MG"信息"表 → 其余（信息表放最下面）。
   MG 的几层外壳用 display: contents 拍平，只改显示顺序，不移动 MG 程序管理的节点。
   ====================================================== */
#domain.wapac-flow.active,
#domain.wapac-flow.show {
    display: flex;
    flex-direction: column;
}
#domain.wapac-flow > .module-client-area,
#domain.wapac-flow > .module-client-area > .mg-wrapper,
#domain.wapac-flow #layers,
#domain.wapac-flow #layers > .lu-app,
#domain.wapac-flow #layers > .lu-app > .vue-app-main-container {
    display: contents;
}
#domain.wapac-flow > *,
#domain.wapac-flow > .module-client-area > *,
#domain.wapac-flow > .module-client-area > .mg-wrapper > *,
#domain.wapac-flow #layers > *,
#domain.wapac-flow #layers > .lu-app > *,
#domain.wapac-flow #layers > .lu-app > .vue-app-main-container > * {
    order: 20;
}
#domain.wapac-flow > .wapac-cred-card { order: 1; }
#domain.wapac-flow #layers > .lu-app > .vue-app-main-container > #serviceInformationDataTable { order: 6; margin: 26px 0 0; }
/* 信息表右上角的"编辑服务器"铅笔按钮隐藏：常用操作里已有"修改主机名"（那张卡片点击时仍转给这个按钮，隐藏不影响） */
#layers #serviceInformationDataTable .lu-widget__top .lu-top__toolbar {
    display: none !important;
}
#domain.wapac-flow > .wapac-bw-card { order: 3; }
#domain.wapac-flow > .wapac-pve { order: 4; }
#domain.wapac-flow #layers > .lu-app > .vue-app-main-container > .lu-row:has(#ipAddressDataTable) { order: 5; margin-top: 26px; }
#domain.wapac-flow #serviceInformationDataTable > [class*="lu-col"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ======================================================
   26. MG Proxmox 弹窗：统一成主题样式；"编辑服务器"只留主机名
   ====================================================== */
.lu-modal .lu-modal__content {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 48px rgba(24, 20, 32, 0.18);
    overflow: hidden;
    font-family: var(--wapac-font);
}
.lu-modal .lu-modal__top {
    padding: 16px 22px;
    border-bottom: 1px solid #f0edf3;
    background: #fcfbfd;
}
.lu-modal .lu-modal__top .lu-top__title,
.lu-modal .lu-modal__top .lu-top__title span {
    color: #1f2328 !important;
    font-size: 17px;
    font-weight: 600 !important;
}
.lu-modal .lu-modal__body {
    padding: 20px 22px 8px;
}
.lu-modal .lu-form-label {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.lu-modal .lu-form-control,
.lu-modal .selectize-input {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    box-shadow: none;
    font-size: 14px;
    color: #181b20;
}
.lu-modal .lu-form-control:focus,
.lu-modal .selectize-input.focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}
.lu-modal .lu-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid #f0edf3;
    background: #fff;
}
.lu-modal .lu-modal__actions .lu-btn {
    min-width: 84px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}
.lu-modal .lu-modal__actions .lu-btn--success {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #fff !important;
}
.lu-modal .lu-modal__actions .lu-btn--success:hover,
.lu-modal .lu-modal__actions .lu-btn--success:focus {
    border-color: var(--primary-hover) !important;
    background: var(--primary-hover) !important;
}
.lu-modal .lu-modal__actions .lu-btn--danger.lu-btn--outline {
    border: 1px solid #ced4da !important;
    background: #fff !important;
    color: #24282e !important;
}
.lu-modal .lu-modal__actions .lu-btn--danger.lu-btn--outline:hover {
    border-color: var(--primary) !important;
    background: var(--primary-soft) !important;
    color: var(--primary-hover) !important;
}
/* "编辑服务器"弹窗：只显示主机名。ISO 与启动顺序只隐藏，字段仍随表单提交当前值 */
.lu-modal form:has(input[name="hostname"]):has(select[name="bootOrder0"]) .lu-form-group:has(select[name="iso"]),
.lu-modal form:has(input[name="hostname"]):has(select[name="bootOrder0"]) .lu-form-group:has(select[name^="bootOrder"]) {
    display: none !important;
}
.lu-modal.wapac-hostname-modal .lu-modal__dialog {
    max-width: 480px;
}

/* 主机名校验提示（js/wapac-details.js、js/wapac-cart.js） */
.wapac-hostname-error {
    margin-top: 6px;
    color: #b52b37;
    font-size: 12.5px;
    line-height: 1.5;
}
input.wapac-input-invalid,
input.wapac-input-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
}

/* ======================================================
   27. 商城页（orderforms/wapac_cart/products.tpl）：横幅 → 选择地区 → 选择产品 → 套餐表 + 右侧订单详情
   按设计初稿；standard_cart 的 CSS 在本文件之后加载，选择器带 body 提高优先级。
   ====================================================== */
body #order-standard_cart.wapac-buy { margin-top: 4px; }
body #order-standard_cart.wapac-buy a.buy-choice,
body #order-standard_cart.wapac-buy a.buy-choice:hover { text-decoration: none; }
body #order-standard_cart.wapac-buy .buy-summary-plan[hidden] { display: none; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr:focus-visible { outline: 0; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr:focus-visible td { background: #f7f4fa; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--primary-border); }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr.active:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
body #order-standard_cart.wapac-buy a.buy-order-btn { color: #fff; text-decoration: none; }
body #order-standard_cart.wapac-buy .buy-summary-plan > .buy-summary-list { padding-top: 8px; }
body #order-standard_cart.wapac-buy .buy-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 28px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(111, 93, 125, 0.12) 0%, rgba(111, 93, 125, 0) 55%),
    linear-gradient(135deg, #ffffff 0%, #f8f5fa 100%);
  box-shadow: var(--shadow-card);
}
body #order-standard_cart.wapac-buy .buy-hero h1 { margin: 0 0 10px; font-size: 24px; font-weight: 700; color: #1f2328; }
body #order-standard_cart.wapac-buy .buy-hero p { margin: 12px 0 0; max-width: 820px; font-size: 14px; color: var(--text-secondary); }
body #order-standard_cart.wapac-buy .buy-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
body #order-standard_cart.wapac-buy .buy-tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 4px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  background: var(--primary-soft); color: #5b4b68; border: 1px solid var(--primary-border);
}
body #order-standard_cart.wapac-buy .buy-tag.tag-green { background: #edf7ed; color: #2f6b31; border-color: #cfe8cf; }
body #order-standard_cart.wapac-buy .buy-tag.tag-amber { background: #fef6e7; color: #9a5b06; border-color: #f6dfb3; }
body #order-standard_cart.wapac-buy .buy-tag.tag-blue { background: #eef4fb; color: #2b5d8f; border-color: #d3e2f2; }

body #order-standard_cart.wapac-buy .buy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
body #order-standard_cart.wapac-buy .buy-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #e7e4ec; }
body #order-standard_cart.wapac-buy .buy-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
body #order-standard_cart.wapac-buy .buy-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body #order-standard_cart.wapac-buy .buy-section-title { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: #1f2328; }
body #order-standard_cart.wapac-buy .buy-section-head .buy-section-title { margin: 0; }
body #order-standard_cart.wapac-buy .buy-test-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-secondary); font-size: 13px; font-weight: 600;
}
body #order-standard_cart.wapac-buy .buy-test-link:hover { border-color: var(--primary); color: var(--primary); }

body #order-standard_cart.wapac-buy .buy-region-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
body #order-standard_cart.wapac-buy .buy-choice {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; text-align: left;
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: #fff; color: var(--text-main); font: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body #order-standard_cart.wapac-buy .buy-choice:hover { border-color: var(--primary); }
body #order-standard_cart.wapac-buy .buy-choice:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
body #order-standard_cart.wapac-buy .buy-choice.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
body #order-standard_cart.wapac-buy .buy-choice-check {
  position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; background: var(--primary); color: #fff;
}
body #order-standard_cart.wapac-buy .buy-choice.active .buy-choice-check { display: inline-flex; }
body #order-standard_cart.wapac-buy .buy-flag {
  flex: none; width: 34px; height: 23px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); background: #fff; display: inline-flex;
}
body #order-standard_cart.wapac-buy .buy-flag svg { width: 100%; height: 100%; display: block; }
body #order-standard_cart.wapac-buy .buy-flag.is-icon { background: var(--primary-soft); color: var(--primary); align-items: center; justify-content: center; box-shadow: none; }
body #order-standard_cart.wapac-buy .buy-flag.is-icon svg { width: 18px; height: 18px; }
body #order-standard_cart.wapac-buy .buy-choice-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
body #order-standard_cart.wapac-buy .buy-choice-name { font-size: 14px; font-weight: 600; color: #1f2328; }
body #order-standard_cart.wapac-buy .buy-choice-sub { font-size: 12px; color: var(--text-muted); }

body #order-standard_cart.wapac-buy .buy-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body #order-standard_cart.wapac-buy .buy-product { flex-direction: column; align-items: flex-start; gap: 9px; padding: 13px 14px; }
body #order-standard_cart.wapac-buy .buy-product-top { display: flex; align-items: center; gap: 10px; padding-right: 18px; }
body #order-standard_cart.wapac-buy .buy-product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
body #order-standard_cart.wapac-buy .buy-info-bar {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 12px; padding: 11px 14px;
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  background: var(--bg-subtle); color: var(--text-secondary); font-size: 13px; line-height: 1.6;
}
body #order-standard_cart.wapac-buy .buy-info-bar[hidden] { display: none; }
body #order-standard_cart.wapac-buy .buy-info-bar svg { flex: none; margin-top: 3px; color: var(--primary); }
body #order-standard_cart.wapac-buy .buy-info-bar strong { color: #1f2328; font-weight: 600; }

body #order-standard_cart.wapac-buy .buy-table-wrap { border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; overflow-x: auto; box-shadow: var(--shadow-card); }
body #order-standard_cart.wapac-buy .buy-plan-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
body #order-standard_cart.wapac-buy .buy-plan-table th {
  padding: 10px 14px; text-align: left; white-space: nowrap;
  background: #f8f7fa; color: var(--text-muted); font-size: 12.5px; font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}
body #order-standard_cart.wapac-buy .buy-plan-table td { padding: 12px 14px; border-top: 1px solid #f0edf3; white-space: nowrap; color: var(--text-main); font-variant-numeric: tabular-nums; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr:first-child td { border-top: 0; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr { cursor: pointer; transition: background .12s ease; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr:hover td { background: #fcfbfd; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr.active td { background: var(--primary-soft); }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr.active td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr.is-soldout { cursor: not-allowed; }
body #order-standard_cart.wapac-buy .buy-plan-table tbody tr.is-soldout td { color: var(--text-muted); }
body #order-standard_cart.wapac-buy .buy-plan-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: #1f2328; }
body #order-standard_cart.wapac-buy .buy-radio { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #b9b4c2; background: #fff; position: relative; }
body #order-standard_cart.wapac-buy tr.active .buy-radio { border-color: var(--primary); }
body #order-standard_cart.wapac-buy tr.active .buy-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
body #order-standard_cart.wapac-buy .buy-stock { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #edf7ed; color: #2f6b31; border: 1px solid #cfe8cf; }
body #order-standard_cart.wapac-buy .buy-stock.low { background: #fef6e7; color: #9a5b06; border-color: #f6dfb3; }
body #order-standard_cart.wapac-buy .buy-stock.out { background: #f1f2f4; color: #777d85; border-color: #e1e3e6; }
body #order-standard_cart.wapac-buy .buy-price { font-weight: 700; color: var(--primary-hover); }
body #order-standard_cart.wapac-buy .buy-price small { font-weight: 500; color: var(--text-muted); }

body #order-standard_cart.wapac-buy .buy-summary { position: sticky; top: 16px; }
body #order-standard_cart.wapac-buy .buy-summary-card { border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); overflow: hidden; }
body #order-standard_cart.wapac-buy .buy-summary-head { padding: 14px 18px; border-bottom: 1px solid #f0edf3; background: #fcfbfd; }
body #order-standard_cart.wapac-buy .buy-summary-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #1f2328; }
body #order-standard_cart.wapac-buy .buy-summary-head svg { color: var(--primary); }
body #order-standard_cart.wapac-buy .buy-summary-list { margin: 0; padding: 8px 18px 4px; }
body #order-standard_cart.wapac-buy .buy-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 13.5px; }
body #order-standard_cart.wapac-buy .buy-summary-row dt { font-weight: 500; color: var(--text-muted); flex: none; }
body #order-standard_cart.wapac-buy .buy-summary-row dd { margin: 0; font-weight: 600; color: #1f2328; text-align: right; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
body #order-standard_cart.wapac-buy .buy-summary-row dd .buy-flag { width: 20px; height: 14px; }
body #order-standard_cart.wapac-buy .buy-summary-price { margin: 6px 18px 0; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-subtle); }
body #order-standard_cart.wapac-buy .buy-summary-price .buy-summary-row { padding: 4px 0; }
body #order-standard_cart.wapac-buy .buy-summary-total dd { font-size: 24px; font-weight: 700; color: var(--primary-hover); }
body #order-standard_cart.wapac-buy .buy-summary-total dd small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
body #order-standard_cart.wapac-buy .buy-order-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 36px); margin: 14px 18px 0; padding: 10px 14px; font-size: 15px; font-weight: 600; }
body #order-standard_cart.wapac-buy .buy-order-btn:disabled { opacity: .55; cursor: not-allowed; }
body #order-standard_cart.wapac-buy .buy-summary-note { margin: 10px 18px 16px; font-size: 12px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 1199px) {
  body #order-standard_cart.wapac-buy .buy-region-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  body #order-standard_cart.wapac-buy .buy-layout { grid-template-columns: minmax(0, 1fr); }
  body #order-standard_cart.wapac-buy .buy-summary { position: static; }
  body #order-standard_cart.wapac-buy .buy-region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #order-standard_cart.wapac-buy .buy-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  body #order-standard_cart.wapac-buy .buy-hero { padding: 18px 16px; }
  body #order-standard_cart.wapac-buy .buy-hero h1 { font-size: 20px; }
  body #order-standard_cart.wapac-buy .buy-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #order-standard_cart.wapac-buy .buy-product-grid { grid-template-columns: minmax(0, 1fr); }
  body #order-standard_cart.wapac-buy .buy-plan-table { min-width: 680px; }
}
/* 地区卡片：国旗 + 名称居中（选中勾仍在右上角） */
body #order-standard_cart.wapac-buy .buy-region-grid .buy-choice { justify-content: center; padding-left: 22px; padding-right: 22px; }
/* 地区卡片：名称与简称上下居中对齐，简称用等宽大写字母样式 */
body #order-standard_cart.wapac-buy .buy-region-grid .buy-choice-text { align-items: center; text-align: center; }
body #order-standard_cart.wapac-buy .buy-region-grid .buy-choice-sub { margin-top: 1px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: #8a8f94; }
/* 配置页：只剩一个选项的 IPv4 下拉框固定显示（js/wapac-cart.js 加 .wapac-select-fixed） */
body #order-standard_cart select.wapac-select-fixed {
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    background-color: var(--bg-subtle);
    color: var(--text-main);
}
/* 付款周期正好三种时排成一行（js/wapac-cart.js 加 .is-cols-3）；手机宽度仍一列 */
@media (min-width: 576px) {
    body #order-standard_cart .wapac-cycle-grid.is-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ======================================================
   28. 配置页系统模板：两级选择（系统类型 → 系统版本），js/wapac-cart.js 按该产品实际可选的系统生成；原 select 隐藏但仍提交
   ====================================================== */
body #order-standard_cart .wapac-os-select { display: none !important; }
body #order-standard_cart .wapac-os-col { flex: 0 0 100%; max-width: 100%; }
body #order-standard_cart label.wapac-os-label {
    position: absolute !important;
    width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body #order-standard_cart .wapac-os-subtitle { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
body #order-standard_cart .wapac-os-versions + .wapac-os-subtitle,
body #order-standard_cart .wapac-os-types + .wapac-os-subtitle { margin-top: 16px; }
body #order-standard_cart .wapac-os-types { display: flex; flex-wrap: wrap; gap: 10px; }
body #order-standard_cart .wapac-os-versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body #order-standard_cart .wapac-os-type,
body #order-standard_cart .wapac-os-ver {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body #order-standard_cart .wapac-os-type { padding: 10px 14px; }
body #order-standard_cart .wapac-os-ver { width: 100%; padding: 12px 14px; }
body #order-standard_cart .wapac-os-type:hover,
body #order-standard_cart .wapac-os-ver:hover { border-color: var(--primary); }
body #order-standard_cart .wapac-os-type:focus,
body #order-standard_cart .wapac-os-ver:focus { outline: 0; }
body #order-standard_cart .wapac-os-type:focus-visible,
body #order-standard_cart .wapac-os-ver:focus-visible { box-shadow: var(--focus-ring); }
body #order-standard_cart .wapac-os-type.active,
body #order-standard_cart .wapac-os-ver.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--primary);
}
body #order-standard_cart .wapac-os-icon { flex: none; width: 24px; height: 24px; display: inline-flex; }
body #order-standard_cart .wapac-os-icon svg { width: 100%; height: 100%; display: block; }
body #order-standard_cart .wapac-os-name { font-size: 14px; font-weight: 600; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #order-standard_cart .wapac-os-ver-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.35; }
body #order-standard_cart .wapac-os-price { font-size: 12px; font-weight: 600; color: var(--primary-hover); }
body #order-standard_cart .wapac-os-ver:not(.active) .wapac-os-name { color: var(--text-secondary); font-weight: 500; }
/* 选中标记：系统类型是带勾的小圆，版本卡片是右侧单选圆圈 */
body #order-standard_cart .wapac-os-mark {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #c3bfca;
    color: transparent;
    background: #fff;
}
body #order-standard_cart .wapac-os-type .wapac-os-mark { display: none; }
body #order-standard_cart .wapac-os-type.active .wapac-os-mark { display: inline-flex; }
body #order-standard_cart .wapac-os-ver .wapac-os-mark { margin-left: auto; }
body #order-standard_cart .wapac-os-type.active .wapac-os-mark,
body #order-standard_cart .wapac-os-ver.active .wapac-os-mark { border-color: var(--primary); background: var(--primary); color: #fff; }
@media (max-width: 575.98px) {
    body #order-standard_cart .wapac-os-versions { grid-template-columns: minmax(0, 1fr); }
}

/* 配置页"机房线路"卡片（js/wapac-cart.js 的 Location 选项） */
body #order-standard_cart .wapac-loc-hint { margin: -4px 0 10px; font-size: 12.5px; color: var(--text-muted); }
body #order-standard_cart .wapac-loc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body #order-standard_cart .wapac-loc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body #order-standard_cart .wapac-loc-card:hover { border-color: var(--primary); }
body #order-standard_cart .wapac-loc-card:focus { outline: 0; }
body #order-standard_cart .wapac-loc-card:focus-visible { box-shadow: var(--focus-ring); }
body #order-standard_cart .wapac-loc-card.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
body #order-standard_cart .wapac-loc-head { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
body #order-standard_cart .wapac-loc-card .wapac-os-mark { display: inline-flex; }
body #order-standard_cart .wapac-loc-card.active .wapac-os-mark { border-color: var(--primary); background: var(--primary); color: #fff; }
body #order-standard_cart .wapac-loc-name { font-size: 14px; font-weight: 600; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #order-standard_cart .wapac-loc-badge { flex: none; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; line-height: 1.7; background: #edf7ed; color: #2f6b31; border: 1px solid #cfe8cf; }
body #order-standard_cart .wapac-loc-desc { padding-left: 26px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
body #order-standard_cart .wapac-loc-card .wapac-os-price { padding-left: 26px; }
@media (max-width: 767.98px) {
    body #order-standard_cart .wapac-loc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================================
   29. 配置页右侧：优惠码卡片 + "订单详情"卡片（orderforms/wapac_cart/configureproduct.tpl、ordersummary.tpl）
   右栏随页面滚动固定在原位（position: sticky）；standard_cart 自带的"滚动时用动画改 margin-top"在这里压掉。
   ====================================================== */
body #order-standard_cart .row:has(> .wapac-conf-side) > .secondary-cart-body { margin-top: 0 !important; }
body #order-standard_cart #orderSummary.wapac-conf-sticky {
    position: sticky;
    top: 16px;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
body #order-standard_cart .wapac-promo-card,
body #order-standard_cart .order-summary.wapac-conf-summary {
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
body #order-standard_cart .wapac-promo-card { padding: 14px 16px; }
body #order-standard_cart .wapac-promo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #1f2328; }
body #order-standard_cart .wapac-promo-head svg { color: var(--primary); }
body #order-standard_cart .wapac-promo-row { display: flex; gap: 8px; }
body #order-standard_cart .wapac-promo-row .form-control { flex: 1 1 auto; min-width: 0; height: 36px; font-size: 13.5px; }
body #order-standard_cart .wapac-promo-row .btn { flex: none; height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
body #order-standard_cart .wapac-promo-msg { font-size: 12.5px; line-height: 1.5; }
body #order-standard_cart .wapac-promo-msg.is-error { margin-top: 8px; color: #b52b37; }
body #order-standard_cart .wapac-promo-msg.is-ok { margin-top: 8px; color: #2f6b31; }
body #order-standard_cart .wapac-promo-applied {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border: 1px solid #cfe8cf; border-radius: var(--radius-md); background: #edf7ed;
    font-size: 13px; color: #2f6b31;
}
body #order-standard_cart .wapac-promo-applied strong { font-weight: 700; }
body #order-standard_cart .wapac-promo-applied small { display: block; color: #4f7f51; font-size: 12px; }
body #order-standard_cart .wapac-promo-remove { flex: none; border: 1px solid #cfe8cf; background: #fff; color: #2f6b31; font-size: 12.5px; }

body #order-standard_cart .order-summary.wapac-conf-summary .loader { border-radius: var(--radius-lg); }
body #order-standard_cart .order-summary h2.wapac-conf-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0; padding: 13px 16px;
    border-bottom: 1px solid #f0edf3; background: #fcfbfd;
    font-size: 16px !important; font-weight: 600; color: #1f2328;
}
body #order-standard_cart .order-summary h2.wapac-conf-title svg { color: var(--primary); flex: none; }
body #order-standard_cart .wapac-conf-specs { margin: 0; padding: 8px 16px 6px; border-bottom: 1px dashed #ece9f0; }
body #order-standard_cart .wapac-conf-summary .summary-container { padding: 4px 16px 16px; margin: 0; background: none; border: 0; }
body #order-standard_cart .wapac-conf-specs + .summary-container .product-name,
body #order-standard_cart .wapac-conf-specs + .summary-container .product-group { display: none; }
body #order-standard_cart .wapac-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 13.5px; }
body #order-standard_cart .wapac-sum-row dt { flex: 0 1 auto; min-width: 0; font-weight: 500; color: var(--text-muted); overflow-wrap: anywhere; }
body #order-standard_cart .wapac-sum-row dd {
    flex: 0 1 auto; margin: 0; text-align: right; font-weight: 600; color: #1f2328; overflow-wrap: anywhere;
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px;
}
body #order-standard_cart .wapac-sum-row dd .buy-flag { width: 20px; height: 14px; flex: none; display: inline-flex; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
body #order-standard_cart .wapac-sum-row dd .buy-flag svg { width: 100%; height: 100%; display: block; }
body #order-standard_cart .wapac-sum-row dd .buy-flag.is-icon { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
body #order-standard_cart .wapac-sum-extra { font-size: 12px; font-weight: 600; color: var(--primary-hover); }
body #order-standard_cart .wapac-sum-options { margin: 6px 0 0; }
body #order-standard_cart .wapac-sum-totals {
    margin-top: 10px; padding: 10px 14px;
    border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-subtle);
}
body #order-standard_cart .wapac-sum-due {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border-light);
}
body #order-standard_cart .wapac-sum-due span { font-size: 13.5px; font-weight: 500; color: var(--text-muted); }
body #order-standard_cart .wapac-sum-due strong { font-size: 24px; font-weight: 700; color: var(--primary-hover); line-height: 1.2; text-align: right; }
body #order-standard_cart .btn.wapac-conf-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin: 0; padding: 11px 14px; font-size: 15px; font-weight: 600;
}
@media (max-width: 991.98px) {
    body #order-standard_cart #orderSummary.wapac-conf-sticky { position: static; }
}

/* 我的服务表格第二版（clientareaproducts.tpl）：国旗 + 非有效状态小标签、隐藏状态列、价格层次、到期倒计时、IP 复制、隔行底色 */
body #tableWapacServicesList2 th.wapac-col-status,
body #tableWapacServicesList2 td.wapac-col-status { display: none !important; }
body #tableWapacServicesList2 tbody tr:nth-child(even) td { background: #faf9fb; }
body #tableWapacServicesList2 tbody tr:hover td { background: var(--primary-soft); }
body #tableWapacServicesList2 .wapac-svc-head { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
body #tableWapacServicesList2 .wapac-svc-head .buy-flag {
    flex: none; width: 20px; height: 14px; display: inline-flex; border-radius: 2px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
body #tableWapacServicesList2 .wapac-svc-head .buy-flag svg { width: 100%; height: 100%; display: block; }
body #tableWapacServicesList2 .wapac-svc-head .buy-flag.is-icon { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
body #tableWapacServicesList2 .wapac-service-sub { padding-left: 28px; }
body #tableWapacServicesList2 .wapac-svc-state {
    display: inline-block; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; line-height: 1.7;
    background: #f1f2f4; color: #5f6670; border: 1px solid #e1e3e6; white-space: nowrap;
}
body #tableWapacServicesList2 .wapac-svc-state.state-suspended { background: #fdecec; color: #a32d2d; border-color: #f5c9c9; }
body #tableWapacServicesList2 .wapac-svc-state.state-pending { background: #fef6e7; color: #9a5b06; border-color: #f6dfb3; }
body #tableWapacServicesList2 .wapac-ip-copy {
    margin-left: 6px; padding: 0 4px; border: 0; background: none; color: #a3a7ad; cursor: pointer; font-size: 13px; line-height: 1;
    opacity: 0; transition: opacity .12s ease, color .12s ease;
}
body #tableWapacServicesList2 tr:hover .wapac-ip-copy,
body #tableWapacServicesList2 .wapac-ip-copy:focus-visible { opacity: 1; }
body #tableWapacServicesList2 .wapac-ip-copy:hover { color: var(--primary); }
body #tableWapacServicesList2 .wapac-ip-copy.is-copied { opacity: 1; color: var(--wapac-success); }
body #tableWapacServicesList2 .wapac-price-amt { font-weight: 600; color: #1f2328; font-variant-numeric: tabular-nums; }
body #tableWapacServicesList2 .wapac-price-meta { font-size: 12px; color: #8a8f94; white-space: nowrap; }
body #tableWapacServicesList2 .wapac-due-date { color: #1f2328; font-variant-numeric: tabular-nums; }
body #tableWapacServicesList2 .wapac-due-left { font-size: 12px; line-height: 1.4; }
body #tableWapacServicesList2 .wapac-due-left:empty { display: none; }
body #tableWapacServicesList2 .wapac-due-left.is-ok { color: #8a8f94; }
body #tableWapacServicesList2 .wapac-due-left.is-soon { color: #b06a00; font-weight: 600; }
body #tableWapacServicesList2 .wapac-due-left.is-over { color: #b52b37; font-weight: 600; }
@media (hover: none) {
    body #tableWapacServicesList2 .wapac-ip-copy { opacity: 1; }
}
/* 我的服务：列宽——IP 列留够完整 IPv6（39 个字符）的宽度，操作列只占按钮宽 */
body #tableWapacServicesList2 th:nth-child(2),
body #tableWapacServicesList2 td.wapac-service-ip { min-width: 300px; white-space: nowrap; }
body #tableWapacServicesList2 th.wapac-col-manage,
body #tableWapacServicesList2 td.wapac-col-manage { width: 1%; white-space: nowrap; padding-left: 8px; }
body #tableWapacServicesList2 td:nth-child(3),
body #tableWapacServicesList2 td:nth-child(4) { white-space: nowrap; }
/* 配置页优惠码卡片暂时隐藏（2026-11-24 运营决定；要恢复删掉这条即可。优惠码仍可在购物车页使用） */
body #order-standard_cart .wapac-promo-card { display: none !important; }
/* 顶部导航的下拉菜单要盖在页面内容之上（配置页右栏 position: sticky 后会形成新的层，挡住"我的账户"等下拉） */
#header { position: relative; z-index: 1030; }
/* 提交工单页：部门下拉别被截断（原宽度按内容最短选项算，"General Enquiries" 显示不全） */
body select#inputDepartment { min-width: 260px; max-width: 100%; width: auto; }

/* 凭据卡：附加 IPv4 / IPv6 列表（includes/wapac-ip-list.tpl）——每个 IP 一行、带复制按钮，超过 3 个折叠 */
.wapac-cred-row.wapac-ip-row { align-items: flex-start; }
.wapac-ip-list-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.wapac-ip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 100%; }
.wapac-ip-item { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.wapac-ip-item[hidden] { display: none; }
.wapac-ip-item .wapac-cred-ip { font-family: var(--wapac-mono); font-size: 13.5px; overflow-wrap: anywhere; text-align: right; }
.wapac-micro-btn.wapac-icon-btn { padding: 4px 6px; }
.wapac-micro-btn.is-copied { border-color: #cfe8cf; color: #2f6b31; background: #edf7ed; }
.wapac-ip-actions { display: flex; gap: 12px; }
.wapac-ip-link { padding: 0; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--primary); cursor: pointer; }
.wapac-ip-link:hover { color: var(--primary-hover); text-decoration: underline; }

/* 商城页切换地区 / 产品时不整页刷新（js/wapac-cart.js）：取页期间内容稍微变淡；150ms 内取完就不闪 */
body #order-standard_cart.wapac-buy .buy-layout { transition: opacity .15s ease; }
body #order-standard_cart.wapac-buy.is-loading .buy-layout { opacity: .55; transition-delay: .15s; cursor: progress; }
