/*
Theme Name: phsulu
Description: phsulu account, mobile, games and support website. Black-and-gold identity with three destination routes and H5 layout.
Version: 1.1.9
Requires at least: 6.2
Requires PHP: 7.4
Author: phsulu
Text Domain: phsulu
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
    --bg: #0b0b0a;
    --surface: #151410;
    --surface2: #1d1b16;
    --ink: #f2eee3;
    --muted: #bbb6aa;
    --gold: #dfbc77;
    --gold2: #a9874c;
    --gold-light: #ffe8b4;
    --line: #3a3429;
    --softline: #29261f;
    --header-h: 82px;
    --toolbar-offset: 0px;
    --visible-height: 100dvh;
    --radius: 16px;
    --shell: 1180px;
    --metallic-edge: linear-gradient(115deg, #ecc777 0%, #bb9653 36%, #efd397 66%, #9f7c41 100%);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 188, 119, .13), transparent 34%),
        linear-gradient(180deg, #11100d 0%, #070706 58%, #050504 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .5;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--gold);
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

figure,
h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(34px, 5vw, 64px);
}

h2 {
    font-size: clamp(25px, 3vw, 40px);
}

h3 {
    font-size: 22px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.shell {
    width: min(var(--shell), calc(100% - 32px));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100000;
    background: var(--gold);
    color: #14120f;
    padding: 10px 18px;
}

.skip-link:focus {
    top: 15px;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.brand-word {
    text-transform: none;
    letter-spacing: normal;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid #f1cc88;
    border-radius: 999px;
    background: linear-gradient(115deg, #ffe2a1, #e7b663 55%, #e5c387);
    color: #161411;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 8px 24px rgba(235, 177, 95, .16), inset 0 1px rgba(255,255,255,.44);
}

.btn:hover {
    color: #12100e;
    background: linear-gradient(115deg, #fff0cb, #f4c77b 55%, #f5d695);
}

.btn-outline {
    border: 1px solid transparent;
    background: linear-gradient(125deg, #25231d, #211f1a) padding-box, var(--metallic-edge) border-box;
    color: var(--ink);
}

/* Header */

.site-header {
    position: fixed;
    top: var(--toolbar-offset);
    left: 0;
    right: 0;
    z-index: 9990;
    background: rgba(11, 11, 10, .98);
    border-bottom: 1px solid rgba(223, 188, 119, .26);
    box-shadow: 0 12px 35px rgba(0,0,0,.22);
}

.admin-bar .site-header {
    top: var(--toolbar-offset, 32px);
}

.site-header-spacer {
    height: var(--header-h);
}

.header-inner {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 22px;
}

.brand,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    max-width: 220px;
}

.brand img,
.custom-logo {
    width: auto;
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
}

.primary-nav {
    justify-self: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    position: relative;
    display: block;
    padding: 14px 10px;
    color: rgba(242,238,227,.88);
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu .current-menu-item > a,
.nav-menu [aria-current="page"] {
    color: var(--gold-light);
}

.nav-menu .current-menu-item > a::after,
.nav-menu > li > a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 7px;
    height: 2px;
    background: var(--metallic-edge);
}

.menu-item-has-children {
    padding-right: 16px;
}

