/* CatNaps IDC 服务器分销系统 - 前端样式表（后续任务填充） */

/* ============================================================
 * CSS 变量（统一设计令牌）
 * 颜色 / 圆角 / 阴影等以变量形式集中声明，方便后续主题切换与维护。
 * 现有硬编码颜色保持兼容，新组件请优先使用变量。
 * 主色调参考 IDC 行业蓝天云/雨云风格：蓝色主调 + 浅灰背景。
 * ============================================================ */
:root {
    /* 主色 / 辅色 */
    --color-primary:        #2d7ff9;
    --color-primary-hover:  #1a66d6;
    --color-primary-light:  #eef5ff;
    --color-primary-border: #d6e5fb;
    --color-success:        #1ab46b;
    --color-success-hover:  #159356;
    --color-success-bg:    #e8f8ef;
    --color-success-border:#c4ecd5;
    --color-warning:        #f0a93b;
    --color-warning-bg:    #fef6e7;
    --color-warning-border:#f5e1b3;
    --color-danger:         #e45a5a;
    --color-danger-hover:  #cc4848;
    --color-danger-bg:     #fdecec;
    --color-danger-border: #f5c6c6;
    --color-info:           #1a66d6;
    --color-info-bg:        #eef5ff;
    --color-info-border:   #cfe0fb;

    /* 中性色 */
    --color-bg:             #f4f7fc;
    --color-bg-admin:       #eef2f8;
    --color-surface:        #ffffff;
    --color-sidebar:        #1e2a3a;
    --color-footer:         #1e2a3a;

    /* 文字色 */
    --color-text:           #2c3e50;
    --color-text-strong:    #1f2d3d;
    --color-text-muted:     #5a6f85;
    --color-text-light:     #8aa0b6;
    --color-text-inverse:   #ffffff;

    /* 边框色 */
    --color-border:         #eef3fa;
    --color-border-input:   #d9e2ee;
    --color-border-soft:    #eaf0f8;
    --color-divider:        #f3f7fc;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-pill: 999px;

    /* 阴影 */
    --shadow-sm: 0 2px 10px rgba(40, 80, 140, 0.04);
    --shadow-md: 0 6px 24px rgba(40, 80, 140, 0.07);
    --shadow-lg: 0 12px 36px rgba(45, 127, 249, 0.25);
    --shadow-card: 0 8px 30px rgba(40, 80, 140, 0.08);

    /* 字号 */
    --font-xs: 12px;
    --font-sm: 13px;
    --font-base: 14px;
    --font-md: 15px;
    --font-lg: 17px;
    --font-xl: 22px;

    /* 间距 */
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* 过渡 */
    --transition: 0.15s ease;
}

/* ============================================================
 * 基础重置
 * ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.home-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f4f7fc;
    color: #2c3e50;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2d7ff9;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #1a66d6;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
 * 布局骨架
 * ============================================================ */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
    padding: 28px 0;
}

.app-footer {
    background: #1e2a3a;
    color: #9fb3c8;
    padding: 22px 0;
    font-size: 13px;
}

.app-footer .container {
    text-align: center;
}

.app-footer a {
    color: #9fb3c8;
}

/* ============================================================
 * 头部导航
 * ============================================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6edf5;
    box-shadow: 0 1px 4px rgba(45, 127, 249, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.brand {
    font-size: 19px;
    font-weight: 700;
    color: #2d7ff9;
    letter-spacing: 0.5px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    color: #4a5e72;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: #eef5ff;
    color: #2d7ff9;
}

.site-nav a.nav-highlight {
    background: #2d7ff9;
    color: #fff;
}

.site-nav a.nav-highlight:hover {
    background: #1a66d6;
    color: #fff;
}

.site-nav a.nav-logout {
    color: #e45a5a;
}

/* ============================================================
 * 按钮
 * ============================================================ */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    background: #2d7ff9;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-align: center;
}

.btn:hover {
    background: #1a66d6;
    color: #fff;
}

.btn-primary {
    background: #2d7ff9;
}

.btn-outline {
    background: #fff;
    color: #2d7ff9;
    border-color: #2d7ff9;
}

.btn-outline:hover {
    background: #eef5ff;
    color: #1a66d6;
}

.btn-outline:disabled,
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================================
 * 认证卡片（登录 / 注册）
 * ============================================================ */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 30px 0 60px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(40, 80, 140, 0.08);
    padding: 36px 36px 30px;
    border: 1px solid #eef3fa;
}

.auth-head {
    text-align: center;
    margin-bottom: 22px;
}

.auth-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #1f2d3d;
}

.auth-head p {
    margin: 0;
    color: #8aa0b6;
    font-size: 13px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    color: #4a5e72;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d9e2ee;
    border-radius: 7px;
    font-size: 14px;
    color: #2c3e50;
    background: #fbfcfe;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2d7ff9;
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.12);
    background: #fff;
}

.form-error {
    display: block;
    color: #e45a5a;
    font-size: 12px;
    margin-top: 5px;
}

.form-feedback {
    display: block;
    color: #8aa0b6;
    font-size: 12px;
    margin-top: 5px;
    min-height: 1px;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn .form-input {
    flex: 1 1 auto;
}

.input-with-btn .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 20px;
    font-size: 13px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    color: #4a5e72;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    margin-right: 6px;
    accent-color: #2d7ff9;
}

.form-link a {
    color: #2d7ff9;
}

.auth-foot {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #8aa0b6;
}

.auth-foot a {
    color: #2d7ff9;
    font-weight: 500;
}

/* ============================================================
 * 提示框
 * ============================================================ */
.alert {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 18px;
}

.alert-success {
    background: #e8f8ef;
    color: #1a8a4e;
    border: 1px solid #c4ecd5;
}

.alert-danger {
    background: #fdecec;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.alert-info {
    background: #eef5ff;
    color: #1a66d6;
    border: 1px solid #cfe0fb;
}

/* ============================================================
 * 首页 Hero
 * ============================================================ */
.home-hero {
    background: linear-gradient(135deg, #2d7ff9 0%, #1f5fd0 100%);
    color: #fff;
    border-radius: 16px;
    padding: 70px 40px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(45, 127, 249, 0.25);
}

.hero-inner h1 {
    font-size: 30px;
    margin: 0 0 14px;
    font-weight: 700;
}

.hero-desc {
    font-size: 15px;
    opacity: 0.92;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 640px) {
    .header-inner {
        height: auto;
        flex-direction: column;
        padding: 12px 0;
        gap: 10px;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .home-hero {
        padding: 44px 20px;
    }

    .hero-inner h1 {
        font-size: 22px;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* ============================================================
 * 按钮扩展（成功 / 危险 / 小尺寸）
 * ============================================================ */
.btn-success {
    background: #1ab46b;
    border-color: #1ab46b;
}

.btn-success:hover {
    background: #159356;
    color: #fff;
}

.btn-danger {
    background: #e45a5a;
    border-color: #e45a5a;
}

.btn-danger:hover {
    background: #cc4848;
    color: #fff;
}

.btn-warning {
    background: #f0a020;
    border-color: #f0a020;
    color: #fff;
}

.btn-warning:hover {
    background: #d8901a;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

/* ============================================================
 * 前台实名认证页
 * ============================================================ */
.verification-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 0 60px;
}

.verification-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(40, 80, 140, 0.08);
    padding: 36px 36px 30px;
    border: 1px solid #eef3fa;
}

.verification-head {
    text-align: center;
    margin-bottom: 24px;
}

.verification-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #1f2d3d;
}

.verification-head p {
    margin: 0;
    color: #8aa0b6;
    font-size: 13px;
}

.verify-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.verify-status-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    font-weight: 700;
}

.verify-status-text h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #1f2d3d;
}

