:root {
    --text-color: rgba(0, 40, 78, 0.8);
    --heading: #010d4c;
    --prime-one: #0054fd;
    --prime-two: #0054fd;
    --prime-three: #0054fd;
    --prime-four: #0054fd;
    --prime-five: #0054fd;
    --light-bg: #f2f2f5;
    --theme-color: #0054fd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Gordita", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.75;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Gordita", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--heading);
    font-weight: 700;
}

a { text-decoration: none; color: var(--prime-three); transition: all .3s ease-in-out; }
a:hover { color: var(--prime-one); }
img { max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.clearfix::after { content: ""; display: block; clear: both; }

::selection { background: var(--prime-one); color: #fff; }

/* ========== Preloader ========== */
#preloader {
    position: fixed; left: 0; top: 0; width: 100%; height: 100%;
    z-index: 99999; background: #fff; display: flex; align-items: center; justify-content: center;
}
#preloader.hidden { display: none; }
#preloader .icon img { margin: 0 auto; }
#preloader .txt-loading { display: flex; justify-content: center; margin-top: 8px; }
#preloader .letters-loading {
    font-weight: 700; color: rgba(0,40,78,.3); font-size: 18px; letter-spacing: 4px; animation: lettersLoad 2.8s infinite;
}
@keyframes lettersLoad {
    0% { color: rgba(0,40,78,.3); }
    50% { color: var(--prime-one); }
    100% { color: rgba(0,40,78,.3); }
}