.submenu-toggle {
    position: absolute;
    right: -6px;
    top: 9px;
    width: 28px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--gold);
    padding: 0;
    font-size: 18px;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% - 1px);
    min-width: 210px;
    padding: 12px;
    list-style: none;
    border: 1px solid #766647;
    border-radius: 14px;
    background: linear-gradient(135deg, #22201b, #1c1a16);
    box-shadow: 0 18px 38px rgba(0,0,0,.48);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 14px;
    color: rgba(242,238,227,.82);
    font-size: 13px;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.submenu-open > .sub-menu {
    display: block;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header-login,
.header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(115deg, #2f2c25, #28251f) padding-box, var(--metallic-edge) border-box;
    color: #ffe0a8;
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid #897752;
    border-radius: 10px;
    background: linear-gradient(140deg, #24211c, #1d1b16);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: var(--gold);
    transition: transform .18s, opacity .18s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

/* Home First Screen */

.home-stage {
    padding: 24px 0 42px;
}

.phsulu-h5-first {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
    grid-template-areas:
        "intro routes"
        "tools routes";
    gap: 18px;
    align-items: start;
}

.phsulu-h5-hero-copy {
    grid-area: intro;
    padding-top: 24px;
    text-align: left;
}

.phsulu-h5-hero-copy h1 {
    max-width: 620px;
    margin: 10px 0 14px;
    color: var(--ink);
    font-size: clamp(40px, 4.8vw, 72px);
    line-height: 1;
    font-weight: 850;
}

.phsulu-h5-hero-copy .hero-brief {
    max-width: 620px;
    color: rgba(242,238,227,.78);
    font-size: 16px;
    line-height: 1.68;
}

.phsulu-h5-route-board {
    grid-area: routes;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(223,188,119,.34);
    border-radius: 24px;
    background:
        radial-gradient(circle at 70% 0%, rgba(223,188,119,.12), transparent 38%),
        linear-gradient(180deg, #19160f, #0d0c0a);
    box-shadow: 0 18px 48px rgba(0,0,0,.34);
}

.board-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.board-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(242,238,227,.72);
    font-size: 12px;
}

.board-heading svg {
    width: 14px;
    height: 14px;
}

.phsulu-h5-route-grid,
.route-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.route-card,
.phsulu-h5-route-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(223,188,119,.38);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(223,188,119,.12), transparent 50%),
        linear-gradient(145deg, rgba(34,30,21,.98), rgba(15,14,11,.98));
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.route-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(242,238,227,.68);
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .1em;
}

.route-number {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-style: italic;
    line-height: 1;
    letter-spacing: -.04em;
}

.route-label strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0;
}

.route-label > svg {
    width: 24px;
    height: 24px;
    margin-left: auto;
    color: var(--gold);
}

.route-card h2,
.phsulu-h5-route-card h2 {
    margin-top: 13px;
    color: var(--gold-light);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.06;
    word-break: break-word;
}

.route-card p,
.phsulu-h5-route-card p {
    margin: 10px 0 14px;
    color: rgba(242,238,227,.72);
    font-size: 13px;
    line-height: 1.62;
}

.route-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 13px;
    border: 1px solid #f1cc88;
    border-radius: 999px;
    background: linear-gradient(115deg, #ffe2a1, #e7b663 55%, #e5c387);
    color: #17120a;
    font-size: 13px;
    font-weight: 850;
}

.route-button:hover {
    color: #17120a;
    background: linear-gradient(115deg, #fff0cb, #f4c77b 55%, #f5d695);
}

.route-button svg {
    width: 21px;
    height: 21px;
}

.route-button.unavailable {
    opacity: .65;
}

/* Home Tools */

.phsulu-h5-access-tools {
    grid-area: tools;
    padding: 16px;
    border: 1px solid rgba(223,188,119,.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 0%, rgba(223,188,119,.12), transparent 34%),
        rgba(21,20,16,.92);
}

.phsulu-h5-access-tools h2 {
    margin: 0 0 8px;
    color: var(--gold-light);
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.18;
    text-align: left;
}

.phsulu-h5-access-tools > p {
    margin: 0 0 14px;
    color: rgba(242,238,227,.72);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

.phsulu-h5-tool-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.phsulu-h5-tool-actions a,
.phsulu-h5-tool-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid rgba(255,232,180,.7);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #a9874c);
    color: #17120a;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
}

.phsulu-h5-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.phsulu-h5-tool-card {
    display: block;
    width: 100%;
    min-height: 122px;
    padding: 14px;
    border: 1px solid rgba(223,188,119,.25);
    border-radius: 16px;
    background: rgba(11,11,10,.56);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.phsulu-h5-tool-card strong,
.phsulu-h5-tool-card span,
.phsulu-h5-tool-card em {
    display: block;
}

.phsulu-h5-tool-card strong {
    color: var(--gold-light);
    font-size: 16px;
    line-height: 1.25;
}

.phsulu-h5-tool-card span {
    margin-top: 7px;
    color: rgba(242,238,227,.7);
    font-size: 13px;
    line-height: 1.42;
}

.phsulu-h5-tool-card em {
    display: inline-flex;
    margin-top: 11px;
    color: var(--gold);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

/* Home Sections */

.section-block {
    padding: 54px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin-top: 8px;
}

.section-heading > p {
    max-width: 360px;
    color: rgba(242,238,227,.68);
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.task-panel {
    padding: 22px;
    border: 1px solid rgba(223,188,119,.26);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(223,188,119,.08), transparent 45%),
        linear-gradient(145deg, #1c1913, #11110f);
}

.task-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: linear-gradient(140deg, #2b2922, #23211b) padding-box, var(--metallic-edge) border-box;
    color: var(--gold);
}

.icon-frame svg {
    width: 24px;
    height: 24px;
}

.task-panel h3 {
    margin: 18px 0 12px;
    color: var(--ink);
}

.task-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(223,188,119,.18);
}

.task-link strong {
    display: block;
    font-size: 14px;
}

.task-link small {
    display: block;
    margin-top: 3px;
    color: rgba(242,238,227,.64);
    font-size: 12px;
    line-height: 1.5;
}

.task-link svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.help-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(223,188,119,.22);
}

.help-strip > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.help-strip p,
.help-strip a {
    font-size: 13px;
}

.help-strip a {
    color: var(--gold);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(223,188,119,.76);
}

.home-editorial {
    padding-top: 0;
}

.home-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.copy-card {
    padding: 26px;
    border: 1px solid rgba(223,188,119,.22);
    border-radius: 18px;
    background: linear-gradient(145deg, #1b1914, #131310);
}

.prose {
    min-width: 0;
    overflow-wrap: break-word;
}

.prose h2 {
    margin-bottom: 16px;
    color: var(--gold-light);
    font-size: 24px;
}

.prose h3 {
    margin: 22px 0 10px;
    color: var(--ink);
    font-size: 20px;
}

.prose p {
    margin-bottom: 16px;
    color: rgba(242,238,227,.74);
    font-size: 14px;
    line-height: 1.85;
}

.prose a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose li {
    margin: 6px 0;
    color: rgba(242,238,227,.74);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 13px;
}

.prose th,
.prose td {
    padding: 12px;
    border: 1px solid rgba(223,188,119,.25);
    text-align: left;
    vertical-align: top;
}

/* Inner Pages */

.page-shell {
    padding: 34px 0 62px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: rgba(242,238,227,.6);
    font-size: 12px;
}

.breadcrumbs a {
    color: var(--gold);
}

.page-heading {
    max-width: 900px;
    margin-bottom: 26px;
}

.page-heading h1 {
    margin: 10px 0 14px;
}

.page-heading > p:last-child:not(.eyebrow) {
    max-width: 720px;
    color: rgba(242,238,227,.72);
    font-size: 15px;
    line-height: 1.72;
}

.main-entry {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
    padding: 22px;
    border: 1px solid transparent;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 10%, rgba(223,188,119,.09), transparent 45%) padding-box,
        linear-gradient(120deg, #221e16, #141410) padding-box,
        var(--metallic-edge) border-box;
}

.entry-symbol {
    width: 46px;
    height: 46px;
    color: var(--gold);
    flex-shrink: 0;
}

.entry-symbol svg {
    width: 100%;
    height: 100%;
}

.entry-copy {
    flex: 1;
}

.entry-copy h2 {
    margin: 4px 0 7px;
    color: var(--gold-light);
    font-size: 24px;
}

.entry-copy p {
    max-width: 560px;
    color: rgba(242,238,227,.7);
    font-size: 13px;
    line-height: 1.62;
}

.entry-action {
    flex-shrink: 0;
    text-align: center;
}

.entry-action .btn {
    min-width: 180px;
}

.entry-action small {
    display: block;
    margin-top: 6px;
    color: rgba(242,238,227,.6);
    font-size: 10px;
}

.inner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: start;
}

.page-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(223,188,119,.26);
    border-radius: 18px;
    background: linear-gradient(125deg, #211f1a, #1b1915);
}

.page-overview figure {
    margin: 0;
    background: #141310;
}

.page-overview figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-notes {
    padding: 24px;
}

.overview-notes > p {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    color: rgba(242,238,227,.74);
    font-size: 13px;
    line-height: 1.65;
}

.overview-notes svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.content-sections {
    display: grid;
    gap: 18px;
}

.sidebar-panel {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid rgba(223,188,119,.24);
    border-radius: 16px;
    background: #191814;
}

.page-toc ol {
    padding: 0;
    margin: 14px 0 0;
    list-style-position: inside;
    color: var(--gold);
    font-size: 12px;
}

.page-toc li {
    padding: 9px 0;
    border-top: 1px solid rgba(223,188,119,.14);
}

.page-toc li a {
    color: rgba(242,238,227,.7);
}

.side-note h2 {
    margin: 14px 0 10px;
    font-size: 24px;
}

.side-note p,
.side-links a {
    color: rgba(242,238,227,.68);
    font-size: 13px;
    line-height: 1.7;
}

.side-links a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(223,188,119,.14);
}

.contact-panel,
.return-home-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(223,188,119,.32);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(223,188,119,.1), transparent 42%),
        linear-gradient(145deg, #1c1913, #11110f);
}

.return-home-card h2,
.contact-panel h2 {
    margin: 8px 0 12px;
    color: var(--gold-light);
}

.return-home-description,
.contact-panel p {
    color: rgba(242,238,227,.72);
    font-size: 14px;
    line-height: 1.75;
}

.return-home-button {
    margin-top: 18px;
}

/* VPN Modal */

.phsulu-vpn-modal[aria-hidden="true"] {
    display: none;
}

.phsulu-vpn-modal[aria-hidden="false"] {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.phsulu-vpn-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
}

.phsulu-vpn-box {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: 86vh;
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(223,188,119,.36);
    border-radius: 22px;
    background: #151410;
    box-shadow: 0 24px 70px rgba(0,0,0,.58);
}

.phsulu-vpn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(223,188,119,.34);
    border-radius: 50%;
    background: rgba(255,232,180,.08);
    color: var(--gold-light);
    font-size: 25px;
    line-height: 1;
}