.verify-status-text p {
    margin: 0;
    font-size: 13px;
    color: #5a6f85;
}

.verify-meta {
    margin-top: 4px !important;
    font-size: 12px !important;
    color: #8aa0b6 !important;
}

.verify-status-approved {
    background: #e8f8ef;
    border: 1px solid #c4ecd5;
}

.verify-status-approved .verify-status-icon {
    background: #1ab46b;
}

.verify-status-pending {
    background: #fff8e8;
    border: 1px solid #f3e2b8;
}

.verify-status-pending .verify-status-icon {
    background: #f0a93b;
}

.verify-status-rejected {
    background: #fdecec;
    border: 1px solid #f5c6c6;
}

.verify-status-rejected .verify-status-icon {
    background: #e45a5a;
}

.verification-form .form-group {
    margin-bottom: 18px;
}

.verification-form label {
    display: block;
    font-size: 13px;
    color: #4a5e72;
    margin-bottom: 6px;
    font-weight: 500;
}

/* ============================================================
 * 后台布局骨架
 * ============================================================ */
body.admin-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #eef2f8;
    color: #2c3e50;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    flex: 0 0 220px;
    background: #1e2a3a;
    color: #c7d4e3;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    padding: 20px 22px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.5px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    flex: 1;
}

.admin-menu a {
    display: block;
    padding: 11px 22px;
    color: #aebfd0;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}

.admin-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    height: 58px;
    background: #fff;
    border-bottom: 1px solid #e6edf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2d3d;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #5a6f85;
}

.admin-user a {
    color: #2d7ff9;
}

.admin-content {
    flex: 1;
    padding: 24px 26px;
    overflow-y: auto;
}

/* ============================================================
 * 后台面板 / 通用
 * ============================================================ */
.admin-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(40, 80, 140, 0.05);
    border: 1px solid #eaf0f8;
    padding: 24px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef3fa;
}

.admin-panel-head h2 {
    margin: 0;
    font-size: 18px;
    color: #1f2d3d;
}

.admin-panel-sub {
    font-size: 13px;
    color: #8aa0b6;
    margin-left: 8px;
}

.admin-empty {
    text-align: center;
    color: #8aa0b6;
    font-size: 14px;
    padding: 50px 0;
}

/* ============================================================
 * 后台实名审核 - 卡片列表
 * ============================================================ */
.verify-admin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.verify-admin-card {
    background: #fbfcfe;
    border: 1px solid #eaf0f8;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    gap: 24px;
    align-items: stretch;
    transition: box-shadow 0.15s ease;
}

.verify-admin-card:hover {
    box-shadow: 0 4px 16px rgba(45, 127, 249, 0.08);
}

.verify-admin-main {
    flex: 1 1 auto;
    min-width: 0;
}

.verify-admin-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
}

.verify-label {
    flex: 0 0 88px;
    color: #8aa0b6;
    font-size: 13px;
}

.verify-value {
    color: #2c3e50;
    word-break: break-all;
}

.verify-admin-actions {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    border-left: 1px dashed #e3eaf4;
    padding-left: 20px;
}

.verify-action-form {
    margin: 0;
}

.verify-reject-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verify-reject-form .form-input {
    font-size: 13px;
    padding: 8px 10px;
}

.verify-admin-actions .btn-sm {
    width: 100%;
}

/* ============================================================
 * 后台分页
 * ============================================================ */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.admin-pagination .page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9e2ee;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5e72;
    background: #fff;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-pagination .page-item:hover {
    border-color: #2d7ff9;
    color: #2d7ff9;
}

.admin-pagination .page-item.active {
    background: #2d7ff9;
    border-color: #2d7ff9;
    color: #fff;
    cursor: default;
}

/* ============================================================
 * 后台响应式
 * ============================================================ */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        flex: 0 0 auto;
    }

    .admin-menu {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px;
    }

    .admin-menu a {
        padding: 8px 12px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .verify-admin-card {
        flex-direction: column;
    }

    .verify-admin-actions {
        flex: 0 0 auto;
        border-left: none;
        border-top: 1px dashed #e3eaf4;
        padding-left: 0;
        padding-top: 14px;
    }
}

/* ============================================================
 * 我的钱包页
 * ============================================================ */
.wallet-page {
    padding: 8px 0 40px;
}

.page-head {
    margin-bottom: 24px;
}

.page-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #1f2d3d;
    font-weight: 700;
}

.page-head p {
    margin: 0;
    color: #8aa0b6;
    font-size: 13px;
}

/* 三张卡片 */
.wallet-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.wallet-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.07);
    border: 1px solid #eef3fa;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2d7ff9;
}

.wallet-card-credits::before {
    background: linear-gradient(180deg, #2d7ff9 0%, #1f5fd0 100%);
}

.wallet-card-frozen::before {
    background: linear-gradient(180deg, #f0a93b 0%, #d68a14 100%);
}

.wallet-card-sign::before {
    background: linear-gradient(180deg, #1ab46b 0%, #159356 100%);
}

.wallet-card-label {
    font-size: 13px;
    color: #8aa0b6;
    font-weight: 500;
}

.wallet-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.2;
    margin: 4px 0 2px;
}

.wallet-card-value-sm {
    font-size: 20px;
    font-weight: 600;
}

.wallet-card-foot {
    font-size: 12px;
    color: #8aa0b6;
}

.wallet-card-foot strong {
    color: #2d7ff9;
    font-weight: 600;
}

.wallet-card-sign .btn {
    margin-top: 12px;
}

.wallet-sign-tip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e3eaf4;
    font-size: 12px;
    color: #8aa0b6;
}

.wallet-sign-tip strong {
    color: #1ab46b;
    font-weight: 600;
}

/* 积分流水面板 */
.wallet-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(40, 80, 140, 0.05);
    border: 1px solid #eaf0f8;
    padding: 22px 24px;
}

.wallet-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef3fa;
}

.wallet-panel-head h2 {
    margin: 0;
    font-size: 17px;
    color: #1f2d3d;
}

.wallet-panel-sub {
    font-size: 13px;
    color: #8aa0b6;
}

.wallet-empty {
    text-align: center;
    color: #8aa0b6;
    font-size: 14px;
    padding: 50px 0;
}

.wallet-table-wrap {
    overflow-x: auto;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wallet-table thead th {
    background: #f7faff;
    color: #5a6f85;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eaf0f8;
    white-space: nowrap;
}

.wallet-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f7fc;
    color: #2c3e50;
    vertical-align: middle;
}

.wallet-table tbody tr:hover {
    background: #fbfdff;
}

.wallet-table .num-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.wallet-table .time-cell {
    color: #5a6f85;
    font-size: 13px;
    white-space: nowrap;
}

.wallet-table .remark-cell {
    color: #5a6f85;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount-in {
    color: #1ab46b;
}