/* ========== Header ========== */
.theme-main-menu {
    position: absolute; top: 0; left: 0; right: 0; z-index: 99;
    padding: 30px 0; transition: all .4s ease-out;
}
.theme-main-menu.fixed {
    position: fixed; padding: 5px 0; background: #fff;
    box-shadow: 0 13px 35px -12px rgba(35,35,35,.1);
}
.theme-main-menu .inner-content { display: flex; align-items: center; justify-content: space-between; }
.theme-main-menu .logo img { width: 129px; }
.navbar-nav { display: flex; align-items: center; }
.navbar-nav .nav-item { position: relative; }
.navbar-nav .nav-link {
    font-size: 16px; color: var(--heading); padding: 10px 20px; display: block;
    font-weight: 500;
}
.navbar-nav .nav-link:hover { color: var(--prime-one); }
.req-demo-btn {
    font-weight: 500; font-size: 14px; line-height: 40px; color: var(--prime-one);
    padding: 0 20px; border: 1px solid var(--prime-one); border-radius: 10px; display: inline-block;
}
.req-demo-btn:hover { background: var(--prime-one); color: #fff; }

/* ========== Buttons ========== */
.btn-one {
    display: inline-block; font-weight: 500; font-size: 15px; color: #fff;
    line-height: 42px; border-radius: 7px; letter-spacing: .4px; padding: 0 28px;
    background: var(--prime-one); position: relative; z-index: 1; transition: all .3s ease-in-out;
}
.btn-one:hover { background: var(--prime-two); color: #fff; }
.btn-eight {
    display: inline-block; font-weight: 500; font-size: 15px; color: #fff;
    line-height: 42px; border-radius: 5px; padding: 0 30px; border: none; cursor: pointer;
    background: var(--prime-three); position: relative; z-index: 1; transition: all .3s ease-in-out;
}
.btn-eight:hover { background: var(--prime-one); color: #fff; }
.btn-eight.w-100 { width: 100%; }
.demo-btn {
    display: inline-block; font-weight: 500; font-size: 15px; color: var(--prime-one);
    line-height: 40px; padding: 0 24px; border: 1px solid var(--prime-one); border-radius: 7px; transition: all .3s ease-in-out;
}
.demo-btn:hover { background: var(--prime-one); color: #fff; }
.btn-five {
    display: inline-block; font-weight: 500; font-size: 15px; color: #fff; line-height: 42px;
    padding: 0 30px; border-radius: 50px; background: var(--prime-one); transition: all .3s ease-in-out;
}
.btn-five:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,84,253,.3); color: #fff; }

/* ========== Hero ========== */
.hero-banner-two .bg-wrapper {
    position: relative; z-index: 1; padding: 200px 0 260px;
    background: linear-gradient(119.36deg, #f6fcff 15.13%, rgba(247,249,255,.71) 36.6%, rgba(255,255,255,0) 89.54%);
    overflow: hidden;
}
.hero-banner-two .hero-heading {
    font-size: 44px; line-height: 1.3em; letter-spacing: -2px; margin-bottom: 18px;
}
.hero-banner-two .hero-sub { font-size: 18px; margin-bottom: 32px; max-width: 560px; }
.button-group { display: flex; align-items: center; gap: 18px; }
.button-group li a { display: inline-block; }
.illustration-holder { position: absolute; right: 4%; top: 18%; width: 46%; text-align: center; }
.illustration-holder .main-illustration { width: 100%; animation: floaty 5s ease-in-out infinite; }
.illustration-holder .shapes { position: absolute; }
.illustration-holder .shape-one { top: 6%; left: -4%; }
.illustration-holder .shape-two { top: -2%; right: 8%; animation: floaty 4s ease-in-out infinite; }
.illustration-holder .shape-three { bottom: 8%; left: -6%; animation: floaty 6s ease-in-out infinite; }
.illustration-holder .shape-four { bottom: 0; right: 4%; }
@keyframes floaty {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ========== Sections ========== */
.section { padding: 90px 0; }
.section.mt { margin-top: 60px; }
.title-style-one { margin-bottom: 40px; }
.sc-title-three {
    display: inline-block; font-size: 15px; font-weight: 500; color: var(--prime-one);
    letter-spacing: 1px; margin-bottom: 10px; padding: 6px 18px; border-radius: 30px;
    background: rgba(0,102,255,.08);
}
.title-style-one .main-title { font-size: 36px; letter-spacing: -1px; line-height: 1.35em; }
.text-center { text-align: center; }

/* Counter */
.counter-section-one { background: #f6fcff; padding: 70px 0; position: relative; overflow: hidden; }
.counter-block-one .main-count { font-size: 52px; font-weight: 700; color: var(--prime-one); line-height: 1.2em; }
.counter-block-one p { margin-top: 10px; font-size: 16px; color: var(--text-color); }

/* Feature cards */
.feature-section { padding: 90px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 10px; }
.block-style-four {
    background: #fff; border-radius: 16px; padding: 36px 32px; box-shadow: 0 2px 12px rgba(0,6,159,.05);
    transition: all .3s ease-in-out; height: 100%;
}
.block-style-four:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,6,159,.1); }
.block-style-four .icon {
    width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: rgba(0,102,255,.08); margin-bottom: 22px; font-size: 30px;
}
.block-style-four h5 { font-size: 20px; margin-bottom: 10px; }
.block-style-four h5 a { color: var(--heading); }
.block-style-four h5 a:hover { color: var(--prime-one); }
.block-style-four p { font-size: 15px; line-height: 1.8; }

/* Feature two (text + illustration) */
.feature-two { position: relative; padding: 100px 0; }
.feature-two .text-col { max-width: 560px; margin-left: auto; }
.feature-two .list-item li {
    position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 16px;
}
.feature-two .list-item li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%;
    background: rgba(0,102,255,.12);
}
.feature-two .list-item li::after {
    content: ""; position: absolute; left: 5px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--prime-one);
}
.feature-two .illustration-holder-two { position: absolute; left: 2%; top: 12%; width: 40%; }
.feature-two .illustration-holder-two .main-illustration { width: 100%; }

/* Feedback / slider blocks */
.feedback-section { padding: 100px 0; }
.feedback-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feedback-block-two {
    background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 2px 12px rgba(0,6,159,.05);
    display: flex; gap: 24px; align-items: center;
}
.feedback-block-two .icon { font-size: 15px; font-weight: 500; color: var(--prime-one); }
.feedback-block-two .camp-name { font-size: 20px; font-weight: 700; color: var(--heading); margin: 6px 0; }
.feedback-block-two p { font-size: 15px; }

/* Accordion */
.accordion-item {
    border: 1px solid #e9f0f7; border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff;
}
.accordion-button {
    width: 100%; text-align: left; padding: 18px 22px; font-size: 16px; font-weight: 500;
    color: var(--heading); border: none; background: #f6fcff; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.accordion-button::after { content: "+"; font-size: 22px; color: var(--prime-one); transition: transform .3s; }
.accordion-item.active .accordion-button::after { transform: rotate(45deg); }
.accordion-body { padding: 4px 22px 18px; font-size: 15px; line-height: 1.9; display: none; }
.accordion-item.active .accordion-body { display: block; }

/* Short banner */
.short-banner { padding: 60px 0 110px; }
.short-banner .bg-wrapper {
    background: var(--prime-one);
    border-radius: 20px; padding: 55px 60px; display: flex; align-items: center; justify-content: space-between; color: #fff;
}
.short-banner .sub-title { font-size: 16px; opacity: .85; }
.short-banner h3 { color: #fff; font-size: 30px; margin-top: 8px; }
.msg-btn {
    display: inline-block; font-weight: 500; font-size: 17px; color: var(--prime-four);
    line-height: 50px; padding: 0 40px; border-radius: 50px; background: #fff; transition: all .3s;
}
.msg-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,.2); color: var(--prime-four); }

/* ========== Footer ========== */
.theme-basic-footer { background: #f8fbff; padding: 90px 0 0; position: relative; overflow: hidden; }
.theme-basic-footer .inner-wrapper { max-width: 1170px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 3fr 2fr 2fr 5fr; gap: 36px; padding-bottom: 60px; }
.theme-basic-footer .footer-intro p { font-size: 16px; line-height: 30px; margin: 15px 0 25px; }
.footer-title { font-size: 20px; margin-bottom: 18px; }
.footer-nav-link li a { font-size: 16px; line-height: 40px; color: var(--text-color); }
.footer-nav-link li a:hover { color: var(--prime-one); }
.footer-nav-link li span { font-size: 15px; }
.bottom-footer { border-top: 1px solid #e5ebf5; padding: 24px 0; text-align: center; }
.bottom-footer .copyright { font-size: 14px; color: #7a8ca0; }

/* ========== Auth pages (login/register) ========== */
.user-data-page { display: flex; min-height: 100vh; }
.user-data-page .illustration-wrapper {
    width: 48%; min-height: 100vh; background: var(--prime-one);
    display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.user-data-page .illustration-wrapper img.illustration { width: 80%; animation: floaty 6s ease-in-out infinite; }
.user-data-page .form-wrapper {
    width: 52%; padding: 32px 5% 20px; background: var(--light-bg); display: flex; flex-direction: column; justify-content: center;
}
.user-data-page .form-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.user-data-page .go-back-button {
    font-size: 15px; font-weight: 500; line-height: 33px; width: 122px; text-align: center;
    color: var(--prime-three); border: 1px solid var(--prime-three); border-radius: 30px; display: inline-block;
}
.user-data-page .go-back-button:hover { background: var(--prime-three); color: #fff; }
.user-data-form { max-width: 460px; margin: 0 auto; width: 100%; }
.user-data-form h2 { font-size: 32px; line-height: 1.5em; margin-bottom: 6px; }
.user-data-form .header-info { font-size: 17px; margin-bottom: 26px; }
.user-data-form .header-info a { text-decoration: underline; color: var(--prime-three); }
.input-group-meta { position: relative; margin-bottom: 20px; }
.input-group-meta label { display: block; font-size: 15px; font-weight: 400; color: rgba(0,40,78,.6); margin-bottom: 8px; }
.input-group-meta input {
    width: 100%; height: 45px; font-size: 14px; border: none; padding: 0 40px 0 16px;
    background: #fff; box-shadow: 0 10px 20px rgba(0,6,159,.03); border-radius: 8px; outline: none; transition: box-shadow .3s;
}
.input-group-meta input:focus { box-shadow: 0 0 0 3px rgba(0,102,255,.15); }
.captcha-row { display: flex; gap: 10px; align-items: flex-end; }
.captcha-row input { padding: 0 16px; width: 100%; min-width: 0; }
.captcha-row img { height: 45px; border-radius: 8px; cursor: pointer; border: 1px solid #e5ebf5; }
.agreement-checkbox { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin: 18px 0; }
.agreement-checkbox a { color: var(--prime-three); }
.form-actions { margin-top: 26px; }
.copyright-text { margin-top: 30px; text-align: center; font-size: 14px; color: #94a8bb; }
.auth-alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px;
}
.auth-alert.danger { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.auth-alert.success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }

/* ========== Admin ========== */
.admin-body { display: flex; min-height: 100vh; background: #f5f8fb; }
.admin-sidebar {
    width: 230px; background: #fff; border-right: 1px solid #e9f0f7; flex-shrink: 0;
    display: flex; flex-direction: column;
}
.admin-sidebar .brand { padding: 22px 24px; border-bottom: 1px solid #e9f0f7; font-size: 18px; font-weight: 700; color: var(--heading); }
.admin-sidebar .brand span { color: var(--prime-one); }
.admin-sidebar nav { flex: 1; padding: 16px 0; }
.admin-sidebar nav a {
    display: block; padding: 13px 26px; color: var(--text-color); font-size: 15px; font-weight: 500;
    border-left: 3px solid transparent; transition: all .2s;
}
.admin-sidebar nav a:hover { background: #f6fcff; color: var(--prime-one); }
.admin-sidebar nav a.active { background: #f6fcff; color: var(--prime-one); border-left-color: var(--prime-one); }
.admin-sidebar .admin-user { padding: 18px 24px; border-top: 1px solid #e9f0f7; font-size: 14px; }
.admin-sidebar .admin-user a { color: var(--prime-three); font-size: 13px; margin-right: 10px; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    background: #fff; border-bottom: 1px solid #e9f0f7; padding: 0 28px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar h1 { font-size: 20px; }
.admin-topbar .links a { font-size: 14px; color: var(--text-color); margin-left: 16px; }
.admin-topbar .links a:hover { color: var(--prime-one); }
.admin-content { padding: 28px; flex: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
    background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 2px 12px rgba(0,6,159,.05);
    border-left: 4px solid var(--prime-one);
}
.stat-card .num { font-size: 32px; font-weight: 700; color: var(--heading); }
.stat-card .label { font-size: 14px; color: #7a8ca0; margin-top: 6px; }
.admin-panel {
    background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,6,159,.05);
    padding: 26px; margin-bottom: 24px;
}
.admin-panel h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #f0f5f9; }
.admin-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px 10px; color: #7a8ca0; font-weight: 500; border-bottom: 1px solid #e9f0f7; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid #f4f8fb; }
.admin-table tr:last-child td { border-bottom: none; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 15px; color: var(--heading); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 16px; border: 1px solid #e3ecf3; border-radius: 8px; font-size: 14px;
    outline: none; background: #fff; font-family: inherit; transition: all .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--prime-one); box-shadow: 0 0 0 3px rgba(0,102,255,.12);
}
.form-group textarea { resize: vertical; }
.form-group small { display: block; color: #94a8bb; font-size: 12px; margin-top: 5px; }
.form-group small.text-primary { color: var(--prime-one); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.admin-alert.success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.admin-alert.danger { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.admin-alert.info { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.switch { position: relative; display: inline-block; width: 48px; height: 26px; flex: 0 0 48px; flex-shrink: 0; box-sizing: border-box; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; margin: 0; padding: 0; }
.switch .slider { position: absolute; left: 0; top: 0; width: 48px; height: 26px; background: #cbd5e1; border-radius: 13px; transition: background .3s; z-index: 0; }
.switch .slider:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .3s; box-shadow: 0 1px 3px rgba(0,0,0,.3); z-index: 1; }
.switch input:checked + .slider { background: var(--prime-one); }
.switch input:checked + .slider:before { transform: translateX(22px); }
.switch-label { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex-wrap: wrap; }
.switch-label .switch { margin-top: 2px; flex-shrink: 0; }
.switch-label .text { font-size: 15px; color: var(--heading); min-width: 0; flex: 1 1 auto; }

/* ========== User center ========== */
.user-hero {
    background: linear-gradient(119.36deg, #f6fcff 15.13%, rgba(247,249,255,.71) 60%, rgba(255,255,255,0) 100%);
    padding: 60px 0; border-bottom: 1px solid #e9f0f7;
}
.user-hero .avatar {
    width: 72px; height: 72px; border-radius: 50%; background: var(--prime-one); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
}
.user-hero h2 { font-size: 26px; }
.user-hero .badge {
    display: inline-block; background: rgba(0,102,255,.1); color: var(--prime-one); font-size: 12px;
    padding: 3px 12px; border-radius: 999px; font-weight: 500; margin-left: 10px; vertical-align: middle;
}

/* ========== Install ========== */
.install-body {
    background: var(--prime-one);
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px;
}
.install-card { background: #fff; border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,.25); width: 100%; max-width: 680px; overflow: hidden; }
.install-card .card-header { background: var(--prime-one); color: #fff; padding: 26px 30px; font-size: 20px; font-weight: 700; }
.install-card .card-body { padding: 30px; }
.steps { display: flex; margin-bottom: 26px; }
.step { flex: 1; text-align: center; position: relative; }
.step .num {
    width: 32px; height: 32px; border-radius: 50%; background: #e3ecf3; color: #7a8ca0;
    line-height: 32px; margin: 0 auto 8px; font-weight: 700;
}
.step.active .num { background: var(--prime-one); color: #fff; }
.step.completed .num { background: #48bb78; color: #fff; }
.step .label { font-size: 13px; color: #94a8bb; }
.step.active .label { color: var(--prime-one); font-weight: 600; }
.env-list li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f5f9; font-size: 14px; }
.env-list .icon { margin-right: 12px; font-size: 18px; }
.env-list .ok { color: #48bb78; }
.env-list .no { color: #f56565; }
.terminal { background: #0f1b33; color: #bfd7f5; border-radius: 10px; padding: 18px; font-family: Consolas, monospace; font-size: 13px; max-height: 320px; overflow-y: auto; margin-bottom: 20px; white-space: pre-wrap; word-break: break-all; }
.actions { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }
.btn { display: inline-block; padding: 11px 28px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; text-decoration: none; transition: all .2s; font-weight: 500; }
.btn-primary { background: var(--prime-one); color: #fff; }
.btn-primary:hover { opacity: .88; color: #fff; }
.btn-secondary { background: #e3ecf3; color: #475569; }
.btn-secondary:hover { background: #d3dfe9; color: #475569; }
.credential { background: #f6fcff; border: 1px dashed #b8d4ff; border-radius: 10px; padding: 16px; margin: 14px 0; font-size: 14px; }
.credential b { color: var(--prime-one); }

/* ========== Responsive ========== */
/* 手机端：表格/列表容器加横向滚动，列宽保持最小宽度不挤压 */
@media (max-width: 767.98px) {
    .admin-panel { padding: 14px; }
    .admin-table { min-width: max-content; }
    .admin-table th, .admin-table td { white-space: nowrap; }
    .admin-table td, .admin-table th { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
    .settings-tab-btn { font-size: 13px; padding: 8px 14px; }
    .form-row { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .xiaoyu-grid-2, .xiaoyu-grid-3, .xiaoyu-grid-4 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .illustration-holder { position: static; width: 100%; margin-top: 50px; }
    .illustration-holder .main-illustration { width: 70%; }
    .feature-two .illustration-holder-two { position: static; width: 80%; margin: 40px auto 0; }
    .feedback-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .user-data-page .illustration-wrapper { display: none; }
    .user-data-page .form-wrapper { width: 100%; padding: 40px 6%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { width: 70px; }
    .admin-sidebar .brand, .admin-sidebar .admin-user { display: none; }
    .admin-sidebar nav a { text-align: center; padding: 15px 6px; font-size: 12px; border-left: none; border-bottom: 3px solid transparent; }
    .admin-sidebar nav a.active { border-bottom-color: var(--prime-one); }
    .navbar-nav { display: none; }
    .theme-main-menu .menu-btn { display: block; }
}
@media (max-width: 600px) {
    /* 手机端 feature 改每行 2 个，不挤成 3 个 */
    .feature-grid, .stats-grid, .form-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .short-banner .bg-wrapper { flex-direction: column; text-align: center; gap: 20px; padding: 40px 24px; }
    .hero-banner-two .hero-heading { font-size: 26px; letter-spacing: 0; line-height: 1.4; }
    .hero-banner-two .hero-sub { font-size: 14px; }
    .title-style-one .main-title { font-size: 24px; }
    /* 表格横向滚动，列宽不被挤没 */
    .admin-table { min-width: max-content; }
    .admin-table th, .admin-table td { white-space: nowrap; }
    .admin-table td, .admin-table th { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
    .xiaoyu-table { min-width: 520px; }
    .xiaoyu-table th, .xiaoyu-table td { white-space: nowrap; }
    /* 一排按钮改水平滚动容器（不换行、不堆叠） */
    .button-group { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 6px; scrollbar-width: thin; }
    .button-group li { flex: 0 0 auto; }
    .button-group li a { display: inline-block; white-space: nowrap; }
    .btn-one, .demo-btn, .btn-five { font-size: 13px; line-height: 40px; padding: 0 14px; white-space: nowrap; }
    .hero-banner-two .row { max-width: 100% !important; }
    /* 首页手机端：hero 插图收小、counter 改单列 */
    .hero-banner-two .bg-wrapper { padding: 60px 0 40px; }
    .illustration-holder { position: static; width: 100%; margin-top: 24px; }
    .illustration-holder .main-illustration { width: 60%; }
    .illustration-holder .shapes { display: none; }
    .counter-section-one { padding: 40px 0; }
    .counter-section-one .row { gap: 24px; }
    .counter-block-one { min-width: 0 !important; }
    .counter-block-one .main-count { font-size: 36px; }
    .counter-block-one p { font-size: 13px; }
    .feedback-grid { grid-template-columns: 1fr; gap: 16px; }
    /* 手机端表单/开关：长文字换行，开关不被挤占 */
    .form-group input, .form-group select, .form-group textarea { font-size: 14px; padding: 10px 12px; }
    .switch-label .text { font-size: 13px; }
    .admin-panel h3 { font-size: 16px; }
    .page-head h2 { font-size: 18px; }
    .xiaoyu-grid-2 { grid-template-columns: 1fr !important; gap: 14px !important; }
    .xiaoyu-grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    /* 手机端用户中心卡片不超宽：内部表格/按钮换行，卡片跟随父容器宽度 */
    .xiaoyu-card { min-width: 0; overflow: hidden; }
    .xiaoyu-card .xiaoyu-table { width: 100%; table-layout: fixed; }
    .xiaoyu-card .xiaoyu-table td { word-break: break-all; overflow-wrap: break-word; max-width: 100%; }
    .xiaoyu-card .xiaoyu-grid-2 { grid-template-columns: 1fr !important; gap: 8px !important; }
    .xiaoyu-card .xiaoyu-btn { width: 100%; justify-content: center; font-size: 13px; padding: 9px 12px; }
    .xiaoyu-card .xiaoyu-btn.xiaoyu-btn-inline { width: auto; }
    /* 我的插件卡片操作按钮：窄屏保持一排换行（自动换行成多行，每行尽量塞满），不被撑成整行一个 */
    .xiaoyu-card .t-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .xiaoyu-card .t-actions .xiaoyu-btn {
        width: auto !important; flex: 0 0 auto; padding: 7px 12px; font-size: 12.5px; white-space: nowrap;
    }
    /* 弹窗窄屏适配 */
    .modal-mask { padding: 10px; }
    .modal-box { padding: 16px; max-width: 100%; border-radius: 12px; }
    .modal-title { font-size: 16px; }
    .modal-text { font-size: 13px; margin: 8px 0 14px; }
    /* 验证码行：不管在弹窗还是表单里，窄屏都改竖排 */
    .captcha-row { flex-direction: column !important; gap: 12px !important; }
    .captcha-row img { width: 100% !important; height: 60px !important; object-fit: contain; max-width: 180px; }
    .captcha-row input { height: 40px !important; font-size: 14px !important; }
    .modal-actions { justify-content: center; }
}
/* 表格操作列（含按钮/链接/下拉）不参与省略号截断，避免窄屏下按钮文字被截成"…" */
.admin-table td:has(button),
.admin-table td:has(a.xiaoyu-btn),
.admin-table td:has(select) { overflow: visible; text-overflow: clip; max-width: none; }
@media (max-width: 380px) {
    .feature-grid, .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 18px; }
    .modal-box { padding: 12px; border-radius: 10px; }
    .captcha-row img { height: 52px !important; max-width: 160px; }
}
/* 后台首页统计卡：窄屏纵向单列，不挤成多列 */
@media (max-width: 767.98px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
    .stat-card { padding: 16px; }
    .stat-card .num { font-size: 24px; }
}

/* ========== Admin Tabs ========== */
.settings-tabs { margin-top: 6px; }
.settings-tab-nav { display: flex; gap: 6px; border-bottom: 2px solid #eef2f7; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.settings-tab-btn {
    padding: 10px 18px; font-size: 14px; color: #64748b; background: transparent;
    border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; cursor: pointer;
    font-weight: 500; white-space: nowrap; flex: 0 0 auto;
}
.settings-tab-btn:hover { color: var(--prime-one); }
.settings-tab-btn.active { color: var(--prime-one); background: #f5f9ff; border-color: #e2eaf6; font-weight: 600; }
.settings-tab-content { background: #fff; border: 1px solid #eef2f7; border-top: none; border-radius: 0 0 10px 10px; padding: 24px; }
.settings-tab-pane { display: none; }
.settings-tab-pane.active { display: block; }

/* ========== App Layout (侧边栏) ========== */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 230px; background: #fff; border-right: 1px solid #eff2f7;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column;
    transition: transform .3s ease; box-shadow: 0 12px 24px -8px rgba(18,38,63,.08);
}
.sidebar-header { padding: 18px 20px 16px; border-bottom: 1px solid #eff2f7; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sidebar-logo .logo-mark {
    width: 38px; height: 38px; border-radius: 10px; background: #fff; overflow: hidden; flex-shrink: 0;
}
.sidebar-logo span { font-size: 17px; font-weight: 700; color: var(--heading); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px; }
.nav-group { margin-bottom: 4px; }
.nav-group-title { font-size: 11px; font-weight: 600; color: #7f8387; text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px 6px; display: flex; align-items: center; gap: 8px; }
.nav-group-title i { font-size: 12px; opacity: .7; }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: .55rem 1rem; border-radius: .5rem;
    color: #545a6d; text-decoration: none; font-size: 14px; font-weight: 500; transition: all .2s; margin: 2px 10px;
}
.nav-item:hover { background: #f5f5f5; color: #383c40; }
.nav-item.active { background: var(--prime-one); color: #fff; font-weight: 600; }
.nav-item.active svg { color: #fff; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-children { padding-left: 28px; max-height: 0; overflow: hidden; transition: max-height .3s; }
.nav-group.open .nav-children { max-height: 400px; }
.nav-child { display: block; padding: 8px 12px; font-size: 13px; color: #94a8bb; text-decoration: none; border-radius: 8px; transition: all .2s; margin-bottom: 1px; }
.nav-child:hover { background: #f5f5f5; color: var(--prime-one); }
.nav-child.active { color: var(--prime-one); font-weight: 600; }
.nav-item-toggle { cursor: pointer; }
.nav-item-toggle .nav-arrow { margin-left: auto; transition: transform .3s ease; }
.nav-group.open .nav-item-toggle .nav-arrow { transform: rotate(90deg); }
.main-area { flex: 1; margin-left: 230px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    height: 70px; background: #fff; box-shadow: 0 1px 3px rgba(18,38,63,.04);
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--heading); }
.topbar-title { font-size: 16px; font-weight: 600; color: var(--heading); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-menu { position: relative; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--prime-one);
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px;
    cursor: pointer;
}
.user-dropdown {
    position: absolute; right: 0; top: 48px; width: 220px; background: #fff;
    border: 1px solid #eef2f7; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.12); padding: 8px; display: none; z-index: 200;
}
.user-dropdown.show { display: block; }
.user-dropdown-header { padding: 12px; border-bottom: 1px solid #f0f5f9; margin-bottom: 4px; }
.user-dropdown-name { font-size: 14px; font-weight: 600; color: var(--heading); }
.user-dropdown-role { font-size: 12px; color: #94a8bb; margin-top: 2px; }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #64748b; text-decoration: none; border-radius: 10px; font-size: 13px; transition: all .2s; }
.user-dropdown-item:hover { background: #f1f7ff; color: var(--prime-one); }
.user-dropdown-item.danger { color: #ef4444; }
.user-dropdown-item.danger:hover { background: rgba(239,68,68,.08); }
.user-dropdown-item svg { width: 16px; height: 16px; }
.content { flex: 1; padding: 24px; min-width: 0; background: var(--light-bg); min-height: calc(100vh - 70px); }
.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 99; }
.overlay.show { display: block; }

/* 内容加载蒙版 */
.loading-overlay {
    position: fixed; inset: 0; z-index: 90; background: rgba(255,255,255,.75);
    display: none; align-items: center; justify-content: center;
}
.loading-overlay.show { display: flex; }
.loading-overlay .spinner {
    width: 44px; height: 44px; border: 4px solid rgba(0,84,253,.18); border-top-color: var(--prime-one);
    border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.page-skeleton { display: flex; flex-direction: column; gap: 16px; }
.skeleton-block {
    height: 70px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9 25%, #e8eef5 37%, #f1f5f9 63%);
    background-size: 400% 100%; animation: skeleton 1.4s ease infinite;
}
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.page-load-error { text-align: center; padding: 80px 20px; }
.page-load-error h3 { font-size: 20px; }

/* Toast */
.toast {
    position: fixed; top: 20px; left: 50%; transform: translate(-50%, -20px); z-index: 9999;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 12px 22px; font-size: 14px; opacity: 0; transition: all .3s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-success { color: #16a34a; border-left: 4px solid #16a34a; }
.toast-error { color: #dc2626; border-left: 4px solid #dc2626; }
.toast-info { color: #2563eb; border-left: 4px solid #2563eb; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.modal-box { background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.2); width: 100%; max-width: 420px; padding: 24px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-title { font-size: 17px; color: var(--heading); }
.modal-text { font-size: 14px; color: #64748b; margin: 12px 0 20px; line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 通用组件 */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.xiaoyu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border: none; border-radius: .4rem; font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all .2s; text-decoration: none; font-family: inherit;
}
.xiaoyu-btn-primary { background: var(--prime-one); color: #fff; }
.xiaoyu-btn-primary:hover { opacity: .9; color: #fff; }
.xiaoyu-btn-secondary { background: #fff; color: #475569; border: 1px solid #e6eef5; }
.xiaoyu-btn-secondary:hover { border-color: var(--prime-one); color: var(--prime-one); }
.xiaoyu-btn-danger { background: #ff3f3f; color: #fff; }
.xiaoyu-btn-danger:hover { opacity: .9; color: #fff; }
.xiaoyu-btn-success { background: #18d26b; color: #fff; }
.xiaoyu-btn-success:hover { opacity: .9; color: #fff; }
.xiaoyu-btn-warning { background: #ff9f43; color: #fff; }
.xiaoyu-btn-warning:hover { opacity: .9; color: #fff; }
.xiaoyu-btn-sm { padding: 6px 12px; font-size: 13px; border-radius: .3rem; }
/* 内联按钮：不跟随卡片在窄屏下被撑满整行（如搜索按钮），保持自身宽度 */
.xiaoyu-btn-inline { width: auto !important; flex-shrink: 0; white-space: nowrap; }
.xiaoyu-btn:disabled { opacity: .6; cursor: not-allowed; }
/* 防重复请求：请求在途时按钮变灰禁用（由 ajaxGuard/confirmBox 自动加此 class）*/
.xiaoyu-btn.btn-loading, .xiaoyu-btn[disabled].btn-loading {
    opacity: .5; cursor: not-allowed; pointer-events: none;
    position: relative;
}
.xiaoyu-btn.btn-loading::after {
    content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 6px;
    border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
    animation: xiaoyu-spin .7s linear infinite;
}
@keyframes xiaoyu-spin { to { transform: rotate(360deg); } }
/* <a> 标签触发的按钮也用同一套变灰逻辑 */
a.btn-loading, a[disabled].btn-loading { opacity: .5; cursor: not-allowed; pointer-events: none; }

.xiaoyu-card {
    background: #fff; border: 0; border-radius: .5rem;
    box-shadow: 0 0 1rem rgba(18,38,63,.04); padding: 20px; margin-bottom: 18px;
}
.xiaoyu-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: #282828; }
.xiaoyu-input {
    width: 100%; padding: 10px 14px; background: #fff; border: 1px solid #e6eef5; border-radius: .4rem;
    font-size: 14px; color: var(--heading); font-family: inherit; transition: all .2s;
}
.xiaoyu-input:focus { border-color: var(--prime-one); box-shadow: 0 0 0 3px rgba(0,84,253,.1); outline: none; }
.xiaoyu-label { display: block; font-size: 13px; font-weight: 600; color: #68728c; margin-bottom: 7px; }
.xiaoyu-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.xiaoyu-badge-success { background: rgba(24,210,107,.2); color: #18d26b; }
.xiaoyu-badge-error { background: rgba(255,63,63,.2); color: #ff3f3f; }
.xiaoyu-badge-warning { background: rgba(255,193,7,.2); color: #cc8800; }
.xiaoyu-badge-primary { background: rgba(0,84,253,.15); color: var(--prime-one); }
.xiaoyu-badge-muted { background: #f1f5f9; color: #94a8bb; }

.xiaoyu-table { width: 100%; border-collapse: collapse; }
.xiaoyu-table th, .xiaoyu-table td { padding: 14px; text-align: left; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.xiaoyu-table thead th { background: #f8f9fa; font-size: 12px; font-weight: 600; color: #68728c; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.xiaoyu-table td { font-size: 14px; color: #475569; }
.xiaoyu-table tbody tr:hover { background: #f8f9fa; }
.xiaoyu-table-wrap { overflow-x: auto; }
/* 横向滚动工具类：用于手机端一排按钮/标签/列表，不换行不堆叠 */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; flex-wrap: nowrap; }
.scroll-x > * { flex: 0 0 auto; white-space: nowrap; }

.xiaoyu-grid { display: grid; gap: 18px; }
.xiaoyu-grid-2 { grid-template-columns: repeat(2, 1fr); }
.xiaoyu-grid-3 { grid-template-columns: repeat(3, 1fr); }
.xiaoyu-grid-4 { grid-template-columns: repeat(4, 1fr); }
#my-plugin-list.xiaoyu-grid { grid-template-columns: repeat(4, 1fr); }
.xiaoyu-flex { display: flex; align-items: center; gap: 12px; }
.xiaoyu-flex-between { display: flex; align-items: center; justify-content: space-between; }
.xiaoyu-text-secondary { color: #64748b; }
.xiaoyu-text-muted { color: #94a8bb; }
.xiaoyu-switch { position: relative; width: 46px; height: 26px; appearance: none; background: #dbe6f0; border-radius: 13px; cursor: pointer; transition: all .2s; }
.xiaoyu-switch::before { content: ''; position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: all .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.xiaoyu-switch:checked { background: var(--prime-one); }
.xiaoyu-switch:checked::before { transform: translateX(20px); }
/* 开关行：label + 开关 横向一组，开关固定 46px 不被 .form-group input{width:100%} 撑满 */
.xiaoyu-switch-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.xiaoyu-switch-row label { flex: 0 0 auto; font-size: 14px; color: #334155; font-weight: 500; cursor: pointer; }
.xiaoyu-switch-row .xiaoyu-switch { flex: 0 0 auto; width: 46px; height: 26px; }
.xiaoyu-divider { height: 1px; background: #f0f5f9; margin: 16px 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pagination button, .pagination span.pg-item {
    min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid #e6eef5; background: #fff; color: #475569;
    border-radius: .4rem; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--prime-one); color: var(--prime-one); }
.pagination button:disabled { opacity: .5; cursor: not-allowed; }
.pagination .pg-active { background: var(--prime-one); color: #fff; border-color: var(--prime-one); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.stat-card2 { background: #fff; border: 0; border-radius: .5rem; padding: 22px; box-shadow: 0 0 1rem rgba(18,38,63,.04); transition: all .2s; }
.stat-card2:hover { box-shadow: 0 8px 24px rgba(18,38,63,.08); transform: translateY(-2px); }
.stat-card2 .num { font-size: 26px; font-weight: 700; color: var(--heading); }
.stat-card2 .label { font-size: 13px; color: #94a8bb; margin-top: 6px; }
.stat-card2 .icon { font-size: 24px; margin-bottom: 8px; }

/* 欢迎横幅（仿小满 bg-soft-primary） */
.welcome-hero {
    background: rgba(0,84,253,.06); border-radius: .5rem; padding: 24px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.welcome-hero .welcome-text h5 { font-size: 17px; font-weight: 700; color: var(--prime-one); margin-bottom: 6px; }
.welcome-hero .welcome-text p { font-size: 13px; color: #68728c; }
.welcome-hero .welcome-avatar {
    width: 56px; height: 56px; border-radius: 50%; background: var(--prime-one);
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-size: 22px; font-weight: 700; flex-shrink: 0;
}
@media (max-width: 600px) {
    .welcome-hero { flex-direction: column; text-align: center; }
    .welcome-hero .welcome-avatar { margin: 0 auto; }
}

.empty-tip { text-align: center; padding: 46px 20px; color: #94a8bb; font-size: 14px; }
.empty-tip .empty-icon { font-size: 40px; margin-bottom: 10px; }

/* 插件卡片 */
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.plugin-card {
    background: #fff; border: 0; border-radius: .5rem; overflow: hidden;
    box-shadow: 0 0 1rem rgba(18,38,63,.04); transition: all .25s; display: flex; flex-direction: column;
}
.plugin-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(18,38,63,.1); }
.plugin-card .p-cover { height: 120px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f8ff, #eef4ff); font-size: 46px; position: relative; }
.plugin-card .p-cover img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card .p-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.plugin-card .p-name { font-size: 15px; font-weight: 600; color: var(--heading); }
.plugin-card .p-intro { font-size: 12px; color: #94a8bb; margin: 6px 0 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.plugin-card .p-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: #94a8bb; }
.plugin-card .p-price { font-size: 15px; font-weight: 700; color: var(--prime-two); }
.plugin-card .p-price.free { color: #16a34a; }
.plugin-card .p-price .p-orig { font-size: 12px; color: #94a8bb; text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.plugin-card .p-actions { display: flex; gap: 8px; }
.plugin-card .p-actions .xiaoyu-btn { flex: 1; padding: 7px 10px; font-size: 13px; }
.plugin-card .p-tag { position: absolute; top: 10px; left: 10px; }
.plugin-card .p-lang { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); color: var(--prime-one); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }

/* 商品卡 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card {
    background: #fff; border: 0; border-radius: .5rem; padding: 20px; text-align: center;
    box-shadow: 0 0 1rem rgba(18,38,63,.04); transition: all .25s; display: flex; flex-direction: column; align-items: center;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(18,38,63,.1); }
.product-card .pc-icon { font-size: 34px; margin-bottom: 10px; }
.product-card .pc-name { font-size: 15px; font-weight: 600; color: var(--heading); }
.product-card .pc-desc { font-size: 12px; color: #94a8bb; margin: 6px 0 12px; }
.product-card .pc-price { font-size: 20px; font-weight: 700; color: var(--prime-two); margin-bottom: 12px; }
.product-card .pc-price small { font-size: 12px; color: #94a8bb; font-weight: 400; }
.product-card .pc-actions { display: flex; gap: 8px; width: 100%; }

/* 工单 */
.ticket-item {
    background: #fff; border: 0; border-radius: .5rem; padding: 16px 18px; margin-bottom: 12px; transition: all .2s;
    box-shadow: 0 0 1rem rgba(18,38,63,.04);
}
.ticket-item:hover { box-shadow: 0 8px 24px rgba(18,38,63,.08); }
.ticket-item .t-title { font-size: 15px; font-weight: 600; color: var(--heading); display: flex; align-items: center; gap: 10px; }
.ticket-item .t-meta { font-size: 12px; color: #94a8bb; margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; }
.ticket-item .t-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.reply-item { padding: 14px 0; border-bottom: 1px solid #f0f5f9; }
.reply-item:last-child { border-bottom: none; }
.reply-item .r-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.reply-item .r-name { font-weight: 600; color: var(--heading); }
.reply-item .r-time { color: #94a8bb; font-size: 12px; }
.reply-item .r-body { font-size: 14px; color: #475569; line-height: 1.8; white-space: pre-wrap; }
.reply-admin { background: #f1f7ff; border-radius: 10px; padding: 14px; }

/* 余额/充值 */
.balance-hero { background: var(--prime-one); border-radius: 16px; color: #fff; padding: 26px 28px; margin-bottom: 20px; position: relative; overflow: hidden; }
.balance-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.1); }
.balance-hero .bh-label { font-size: 13px; opacity: .85; }
.balance-hero .bh-amount { font-size: 34px; font-weight: 700; margin: 6px 0 2px; }
.balance-hero .bh-actions { display: flex; gap: 10px; margin-top: 14px; }

/* 审核表单 */
.review-card { background: #fff; border: 0; border-radius: .5rem; padding: 20px; margin-bottom: 16px; box-shadow: 0 0 1rem rgba(18,38,63,.04); }
.review-card .rq-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.review-card .rq-body { font-size: 14px; color: #475569; line-height: 1.8; }

/* 响应式（仿小满断点 992/767/600/380px） */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .sidebar.show { transform: translateX(0); box-shadow: 0 12px 24px -8px rgba(18,38,63,.08); }
    .main-area { margin-left: 0; }
    .menu-toggle { display: block; }
    .content { padding: 18px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .xiaoyu-grid-3, .xiaoyu-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    #my-plugin-list.xiaoyu-grid { grid-template-columns: 1fr !important; }
    .content { padding: 16px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .xiaoyu-grid-2, .xiaoyu-grid-3, .xiaoyu-grid-4 { grid-template-columns: 1fr; }
    .topbar { padding: 0 16px; }
}
@media (max-width: 380px) {
    .stat-grid { grid-template-columns: 1fr; }
}

/* ===== 公告 / 广告 通用样式 ===== */
.ann-banner {
    position: relative; padding: 12px 18px; border-radius: .6rem; margin-bottom: 8px;
    font-size: 14px; line-height: 1.6; display: flex; gap: 10px; align-items: flex-start;
}
.ann-banner .fas { font-size: 14px; margin-top: 3px; }
.ann-banner.ann-ad { background: linear-gradient(90deg, rgba(0,84,253,.08), rgba(24,210,107,.08)); border: 1px solid rgba(0,84,253,.18); color: #1e293b; }
.ann-banner.ann-ad .fas { color: #0054fd; }
.ann-banner.ann-normal { background: #f6f8fa; border: 1px solid #e5e7eb; color: #475569; flex-wrap: wrap; }
.ann-banner.ann-normal .fas { color: #18d26b; font-size: 10px; margin-top: 5px; }
.ann-banner .ann-content, .ann-banner .ann-body { flex: 1; min-width: 0; }
.ann-banner .ann-banner-title, .ann-banner .ann-content .ann-title { font-weight: 700; color: #010d4c; margin-bottom: 4px; font-size: 15px; }
.ann-banner .ann-dot-title { font-weight: 600; color: #1e293b; width: 100%; display: block; margin: 0 0 4px; font-size: 15px; }
.ann-banner .ann-normal-body { color: #475569; white-space: pre-line; flex: 1; min-width: 0; }
.ann-banner .ann-body { color: #475569; white-space: pre-line; }

/* 弹窗 */
.ann-popup-overlay { position: fixed; inset: 0; background: rgba(1,6,20,.45); z-index: 10000; display: none; }
.ann-popup-overlay.show { display: block; }
.ann-popup {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(92vw, 520px); max-height: 82vh; overflow: hidden; z-index: 10001;
    background: #fff; border-radius: .75rem; box-shadow: 0 24px 64px rgba(0,0,0,.28); display: none;
}
.ann-popup.show { display: block; }
.ann-popup-header {
    padding: 14px 20px; border-bottom: 1px solid #f1f5f9; background: #f8fafc;
    display: flex; align-items: center; justify-content: space-between;
}
.ann-popup-title { font-weight: 700; color: #010d4c; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ann-popup-title i { color: #0054fd; }
.ann-popup-close { border: 0; background: transparent; cursor: pointer; color: #94a3b8; font-size: 18px; line-height: 1; padding: 4px; border-radius: 50%; }
.ann-popup-close:hover { color: #1e293b; background: #e2e8f0; }
.ann-popup-body { padding: 18px 20px; overflow-y: auto; max-height: calc(82vh - 110px); }
.ann-popup-item { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.ann-popup-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.ann-popup-item .ann-item-title { font-weight: 700; color: #010d4c; margin-bottom: 6px; font-size: 15px; }
.ann-popup-item .ann-item-content { color: #475569; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.ann-popup-footer {
    padding: 12px 20px; border-top: 1px solid #f1f5f9; background: #fff;
    display: flex; gap: 10px; justify-content: flex-end; align-items: center;
}
.ann-popup-footer .ann-btn {
    padding: 7px 16px; border-radius: .5rem; border: 1px solid #e5e7eb; background: #fff; color: #334155; font-size: 13px; cursor: pointer;
    transition: all .15s;
}
.ann-popup-footer .ann-btn.primary { background: #0054fd; border-color: #0054fd; color: #fff; }
.ann-popup-footer .ann-btn.primary:hover { background: #0043d1; }
.ann-popup-footer .ann-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