.phsulu-vpn-head {
    padding-right: 44px;
}

.phsulu-vpn-head h2 {
    margin: 4px 0 8px;
    color: var(--ink);
}

.phsulu-vpn-head p {
    color: rgba(242,238,227,.7);
    font-size: 14px;
    line-height: 1.55;
}

.phsulu-vpn-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.phsulu-vpn-tabs button {
    min-height: 42px;
    border: 1px solid rgba(223,188,119,.28);
    border-radius: 999px;
    background: rgba(11,11,10,.58);
    color: var(--ink);
    font-weight: 850;
}

.phsulu-vpn-tabs button.is-active {
    background: linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #a9874c);
    color: #17120a;
}

.phsulu-vpn-panel {
    display: none;
}

.phsulu-vpn-panel.is-active {
    display: block;
}

.phsulu-vpn-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.phsulu-vpn-step {
    padding: 10px;
    border: 1px solid rgba(223,188,119,.22);
    border-radius: 14px;
    background: rgba(11,11,10,.5);
}

.phsulu-vpn-step img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 10px;
    background: #0b0b0a;
}

.phsulu-vpn-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--gold);
    color: #17120a;
    font-size: 12px;
}

.phsulu-vpn-step span {
    display: block;
    margin-top: 7px;
    color: rgba(242,238,227,.76);
    font-size: 12px;
    line-height: 1.45;
}

/* Footer */

.site-footer {
    padding-top: 44px;
    border-top: 1px solid rgba(223,188,119,.24);
    background: #10100d;
}

.footer-opening {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: end;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(223,188,119,.22);
}

.footer-opening h2 {
    margin-top: 10px;
    color: var(--gold-light);
}

.footer-opening p:not(.eyebrow) {
    color: rgba(242,238,227,.68);
    font-size: 13px;
    line-height: 1.82;
}

.footer-links {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    gap: 22px;
    padding: 34px 0;
}

.footer-brand .brand img {
    width: 160px;
}

.footer-brand p {
    margin-top: 14px;
    color: rgba(242,238,227,.66);
    font-size: 12px;
    line-height: 1.8;
}

.footer-column h3 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
}

.footer-column a {
    display: block;
    padding: 5px 0;
    color: rgba(242,238,227,.72);
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(223,188,119,.18);
    color: rgba(242,238,227,.56);
    font-size: 11px;
}

/* Floating Social */

.social-rail,
.floating-social {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 9980;
    display: grid;
    gap: 9px;
}

.social-button,
.float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,232,180,.52);
    border-radius: 50%;
    background: linear-gradient(145deg, #2a251a, #11100d);
    color: var(--gold-light);
    box-shadow: 0 8px 22px rgba(0,0,0,.38);
}

.social-button svg,
.float-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive */

@media (max-width: 1180px) {
    :root {
        --header-h: 72px;
    }

    .header-inner {
        display: flex;
        min-height: var(--header-h);
        justify-content: space-between;
        gap: 14px;
    }

    .brand img,
    .custom-logo {
        max-width: 170px;
        max-height: 52px;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 14px max(18px, 5vw) 22px;
        background: #171612;
        border-bottom: 1px solid #9c885e;
        max-height: calc(var(--visible-height) - var(--header-h) - var(--toolbar-offset) - 12px);
        overflow-y: auto;
        box-shadow: 0 18px 35px rgba(0,0,0,.55);
    }

    .primary-nav.is-open {
        display: block;
    }

    .nav-menu {
        display: block;
    }

    .nav-menu > li {
        border-bottom: 1px solid rgba(223,188,119,.18);
    }

    .nav-menu > li > a {
        padding: 14px 0;
        min-height: 50px;
        font-size: 15px;
    }

    .nav-menu > li > a::after {
        display: none !important;
    }

    .menu-item-has-children {
        padding-right: 0;
    }

    .submenu-toggle {
        right: 0;
        top: 4px;
        width: 44px;
        height: 44px;
    }

    .nav-menu .sub-menu {
        position: static;
        min-width: 0;
        padding: 0 0 10px 14px;
        border: 0;
        border-left: 1px solid #8e7b55;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .menu-item-has-children:hover > .sub-menu,
    .menu-item-has-children:focus-within > .sub-menu {
        display: none;
    }

    .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .phsulu-h5-first {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "routes"
            "tools";
    }

    .phsulu-h5-hero-copy {
        padding-top: 10px;
        text-align: center;
    }

    .phsulu-h5-hero-copy h1,
    .phsulu-h5-hero-copy .hero-brief {
        margin-left: auto;
        margin-right: auto;
    }

    .phsulu-h5-access-tools h2,
    .phsulu-h5-access-tools > p {
        text-align: center;
    }

    .phsulu-h5-route-grid,
    .route-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .route-card h2,
    .phsulu-h5-route-card h2 {
        font-size: clamp(18px, 2.5vw, 26px);
    }

    .inner-grid {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .page-sidebar .page-toc,
    .page-sidebar .main-entry {
        grid-column: 1 / -1;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .shell {
        width: calc(100% - 28px);
    }

    .header-actions {
        gap: 8px;
    }

    .header-login,
    .header-register {
        min-height: 40px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .home-stage {
        padding-top: 14px;
    }

    .phsulu-h5-hero-copy h1 {
        font-size: clamp(34px, 10vw, 50px);
    }

    .phsulu-h5-hero-copy .hero-brief {
        font-size: 14px;
    }

    .phsulu-h5-route-grid,
    .route-grid,
    .phsulu-h5-tool-grid,
    .phsulu-h5-tool-actions,
    .task-grid,
    .home-copy-grid {
        grid-template-columns: 1fr;
    }

    .phsulu-h5-route-board,
    .phsulu-h5-access-tools {
        padding: 14px;
        border-radius: 18px;
    }

    .route-card {
        padding: 16px;
    }

    .route-card h2,
    .phsulu-h5-route-card h2 {
        font-size: 24px;
    }

    .section-block {
        padding: 38px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 10px;
        text-align: left;
    }

    .help-strip {
        display: block;
    }

    .help-strip > div {
        margin-top: 10px;
    }

    .main-entry {
        display: block;
    }

    .entry-symbol {
        display: none;
    }

    .entry-action {
        margin-top: 18px;
    }

    .entry-action .btn {
        width: 100%;
        min-width: 0;
    }

    .page-overview {
        grid-template-columns: 1fr;
    }

    .page-overview figure img {
        height: auto;
        object-fit: contain;
    }

    .page-sidebar {
        display: block;
    }

    .footer-opening {
        display: block;
    }

    .footer-opening > div + div {
        margin-top: 18px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom p + p {
        margin-top: 6px;
    }

    .phsulu-vpn-modal[aria-hidden="false"] {
        align-items: flex-end;
        padding: 10px;
    }

    .phsulu-vpn-box {
        max-height: 90vh;
        padding: 16px 12px;
        border-radius: 18px;
    }

    .phsulu-vpn-step-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    :root {
        --header-h: 68px;
    }

    .brand img,
    .custom-logo {
        max-width: 142px;
        max-height: 44px;
    }

    .header-actions {
        display: none;
    }

    .route-number {
        font-size: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .social-rail,
    .floating-social {
        right: 10px;
        bottom: 12px;
        gap: 7px;
    }

    .social-button,
    .float-btn {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .site-header,
    .site-header-spacer,
    .social-rail,
    .floating-social,
    .main-entry,
    .page-sidebar,
    .route-board,
    .phsulu-h5-access-tools,
    .site-footer {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .shell {
        width: auto;
    }
}
/* ===== force whole site H5 layout, desktop included ===== */

:root {
    --shell: 760px;
}

.shell {
    width: min(var(--shell), calc(100% - 24px)) !important;
    max-width: var(--shell) !important;
}

.site-header {
    overflow: visible !important;
}

.header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 68px !important;
    gap: 10px !important;
}

.site-branding {
    min-width: 0;
}

.brand,
.custom-logo-link {
    max-width: 170px !important;
}

.brand img,
.custom-logo {
    max-width: 160px !important;
    max-height: 48px !important;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-shrink: 0;
}

.header-login,
.header-register {
    min-height: 38px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
}

.menu-toggle {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    padding: 9px !important;
    flex-shrink: 0;
}

.primary-nav {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    z-index: 9991 !important;
    margin: 0 !important;
    padding: 10px 0 14px !important;
    background: #151410 !important;
    border-top: 1px solid rgba(223, 188, 119, .18) !important;
    border-bottom: 1px solid rgba(223, 188, 119, .28) !important;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .45) !important;
    max-height: none !important;
    overflow: visible !important;
}

.primary-nav.is-open {
    display: block !important;
}

.primary-nav .shell {
    width: min(var(--shell), calc(100% - 24px)) !important;
}

.nav-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.nav-menu > li {
    border: 0 !important;
    padding: 0 !important;
}

.nav-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(223, 188, 119, .22) !important;
    border-radius: 999px !important;
    background: rgba(11, 11, 10, .5) !important;
    color: rgba(242, 238, 227, .86) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.nav-menu .current-menu-item > a,
.nav-menu [aria-current="page"] {
    background: linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #a9874c) !important;
    color: #17120a !important;
}

.nav-menu > li > a::after {
    display: none !important;
}

.submenu-toggle,
.nav-menu .sub-menu {
    display: none !important;
}

/* 首页也强制 H5 单列，第一屏先看线路和工具 */
.phsulu-h5-first {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
        "intro"
        "routes"
        "tools" !important;
    gap: 14px !important;
}

.phsulu-h5-hero-copy {
    padding-top: 8px !important;
    text-align: center !important;
}

.phsulu-h5-hero-copy h1 {
    max-width: 680px !important;
    margin: 8px auto 10px !important;
    font-size: clamp(34px, 10vw, 54px) !important;
    line-height: 1.05 !important;
}

.phsulu-h5-hero-copy .hero-brief {
    max-width: 640px !important;
    margin: 0 auto !important;
    font-size: 14px !important;
}

.phsulu-h5-route-grid,
.route-grid {
    grid-template-columns: 1fr !important;
}

.phsulu-h5-route-card,
.route-card {
    padding: 15px !important;
}

.phsulu-h5-route-card h2,
.route-card h2 {
    font-size: clamp(22px, 6vw, 32px) !important;
}

.phsulu-h5-tool-grid,
.phsulu-h5-tool-actions,
.task-grid,
.home-copy-grid,
.footer-opening,
.footer-links {
    grid-template-columns: 1fr !important;
}

.section-heading {
    display: block !important;
}

.section-heading > p {
    margin-top: 10px !important;
    text-align: left !important;
}

.footer-opening {
    display: block !important;
}

.footer-links {
    display: grid !important;
}

.footer-brand {
    grid-column: auto !important;
}

@media (max-width: 420px) {
    .header-login,
    .header-register {
        display: none !important;
    }

    .brand img,
    .custom-logo {
        max-width: 145px !important;
    }

    .nav-menu {
        grid-template-columns: 1fr !important;
    }
}
/* ===== phsulu black-gold H5 homepage, screenshot layout ===== */

:root {
    --shell: 460px;
}

.shell {
    width: min(var(--shell), calc(100% - 24px)) !important;
    max-width: var(--shell) !important;
}

.phsulu-home-h5 {
    padding: 10px 0 34px;
}

.phsulu-home-h5 .shell {
    width: min(460px, calc(100% - 24px)) !important;
    max-width: 460px !important;
}

.phsulu-h5-top {
    padding: 8px 0 12px;
    text-align: center;
}

.phsulu-h5-top h1 {
    margin: 8px 0 8px;
    color: var(--gold-light);
    font-size: 34px;
    line-height: 1.05;
}

.phsulu-h5-top p:not(.eyebrow) {
    color: rgba(242, 238, 227, .82);
    font-size: 14px;
    line-height: 1.5;
}

.phsulu-line-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.phsulu-line-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(223, 188, 119, .42);
    border-radius: 13px;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .12), transparent 46%),
        linear-gradient(180deg, #242018, #14120e);
    color: var(--ink);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .08),
        0 8px 22px rgba(0, 0, 0, .24);
}

.phsulu-line-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff1bd, #dfbc77 55%, #a9874c);
    color: #17120a;
    font-size: 13px;
    font-weight: 900;
}

.phsulu-line-row strong {
    color: var(--gold-light);
    font-size: 17px;
    font-weight: 900;
    word-break: break-word;
}

.phsulu-line-row em {
    color: #efd096;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.phsulu-save-box {
    margin-top: 18px;
    padding: 22px 16px;
    border: 1px solid rgba(223, 188, 119, .28);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 188, 119, .13), transparent 40%),
        linear-gradient(180deg, #1d1a13, #0d0c0a);
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}

.phsulu-save-box h2 {
    max-width: 360px;
    margin: 0 auto 18px;
    color: var(--gold-light);
    font-size: 27px;
    line-height: 1.12;
    text-align: center;
}

.phsulu-vpn-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.phsulu-vpn-buttons a,
.phsulu-vpn-buttons button {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 232, 180, .7);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #a9874c);
    color: #17120a;
    font: inherit;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    box-shadow:
        inset 0 2px rgba(255, 255, 255, .22),
        0 4px 0 rgba(0, 0, 0, .34);
}