.amount-out {
    color: #e45a5a;
}

.txn-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #eef5ff;
    color: #2d7ff9;
    border: 1px solid #d6e5fb;
}

.txn-type-sign {
    background: #e8f8ef;
    color: #1a8a4e;
    border-color: #c4ecd5;
}

.txn-type-recharge {
    background: #eef5ff;
    color: #1a66d6;
    border-color: #cfe0fb;
}

.txn-type-order_freeze,
.txn-type-order_consume {
    background: #fff4e8;
    color: #b06a1b;
    border-color: #f3e2b8;
}

.txn-type-order_unfreeze {
    background: #f0f7ff;
    color: #2864a8;
    border-color: #d6e5fb;
}

.txn-type-admin_adjust {
    background: #f5f0ff;
    color: #6c3fb6;
    border-color: #e0d6f5;
}

.txn-type-refund {
    background: #fdecec;
    color: #c0392b;
    border-color: #f5c6c6;
}

/* 分页 */
.wallet-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
}

.wallet-pagination .page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d9e2ee;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5e72;
    background: #fff;
    transition: all 0.15s ease;
}

.wallet-pagination a.page-item:hover {
    border-color: #2d7ff9;
    color: #2d7ff9;
}

.wallet-pagination .page-item.active {
    background: #2d7ff9;
    border-color: #2d7ff9;
    color: #fff;
    cursor: default;
}

.wallet-pagination .page-item.disabled {
    color: #b8c4d2;
    cursor: not-allowed;
    background: #fbfcfe;
}

/* 签到反馈 */
#sign-feedback.alert {
    margin-bottom: 18px;
}

/* 钱包卡片响应式 */
@media (max-width: 768px) {
    .wallet-cards {
        grid-template-columns: 1fr;
    }

    .wallet-card-value {
        font-size: 26px;
    }

    .wallet-table thead {
        display: none;
    }

    .wallet-table tbody td {
        display: block;
        text-align: left;
        padding: 6px 14px;
        border-bottom: none;
    }

    .wallet-table tbody td.num-col {
        text-align: left;
    }

    .wallet-table tbody tr {
        border-bottom: 1px solid #eef3fa;
        padding-bottom: 6px;
    }

    .wallet-table .remark-cell {
        max-width: none;
        white-space: normal;
    }
}

/* ============================================================
 * 公告模块（首页 banner / 列表页 / 详情页）
 * ============================================================ */

/* ---- 首页公告 banner 区 ---- */
.announcement-banner {
    margin-top: 24px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.announcement-banner-head h2 {
    font-size: 16px;
    margin: 0;
    color: #1f2d3d;
    font-weight: 700;
}

.announcement-banner-head .more-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.announcement-banner-head .more-link:hover {
    text-decoration: underline;
}

.announcement-card {
    border-radius: 10px;
    padding: 14px 18px;
    border: 1px solid #e0e7f3;
    background: #f8fbff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.announcement-card.announcement-info    { background: #eff6ff; border-color: #bfdbfe; }
.announcement-card.announcement-success { background: #ecfdf5; border-color: #a7f3d0; }
.announcement-card.announcement-warning { background: #fffbeb; border-color: #fde68a; }
.announcement-card.announcement-danger  { background: #fef2f2; border-color: #fecaca; }

.announcement-tag {
    flex: 0 0 auto;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    background: #3b82f6;
    line-height: 1.6;
    white-space: nowrap;
}

.announcement-info    .announcement-tag { background: #3b82f6; }
.announcement-success .announcement-tag { background: #10b981; }
.announcement-warning .announcement-tag { background: #f59e0b; }
.announcement-danger  .announcement-tag { background: #ef4444; }

.announcement-body {
    flex: 1 1 auto;
    min-width: 0;
}

.announcement-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2d3d;
    line-height: 1.5;
}

.announcement-title a {
    color: inherit;
    text-decoration: none;
}

.announcement-title a:hover {
    color: #3b82f6;
}

.announcement-preview {
    margin: 0;
    font-size: 13px;
    color: #5b6b7e;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.announcement-meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: #9aa9ba;
}

/* ---- 公告列表页 ---- */
.announcement-list-page {
    padding: 8px 0 32px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.announcement-list-item {
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #e0e7f3;
    background: #fff;
    transition: box-shadow .15s ease;
}

.announcement-list-item:hover {
    box-shadow: 0 2px 8px rgba(30, 60, 110, .08);
}

.announcement-list-item .announcement-title {
    font-size: 16px;
}

.announcement-list-item .announcement-preview {
    -webkit-line-clamp: 3;
}

/* ---- 公告详情页 ---- */
.announcement-detail {
    padding: 8px 0 32px;
}

.announcement-detail-card {
    background: #fff;
    border: 1px solid #e0e7f3;
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 12px;
}

.announcement-detail-card h1 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #1f2d3d;
    font-weight: 700;
    line-height: 1.4;
}

.announcement-detail-meta {
    color: #9aa9ba;
    font-size: 13px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef3fa;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.announcement-detail-content {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.announcement-detail-back {
    display: inline-block;
    margin-top: 22px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.announcement-detail-back:hover {
    text-decoration: underline;
}

.announcement-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9aa9ba;
    font-size: 14px;
}

/* ============================================================
 * 下单确认页
 * ============================================================ */
.order-create-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.order-create-back {
    margin-bottom: 10px;
}

.order-create-back a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.order-create-back a:hover {
    text-decoration: underline;
}

.order-create-title {
    font-size: 24px;
    color: #1f2d3d;
    margin: 0 0 4px;
    font-weight: 700;
}

.order-create-sub {
    color: #9aa9ba;
    font-size: 13px;
    margin: 0 0 20px;
}

.order-create-card {
    background: #fff;
    border: 1px solid #e0e7f3;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 16px;
}

.order-section-title {
    margin: 0 0 14px;
    font-size: 16px;
    color: #1f2d3d;
    font-weight: 700;
}

.order-product-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 8px;
}

.order-product-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2d3d;
}

.order-product-meta {
    color: #9aa9ba;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-product-meta .meta-divider {
    color: #d4dce8;
}

.order-product-desc {
    color: #5b6b7e;
    font-size: 14px;
    line-height: 1.7;
    margin: 6px 0 16px;
    background: #f8fbff;
    padding: 12px 14px;
    border-radius: 8px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.order-info-item {
    background: #f8fbff;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}

.order-info-label {
    display: block;
    font-size: 12px;
    color: #9aa9ba;
    margin-bottom: 6px;
}

.order-info-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}

.order-info-value.price {
    color: #ef4444;
}

.order-info-value.is-ok {
    color: #10b981;
}

.order-info-value.is-bad {
    color: #ef4444;
}

.order-config-mini {
    margin-top: 14px;
    border-top: 1px solid #eef3fa;
    padding-top: 14px;
}

.order-config-mini h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #5b6b7e;
    font-weight: 600;
}

.order-config-mini ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 18px;
}

.order-config-mini li {
    font-size: 13px;
    color: #5b6b7e;
    display: flex;
    gap: 8px;
}

.order-config-mini .config-key {
    color: #9aa9ba;
    min-width: 60px;
}

.order-section-hint {
    margin: 0 0 10px;
    color: #9aa9ba;
    font-size: 12px;
}

.order-empty-tip {
    color: #ef4444;
    font-size: 13px;
    padding: 10px 12px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.order-create-form .form-textarea {
    resize: vertical;
}

.order-create-summary {
    background: #fff;
    border: 1px solid #e0e7f3;
    border-radius: 12px;
    padding: 18px 26px;
    margin-bottom: 16px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #5b6b7e;
}

.order-summary-row .summary-price {
    color: #ef4444;
    font-weight: 700;
    font-size: 18px;
}

.order-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

@media (max-width: 640px) {
    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .order-config-mini ul {
        grid-template-columns: 1fr;
    }
    .order-create-actions {
        flex-direction: column-reverse;
    }
    .order-create-actions .btn {
        width: 100%;
    }
}

/* 订单详情页 - 备注框 */
.order-remark-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 18px;
    color: #5b4a1f;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================================================
 * 充值模块
 * ============================================================ */
.recharge-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.recharge-head {
    margin-bottom: 18px;
}

.recharge-head h1 {
    font-size: 24px;
    color: #1f2d3d;
    margin: 0 0 4px;
    font-weight: 700;
}

.recharge-head p {
    color: #9aa9ba;
    font-size: 13px;
    margin: 0;
}

.recharge-card {
    background: #fff;
    border: 1px solid #e0e7f3;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 18px;
}

.recharge-card h2 {
    margin: 0 0 18px;
    font-size: 16px;
    color: #1f2d3d;
    font-weight: 700;
}

.recharge-preset-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.recharge-preset-item {
    cursor: pointer;
    display: block;
}

.recharge-preset-radio {
    display: none;
}

.recharge-preset-card {
    border: 2px solid #e0e7f3;
    border-radius: 10px;
    padding: 16px 8px;
    text-align: center;
    background: #fff;
    transition: all 0.15s ease;
}

.recharge-preset-radio:checked + .recharge-preset-card {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.18);
}

.recharge-amount-num {
    font-size: 26px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.2;
    display: inline-block;
}

.recharge-amount-unit {
    display: inline-block;
    margin-left: 4px;
    color: #9aa9ba;
    font-size: 13px;
}

.recharge-amount-credits {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7c8e;
}

.recharge-custom {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed #e0e7f3;
}

.recharge-custom-label {
    display: block;
    margin-bottom: 8px;
    color: #5b6b7e;
    font-size: 14px;
    font-weight: 600;
}

.recharge-custom-input {
    position: relative;
    display: flex;
    align-items: center;
}

.recharge-custom-input input {
    flex: 1 1 auto;
    padding-right: 50px;
}

.recharge-custom-suffix {
    position: absolute;
    right: 16px;
    color: #9aa9ba;
    font-size: 14px;
    pointer-events: none;
}

.recharge-custom-tip {
    margin: 8px 0 0;
    color: #9aa9ba;
    font-size: 12px;
}

.recharge-summary {
    margin-top: 18px;
    padding: 16px 18px;
    background: #f8fbff;
    border-radius: 10px;
}

.recharge-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #5b6b7e;
}

.recharge-summary-amount {
    color: #ef4444;
    font-weight: 700;
    font-size: 18px;
}

.recharge-summary-credits {
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
}

.recharge-actions {
    margin-top: 18px;
}

.recharge-tips {
    background: #fff;
    border: 1px solid #e0e7f3;
    border-radius: 12px;
    padding: 18px 22px;
    color: #5b6b7e;
    font-size: 13px;
    line-height: 1.8;
}

.recharge-tips h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1f2d3d;
    font-weight: 600;
}

.recharge-tips ul {
    margin: 0;
    padding-left: 18px;
}

.recharge-history-link {
    margin-top: 16px;
    text-align: right;
}

.recharge-history-link a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.recharge-history-link a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .recharge-preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 支付返回页 */
.recharge-return-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 0 60px;
}

.recharge-return-card {
    background: #fff;
    border: 1px solid #e0e7f3;
    border-radius: 14px;
    padding: 36px 30px;
    text-align: center;
}

.recharge-return-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e0e7f3;
    color: #9aa9ba;
    font-size: 36px;
    font-weight: 700;
    line-height: 64px;
}

.recharge-return-icon.is-ok {
    background: #d1fae5;
    color: #10b981;
}

.recharge-return-icon.is-bad {
    background: #fee2e2;
    color: #ef4444;
}

.recharge-return-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1f2d3d;
    font-weight: 700;
}

.recharge-return-desc {
    color: #5b6b7e;
    font-size: 14px;
    margin: 0 0 22px;
}

.recharge-return-info {
    background: #f8fbff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.recharge-return-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #5b6b7e;
}

.recharge-return-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 充值记录页 */
.recharge-history-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

/* 充值详情页 */
.recharge-show-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.recharge-show-back {
    margin-bottom: 10px;
}

.recharge-show-back a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.recharge-show-back a:hover {
    text-decoration: underline;
}

/* ============================================================
 * Task 8 - 产品展示（分区 tab / 卡片网格 / 列表页 / 详情页）
 * ============================================================ */

/* ---- 产品区块（首页） ---- */
.product-section {
    margin-top: 32px;
}

.product-section-head {
    margin-bottom: 18px;
    text-align: center;
}

.product-section-head h2 {
    font-size: 22px;
    margin: 0 0 4px;
    color: #1f2d3d;
    font-weight: 700;
}

.product-section-head p {
    margin: 0;
    color: #8aa0b6;
    font-size: 13px;
}

/* ---- 分区 tab（首页 JS 切换） ---- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 12px 0 24px;
    border-bottom: 1px solid #eef3fa;
    margin-bottom: 24px;
}

.category-tab {
    border: 1px solid #d9e2ee;
    background: #fff;
    color: #4a5e72;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.category-tab:hover {
    border-color: #2d7ff9;
    color: #2d7ff9;
}

.category-tab.is-active {
    background: #2d7ff9;
    border-color: #2d7ff9;
    color: #fff;
}

/* ---- 产品网格 ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-grid-item {
    display: flex;
}

.product-grid-item[hidden] {
    display: none;
}

/* ---- 产品卡片 ---- */
.product-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 12px;
    padding: 20px 20px 18px;
    box-shadow: 0 2px 10px rgba(40, 80, 140, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2d7ff9 0%, #1f5fd0 100%);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(45, 127, 249, 0.16);
    border-color: #d6e5fb;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.product-card-cat {
    font-size: 12px;
    color: #2d7ff9;
    background: #eef5ff;
    border: 1px solid #d6e5fb;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.product-stock-badge {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 11px;
    font-weight: 500;
}

.product-stock-badge.is-on {
    background: #e8f8ef;
    color: #1a8a4e;
    border: 1px solid #c4ecd5;
}

.product-stock-badge.is-off {
    background: #fdecec;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
    margin: 0 0 14px;
    line-height: 1.4;
    word-break: break-word;
}

.product-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    background: #fbfcfe;
    border: 1px solid #f1f5fb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.spec-label {
    font-size: 11px;
    color: #8aa0b6;
    letter-spacing: 0.3px;
}

.spec-value {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.product-price .price-num {
    font-size: 24px;
    font-weight: 700;
    color: #2d7ff9;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.product-price .price-unit {
    font-size: 12px;
    color: #2d7ff9;
    font-weight: 600;
}

.product-price .price-duration {
    font-size: 12px;
    color: #8aa0b6;
    margin-left: 4px;
}

.product-detail-link {
    flex: 0 0 auto;
}

.product-card-action .btn {
    width: 100%;
}

.product-buy-form {
    margin: 0;
}

/* ---- 空状态 ---- */
.product-empty {
    background: #fff;
    border: 1px dashed #d9e2ee;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    color: #8aa0b6;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ---- 产品列表页 ---- */
.product-page {
    padding: 4px 0 40px;
}

.product-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eef3fa;
}

.filter-chip {
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    color: #4a5e72;
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 18px;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    border-color: #2d7ff9;
    color: #2d7ff9;
}

.filter-chip.is-active {
    background: #2d7ff9;
    border-color: #2d7ff9;
    color: #fff;
}

/* ---- 产品详情页 ---- */
.product-detail-page {
    padding: 4px 0 40px;
}

.product-detail-back {
    margin-bottom: 16px;
    font-size: 13px;
}

.product-detail-back a {
    color: #5a6f85;
}

.product-detail-back a:hover {
    color: #2d7ff9;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.07);
    padding: 28px 30px;
    margin-bottom: 28px;
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6f85;
    margin-bottom: 12px;
}

.meta-cat {
    color: #2d7ff9;
    background: #eef5ff;
    border: 1px solid #d6e5fb;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.meta-divider {
    color: #c8d3e0;
}

.meta-stock.is-on {
    color: #1a8a4e;
}

.meta-stock.is-off {
    color: #c0392b;
}

.product-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 14px;
    line-height: 1.3;
}

.product-detail-desc {
    font-size: 14px;
    color: #5a6f85;
    background: #fbfcfe;
    border: 1px solid #f1f5fb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 22px;
}

.product-detail-price .price-num {
    font-size: 38px;
    font-weight: 700;
    color: #2d7ff9;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.product-detail-price .price-unit {
    font-size: 14px;
    color: #2d7ff9;
    font-weight: 600;
}

.product-detail-price .price-duration {
    font-size: 13px;
    color: #8aa0b6;
    margin-left: 6px;
}

.product-detail-action {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 13px 32px;
    font-size: 15px;
    border-radius: 8px;
}

.product-action-hint {
    font-size: 12px;
    color: #8aa0b6;
}

.product-detail-side {
    background: #fbfcfe;
    border: 1px solid #f1f5fb;
    border-radius: 10px;
    padding: 18px 20px;
    align-self: start;
}

.product-detail-side h3 {
    font-size: 14px;
    margin: 0 0 14px;
    color: #1f2d3d;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef3fa;
}

.detail-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-side-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed #eef3fa;
}