.phsulu-save-box > p {
    margin: 24px auto 20px;
    color: rgba(242, 238, 227, .84);
    font-size: 18px;
    line-height: 1.55;
    text-align: center;
}

.phsulu-action-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(223, 188, 119, .38);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .1), transparent 45%),
        linear-gradient(180deg, #211d15, #11100d);
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.phsulu-action-card strong {
    display: block;
    color: var(--gold-light);
    font-size: 27px;
    line-height: 1.1;
}

.phsulu-action-card span {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
}

.phsulu-action-card small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
}

.phsulu-action-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 18px;
    border: 1px solid rgba(255, 232, 180, .72);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #a9874c);
    color: #17120a;
    font-size: 22px;
    font-weight: 900;
    box-shadow:
        inset 0 2px rgba(255, 255, 255, .22),
        0 4px 0 rgba(0, 0, 0, .34);
}

@media (max-width: 420px) {
    .phsulu-line-row {
        grid-template-columns: auto 1fr;
    }

    .phsulu-line-row em {
        grid-column: 2;
        justify-self: start;
        margin-top: -6px;
    }

    .phsulu-vpn-buttons {
        grid-template-columns: 1fr;
    }
}
/* ===== phsulu premium H5 header + footer final ===== */

:root {
    --shell: 460px;
}

/* 全站 H5 宽度 */
.shell {
    width: min(460px, calc(100% - 24px)) !important;
    max-width: 460px !important;
}

/* 顶部 */
.site-header {
    position: fixed !important;
    top: var(--toolbar-offset, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9990 !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 188, 119, .12), transparent 55%),
        rgba(8, 8, 7, .98) !important;
    border-bottom: 1px solid rgba(223, 188, 119, .32) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45) !important;
    backdrop-filter: blur(10px);
}

.site-header-spacer {
    height: 78px !important;
}

.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 78px !important;
    gap: 10px !important;
}

.site-branding {
    min-width: 0 !important;
}

.brand,
.custom-logo-link {
    max-width: 178px !important;
}

.brand img,
.custom-logo {
    max-width: 174px !important;
    max-height: 56px !important;
    object-fit: contain !important;
}

/* 顶部按钮 */
.header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.header-login,
.header-register {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 8px 15px !important;
    border: 1px solid rgba(255, 232, 180, .56) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(180deg, rgba(39, 35, 25, .95), rgba(14, 13, 10, .95)) padding-box,
        linear-gradient(135deg, #ffe8b4, #dfbc77 48%, #8c6a33) border-box !important;
    color: var(--gold-light) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .08),
        0 6px 18px rgba(0, 0, 0, .28) !important;
}

/* 汉堡按钮 */
.menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 232, 180, .5) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(180deg, rgba(39, 35, 25, .95), rgba(14, 13, 10, .95)) padding-box,
        linear-gradient(135deg, #ffe8b4, #dfbc77 48%, #8c6a33) border-box !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .08),
        0 6px 18px rgba(0, 0, 0, .28) !important;
}

.menu-toggle span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    border-radius: 999px !important;
    background: var(--gold-light) !important;
}

/* 下拉菜单：H5 宫格按钮 */
.primary-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9991 !important;
    padding: 12px 0 16px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 188, 119, .1), transparent 55%),
        #11100d !important;
    border-bottom: 1px solid rgba(223, 188, 119, .3) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .5) !important;
    max-height: none !important;
    overflow: visible !important;
}

.primary-nav.is-open {
    display: block !important;
}

.nav-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.nav-menu > li {
    padding: 0 !important;
    border: 0 !important;
}

.nav-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(223, 188, 119, .28) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(180deg, rgba(31, 28, 21, .96), rgba(12, 11, 9, .96)) !important;
    color: rgba(242, 238, 227, .88) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.nav-menu > li > a:hover,
.nav-menu .current-menu-item > a,
.nav-menu [aria-current="page"] {
    background: linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #a9874c) !important;
    color: #17120a !important;
}

.nav-menu > li > a::after,
.submenu-toggle,
.nav-menu .sub-menu {
    display: none !important;
}

/* 底部整体 */
.site-footer {
    margin-top: 36px !important;
    padding: 0 0 24px !important;
    border-top: 1px solid rgba(223, 188, 119, .26) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 188, 119, .14), transparent 42%),
        linear-gradient(180deg, #15130e, #070706) !important;
}

.footer-opening {
    display: block !important;
    padding: 28px 0 22px !important;
    border-bottom: 1px solid rgba(223, 188, 119, .2) !important;
    text-align: center !important;
}

.footer-opening h2 {
    margin: 8px auto 14px !important;
    color: var(--gold-light) !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
}

.footer-opening h2 em {
    color: #efd096 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 500 !important;
}