.detail-side-list li:last-child {
    border-bottom: none;
}

.side-label {
    color: #8aa0b6;
}

.side-value {
    color: #2c3e50;
    font-weight: 500;
}

.side-value.is-on {
    color: #1a8a4e;
}

.side-value.is-off {
    color: #c0392b;
}

/* ---- 完整配置表 ---- */
.product-config-section {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(40, 80, 140, 0.05);
    padding: 22px 24px;
    margin-bottom: 28px;
}

.product-config-section h2 {
    font-size: 17px;
    color: #1f2d3d;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef3fa;
}

.config-table-wrap {
    overflow-x: auto;
}

.config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.config-table thead th {
    background: #f7faff;
    color: #5a6f85;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid #eaf0f8;
}

.config-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f3f7fc;
    color: #2c3e50;
    vertical-align: middle;
}

.config-table tbody tr:hover {
    background: #fbfdff;
}

.config-key {
    width: 40%;
    color: #5a6f85;
    text-transform: capitalize;
}

/* ---- 相关产品 ---- */
.product-related h2 {
    font-size: 17px;
    color: #1f2d3d;
    margin: 0 0 18px;
}

/* ---- 产品展示响应式 ---- */
@media (max-width: 820px) {
    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-side {
        order: -1;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card-specs {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-title {
        font-size: 22px;
    }

    .product-detail-price .price-num {
        font-size: 30px;
    }

    .product-detail-card {
        padding: 22px 18px;
    }
}

/* ============================================================
 * 订单列表页
 * ============================================================ */
.order-page {
    padding: 4px 0 40px;
}

.order-panel {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.06);
    padding: 22px 24px;
}

.order-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef3fa;
}

.order-panel-head h2 {
    font-size: 17px;
    color: #1f2d3d;
    margin: 0;
    font-weight: 600;
}

.order-panel-sub {
    font-size: 13px;
    color: #8aa0b6;
}

.order-empty {
    text-align: center;
    padding: 50px 20px;
    color: #8aa0b6;
}

.order-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.order-table-wrap {
    overflow-x: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.order-table thead th {
    background: #f7faff;
    color: #5a6f85;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eaf0f8;
    white-space: nowrap;
}

.order-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #f3f7fc;
    color: #2c3e50;
    vertical-align: middle;
}

.order-table tbody tr:hover {
    background: #fbfdff;
}

.order-table .num-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.order-table .op-col {
    text-align: center;
    white-space: nowrap;
}

.order-no-cell {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    color: #4a5e72;
}

.time-cell {
    color: #8aa0b6;
    font-size: 13px;
    white-space: nowrap;
}

.order-product-link {
    font-weight: 500;
}

/* 续费表单内联按钮 */
.order-renew-form {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

/* ---- 订单状态标签 ---- */
.order-status {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1.6;
    border: 1px solid transparent;
    white-space: nowrap;
}

.order-status-pending {
    color: #b7791f;
    background: #fef6e7;
    border-color: #f5e1b3;
}

.order-status-opened {
    color: #1a8a4e;
    background: #e8f8ef;
    border-color: #c4ecd5;
}

.order-status-expired {
    color: #8aa0b6;
    background: #f1f5fb;
    border-color: #e3eaf5;
}

.order-status-cancelled {
    color: #c0392b;
    background: #fdecec;
    border-color: #f5c6c6;
}

.order-status-refunded {
    color: #6b5b95;
    background: #f0eaf7;
    border-color: #ddd0ee;
}

/* ---- 订单分页 ---- */
.order-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 22px;
}

.order-pagination .page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d9e2ee;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5e72;
    background: #fff;
    transition: all 0.15s ease;
}

.order-pagination a.page-item:hover {
    border-color: #2d7ff9;
    color: #2d7ff9;
}

.order-pagination .page-item.active {
    background: #2d7ff9;
    border-color: #2d7ff9;
    color: #fff;
    cursor: default;
}

.order-pagination .page-item.disabled {
    color: #b8c4d2;
    cursor: not-allowed;
    background: #fbfcfe;
}

/* ============================================================
 * 订单详情页
 * ============================================================ */
.order-detail-page {
    padding: 4px 0 40px;
}

.order-detail-back {
    margin-bottom: 16px;
    font-size: 13px;
}

.order-detail-back a {
    color: #5a6f85;
}

.order-detail-back a:hover {
    color: #2d7ff9;
}

.order-detail-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.07);
    padding: 28px 30px;
    margin-bottom: 28px;
}

.order-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #5a6f85;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.order-detail-no {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
}

.order-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 16px;
    line-height: 1.3;
}

.order-detail-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.order-detail-price .price-num {
    font-size: 34px;
    font-weight: 700;
    color: #2d7ff9;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.order-detail-price .price-unit {
    font-size: 14px;
    color: #2d7ff9;
    font-weight: 600;
}

.order-detail-price .price-duration {
    font-size: 13px;
    color: #8aa0b6;
    margin-left: 6px;
}

.order-detail-action {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-detail-side {
    background: #fbfcfe;
    border: 1px solid #f1f5fb;
    border-radius: 10px;
    padding: 18px 20px;
    align-self: start;
}

.order-detail-side h3 {
    font-size: 14px;
    margin: 0 0 14px;
    color: #1f2d3d;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef3fa;
}

/* 订单配置快照区块 */
.order-config-section {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(40, 80, 140, 0.05);
    padding: 22px 24px;
}

.order-config-section h2 {
    font-size: 17px;
    color: #1f2d3d;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef3fa;
}

/* ---- 订单页响应式 ---- */
@media (max-width: 820px) {
    .order-detail-card {
        grid-template-columns: 1fr;
    }

    .order-detail-side {
        order: -1;
    }
}

@media (max-width: 640px) {
    .order-panel {
        padding: 18px 14px;
    }

    .order-detail-card {
        padding: 22px 18px;
    }

    .order-detail-title {
        font-size: 20px;
    }

    .order-table thead th,
    .order-table tbody td {
        padding: 10px 8px;
    }
}

/* ============================================================
 * 工单系统 - 通用组件（前台/后台共用）
 * ============================================================ */

/* ---- 状态标签 ---- */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1.6;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-open {
    color: #b7791f;
    background: #fef6e7;
    border-color: #f5e1b3;
}

.status-replied {
    color: #2d7ff9;
    background: #e8f1fe;
    border-color: #c5dcfb;
}

.status-closed {
    color: #6b7a8d;
    background: #f0f3f7;
    border-color: #dde4ed;
}

/* ---- 优先级标签 ---- */
.priority-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1.6;
    border: 1px solid transparent;
    white-space: nowrap;
}

.priority-low {
    color: #6b7a8d;
    background: #f0f3f7;
    border-color: #dde4ed;
}

.priority-normal {
    color: #2d7ff9;
    background: #e8f1fe;
    border-color: #c5dcfb;
}

.priority-high {
    color: #d6336c;
    background: #ffe9f1;
    border-color: #fbc8d8;
}

/* ---- 分类小标签 ---- */
.ticket-cat-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    color: #5a6f85;
    background: #f4f7fc;
    border: 1px solid #e3eaf3;
    border-radius: 10px;
    line-height: 1.6;
}

/* ---- 通用分页 ---- */
.ticket-pagination,
.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 16px;
}

.ticket-pagination .page-item,
.admin-pagination .page-item {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #e3eaf3;
    border-radius: 6px;
    color: #2d7ff9;
    background: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ticket-pagination .page-item:hover,
.admin-pagination .page-item:hover {
    background: #e8f1fe;
    border-color: #c5dcfb;
}

.ticket-pagination .page-item.active,
.admin-pagination .page-item.active {
    background: #2d7ff9;
    color: #fff;
    border-color: #2d7ff9;
}

.ticket-pagination .page-item.disabled,
.admin-pagination .page-item.disabled {
    color: #b3c0cf;
    background: #f7f9fc;
    cursor: not-allowed;
}

/* ============================================================
 * 前台工单列表页
 * ============================================================ */
.ticket-page {
    padding: 4px 0 40px;
}

.ticket-panel {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.06);
    padding: 22px 24px;
}

.ticket-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef3fa;
}

.ticket-panel-head h2 {
    font-size: 17px;
    color: #1f2d3d;
    margin: 0;
    font-weight: 600;
}

.ticket-empty {
    text-align: center;
    padding: 50px 20px;
    color: #8aa0b6;
}

.ticket-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.ticket-table-wrap {
    overflow-x: auto;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ticket-table thead th {
    background: #f7faff;
    color: #5a6f85;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eaf0f8;
    white-space: nowrap;
}

.ticket-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #f3f7fc;
    color: #2c3e50;
    vertical-align: middle;
}

.ticket-table tbody tr:hover {
    background: #fbfdff;
}

.ticket-table .op-col {
    text-align: center;
    white-space: nowrap;
}

.ticket-title-cell {
    max-width: 280px;
}

.ticket-title-link {
    font-weight: 500;
    color: #2c3e50;
}

.ticket-title-link:hover {
    color: #2d7ff9;
}

.time-cell {
    color: #8aa0b6;
    font-size: 13px;
    white-space: nowrap;
}

/* ============================================================
 * 前台工单提交表单
 * ============================================================ */
.ticket-form-card {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.06);
    padding: 28px 30px;
    margin-top: 16px;
}

.ticket-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ticket-form .form-group {
    margin-bottom: 18px;
}

.ticket-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #4a5e72;
    font-weight: 500;
}

.ticket-form .required {
    color: #d6336c;
    margin-left: 2px;
}

.ticket-form .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.ticket-form .form-input:focus {
    border-color: #2d7ff9;
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.12);
    outline: none;
}

.ticket-form .form-textarea {
    resize: vertical;
    min-height: 120px;
}

.ticket-form .form-error {
    display: block;
    margin-top: 6px;
    color: #d6336c;
    font-size: 12px;
}

.ticket-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .ticket-form .form-row {
        grid-template-columns: 1fr;
    }

    .ticket-form-card {
        padding: 22px 18px;
    }
}

/* ============================================================
 * 前台工单详情页
 * ============================================================ */
.ticket-detail-page {
    padding: 4px 0 40px;
}

.ticket-detail-back {
    margin-bottom: 14px;
}

.ticket-detail-back a {
    color: #2d7ff9;
    font-size: 14px;
}

.ticket-detail-head {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.06);
    padding: 24px 28px;
    margin-bottom: 18px;
}

.ticket-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #5a6f85;
}

.ticket-detail-meta .meta-divider {
    color: #c3ced9;
}

.ticket-no {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #8aa0b6;
}

.ticket-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2d3d;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ticket-detail-info {
    color: #8aa0b6;
    font-size: 13px;
}

.ticket-detail-info .meta-divider {
    color: #c3ced9;
    margin: 0 8px;
}

/* ---- 时间线回复 ---- */
.ticket-timeline {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.06);
    padding: 22px 24px;
    margin-bottom: 18px;
}

.ticket-section-title {
    font-size: 15px;
    color: #1f2d3d;
    margin: 0 0 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef3fa;
}

.ticket-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ticket-reply-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ticket-reply-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.avatar-user {
    background: #2d7ff9;
}

.avatar-admin {
    background: #1a8a4e;
}

.ticket-reply-body {
    flex: 1;
    min-width: 0;
    background: #f7faff;
    border: 1px solid #eaf0f8;
    border-radius: 10px;
    padding: 12px 14px;
}

.ticket-reply-admin .ticket-reply-body {
    background: #e8f8ef;
    border-color: #c4ecd5;
}

.ticket-reply-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.ticket-reply-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2d3d;
}

.ticket-reply-badge {
    display: inline-block;
    padding: 1px 8px;
    font-size: 11px;
    color: #1a8a4e;
    background: #fff;
    border: 1px solid #c4ecd5;
    border-radius: 8px;
}