.footer-opening p:not(.eyebrow) {
    max-width: 390px !important;
    margin: 0 auto !important;
    color: rgba(242, 238, 227, .72) !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

/* 底部链接卡片 */
.footer-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 13px !important;
    padding: 22px 0 !important;
}

.footer-brand,
.footer-column {
    padding: 18px !important;
    border: 1px solid rgba(223, 188, 119, .24) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .08), transparent 42%),
        linear-gradient(180deg, rgba(29, 26, 19, .96), rgba(13, 12, 10, .96)) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .04) !important;
}

.footer-brand {
    text-align: center !important;
}

.footer-brand .brand,
.footer-brand .custom-logo-link {
    margin: 0 auto !important;
    justify-content: center !important;
}

.footer-brand .brand img,
.footer-brand .custom-logo {
    max-width: 180px !important;
    max-height: 60px !important;
}

.footer-brand p {
    max-width: 350px !important;
    margin: 14px auto 0 !important;
    color: rgba(242, 238, 227, .72) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.footer-column h3 {
    margin: 0 0 12px !important;
    color: var(--gold-light) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.footer-column a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 38px !important;
    padding: 9px 0 !important;
    border-top: 1px solid rgba(223, 188, 119, .14) !important;
    color: rgba(242, 238, 227, .8) !important;
    font-size: 14px !important;
}

.footer-column a::after {
    content: "›";
    color: var(--gold) !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.footer-column a:hover {
    color: var(--gold-light) !important;
}

/* 底部版权 */
.footer-bottom {
    display: block !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid rgba(223, 188, 119, .18) !important;
    color: rgba(242, 238, 227, .58) !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
    text-align: center !important;
}

.footer-bottom a {
    display: inline-flex !important;
    margin-top: 5px !important;
    color: var(--gold) !important;
}

/* 右下角悬浮 */
.floating-social,
.social-rail {
    position: fixed !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    z-index: 9980 !important;
    display: grid !important;
    gap: 8px !important;
}

.float-btn,
.social-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(255, 232, 180, .55) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(180deg, rgba(39, 35, 25, .96), rgba(12, 11, 9, .96)) padding-box,
        linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #8c6a33) border-box !important;
    color: var(--gold-light) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .42) !important;
}

.float-btn svg,
.social-button svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

/* 小屏处理 */
@media (max-width: 420px) {
    .header-login,
    .header-register {
        display: none !important;
    }

    .brand img,
    .custom-logo {
        max-width: 150px !important;
    }

    .nav-menu {
        grid-template-columns: 1fr !important;
    }

    .footer-opening h2 {
        font-size: 27px !important;
    }
}
/* ===== phsulu premium H5 cards + buttons final ===== */

/* 通用按钮 */
.btn,
.route-button,
.entry-action .btn,
.return-home-button,
.phsulu-action-card a,
.phsulu-vpn-buttons a,
.phsulu-vpn-buttons button {
    border: 1px solid rgba(255, 232, 180, .72) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg, #fff0c8 0%, #dfbc77 48%, #9f7c41 100%) !important;
    color: #17120a !important;
    font-weight: 900 !important;
    box-shadow:
        inset 0 2px rgba(255, 255, 255, .28),
        0 8px 22px rgba(0, 0, 0, .36) !important;
}

.btn:hover,
.route-button:hover,
.entry-action .btn:hover,
.return-home-button:hover,
.phsulu-action-card a:hover,
.phsulu-vpn-buttons a:hover,
.phsulu-vpn-buttons button:hover {
    filter: brightness(1.06) !important;
    color: #17120a !important;
}

/* 首页功能卡片 */
.phsulu-action-card,
.phsulu-h5-tool-card,
.task-panel,
.copy-card,
.sidebar-panel,
.contact-panel,
.return-home-card,
.page-overview,
.main-entry {
    border: 1px solid rgba(223, 188, 119, .32) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .12), transparent 45%),
        linear-gradient(180deg, rgba(33, 29, 21, .98), rgba(13, 12, 10, .98)) !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .055),
        0 14px 34px rgba(0, 0, 0, .28) !important;
}

/* 卡片标题 */
.phsulu-action-card strong,
.phsulu-h5-tool-card strong,
.task-panel h3,
.copy-card h2,
.sidebar-panel h2,
.contact-panel h2,
.return-home-card h2,
.entry-copy h2,
.overview-notes .eyebrow {
    color: var(--gold-light) !important;
}

/* 卡片正文 */
.phsulu-action-card span,
.phsulu-action-card small,
.phsulu-h5-tool-card span,
.task-link small,
.copy-card p,
.sidebar-panel p,
.contact-panel p,
.return-home-description,
.entry-copy p,
.overview-notes p,
.prose p,
.prose li {
    color: rgba(242, 238, 227, .76) !important;
}

/* 首页下面三块任务卡 */
.task-grid {
    gap: 14px !important;
}

.task-panel {
    padding: 20px !important;
}

.task-top {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.icon-frame {
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(255, 232, 180, .42) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(39, 35, 25, .96), rgba(12, 11, 9, .96)) padding-box,
        linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #8c6a33) border-box !important;
    color: var(--gold-light) !important;
}

.task-panel h3 {
    margin: 16px 0 10px !important;
    font-size: 24px !important;
}

.task-link {
    min-height: 54px !important;
    padding: 13px 0 !important;
    border-top: 1px solid rgba(223, 188, 119, .16) !important;
}

.task-link strong {
    color: var(--ink) !important;
    font-size: 15px !important;
}

.task-link svg {
    color: var(--gold) !important;
}

/* 内容文章卡片 */
.home-copy-grid,
.content-sections {
    gap: 14px !important;
}

.copy-card,
.content-sections > .copy-card {
    padding: 22px 20px !important;
}

.copy-card::before {
    color: var(--gold) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.prose h2 {
    margin-bottom: 14px !important;
    color: var(--gold-light) !important;
    font-size: 23px !important;
    line-height: 1.24 !important;
}

.prose h3 {
    color: #efd096 !important;
    font-size: 19px !important;
}

.prose a {
    color: var(--gold-light) !important;
    text-decoration-color: rgba(223, 188, 119, .58) !important;
}

/* 内页顶部入口 */
.main-entry {
    display: block !important;
    padding: 22px 20px !important;
}

.entry-symbol {
    display: none !important;
}

.entry-copy .eyebrow {
    margin-bottom: 6px !important;
}

.entry-copy h2 {
    margin: 0 0 10px !important;
    font-size: 25px !important;
}

.entry-action {
    margin-top: 18px !important;
}

.entry-action .btn {
    width: 100% !important;
    min-height: 52px !important;
}

/* 内页图片/说明卡 */
.page-overview {
    overflow: hidden !important;
}

.page-overview figure {
    border-bottom: 1px solid rgba(223, 188, 119, .18) !important;
}

.page-overview figure img {
    border-radius: 0 !important;
}

.overview-notes {
    padding: 20px !important;
}

.overview-notes > p {
    margin-top: 13px !important;
    padding: 12px !important;
    border: 1px solid rgba(223, 188, 119, .16) !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, .18) !important;
}