.ticket-reply-badge-user {
    color: #2d7ff9;
    border-color: #c5dcfb;
}

.ticket-reply-time {
    font-size: 12px;
    color: #8aa0b6;
    margin-left: auto;
}

.ticket-reply-content {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.7;
    word-break: break-word;
}

/* ---- 回复表单 ---- */
.ticket-reply-form-section {
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(40, 80, 140, 0.06);
    padding: 22px 24px;
}

.ticket-reply-form .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ticket-reply-form .form-input:focus {
    border-color: #2d7ff9;
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.12);
    outline: none;
}

.ticket-reply-form .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.ticket-closed-tip {
    background: #f0f3f7;
    border: 1px solid #dde4ed;
    border-radius: 10px;
    padding: 18px 20px;
    color: #5a6f85;
    text-align: center;
    font-size: 14px;
}

.ticket-closed-tip a {
    color: #2d7ff9;
    margin-left: 4px;
}

/* ============================================================
 * 后台工单列表页
 * ============================================================ */
.admin-ticket-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef3fa;
}

.admin-ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-ticket-table thead th {
    background: #f7faff;
    color: #5a6f85;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid #eaf0f8;
    white-space: nowrap;
}

.admin-ticket-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f3f7fc;
    color: #2c3e50;
    vertical-align: middle;
}

.admin-ticket-table tbody tr:hover {
    background: #fbfdff;
}

.admin-ticket-table .num-col {
    color: #8aa0b6;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    white-space: nowrap;
}

.admin-ticket-table .op-col {
    text-align: center;
    white-space: nowrap;
}

.admin-ticket-table .time-cell {
    color: #8aa0b6;
    font-size: 12.5px;
    white-space: nowrap;
}

/* ---- 状态筛选 tabs ---- */
.ticket-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ticket-tab {
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    color: #5a6f85;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ticket-tab:hover {
    color: #2d7ff9;
    border-color: #c5dcfb;
    background: #f7faff;
}

.ticket-tab.active {
    color: #fff;
    background: #2d7ff9;
    border-color: #2d7ff9;
}

/* ============================================================
 * 后台工单详情页
 * ============================================================ */
.ticket-back-link {
    display: inline-block;
    color: #2d7ff9;
    font-size: 13px;
    margin-bottom: 8px;
    text-decoration: none;
}

.ticket-back-link:hover {
    color: #1a66d6;
}

.ticket-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: #fff;
    border: 1px solid #eef3fa;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.ticket-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ticket-meta-label {
    font-size: 12px;
    color: #8aa0b6;
}

.ticket-meta-value {
    font-size: 13.5px;
    color: #1f2d3d;
    font-weight: 500;
    word-break: break-all;
}

/* 后台回复区 + 关闭按钮 */
.ticket-reply-form-section .ticket-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.ticket-close-form {
    display: inline-block;
}

/* ---- 响应式 ---- */
@media (max-width: 820px) {
    .ticket-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ticket-meta-grid {
        grid-template-columns: 1fr;
    }

    .ticket-reply-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-reply-time {
        margin-left: 0;
    }

    .admin-ticket-table thead th,
    .admin-ticket-table tbody td {
        padding: 9px 8px;
        font-size: 12.5px;
    }
}

/* ============================================================
 * Task 10 - 后台完整功能样式
 * ============================================================ */

/* ---- 后台登录页（独立布局） ---- */
.admin-login-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #1e2a3a 0%, #2d4a6e 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
}

.admin-login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.admin-login-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    padding: 40px 36px 30px;
}

.admin-login-head {
    text-align: center;
    margin-bottom: 28px;
}

.admin-login-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #1f2d3d;
    font-weight: 700;
}

.admin-login-head p {
    margin: 0;
    color: #8aa0b6;
    font-size: 13px;
}

.admin-login-form .form-group {
    margin-bottom: 18px;
}

.admin-login-form label {
    display: block;
    font-size: 13px;
    color: #4a5e72;
    margin-bottom: 6px;
    font-weight: 500;
}

.admin-login-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.admin-login-foot a {
    color: #8aa0b6;
}

.admin-login-foot a:hover {
    color: #2d7ff9;
}

/* ---- 仪表盘统计卡片 ---- */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dashboard-welcome {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaf0f8;
    padding: 18px 22px;
    font-size: 14px;
    color: #5a6f85;
}

.dashboard-welcome strong {
    color: #2d7ff9;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaf0f8;
    box-shadow: 0 2px 12px rgba(40, 80, 140, 0.05);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card-blue::before { background: linear-gradient(180deg, #2d7ff9 0%, #1f5fd0 100%); }
.stat-card-green::before { background: linear-gradient(180deg, #1ab46b 0%, #159356 100%); }
.stat-card-orange::before { background: linear-gradient(180deg, #f0a93b 0%, #d68a14 100%); }
.stat-card-purple::before { background: linear-gradient(180deg, #9b6bd6 0%, #6c3fb6 100%); }
.stat-card-red::before { background: linear-gradient(180deg, #e45a5a 0%, #cc4848 100%); }

.stat-card-label {
    font-size: 13px;
    color: #8aa0b6;
    font-weight: 500;
}

.stat-card-value {
    font-size: 30px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-card-link {
    font-size: 12px;
    color: #2d7ff9;
    margin-top: 4px;
}

.stat-card-sub {
    font-size: 12px;
    color: #8aa0b6;
    margin-top: 4px;
}

/* ---- 通用后台表格 ---- */
.admin-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef3fa;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table thead th {
    background: #f7faff;
    color: #5a6f85;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eaf0f8;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f7fc;
    color: #2c3e50;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fbfdff;
}

.admin-table .num-col {
    color: #8aa0b6;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.admin-table .op-col {
    text-align: center;
    white-space: nowrap;
}

.admin-table .time-cell {
    color: #8aa0b6;
    font-size: 12.5px;
    white-space: nowrap;
}

.admin-table .desc-cell {
    color: #5a6f85;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-no-cell {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    color: #4a5e72;
}

/* ---- 库存徽标 ---- */
.stock-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1.6;
    border: 1px solid transparent;
    white-space: nowrap;
}

.stock-ok {
    color: #1a8a4e;
    background: #e8f8ef;
    border-color: #c4ecd5;
}

.stock-low {
    color: #b7791f;
    background: #fef6e7;
    border-color: #f5e1b3;
}

.stock-out {
    color: #c0392b;
    background: #fdecec;
    border-color: #f5c6c6;
}

/* ---- 实名状态标签 ---- */
.realname-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 12px;
    line-height: 1.6;
    border: 1px solid transparent;
    white-space: nowrap;
}

.realname-none {
    color: #6b7a8d;
    background: #f0f3f7;
    border-color: #dde4ed;
}

.realname-pending {
    color: #b7791f;
    background: #fef6e7;
    border-color: #f5e1b3;
}

.realname-approved {
    color: #1a8a4e;
    background: #e8f8ef;
    border-color: #c4ecd5;
}

.realname-rejected {
    color: #c0392b;
    background: #fdecec;
    border-color: #f5c6c6;
}

/* ---- 内联表单 ---- */
.inline-form {
    display: inline-block;
    margin: 0 2px;
    vertical-align: middle;
}

/* ---- 筛选表单 ---- */
.admin-filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}

.admin-filter-form .form-input {
    max-width: 260px;
}

/* ---- 通用后台表单 ---- */
.admin-form .form-group {
    margin-bottom: 18px;
}

.admin-form label {
    display: block;
    font-size: 13px;
    color: #4a5e72;
    margin-bottom: 6px;
    font-weight: 500;
}

.admin-form .required {
    color: #d6336c;
    margin-left: 2px;
}

.admin-form .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-form .form-input:focus {
    border-color: #2d7ff9;
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.12);
    outline: none;
}

.admin-form .form-textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-form .form-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
}

.admin-form .form-hint {
    display: block;
    font-size: 12px;
    color: #8aa0b6;
    margin-top: 5px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.radio-group {
    display: flex;
    gap: 18px;
    padding-top: 8px;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input {
    margin-right: 6px;
    accent-color: #2d7ff9;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

/* ---- 弹窗 modal ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 58, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 24px 28px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card-lg {
    max-width: 640px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef3fa;
}

.modal-head h3 {
    margin: 0;
    font-size: 17px;
    color: #1f2d3d;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #8aa0b6;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: #e45a5a;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-size: 13px;
    color: #4a5e72;
    margin-bottom: 6px;
    font-weight: 500;
}

.modal-form .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    font-family: inherit;
}

.modal-form .form-input:focus {
    border-color: #2d7ff9;
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.12);
    outline: none;
}

.modal-form .form-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-form .form-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
}

.modal-user-info {
    background: #f7faff;
    border: 1px solid #eaf0f8;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #4a5e72;
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ---- 系统设置分组 ---- */
.setting-group {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e3eaf4;
}

.setting-group:last-of-type {
    border-bottom: none;
}

.setting-group-title {
    font-size: 15px;
    color: #1f2d3d;
    margin: 0 0 16px;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid #2d7ff9;
}

.toggle-wrap {
    padding-top: 6px;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.toggle-label input {
    margin-right: 8px;
    accent-color: #2d7ff9;
    width: 16px;
    height: 16px;
}

.toggle-text {
    background: #f0f3f7;
    border: 1px solid #dde4ed;
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 12px;
    color: #6b7a8d;
}

.toggle-label input:checked + .toggle-text {
    background: #e8f8ef;
    border-color: #c4ecd5;
    color: #1a8a4e;
}

/* ---- 财务统计柱状图 ---- */
.admin-finance {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 10px 0 0;
    border-bottom: 1px solid #eef3fa;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

.chart-bar-val {
    font-size: 12px;
    color: #5a6f85;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.chart-bar-col {
    width: 70%;
    max-width: 48px;
    min-height: 2px;
    background: linear-gradient(180deg, #2d7ff9 0%, #1f5fd0 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.2s ease;
}

.chart-bar-label {
    font-size: 12px;
    color: #8aa0b6;
    white-space: nowrap;
}

/* ---- 后台表单响应式 ---- */
@media (max-width: 768px) {
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .admin-filter-form {
        flex-wrap: wrap;
    }
}

/* ============================================================
 * Task 12 - UI/UX 完善：移动端菜单 / 表单 loading / 错误页统一
 * ============================================================ */

/* ---- 移动端菜单切换按钮（前台 + 后台共用） ---- */
.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--color-border-input);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: border-color var(--transition), color var(--transition);
}

.nav-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.nav-toggle .nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
}

.nav-toggle .nav-toggle-bar::before,
.nav-toggle .nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform var(--transition), top var(--transition);
}

.nav-toggle .nav-toggle-bar::before { top: -6px; }
.nav-toggle .nav-toggle-bar::after  { top: 6px; }

.nav-toggle.is-open .nav-toggle-bar { background: transparent; }
.nav-toggle.is-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar::after  { top: 0; transform: rotate(-45deg); }

/* 前台：移动端隐藏导航，点击按钮展开 */
@media (max-width: 768px) {
    .header-inner {
        position: relative;
        padding: 10px 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 8px 24px rgba(40, 80, 140, 0.08);
        padding: 10px 20px;
        gap: 4px;
        z-index: 99;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }

    .site-nav a.nav-highlight,
    .site-nav a.nav-logout {
        text-align: center;
    }
}

/* 后台：移动端折叠侧边栏 */
@media (max-width: 768px) {
    .admin-topbar {
        padding: 0 16px;
    }

    .admin-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 240px;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform var(--transition);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(30, 42, 58, 0.45);
        z-index: 199;
    }

    .admin-sidebar-backdrop.is-open {
        display: block;
    }
}

.admin-toggle {
    display: none;
    width: 38px;
    height: 38px;
    margin-right: 12px;
    padding: 0;
    border: 1px solid var(--color-border-input);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.admin-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ---- 表单提交 loading 状态 ---- */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

.btn-outline.is-loading::after,
.btn-sm.is-loading::after {
    border-color: rgba(45, 127, 249, 0.3);
    border-top-color: var(--color-primary);
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ---- 通用徽标（badge） ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: var(--font-xs);
    font-weight: 500;
    border-radius: var(--radius-pill);
    line-height: 1.6;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-primary {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-color: var(--color-primary-border);
}

.badge-success {
    color: var(--color-success);
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
}

.badge-warning {
    color: #b7791f;
    background: var(--color-warning-bg);
    border-color: var(--color-warning-border);
}

.badge-danger {
    color: var(--color-danger);
    background: var(--color-danger-bg);
    border-color: var(--color-danger-border);
}

.badge-muted {
    color: var(--color-text-light);
    background: #f0f3f7;
    border-color: #dde4ed;
}

/* ---- 通用空状态 ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
    font-size: var(--font-base);
}

.empty-state .empty-icon {
    font-size: 48px;
    color: var(--color-border-input);
    margin-bottom: 12px;
}

.empty-state p {
    margin: 0 0 16px;
}

/* ---- 通用错误页（404 / 419 / 500 / 维护页） ---- */
.error-page-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--color-bg);
    background-image: linear-gradient(135deg, #eef5ff 0%, #f4f7fc 60%, #eef5ff 100%);
    color: var(--color-text);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-page-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    padding: 48px 40px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.error-page-code {
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.error-page-code.code-danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-page-code.code-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, #d68a14 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-strong);
    margin: 0 0 8px;
}

.error-page-message {
    font-size: var(--font-base);
    color: var(--color-text-muted);
    margin: 0 0 28px;
    line-height: 1.7;
    word-break: break-word;
}

.error-page-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page-actions .btn {
    min-width: 120px;
}

/* 调试信息（debug 模式下 500 页显示） */
.error-page-debug {
    margin-top: 24px;
    padding: 14px 16px;
    background: #fbfcfe;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: left;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    color: var(--color-danger);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 240px;
    overflow-y: auto;
}

/* 维护页特定样式 */
.maintenance-page-card {
    max-width: 540px;
}

.maintenance-page-card .error-page-icon {
    font-size: 56px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .error-page-card {
        padding: 36px 24px 28px;
    }

    .error-page-code {
        font-size: 64px;
    }

    .error-page-title {
        font-size: 18px;
    }

    .error-page-actions {
        flex-direction: column;
    }

    .error-page-actions .btn {
        width: 100%;
    }
}