/* 侧边栏/目录 H5化 */
.inner-grid,
.page-sidebar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

.sidebar-panel {
    padding: 20px !important;
}

.page-toc ol {
    display: grid !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-toc li {
    padding: 0 !important;
    border: 0 !important;
}

.page-toc li a {
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    padding: 10px 13px !important;
    border: 1px solid rgba(223, 188, 119, .18) !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, .18) !important;
    color: rgba(242, 238, 227, .82) !important;
}

/* 返回首页卡片 */
.return-home-card {
    text-align: center !important;
}

.return-home-description {
    margin-left: auto !important;
    margin-right: auto !important;
}

.return-home-button {
    width: 100% !important;
    min-height: 52px !important;
    margin-top: 18px !important;
}

/* Help strip */
.help-strip {
    padding: 16px !important;
    border: 1px solid rgba(223, 188, 119, .22) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(33, 29, 21, .86), rgba(13, 12, 10, .86)) !important;
}

.help-strip,
.help-strip > div {
    display: grid !important;
    gap: 10px !important;
}

.help-strip a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(223, 188, 119, .22) !important;
    border-radius: 999px !important;
    color: var(--gold-light) !important;
}

/* 表格 */
.prose table {
    overflow: hidden !important;
    border-radius: 16px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid rgba(223, 188, 119, .24) !important;
}

.prose th,
.prose td {
    border: 0 !important;
    border-bottom: 1px solid rgba(223, 188, 119, .18) !important;
}

.prose th {
    background: rgba(223, 188, 119, .12) !important;
    color: var(--gold-light) !important;
}

/* Contact / error / search */
.contact-panel,
.error-panel,
.single-content {
    max-width: 460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.search-form {
    display: grid !important;
    gap: 12px !important;
}

.search-form input {
    min-height: 48px !important;
    border: 1px solid rgba(223, 188, 119, .32) !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, .24) !important;
    color: var(--ink) !important;
    padding: 10px 14px !important;
}

/* 小屏更紧凑 */
@media (max-width: 420px) {
    .task-panel,
    .copy-card,
    .sidebar-panel,
    .contact-panel,
    .return-home-card,
    .main-entry {
        border-radius: 18px !important;
        padding: 18px !important;
    }

    .prose h2 {
        font-size: 21px !important;
    }

    .task-panel h3,
    .entry-copy h2 {
        font-size: 22px !important;
    }
}
/* ===== phsulu H5 inner pages final ===== */

.page-shell {
    padding: 18px 0 42px !important;
}

.breadcrumbs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    color: rgba(242, 238, 227, .62) !important;
    font-size: 12px !important;
}

.breadcrumbs a {
    color: var(--gold) !important;
}

.phsulu-page-h5-heading {
    margin-bottom: 18px !important;
    text-align: center !important;
}

.phsulu-page-h5-heading h1 {
    margin: 8px auto 10px !important;
    color: var(--gold-light) !important;
    font-size: clamp(31px, 9vw, 46px) !important;
    line-height: 1.08 !important;
}

.phsulu-page-h5-heading > p:last-child {
    max-width: 420px !important;
    margin: 0 auto !important;
    color: rgba(242, 238, 227, .76) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.inner-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

.page-main {
    min-width: 0 !important;
}

.phsulu-page-h5-card,
.page-overview {
    display: block !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
    border: 1px solid rgba(223, 188, 119, .32) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .12), transparent 45%),
        linear-gradient(180deg, rgba(33, 29, 21, .98), rgba(13, 12, 10, .98)) !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .055),
        0 14px 34px rgba(0, 0, 0, .28) !important;
}

.page-overview figure {
    margin: 0 !important;
    border-bottom: 1px solid rgba(223, 188, 119, .18) !important;
    background: #0b0b0a !important;
}

.page-overview figure img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
}

.overview-notes {
    padding: 18px !important;
}

.overview-notes .eyebrow {
    display: block !important;
    margin-bottom: 12px !important;
}

.overview-notes > p {
    display: flex !important;
    gap: 10px !important;
    margin: 10px 0 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(223, 188, 119, .16) !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, .2) !important;
    color: rgba(242, 238, 227, .78) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.overview-notes svg {
    width: 16px !important;
    height: 16px !important;
    margin-top: 4px !important;
    color: var(--gold) !important;
    flex-shrink: 0 !important;
}

.phsulu-page-content-card,
.content-sections {
    display: block !important;
    padding: 22px 20px !important;
    border: 1px solid rgba(223, 188, 119, .32) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .1), transparent 45%),
        linear-gradient(180deg, rgba(33, 29, 21, .98), rgba(13, 12, 10, .98)) !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .055),
        0 14px 34px rgba(0, 0, 0, .28) !important;
}

.prose h2 {
    color: var(--gold-light) !important;
    font-size: 23px !important;
    line-height: 1.25 !important;
}

.prose h3 {
    color: #efd096 !important;
    font-size: 19px !important;
}

.prose p,
.prose li {
    color: rgba(242, 238, 227, .76) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
}

.prose a {
    color: var(--gold-light) !important;
    text-decoration-color: rgba(223, 188, 119, .58) !important;
}

.page-sidebar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

.sidebar-panel {
    padding: 20px !important;
    border: 1px solid rgba(223, 188, 119, .28) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(33, 29, 21, .96), rgba(13, 12, 10, .96)) !important;
}

.page-toc ol {
    display: grid !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-toc li {
    padding: 0 !important;
    border: 0 !important;
}

.page-toc li a {
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    padding: 10px 13px !important;
    border: 1px solid rgba(223, 188, 119, .18) !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, .18) !important;
    color: rgba(242, 238, 227, .82) !important;
}

.contact-panel {
    text-align: center !important;
}

.contact-panel .btn {
    width: 100% !important;
    margin-top: 14px !important;
}
/* ===== phsulu sidebar H5 final ===== */

.page-sidebar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 16px !important;
}

.sidebar-panel {
    padding: 20px !important;
    border: 1px solid rgba(223, 188, 119, .28) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .1), transparent 45%),
        linear-gradient(180deg, rgba(33, 29, 21, .96), rgba(13, 12, 10, .96)) !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .045),
        0 12px 28px rgba(0, 0, 0, .24) !important;
}

.side-note {
    text-align: center !important;
}

.side-note .icon-frame {
    margin: 0 auto 14px !important;
}

.side-note h2 {
    margin: 0 0 10px !important;
    color: var(--gold-light) !important;
    font-size: 24px !important;
}

.side-note p {
    margin: 0 0 14px !important;
    color: rgba(242, 238, 227, .76) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.text-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 9px 16px !important;
    border: 1px solid rgba(223, 188, 119, .3) !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, .18) !important;
    color: var(--gold-light) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

.side-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 42px !important;
    padding: 10px 0 !important;
    border-top: 1px solid rgba(223, 188, 119, .16) !important;
    color: rgba(242, 238, 227, .82) !important;
    font-size: 14px !important;
}

.side-links a::after {
    content: "›";
    color: var(--gold) !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.page-toc ol {
    display: grid !important;
    gap: 8px !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-toc li {
    padding: 0 !important;
    border: 0 !important;
}

.page-toc li a {
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 10px 13px !important;
    border: 1px solid rgba(223, 188, 119, .18) !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, .18) !important;
    color: rgba(242, 238, 227, .82) !important;
    font-size: 13px !important;
}

.page-toc li a:hover,
.side-links a:hover,
.text-link:hover {
    color: var(--gold-light) !important;
}
/* ===== phsulu component cards final ===== */

.phsulu-entry-card,
.phsulu-return-card {
    position: relative !important;
    overflow: hidden !important;
    padding: 22px 20px !important;
    border: 1px solid rgba(223, 188, 119, .36) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 188, 119, .16), transparent 45%),
        linear-gradient(180deg, rgba(34, 30, 21, .98), rgba(11, 11, 10, .98)) !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .06),
        0 16px 36px rgba(0, 0, 0, .3) !important;
    text-align: center !important;
}

.phsulu-entry-card::before,
.phsulu-return-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 232, 180, .08) 45%, transparent 70%) !important;
    opacity: .8 !important;
}

.phsulu-entry-card > *,
.phsulu-return-card > * {
    position: relative !important;
    z-index: 1 !important;
}

.phsulu-entry-card .entry-symbol {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    margin: 0 auto 14px !important;
    border: 1px solid rgba(255, 232, 180, .46) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(39, 35, 25, .96), rgba(12, 11, 9, .96)) padding-box,
        linear-gradient(135deg, #ffe8b4, #dfbc77 52%, #8c6a33) border-box !important;
    color: var(--gold-light) !important;
}

.phsulu-entry-card .entry-symbol svg {
    width: 27px !important;
    height: 27px !important;
}

.phsulu-entry-card .entry-copy h2,
.phsulu-return-card h2 {
    margin: 7px 0 10px !important;
    color: var(--gold-light) !important;
    font-size: 26px !important;
    line-height: 1.18 !important;
}

.phsulu-entry-card .entry-copy p,
.phsulu-return-card .return-home-description {
    max-width: 380px !important;
    margin: 0 auto !important;
    color: rgba(242, 238, 227, .76) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.phsulu-entry-card .entry-action {
    margin-top: 18px !important;
}

.phsulu-entry-card .entry-action .btn,
.phsulu-return-card .return-home-button {
    width: 100% !important;
    min-height: 54px !important;
    gap: 12px !important;
}

.phsulu-entry-card .entry-action small {
    display: block !important;
    margin-top: 8px !important;
    color: rgba(242, 238, 227, .58) !important;
    font-size: 11px !important;
}

.phsulu-return-card {
    margin-top: 18px !important;
}

.phsulu-return-card .return-home-button {
    margin-top: 18px !important;
}
/* ===== fix oversized button icons ===== */

.btn svg,
.route-button svg,
.entry-action .btn svg,
.return-home-button svg,
.phsulu-action-card a svg,
.phsulu-vpn-buttons a svg,
.phsulu-vpn-buttons button svg,
.task-link svg,
.footer-column a svg,
.float-btn svg,
.social-button svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
}

/* main entry 按钮重新排版 */
.entry-action .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 12px 18px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.entry-action .btn span:not(.sr-only) {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* 防止按钮本身变成巨大椭圆 */
.entry-action {
    width: 100% !important;
}

.main-entry .entry-action .btn {
    max-width: 100% !important;
}

/* return home icon 也压住 */
.return-home-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.return-home-button svg {
    width: 20px !important;
    height: 20px !important;
}
/* ===== prettier VPN action buttons ===== */

.phsulu-vpn-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 18px 0 0 !important;
}

.phsulu-vpn-buttons a,
.phsulu-vpn-buttons button {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 64px !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(255, 232, 180, .78) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(255, 244, 207, .96) 0%, rgba(226, 189, 113, .98) 47%, rgba(158, 121, 56, .98) 100%) !important;
    color: #160f05 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-shadow: 0 1px rgba(255, 255, 255, .35) !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .5),
        inset 0 -3px 0 rgba(90, 63, 20, .28),
        0 10px 22px rgba(0, 0, 0, .36) !important;
}

.phsulu-vpn-buttons a::before,
.phsulu-vpn-buttons button::before {
    content: "" !important;
    position: absolute !important;
    inset: 2px 2px auto 2px !important;
    height: 45% !important;
    z-index: -1 !important;
    border-radius: 20px 20px 50% 50% !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)) !important;
    pointer-events: none !important;
}

.phsulu-vpn-buttons a::after,
.phsulu-vpn-buttons button::after {
    content: "" !important;
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 7px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: rgba(255, 240, 190, .48) !important;
    pointer-events: none !important;
}

.phsulu-vpn-buttons a:hover,
.phsulu-vpn-buttons button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.04) !important;
    color: #160f05 !important;
}

.phsulu-vpn-buttons a:active,
.phsulu-vpn-buttons button:active {
    transform: translateY(1px) !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .36),
        inset 0 -2px 0 rgba(90, 63, 20, .22),
        0 5px 14px rgba(0, 0, 0, .3) !important;
}

@media (max-width: 420px) {
    .phsulu-vpn-buttons {
        grid-template-columns: 1fr !important;
    }

    .phsulu-vpn-buttons a,
    .phsulu-vpn-buttons button {
        min-height: 58px !important;
        font-size: 17px !important;
        border-radius: 18px !important;
    }
}