/* =============================================
   ZimiYun WHMCS Theme - 紫米云客户中心主题
   ============================================= */

:root {
    --sidebar-bg: #1e1b4b;
    --sidebar-width: 260px;
    --sidebar-active-border: #a855f7;
    --sidebar-active-bg: rgba(255,255,255,0.1);
    --purple-primary: #7c3aed;
    --purple-hover: #6d28d9;
    --topbar-height: 64px;
    --body-bg: #f8fafc;
    --card-radius: 16px;
    --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* ---- Reset & Base ---- */
body {
    background-color: var(--body-bg) !important;
    font-family: var(--font-cn) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 修复：body 的 !important font-family 会覆盖 Font Awesome 图标字体 */
.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
.fa, [class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
}

/* =============================================
   SIDEBAR LAYOUT
   ============================================= */
#zimi-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: var(--sidebar-width) !important;
    height: 100vh !important;
    background: var(--sidebar-bg) !important;
    color: #fff;
    z-index: 1040 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#zimi-sidebar .sidebar-brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #fff !important;
}

#zimi-sidebar .sidebar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: #a855f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

#zimi-sidebar .sidebar-brand .brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

#zimi-sidebar nav {
    padding: 16px 12px;
    flex: 1;
}

#zimi-sidebar .nav-section-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 12px 6px;
}

#zimi-sidebar .nav-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#zimi-sidebar .nav-item a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    color: rgba(255,255,255,0.65) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    cursor: pointer;
    border-left: 3px solid transparent !important;
    background: transparent !important;
    margin: 4px 0 !important;
}

#zimi-sidebar .nav-item a:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
    text-decoration: none !important;
}

#zimi-sidebar .nav-item a.active {
    background: rgba(168,85,247,0.15) !important;
    border-left-color: var(--sidebar-active-border) !important;
    color: #fff !important;
}

#zimi-sidebar .nav-item a .nav-icon {
    width: 18px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* submenu dropdown */
#zimi-sidebar .nav-item.has-submenu > a .nav-arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#zimi-sidebar .nav-item.has-submenu.open > a .nav-arrow i {
    transform: rotate(180deg);
}

#zimi-sidebar .nav-submenu {
    display: none !important;
    padding-left: 10px;
    margin-top: 2px;
}

#zimi-sidebar .nav-item.has-submenu.open > .nav-submenu {
    display: block !important;
}

#zimi-sidebar .nav-submenu a {
    padding: 8px 14px !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.55) !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
    margin: 2px 0 !important;
}

#zimi-sidebar .nav-submenu a:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
}

/* =============================================
   MAIN CONTENT WRAPPER
   ============================================= */
#zimi-main {
    margin-left: var(--sidebar-width) !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    background: var(--body-bg) !important;
}

/* =============================================
   TOPBAR
   ============================================= */
#zimi-topbar {
    height: var(--topbar-height) !important;
    background: #fff !important;
    border-bottom: 1px solid #e9ecef !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 32px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

#zimi-topbar .topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6b7280;
    font-size: 14px;
}

#zimi-topbar .topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
}

#zimi-topbar .topbar-breadcrumb .current {
    color: #374151;
    font-weight: 500;
}

#zimi-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

#zimi-topbar .topbar-alerts {
    position: relative;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
}

#zimi-topbar .topbar-alerts .badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.w-hidden {
    display: none !important;
}

#zimi-topbar .topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
}

#zimi-topbar .topbar-user:hover {
    text-decoration: none !important;
}

#zimi-topbar .topbar-user .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--purple-primary);
    overflow: hidden;
}

#zimi-topbar .topbar-user .user-info .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

#zimi-topbar .topbar-user .user-info .user-role {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.2;
}

/* User Dropdown */
#zimi-topbar .topbar-user-dropdown {
    position: relative;
}

#zimi-topbar .topbar-user-dropdown .topbar-user {
    user-select: none;
}

#zimi-topbar .user-dropdown-caret {
    font-size: 10px;
    color: #9ca3af;
    margin-left: 2px;
    transition: transform 0.2s;
}

#zimi-topbar .topbar-user-dropdown.open .user-dropdown-caret {
    transform: rotate(180deg);
}

#zimi-topbar .user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
    padding: 4px 0;
}

#zimi-topbar .topbar-user-dropdown.open .user-dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

#zimi-topbar .user-dropdown-header {
    padding: 12px 16px 10px;
}

#zimi-topbar .user-dropdown-id {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
    word-break: break-all;
}

#zimi-topbar .user-dropdown-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

#zimi-topbar .user-dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 4px 0;
}

#zimi-topbar .user-dropdown-group {
    padding: 2px 0;
}

#zimi-topbar .user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: #374151;
    text-decoration: none !important;
    transition: background 0.12s;
    white-space: nowrap;
}

#zimi-topbar .user-dropdown-item i {
    width: 15px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}

#zimi-topbar .user-dropdown-item:hover {
    background: #f5f3ff;
    color: var(--purple-primary);
}

#zimi-topbar .user-dropdown-item:hover i {
    color: var(--purple-primary);
}

#zimi-topbar .user-dropdown-logout {
    color: #374151;
}

#zimi-topbar .user-dropdown-logout i {
    color: #6b7280;
}

#zimi-topbar .user-dropdown-logout:hover {
    background: #fff5f5;
    color: #ef4444;
}

#zimi-topbar .user-dropdown-logout:hover i {
    color: #ef4444;
}

/* =============================================
   PAGE CONTENT AREA
   ============================================= */
#zimi-content {
    flex: 1 !important;
    padding: 32px !important;
    background: var(--body-bg) !important;
}

/* 取消WHMCS container限制 */
#zimi-content .container,
#zimi-content .container-fluid {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.zimi-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.zimi-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}

.zimi-page-header .page-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* =============================================
   STAT CARDS
   ============================================= */
.zimi-stat-card {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid #f1f5f9;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 0.15s;
    width: 100%;
}

.zimi-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none !important;
    color: inherit !important;
}

.zimi-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.zimi-stat-card .stat-icon.blue   { background: #eff6ff; color: #3b82f6; }
.zimi-stat-card .stat-icon.red    { background: #fef2f2; color: #ef4444; }
.zimi-stat-card .stat-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.zimi-stat-card .stat-icon.green  { background: #f0fdf4; color: #22c55e; }
.zimi-stat-card .stat-icon.gold   { background: #fffbeb; color: #f59e0b; }

.zimi-stat-card .stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.zimi-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.zimi-stat-card .stat-value small {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

/* =============================================
   CARDS
   ============================================= */
.zimi-card {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 0;
}

.zimi-card .zimi-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zimi-card .zimi-card-header h2,
.zimi-card .zimi-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.zimi-card .zimi-card-body {
    padding: 24px;
}

/* =============================================
   TABLES
   ============================================= */
.zimi-table {
    width: 100%;
    border-collapse: collapse;
}

.zimi-table thead th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.zimi-table tbody tr {
    border-bottom: 1px solid #f8fafc;
    transition: background 0.1s;
}

.zimi-table tbody tr:last-child {
    border-bottom: none;
}

.zimi-table tbody tr:hover {
    background: #fafafa;
}

.zimi-table tbody td {
    padding: 16px 20px;
    font-size: 13px;
    color: #374151;
    vertical-align: middle;
}

/* =============================================
   BADGES / STATUS
   ============================================= */
.zimi-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.zimi-badge.active     { background: #dcfce7; color: #16a34a; }
.zimi-badge.suspended  { background: #fff7ed; color: #ea580c; }
.zimi-badge.cancelled  { background: #f1f5f9; color: #64748b; }
.zimi-badge.terminated { background: #fef2f2; color: #dc2626; }
.zimi-badge.pending    { background: #eff6ff; color: #2563eb; }
.zimi-badge.unpaid     { background: #fef2f2; color: #dc2626; }
.zimi-badge.paid       { background: #dcfce7; color: #16a34a; }
.zimi-badge.overdue    { background: #fef2f2; color: #dc2626; }
.zimi-badge.open       { background: #eff6ff; color: #2563eb; }
.zimi-badge.answered   { background: #f0fdf4; color: #16a34a; }
.zimi-badge.closed     { background: #f1f5f9; color: #64748b; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-zimi-primary {
    background: var(--purple-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}

.btn-zimi-primary:hover {
    background: var(--purple-hover) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}

.btn-zimi-secondary {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: background 0.15s;
}

.btn-zimi-secondary:hover {
    background: #f9fafb !important;
    color: #374151 !important;
    text-decoration: none !important;
}

.btn-zimi-sm {
    padding: 5px 12px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
}

.btn-zimi-danger {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    transition: background 0.15s;
}

.btn-zimi-danger:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    text-decoration: none !important;
}

/* =============================================
   FOOTER
   ============================================= */
#zimi-footer {
    padding: 20px 32px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: auto;
    background: #fff;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
html:has(.zimi-login-wrap),
body:has(.zimi-login-wrap) {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

body.zimi-layout .zimi-login-wrap,
.zimi-login-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.zimi-login-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: visible;
}

.zimi-login-box .login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.zimi-login-box .login-logo .logo-icon {
    width: 52px;
    height: 52px;
    background: #a855f7;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-bottom: 12px;
}

.zimi-login-box .login-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}

.zimi-login-box .login-logo p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* =============================================
   FORMS
   ============================================= */
.zimi-form-group {
    margin-bottom: 18px;
}

.zimi-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.zimi-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: var(--font-cn);
}

.zimi-form-control:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
    background: #fff;
}

/* =============================================
   intl-tel-input 国际电话号码输入框
   修复国旗+区号与号码文字重叠
   WHMCS 未引入 intl-tel-input CSS，需自定义
   ============================================= */

/* 容器：relative 定位，inline-block 转 block */
#zimi-content .intl-tel-input,
.intl-tel-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

/* 确保 input 宽度撑满容器 */
#zimi-content .intl-tel-input input[type="tel"],
.intl-tel-input input[type="tel"],
.intl-tel-input .zimi-form-control {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 国旗容器：绝对定位在左侧 */
#zimi-content .intl-tel-input .flag-container,
.intl-tel-input .flag-container {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 4 !important;
    padding: 0 !important;
    width: auto !important;
}

/* 选中的国旗区域 */
#zimi-content .intl-tel-input .selected-flag,
.intl-tel-input .selected-flag {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 12px 0 10px !important;
    cursor: pointer !important;
    z-index: 2 !important;
    background: transparent !important;
    white-space: nowrap !important;
}

/* separateDialCode 模式下选中区域更宽 */
#zimi-content .intl-tel-input.separate-dial-code .selected-flag,
.intl-tel-input.separate-dial-code .selected-flag {
    padding: 0 12px 0 10px !important;
}

/* 区号与号码之间的分隔线 */
#zimi-content .intl-tel-input.separate-dial-code .selected-flag::after,
.intl-tel-input.separate-dial-code .selected-flag::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 20% !important;
    bottom: 20% !important;
    width: 1px !important;
    background: #d1d5db !important;
}

/* 国旗图标 — 使用 emoji 替代缺失的 CSS sprite */
#zimi-content .intl-tel-input .iti-flag,
.intl-tel-input .iti-flag {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* emoji 国旗容器 */
.intl-tel-input .iti-flag-emoji {
    display: inline-block !important;
    font-size: 16px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* selected-flag 中的 emoji 国旗 */
.intl-tel-input .selected-flag .iti-flag-emoji {
    font-size: 18px !important;
}

/* country-list 中的 emoji 国旗 */
.intl-tel-input .country-list .iti-flag-emoji {
    font-size: 16px !important;
}

/* 隐藏 country-list 中原来的 .flag-box 和 .iti-flag */
.intl-tel-input .country-list .flag-box,
.intl-tel-input .country-list .iti-flag {
    display: none !important;
}

/* 区号文字 — 紧凑紧挨国旗 */
#zimi-content .intl-tel-input .selected-dial-code,
.intl-tel-input .selected-dial-code {
    font-size: 13px !important;
    color: #374151 !important;
    margin-left: -23px !important;
    white-space: nowrap !important;
}

/* 下拉箭头 — 紧凑 */
#zimi-content .intl-tel-input .selected-flag .iti-arrow,
.intl-tel-input .selected-flag .iti-arrow {
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 4px !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 5px solid #9ca3af !important;
}

/* 输入框：留出左侧空间给国旗+区号 */
/* allow-dropdown 模式 */
#zimi-content .intl-tel-input.allow-dropdown input,
#zimi-content .intl-tel-input.allow-dropdown .zimi-form-control,
.intl-tel-input.allow-dropdown input,
.intl-tel-input.allow-dropdown .zimi-form-control,
.primary-content .intl-tel-input.allow-dropdown input,
.primary-content .intl-tel-input.allow-dropdown .zimi-form-control,
form .intl-tel-input.allow-dropdown input,
form .intl-tel-input.allow-dropdown .zimi-form-control {
    padding-left: 50px !important;
}

/* separate-dial-code 模式 — 需要更多空间放区号 */
#zimi-content .intl-tel-input.separate-dial-code input,
#zimi-content .intl-tel-input.separate-dial-code .zimi-form-control,
.intl-tel-input.separate-dial-code input,
.intl-tel-input.separate-dial-code .zimi-form-control,
.primary-content .intl-tel-input.separate-dial-code input,
.primary-content .intl-tel-input.separate-dial-code .zimi-form-control,
form .intl-tel-input.separate-dial-code input,
form .intl-tel-input.separate-dial-code .zimi-form-control {
    padding-left: 105px !important;
}

/* 国家下拉列表 */
#zimi-content .intl-tel-input .country-list,
.intl-tel-input .country-list {
    position: absolute !important;
    z-index: 1050 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 0 0 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    min-width: 240px !important;
}

#zimi-content .intl-tel-input .country-list.hide,
.intl-tel-input .country-list.hide {
    display: none !important;
}

#zimi-content .intl-tel-input .country-list .country,
.intl-tel-input .country-list .country {
    padding: 6px 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #374151 !important;
}

#zimi-content .intl-tel-input .country-list .country:hover,
.intl-tel-input .country-list .country:hover {
    background: #f9fafb !important;
}

#zimi-content .intl-tel-input .country-list .country.highlight,
.intl-tel-input .country-list .country.highlight {
    background: #f3f0ff !important;
}

#zimi-content .intl-tel-input .country-list .divider,
.intl-tel-input .country-list .divider {
    padding: 5px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 2px 0 !important;
}

#zimi-content .intl-tel-input .country-list .country .dial-code,
.intl-tel-input .country-list .country .dial-code {
    color: #9ca3af !important;
    margin-left: auto !important;
}

/* =============================================
   ALERTS / FLASH MESSAGES
   ============================================= */
.zimi-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.zimi-alert.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.zimi-alert.error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.zimi-alert.warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.zimi-alert.info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* WHMCS Bootstrap alert overrides */
.alert-success { background: #f0fdf4 !important; color: #15803d !important; border-color: #bbf7d0 !important; border-radius: 10px !important; }
.alert-danger  { background: #fef2f2 !important; color: #dc2626 !important; border-color: #fecaca !important; border-radius: 10px !important; }
.alert-warning { background: #fffbeb !important; color: #b45309 !important; border-color: #fde68a !important; border-radius: 10px !important; }
.alert-info    { background: #eff6ff !important; color: #1d4ed8 !important; border-color: #bfdbfe !important; border-radius: 10px !important; }

/* =============================================
   HOMEPAGE (未登录)
   ============================================= */
.zimi-home-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.zimi-home-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.zimi-home-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
}

/* =============================================
   PRODUCT ITEM
   ============================================= */
.zimi-product-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* =============================================
   PAGINATION
   ============================================= */
.zimi-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #f8fafc;
}

.zimi-pagination a,
.zimi-pagination span {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: background 0.1s;
}

.zimi-pagination a:hover {
    background: #f9fafb;
    text-decoration: none;
}

.zimi-pagination .active {
    background: var(--purple-primary);
    color: #fff;
    border-color: var(--purple-primary);
}

/* =============================================
   FILTER BUTTONS
   ============================================= */
.zimi-filter-btn {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #6b7280;
    transition: all 0.15s ease;
    font-family: var(--font-cn);
}

.zimi-filter-btn:hover {
    border-color: #a855f7;
    color: #7c3aed;
    background: #faf5ff;
}

.zimi-filter-btn.active {
    background: #ede9fe;
    color: #7c3aed;
    border-color: #a855f7;
}

/* =============================================
   WHMCS LAYOUT OVERRIDES
   强制覆盖 WHMCS theme.min.css 的干扰样式
   ============================================= */

/* 隐藏WHMCS默认header、breadcrumb、topbar */
body.zimi-layout #header,
body.zimi-layout .header,
body.zimi-layout .master-breadcrumb,
body.zimi-layout .topbar,
body.zimi-layout > #main-body {
    display: none !important;
}

/* 确保body没有多余padding */
body.zimi-layout {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: var(--body-bg) !important;
}

/* WHMCS系统通知横幅样式修正 */
body.zimi-layout #zimi-content .alert,
body.zimi-layout #zimi-content .whmcs-inline-alert,
body.zimi-layout #zimi-content .WHMCS_Inline_Alert {
    border-radius: 10px !important;
    font-size: 13px !important;
    margin-bottom: 16px !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ---- 大屏 (≤1199px) ---- */
@media (max-width: 1199px) {
    .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ---- 平板/中屏 (≤991px) ---- */
@media (max-width: 991px) {
    /* 侧边栏滑出隐藏 */
    #zimi-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        z-index: 1050 !important;
    }
    #zimi-sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 24px rgba(0,0,0,0.25) !important;
    }

    /* 主体不再偏移 */
    #zimi-main {
        margin-left: 0 !important;
    }

    /* 内容区缩小内边距 */
    #zimi-content {
        padding: 20px 16px !important;
    }

    /* 顶部栏 */
    #zimi-topbar {
        padding: 0 16px !important;
    }

    /* 汉堡按钮始终可见 */
    #sidebarToggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        transition: background 0.15s;
    }
    #sidebarToggle:hover {
        background: #f3f4f6;
    }

    /* Bootstrap 列宽覆盖 */
    .col-lg-8, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* 页面标题区 */
    .zimi-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    /* 统计卡片：平板2列 */
    .zimi-stat-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 账单概览3列 → 3列保持，但字号缩小 */
    .zimi-invoice-overview-grid {
        gap: 10px !important;
    }

    /* 表格控制栏 */
    #zimiTableControls,
    #servicesTableControls {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 16px !important;
    }

    /* DataTables 搜索框全宽 */
    #zimi-content .dataTables_filter input {
        width: 100% !important;
        max-width: 280px !important;
    }

    /* 卡片内边距缩小 */
    .zimi-card .zimi-card-body {
        padding: 16px !important;
    }
    .zimi-card .zimi-card-header {
        padding: 14px 16px !important;
    }

    /* panel 内边距 */
    #zimi-content .panel-body,
    .primary-content .panel-body {
        padding: 16px !important;
    }
    #zimi-content .panel-heading,
    .primary-content .panel-heading {
        padding: 14px 16px !important;
    }

    /* 页脚 */
    #zimi-footer {
        padding: 16px !important;
    }
}

/* ---- 手机 (≤767px) ---- */
@media (max-width: 767px) {
    /* 顶部栏高度 */
    #zimi-topbar {
        height: 56px !important;
        padding: 0 14px !important;
    }

    /* 用户信息文字在小屏隐藏（头像保留） */
    #zimi-topbar .user-info,
    #zimi-topbar .user-dropdown-caret {
        display: none !important;
    }

    /* 内容区 */
    #zimi-content {
        padding: 16px 12px !important;
    }

    /* 统计卡片：手机2列 */
    .zimi-stat-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* 统计卡片内部缩小 */
    .zimi-stat-card {
        padding: 16px !important;
        gap: 12px !important;
    }
    .zimi-stat-card .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    .zimi-stat-card .stat-value {
        font-size: 20px !important;
    }

    /* 首页快捷入口 */
    .zimi-shortcut-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    /* 账单概览 3列 → 3列保持 */
    .zimi-invoice-overview-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* 表格横向滚动 */
    .zimi-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 表格单元格缩小 */
    #zimi-content table.dataTable thead th,
    .zimi-table thead th {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }
    #zimi-content table.dataTable tbody td,
    .zimi-table tbody td {
        padding: 12px 12px !important;
        font-size: 12px !important;
    }

    /* 按钮组换行 */
    .zimi-page-header > div:last-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 财务页渐变卡片按钮换行 */
    .zimi-invoice-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* 页面标题字号 */
    .zimi-page-header h1 {
        font-size: 18px !important;
    }

    /* 卡片头部 */
    .zimi-card .zimi-card-header {
        padding: 12px 14px !important;
    }
    .zimi-card .zimi-card-body {
        padding: 14px !important;
    }

    /* panel */
    #zimi-content .panel-body,
    .primary-content .panel-body {
        padding: 14px !important;
    }

    /* 表单控件 */
    .zimi-form-control,
    #zimi-content .form-control,
    .primary-content .form-control {
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }

    /* nav-tabs 横向滚动 */
    #zimi-content .nav-tabs,
    .primary-content .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    #zimi-content .nav-tabs::-webkit-scrollbar,
    .primary-content .nav-tabs::-webkit-scrollbar {
        display: none !important;
    }
    #zimi-content .nav-tabs > li > a,
    .primary-content .nav-tabs > li > a {
        white-space: nowrap !important;
        padding: 8px 12px !important;
    }

    /* dl-horizontal 在小屏变为竖排 */
    #zimi-content dl.dl-horizontal dt,
    .primary-content dl.dl-horizontal dt {
        float: none !important;
        width: auto !important;
        text-align: left !important;
        margin-bottom: 2px !important;
    }
    #zimi-content dl.dl-horizontal dd,
    .primary-content dl.dl-horizontal dd {
        margin-left: 0 !important;
        margin-bottom: 12px !important;
    }

    /* 用户下拉菜单宽度 */
    #zimi-topbar .user-dropdown-menu {
        min-width: 200px !important;
        right: -8px !important;
    }

    /* 分页按钮缩小 */
    #zimi-content .dataTables_paginate ul.pagination > li > a,
    #zimi-content .dataTables_paginate ul.pagination > li > span {
        padding: 0 8px !important;
        font-size: 12px !important;
        min-width: 28px !important;
        height: 28px !important;
    }

    /* DataTables 底部换行 */
    .zimi-dt-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* 未登录布局 main-body */
    #main-body {
        padding-top: 16px !important;
        padding-bottom: 24px !important;
    }
}

/* ---- 小手机 (≤575px) ---- */
@media (max-width: 575px) {
    /* 内容区最小内边距 */
    #zimi-content {
        padding: 12px 10px !important;
    }

    /* 统计卡片：超小屏仍2列 */
    .zimi-stat-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* 快捷入口：2列 */
    .zimi-shortcut-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 账单概览：3列 → 1列 */
    .zimi-invoice-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    /* 财务渐变卡片 */
    .zimi-invoice-gradient-card {
        padding: 20px !important;
    }
    .zimi-invoice-gradient-card .zimi-invoice-amount {
        font-size: 24px !important;
    }

    /* 表格控制栏 */
    #zimiTableControls,
    #servicesTableControls {
        padding: 10px 12px !important;
    }

    /* 搜索框全宽 */
    #zimi-content .dataTables_filter input {
        width: 100% !important;
        max-width: 100% !important;
    }
    #zimiSearchHolder,
    #servicesSearchHolder {
        width: 100% !important;
    }
    #zimiSearchHolder .zimi-dt-top,
    #servicesSearchHolder .zimi-dt-top {
        width: 100% !important;
    }
    #zimiSearchHolder .dataTables_filter,
    #servicesSearchHolder .dataTables_filter {
        width: 100% !important;
    }

    /* 页面标题 */
    .zimi-page-header h1 {
        font-size: 17px !important;
    }
    .zimi-page-header .page-subtitle {
        font-size: 12px !important;
    }

    /* 按钮全宽 */
    .zimi-page-header .btn-zimi-primary,
    .zimi-page-header .btn-zimi-secondary {
        width: 100%;
        justify-content: center;
    }

    /* 卡片内边距最小 */
    .zimi-card .zimi-card-header {
        padding: 12px !important;
    }
    .zimi-card .zimi-card-body {
        padding: 12px !important;
    }

    /* 表格单元格最小 */
    #zimi-content table.dataTable thead th,
    .zimi-table thead th {
        padding: 8px 10px !important;
    }
    #zimi-content table.dataTable tbody td,
    .zimi-table tbody td {
        padding: 10px 10px !important;
    }

    /* 分页隐藏数字，只保留上下页 */
    #zimi-content .dataTables_paginate ul.pagination li.paginate_button:not(.previous):not(.next):not(.active) {
        display: none !important;
    }

    /* 底部信息 */
    #zimi-content .dataTables_info {
        font-size: 12px !important;
    }

    /* 页脚 */
    #zimi-footer {
        padding: 14px 12px !important;
        font-size: 11px !important;
    }

    /* 未登录布局 container 内边距 */
    #main-body .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* =============================================
   DATATABLES OVERRIDES
   ============================================= */

/* 顶部：每页条数 + 搜索框 */
#zimi-content .zimi-dt-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background: #fff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* DataTables wrapper */
#zimi-content .dataTables_wrapper {
    width: 100% !important;
    clear: both !important;
}

/* 覆盖 Bootstrap DataTables 的 form-inline 干扰 */
#zimi-content .dataTables_wrapper.form-inline {
    display: block !important;
}

/* 确保 table.dataTable 宽度填满 */
#zimi-content table.dataTable {
    width: 100% !important;
}

/* 防止 Bootstrap 3 对 table 的 display: table 覆盖 */
#zimi-content table.dataTable.display,
#zimi-content table.dataTable.row-border,
#zimi-content table.dataTable.cell-border {
    width: 100% !important;
}

/* =============================================
   DATATABLES 分页
   结构: ul.pagination > li > a.page-link
   ============================================= */

/* 隐藏 first / last / ellipsis */
#zimi-content .dataTables_paginate .first,
#zimi-content .dataTables_paginate .last,
#zimi-content .dataTables_paginate .ellipsis,
#zimi-content .dataTables_paginate span.ellipsis {
    display: none !important;
}

/* ul.pagination 容器 */
#zimi-content .dataTables_paginate ul.pagination {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
}

/* <li> 完全重置 */
#zimi-content .dataTables_paginate ul.pagination > li {
    display: block !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* <a> 按钮样式 */
#zimi-content .dataTables_paginate ul.pagination > li > a,
#zimi-content .dataTables_paginate ul.pagination > li > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s !important;
    line-height: 1 !important;
    float: none !important;
    position: static !important;
}

#zimi-content .dataTables_paginate ul.pagination > li > a:hover,
#zimi-content .dataTables_paginate ul.pagination > li > a:focus,
#zimi-content .dataTables_paginate ul.pagination > li > span:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    text-decoration: none !important;
    z-index: auto !important;
}

/* 当前页 */
#zimi-content .dataTables_paginate ul.pagination > li.active > a,
#zimi-content .dataTables_paginate ul.pagination > li.active > span {
    background: var(--purple-primary) !important;
    border-color: var(--purple-primary) !important;
    color: #fff !important;
    cursor: default !important;
}

/* 禁用 */
#zimi-content .dataTables_paginate ul.pagination > li.disabled > a,
#zimi-content .dataTables_paginate ul.pagination > li.disabled > span {
    color: #d1d5db !important;
    border-color: #f1f5f9 !important;
    background: #fafafa !important;
    cursor: default !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

/* 防止 Bootstrap 3 的 :before/:after 干扰 */
#zimi-content .dataTables_paginate ul.pagination > li > a:before,
#zimi-content .dataTables_paginate ul.pagination > li > a:after,
#zimi-content .dataTables_paginate ul.pagination > li > span:before,
#zimi-content .dataTables_paginate ul.pagination > li > span:after {
    display: none !important;
    content: none !important;
}

/* =============================================
   底部：条数 + 信息 + 分页
   ============================================= */
#zimi-content .zimi-dt-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background: #fff !important;
    border-top: 1px solid #f1f5f9 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* =============================================
   覆盖 Bootstrap DataTables 的全局干扰
   ============================================= */
/* 重置浮动 */
#zimi-content .dataTables_length,
#zimi-content .dataTables_info,
#zimi-content .dataTables_filter,
#zimi-content .dataTables_paginate {
    float: none !important;
    text-align: left !important;
}

/* 重置 info 的 padding-top */
#zimi-content .dataTables_info {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 重置 length 的 padding */
#zimi-content .dataTables_length {
    padding: 0 !important;
}

#zimi-content .dataTables_info {
    font-size: 13px !important;
    color: #9ca3af !important;
    padding: 0 !important;
    float: none !important;
    display: none !important;
}

#zimi-content .dataTables_paginate {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 每页条数 */
#zimi-content .dataTables_length label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

#zimi-content .dataTables_length select {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    color: #374151 !important;
    background: #f9fafb !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

/* 搜索框 */
#zimi-content .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

#zimi-content .dataTables_filter input {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #374151 !important;
    background: #f9fafb !important;
    outline: none !important;
    box-shadow: none !important;
    width: 180px !important;
}

#zimi-content .dataTables_filter input:focus {
    border-color: #a855f7 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.1) !important;
}

/* 分页按钮 — 样式已由上方 ul.pagination 规则统一处理 */

#zimi-content table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

#zimi-content table.dataTable thead th {
    background: #f9fafb !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    white-space: nowrap !important;
}

#zimi-content table.dataTable tbody td {
    padding: 16px 20px !important;
    font-size: 13px !important;
    color: #374151 !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f8fafc !important;
    white-space: nowrap !important;
}

#zimi-content table.dataTable tbody tr:hover {
    background: #fafafa !important;
}

#zimi-content table.dataTable td .zimi-badge {
    white-space: nowrap !important;
}

/* =============================================
   WHMCS BOOTSTRAP PANEL OVERRIDES
   覆盖账单/工单等页面的默认 Bootstrap panel 样式
   同时覆盖已登录(#zimi-content)和未登录(.primary-content)布局
   ============================================= */
#zimi-content .panel,
.primary-content .panel {
    background: #fff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    margin-bottom: 20px !important;
}

#zimi-content .panel-heading,
.primary-content .panel-heading {
    background: #fff !important;
    border-bottom: 1px solid #f8fafc !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 18px 24px !important;
    color: #1f2937 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

#zimi-content .panel-title,
.primary-content .panel-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

#zimi-content .panel-body,
.primary-content .panel-body {
    padding: 24px !important;
    background: #fff !important;
    border-radius: 0 0 16px 16px !important;
}

#zimi-content .panel-footer,
.primary-content .panel-footer {
    background: #f9fafb !important;
    border-top: 1px solid #f1f5f9 !important;
    border-radius: 0 0 16px 16px !important;
    padding: 14px 24px !important;
}

#zimi-content .panel-default > .panel-heading,
.primary-content .panel-default > .panel-heading {
    background: #fff !important;
    color: #1f2937 !important;
    border-color: #f8fafc !important;
}

#zimi-content .panel-primary > .panel-heading,
.primary-content .panel-primary > .panel-heading {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* 账单页面专属样式 */
#zimi-content .invoice-header,
#zimi-content .invoice-box,
.primary-content .invoice-header,
.primary-content .invoice-box {
    border-radius: 16px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* 覆盖 WHMCS 默认 table 样式 */
#zimi-content .table,
.primary-content .table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
}

#zimi-content .table > thead > tr > th,
.primary-content .table > thead > tr > th {
    background: #f9fafb !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
}

#zimi-content .table > tbody > tr > td,
.primary-content .table > tbody > tr > td {
    padding: 14px 16px !important;
    font-size: 13px !important;
    color: #374151 !important;
    vertical-align: middle !important;
    border-top: 1px solid #f8fafc !important;
}

#zimi-content .table > tbody > tr:hover,
.primary-content .table > tbody > tr:hover {
    background: #fafafa !important;
}

#zimi-content .table-striped > tbody > tr:nth-of-type(odd),
.primary-content .table-striped > tbody > tr:nth-of-type(odd) {
    background: #fafafa !important;
}

#zimi-content .table-bordered,
.primary-content .table-bordered {
    border: 1px solid #f1f5f9 !important;
}

#zimi-content .table-bordered > thead > tr > th,
#zimi-content .table-bordered > tbody > tr > td,
.primary-content .table-bordered > thead > tr > th,
.primary-content .table-bordered > tbody > tr > td {
    border: 1px solid #f1f5f9 !important;
}

/* 覆盖 WHMCS 默认 btn 样式 */
#zimi-content .btn-primary,
.primary-content .btn-primary {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    box-shadow: 0 2px 8px rgba(124,58,237,0.25) !important;
}

#zimi-content .btn-primary:hover,
.primary-content .btn-primary:hover {
    background: #6d28d9 !important;
    border-color: #6d28d9 !important;
}

#zimi-content .btn-default,
.primary-content .btn-default {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 9px 20px !important;
}

#zimi-content .btn-default:hover,
.primary-content .btn-default:hover {
    background: #f9fafb !important;
    color: #374151 !important;
}

#zimi-content .btn-success,
.primary-content .btn-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#zimi-content .btn-danger,
.primary-content .btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* 覆盖 WHMCS label/badge */
#zimi-content .label-success, .primary-content .label-success { background: #16a34a !important; border-radius: 6px !important; }
#zimi-content .label-danger,  .primary-content .label-danger  { background: #dc2626 !important; border-radius: 6px !important; }
#zimi-content .label-warning, .primary-content .label-warning { background: #d97706 !important; border-radius: 6px !important; }
#zimi-content .label-info,    .primary-content .label-info    { background: #2563eb !important; border-radius: 6px !important; }
#zimi-content .label-default, .primary-content .label-default { background: #6b7280 !important; border-radius: 6px !important; }

/* 覆盖 WHMCS form-control */
#zimi-content .form-control,
.primary-content .form-control {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    background: #f9fafb !important;
    padding: 9px 14px !important;
    box-shadow: none !important;
    font-family: var(--font-cn) !important;
}

#zimi-content .form-control:focus,
.primary-content .form-control:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12) !important;
    background: #fff !important;
    outline: none !important;
}

/* select 下拉框文字截断修复 */
#zimi-content .form-control select,
#zimi-content select.form-control,
.primary-content .form-control select,
.primary-content select.form-control,
#zimi-content select,
.primary-content select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z' fill='%239ca3af'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
    text-overflow: clip !important;
    overflow: visible !important;
    height: auto !important;
    min-height: calc(2 * 14px + 18px) !important;
}

/* 覆盖 WHMCS well */
#zimi-content .well,
.primary-content .well {
    background: #f9fafb !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: 20px !important;
}

/* 覆盖 WHMCS breadcrumb（内容区内） */
#zimi-content .breadcrumb,
.primary-content .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
}

/* 覆盖 WHMCS nav-tabs */
#zimi-content .nav-tabs,
.primary-content .nav-tabs {
    border-bottom: 2px solid #f1f5f9 !important;
    margin-bottom: 20px !important;
}

#zimi-content .nav-tabs > li > a,
.primary-content .nav-tabs > li > a {
    color: #6b7280 !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: -2px !important;
}

#zimi-content .nav-tabs > li.active > a,
#zimi-content .nav-tabs > li.active > a:hover,
.primary-content .nav-tabs > li.active > a,
.primary-content .nav-tabs > li.active > a:hover {
    color: #7c3aed !important;
    border-bottom-color: #7c3aed !important;
    background: transparent !important;
}

#zimi-content .nav-tabs > li > a:hover,
.primary-content .nav-tabs > li > a:hover {
    color: #374151 !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* 覆盖 WHMCS input-group */
#zimi-content .input-group-addon,
.primary-content .input-group-addon {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    border-radius: 10px 0 0 10px !important;
}

/* 覆盖 WHMCS dl/dt/dd 定义列表 */
#zimi-content dl.dl-horizontal dt,
.primary-content dl.dl-horizontal dt {
    color: #9ca3af !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

#zimi-content dl.dl-horizontal dd,
.primary-content dl.dl-horizontal dd {
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* =============================================
   PRIMARY-CONTENT 下的 ZIMI 类支持
   viewinvoice 等页面在未登录布局下的样式修复
   ============================================= */
.primary-content .zimi-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.primary-content .zimi-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}

.primary-content .zimi-page-header .page-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.primary-content .zimi-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 0;
}

.primary-content .zimi-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.primary-content .zimi-card-header h2,
.primary-content .zimi-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.primary-content .zimi-table {
    width: 100%;
    border-collapse: collapse;
}

.primary-content .zimi-table thead th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.primary-content .zimi-table tbody tr {
    border-bottom: 1px solid #f8fafc;
}

.primary-content .zimi-table tbody td {
    padding: 16px 20px;
    font-size: 13px;
    color: #374151;
    vertical-align: middle;
}

.primary-content .zimi-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.primary-content .zimi-badge.paid       { background: #dcfce7; color: #16a34a; }
.primary-content .zimi-badge.unpaid     { background: #fef2f2; color: #dc2626; }
.primary-content .zimi-badge.overdue    { background: #fef2f2; color: #dc2626; }
.primary-content .zimi-badge.cancelled  { background: #f1f5f9; color: #64748b; }

.primary-content .btn-zimi-primary {
    background: #7c3aed !important;
    color: #fff !important;
    border: none !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.primary-content .btn-zimi-secondary {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.primary-content .zimi-form-group {
    margin-bottom: 18px;
}

.primary-content .zimi-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.primary-content .zimi-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    box-sizing: border-box;
}

/* 未登录布局下 container 宽度放开，背景色修正 */
#main-body {
    background: var(--body-bg) !important;
    padding-top: 24px !important;
    padding-bottom: 40px !important;
}

#main-body .container {
    max-width: 1200px;
}

.primary-content {
    background: transparent !important;
}

/* =============================================
   注册页专属样式
   ============================================= */
.zimi-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    margin-bottom: 4px;
}

.zimi-reg-grid .zimi-form-group:nth-child(n+5) {
    grid-column: 1 / -1;
}

.zimi-reg-customfields {
    margin-top: 4px;
}

.zimi-required {
    color: #ef4444;
    margin-left: 2px;
}

.zimi-optional {
    color: #9ca3af;
    font-weight: 400;
    margin-left: 2px;
    font-size: 12px;
}

.zimi-field-error {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* 密码显示/隐藏按钮 */
.zimi-password-wrap {
    position: relative;
}

.zimi-password-wrap .zimi-form-control {
    padding-right: 40px;
}

.zimi-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.zimi-pwd-toggle:hover {
    color: #6b7280;
}

/* 密码强度条 */
.zimi-pwstrength-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.zimi-pwstrength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    background: #e5e7eb;
}

.zimi-pwstrength-text {
    font-size: 11px;
    display: block;
    margin-top: 3px;
}

.zimi-pwmatch-text {
    font-size: 11px;
    display: block;
    margin-top: 4px;
}

/* 自定义字段 */
.zimi-checkbox-group,
.zimi-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
}

.zimi-checkbox-label,
.zimi-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 400;
}

.zimi-checkbox-label input,
.zimi-radio-label input {
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
    cursor: pointer;
    flex-shrink: 0;
}

.zimi-tos-group {
    margin-top: 8px;
}

.zimi-tos-label {
    align-items: flex-start !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.5;
}

.zimi-tos-label span {
    line-height: 1.5;
}

.zimi-tos-link {
    color: #7c3aed !important;
    text-decoration: none !important;
    font-weight: 600;
}

.zimi-tos-link:hover {
    text-decoration: underline !important;
}

.zimi-btn-full {
    width: 100% !important;
    justify-content: center !important;
}

/* captcha 调整 */
.captcha-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-wrap img {
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.captcha-wrap input {
    flex: 1;
}

/* =============================================
   找回密码页专属样式
   ============================================= */
.zimi-reset-box {
    max-width: 460px;
}

.zimi-login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #9ca3af;
}

.zimi-login-link a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

.zimi-login-link a:hover {
    text-decoration: underline;
}

/* 密码重置成功页 */
.zimi-success-icon {
    width: 72px;
    height: 72px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: #22c55e;
}

.zimi-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.zimi-success-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 8px;
}

/* =============================================
   登录/注册/密码重置 响应式
   ============================================= */
@media (max-width: 767px) {
    .zimi-login-wrap {
        padding: 24px 16px !important;
        align-items: flex-start !important;
        padding-top: 40px !important;
    }

    .zimi-login-box {
        padding: 28px 20px;
        border-radius: 16px;
        max-width: 100%;
    }

    .zimi-login-box .login-logo h1 {
        font-size: 20px;
    }

    .zimi-login-box .login-logo .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    /* 注册页双列 → 单列 */
    .zimi-reg-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .zimi-reg-grid .zimi-form-group:nth-child(n+5) {
        grid-column: 1;
    }

    /* 密码重置框 */
    .zimi-reset-box {
        max-width: 100%;
    }

    /* 登录按钮 */
    .zimi-login-box button[type="submit"] {
        padding: 11px !important;
        font-size: 15px !important;
    }

    /* 验证码行 */
    .captcha-wrap {
        flex-wrap: wrap;
    }
    .captcha-wrap img {
        width: 100%;
        height: auto;
    }
    .captcha-wrap input {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .zimi-login-wrap {
        padding: 20px 12px !important;
        padding-top: 32px !important;
    }
    .zimi-login-box {
        padding: 24px 16px;
    }
}

/* 产品服务页 - DataTables 顶部栏移入自定义控制栏后去除多余间距 */
#servicesSearchHolder .zimi-dt-top {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
}

/* =============================================
   移动端辅助工具类
   ============================================= */

/* 信息网格：产品详情等双列信息 */
.zimi-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 575px) {
    .zimi-info-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* 工单统计3列 → 手机3列保持，超小屏1列 */
@media (max-width: 400px) {
    .zimi-stat-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* 表格横向滚动容器 */
.zimi-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 16px 16px;
}

/* 移动端隐藏次要列 */
@media (max-width: 575px) {
    .zimi-hide-mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .zimi-hide-sm {
        display: none !important;
    }
}

/* 工单行在小屏优化 */
@media (max-width: 575px) {
    .ticket-row {
        padding: 14px 16px !important;
    }
    .ticket-row > div:first-child {
        gap: 10px !important;
    }
}

/* 首页 Hero 区域移动端 */
@media (max-width: 767px) {
    .zimi-home-hero {
        padding: 48px 0 36px !important;
    }
    .zimi-home-hero h1 {
        font-size: 26px !important;
    }
    .zimi-home-hero p {
        font-size: 14px !important;
        margin-bottom: 24px !important;
    }
}

@media (max-width: 575px) {
    .zimi-home-hero {
        padding: 36px 0 28px !important;
    }
    .zimi-home-hero h1 {
        font-size: 22px !important;
    }
}

/* 未登录顶部导航移动端 */
@media (max-width: 991px) {
    #header .navbar {
        padding: 12px 16px !important;
    }
    #header .navbar-brand {
        font-size: 16px !important;
    }
}

/* 工单详情对话气泡移动端 */
@media (max-width: 575px) {
    .ticket-bubble-wrap {
        max-width: 95% !important;
    }
}

/* 域名管理表格移动端 */
@media (max-width: 767px) {
    .zimi-domain-table .domain-reg-date {
        display: none !important;
    }
}

/* 产品详情侧边栏在移动端变为底部 */
@media (max-width: 991px) {
    .zimi-product-detail-row {
        flex-direction: column !important;
    }
}

/* 未付账单提醒移动端 */
@media (max-width: 575px) {
    .zimi-unpaid-alert {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .zimi-unpaid-alert .btn-zimi-primary {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* 注册页 col-sm 在超小屏强制单列 */
@media (max-width: 480px) {
    .zimi-login-box .col-sm-6,
    .zimi-login-box .col-sm-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .zimi-login-box .row {
        margin: 0 !important;
    }
}

/* 购物车/结账页面移动端 */
@media (max-width: 767px) {
    .zimi-checkout-summary {
        margin-top: 16px !important;
    }
}

/* 分页在移动端居中 */
@media (max-width: 575px) {
    .zimi-pagination {
        justify-content: center !important;
    }
    #zimi-content .dataTables_paginate {
        justify-content: center !important;
    }
}

/* 侧边栏遮罩层 */
#sidebarOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1039;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 移动端 topbar 汉堡按钮 */
@media (min-width: 992px) {
    #sidebarToggle {
        display: none !important;
    }
}

/* 移动端 input 防止 iOS 缩放 */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 移动端 modal 全宽 */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 8px !important;
        max-width: calc(100% - 16px) !important;
    }
    .modal-body {
        padding: 16px !important;
    }
    .modal-header,
    .modal-footer {
        padding: 12px 16px !important;
    }
}

/* 移动端 well 内边距 */
@media (max-width: 575px) {
    #zimi-content .well,
    .primary-content .well {
        padding: 14px !important;
    }
}

/* 移动端 input-group */
@media (max-width: 575px) {
    #zimi-content .input-group,
    .primary-content .input-group {
        flex-wrap: wrap !important;
    }
    #zimi-content .input-group .form-control,
    .primary-content .input-group .form-control {
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }
    #zimi-content .input-group-btn,
    .primary-content .input-group-btn {
        width: 100% !important;
    }
    #zimi-content .input-group-btn .btn,
    .primary-content .input-group-btn .btn {
        width: 100% !important;
        border-radius: 10px !important;
    }
}

/* 移动端 btn-group */
@media (max-width: 575px) {
    #zimi-content .btn-group,
    .primary-content .btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    #zimi-content .btn-group .btn,
    .primary-content .btn-group .btn {
        border-radius: 10px !important;
        flex: 1 !important;
        min-width: 80px !important;
    }
}

/* 移动端 row 负边距修正 */
@media (max-width: 575px) {
    #zimi-content .row,
    .primary-content .row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }
    #zimi-content .row > [class*="col-"],
    .primary-content .row > [class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* =============================================
   紫米云购物车/商店 专属样式
   store/zimiyun/
   ============================================= */

/* ---- 商店首页 Hero ---- */
.zimi-store-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7e22ce 100%);
    border-radius: 20px;
    padding: 48px 40px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.zimi-store-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 50%;
}

.zimi-store-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 80px;
    width: 160px;
    height: 160px;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 50%;
}

.zimi-store-hero-inner {
    position: relative;
    z-index: 1;
}

.zimi-store-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.zimi-store-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.zimi-store-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 28px;
}

.zimi-store-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.zimi-store-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zimi-store-stat .stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #f9a8d4;
    line-height: 1;
}

.zimi-store-stat .stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.zimi-store-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
}

/* ---- 商店首页分类卡片 ---- */
.zimi-store-section {
    margin-bottom: 36px;
}

.zimi-store-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.zimi-store-section-icon {
    width: 44px;
    height: 44px;
    background: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 18px;
    flex-shrink: 0;
}

.zimi-store-section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px;
}

.zimi-store-section-title p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.zimi-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.zimi-store-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.zimi-store-card:hover {
    box-shadow: 0 8px 24px rgba(124,58,237,0.12);
    border-color: #c4b5fd;
    transform: translateY(-2px);
    text-decoration: none !important;
    color: inherit !important;
}

.zimi-store-card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zimi-store-card-icon-purple { background: #f5f3ff; }
.zimi-store-card-icon-blue { background: #eff6ff; }
.zimi-store-card-icon-green { background: #f0fdf4; }
.zimi-store-card-icon-red { background: #fef2f2; }

.zimi-store-card-icon-inner {
    width: 36px;
    height: 36px;
    background: #ede9fe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7c3aed;
}

.zimi-store-card-body {
    flex: 1;
}

.zimi-store-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.zimi-store-card-tagline {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

.zimi-store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid #f8fafc;
}

/* ---- 商店首页空状态 ---- */
.zimi-store-empty {
    text-align: center;
    padding: 80px 24px;
}

.zimi-store-empty-icon {
    width: 80px;
    height: 80px;
    background: #f9fafb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #d1d5db;
}

.zimi-store-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px;
}

.zimi-store-empty p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 20px;
}

/* ---- 信任图标区 ---- */
.zimi-store-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
}

.zimi-store-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zimi-store-trust-icon {
    width: 40px;
    height: 40px;
    background: #f5f3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 16px;
    flex-shrink: 0;
}

.zimi-store-trust-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zimi-store-trust-item strong {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.zimi-store-trust-item span {
    font-size: 12px;
    color: #9ca3af;
}

/* ---- 产品分组页面包屑 ---- */
.zimi-store-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.zimi-store-breadcrumb a {
    color: #7c3aed;
    text-decoration: none;
}

.zimi-store-breadcrumb a:hover {
    text-decoration: underline;
}

.zimi-store-breadcrumb i {
    font-size: 10px;
}

/* ---- 产品卡片网格 ---- */
.zimi-store-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.zimi-store-product-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.zimi-store-product-card:hover {
    box-shadow: 0 8px 24px rgba(124,58,237,0.12);
    border-color: #c4b5fd;
    transform: translateY(-3px);
}

.zimi-store-product-top {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
}

.zimi-store-product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(249,168,212,0.2);
    border: 1px solid rgba(249,168,212,0.3);
    color: #f9a8d4;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.zimi-store-product-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 26px;
    color: #f9a8d4;
}

.zimi-store-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.zimi-store-product-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zimi-store-product-features {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.zimi-store-product-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.zimi-store-product-feature i {
    color: #22c55e;
    flex-shrink: 0;
}

.zimi-store-product-pricing {
    padding: 16px 20px;
    border-top: 1px solid #f8fafc;
    text-align: center;
}

.zimi-store-product-price {
    font-size: 26px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}

.zimi-store-product-price .price-currency {
    font-size: 14px;
    font-weight: 600;
    vertical-align: super;
}

.zimi-store-product-price .price-cycle {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

.zimi-store-product-action {
    padding: 16px 20px 20px;
    display: flex;
    gap: 8px;
}

.zimi-store-btn-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: #7c3aed;
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.zimi-store-btn-buy:hover {
    background: #6d28d9;
    color: #fff;
    text-decoration: none !important;
}

.zimi-store-btn-configure {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ede9fe;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}

.zimi-store-btn-configure:hover {
    background: #ede9fe;
    color: #7c3aed;
    text-decoration: none !important;
}

/* ---- 服务保障条 ---- */
.zimi-store-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 16px 24px;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 14px;
}

.zimi-guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
}

.zimi-guarantee-item i {
    font-size: 14px;
}

/* ---- 产品配置页布局 ---- */
.zimi-configure-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.zimi-configure-section {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.zimi-configure-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #f8fafc;
}

.zimi-configure-section-icon {
    width: 38px;
    height: 38px;
    background: #f5f3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 16px;
    flex-shrink: 0;
}

.zimi-configure-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px;
}

.zimi-configure-section-header p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* 计费周期网格 */
.zimi-billing-cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px 24px;
}

.zimi-billing-cycle-card {
    cursor: pointer;
}

.zimi-billing-cycle-card input[type="radio"] {
    display: none;
}

.zimi-billing-cycle-inner {
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.15s;
}

.zimi-billing-cycle-card:hover .zimi-billing-cycle-inner {
    border-color: #c4b5fd;
}

.zimi-billing-cycle-card.active .zimi-billing-cycle-inner {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.zimi-billing-cycle-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.zimi-billing-cycle-price {
    font-size: 18px;
    font-weight: 800;
    color: #7c3aed;
}

.zimi-billing-cycle-price .currency {
    font-size: 12px;
    font-weight: 600;
}

.zimi-billing-cycle-tag {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    background: #ede9fe;
    padding: 2px 8px;
    border-radius: 50px;
}

.zimi-configure-options {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zimi-configure-option-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #f8fafc;
}

.zimi-configure-option-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zimi-configure-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.zimi-configure-option-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.zimi-configure-option-required {
    font-size: 11px;
    color: #ef4444;
    font-weight: 600;
}

/* 单选选项组 */
.zimi-configure-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zimi-configure-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.zimi-configure-radio-item:hover {
    border-color: #c4b5fd;
}

.zimi-configure-radio-item:has(input:checked) {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.zimi-configure-radio-item input[type="radio"] {
    accent-color: #7c3aed;
}

.zimi-configure-radio-label {
    font-size: 13px;
    color: #374151;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zimi-configure-radio-price {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
}

.zimi-configure-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

/* 数量输入 */
.zimi-configure-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.zimi-configure-quantity input {
    width: 80px !important;
    text-align: center;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.1s;
}

.qty-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.qty-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.qty-btn:hover {
    background: #ede9fe;
    color: #7c3aed;
}

/* 提交按钮 */
.zimi-configure-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
    transition: all 0.15s;
    font-family: var(--font-cn);
}

.zimi-configure-submit:hover {
    background: #6d28d9;
    box-shadow: 0 6px 16px rgba(124,58,237,0.45);
}

/* ---- 配置页右侧摘要卡 ---- */
.zimi-configure-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zimi-configure-summary-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.zimi-configure-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.zimi-configure-summary-header i {
    font-size: 14px;
}

.zimi-configure-summary-body {
    padding: 20px;
}

.zimi-configure-summary-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f8fafc;
}

.zimi-configure-summary-icon {
    width: 44px;
    height: 44px;
    background: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 18px;
    flex-shrink: 0;
}

.zimi-configure-summary-product .product-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.zimi-configure-summary-product .product-group {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.zimi-configure-summary-features {
    margin-bottom: 16px;
}

.summary-features-title {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.summary-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    padding: 3px 0;
}

.summary-feature-item i {
    color: #22c55e;
    flex-shrink: 0;
    font-size: 11px;
}

.zimi-configure-summary-guarantee {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f8fafc;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
}

.guarantee-item i {
    color: #22c55e;
    font-size: 11px;
}

/* 帮助卡 */
.zimi-configure-help-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.zimi-configure-help-card .help-icon {
    width: 40px;
    height: 40px;
    background: #fef2f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 16px;
    flex-shrink: 0;
}

.help-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.help-desc {
    font-size: 11px;
    color: #9ca3af;
}

.help-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s;
}

.help-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    text-decoration: none !important;
}

/* ---- 购物车结算页 ---- */
.zimi-store-hero-mini {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.zimi-store-hero-mini-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.zimi-store-hero-mini-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #f9a8d4;
    flex-shrink: 0;
}

.zimi-store-hero-mini h1 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.zimi-store-hero-mini p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.zimi-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.zimi-checkout-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.zimi-checkout-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
}

.zimi-checkout-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.zimi-checkout-card-title i {
    color: #7c3aed;
    font-size: 14px;
}

.zimi-checkout-card-action {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zimi-checkout-card-action:hover {
    text-decoration: underline;
}

.zimi-checkout-items {
    display: flex;
    flex-direction: column;
}

.zimi-checkout-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.1s;
}

.zimi-checkout-item:last-child {
    border-bottom: none;
}

.zimi-checkout-item:hover {
    background: #fafafa;
}

.zimi-checkout-item-icon {
    width: 40px;
    height: 40px;
    background: #f5f3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 16px;
    flex-shrink: 0;
}

.zimi-checkout-item-info {
    flex: 1;
    min-width: 0;
}

.zimi-checkout-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.zimi-checkout-item-domain {
    font-size: 12px;
    color: #9ca3af;
    font-family: monospace;
}

.zimi-checkout-item-cycle {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.zimi-checkout-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.zimi-config-tag {
    background: #f5f3ff;
    color: #7c3aed;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.zimi-checkout-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.zimi-checkout-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.zimi-checkout-item-remove {
    color: #d1d5db;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.zimi-checkout-item-remove:hover {
    color: #ef4444;
}

/* 优惠码 */
.zimi-checkout-coupon {
    padding: 16px 20px;
}

.zimi-coupon-form {
    display: flex;
    gap: 8px;
}

.zimi-coupon-form input {
    flex: 1;
}

.zimi-coupon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ede9fe;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-cn);
    transition: background 0.15s;
    white-space: nowrap;
}

.zimi-coupon-btn:hover {
    background: #ede9fe;
}

/* 结算侧边栏 */
.zimi-checkout-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zimi-checkout-summary-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.zimi-checkout-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 16px 16px 0 0;
}

.zimi-checkout-summary-body {
    padding: 20px;
}

.zimi-checkout-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    padding: 4px 0;
}

.zimi-checkout-summary-discount span:last-child {
    color: #16a34a;
    font-weight: 600;
}

.zimi-checkout-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    padding: 14px 0 0;
    margin-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.total-amount {
    font-size: 22px;
    color: #7c3aed;
}

.zimi-checkout-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #7c3aed;
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
    transition: all 0.15s;
}

.zimi-checkout-pay-btn:hover {
    background: #6d28d9;
    box-shadow: 0 6px 16px rgba(124,58,237,0.45);
    color: #fff;
    text-decoration: none !important;
}

.zimi-checkout-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: #9ca3af;
}

/* 支付方式图标 */
.zimi-checkout-payment-icons {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px 20px;
}

.payment-icons-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.payment-icons-row {
    display: flex;
    gap: 12px;
}

.payment-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 8px 4px;
    background: #f9fafb;
    border-radius: 8px;
}

.payment-icon-item i {
    font-size: 18px;
    color: #6b7280;
}

.payment-icon-item span {
    font-size: 10px;
    color: #9ca3af;
}

/* ---- 订单完成页 ---- */
.zimi-order-success {
    padding: 32px 0;
}

.zimi-order-success-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.zimi-order-success-icon-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
}

.zimi-order-success-circle {
    width: 100px;
    height: 100px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.2); }
    50% { box-shadow: 0 0 0 16px rgba(34,197,94,0); }
}

.zimi-order-success-check {
    width: 50px;
    height: 50px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.zimi-order-success-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.zimi-order-success-particles .p1 { top: 10px; left: 10px; background: #22c55e; animation: floatUp 2s ease-in-out infinite 0s; }
.zimi-order-success-particles .p2 { top: 5px; left: 50px; background: #7c3aed; animation: floatUp 2s ease-in-out infinite 0.3s; }
.zimi-order-success-particles .p3 { top: 20px; right: 5px; background: #f59e0b; animation: floatUp 2s ease-in-out infinite 0.6s; }
.zimi-order-success-particles .p4 { bottom: 10px; left: 15px; background: #3b82f6; animation: floatUp 2s ease-in-out infinite 0.9s; }
.zimi-order-success-particles .p5 { bottom: 5px; left: 50px; background: #22c55e; animation: floatUp 2s ease-in-out infinite 1.2s; }
.zimi-order-success-particles .p6 { bottom: 20px; right: 5px; background: #ec4899; animation: floatUp 2s ease-in-out infinite 1.5s; }

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(0); }
}

.zimi-order-success-text h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 10px;
}

.zimi-order-success-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

.zimi-order-id-card {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
    color: #fff;
}

.zimi-order-id-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.zimi-order-id-number {
    font-size: 32px;
    font-weight: 800;
    font-family: monospace;
    color: #f9a8d4;
    margin-bottom: 6px;
}

.zimi-order-id-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* 步骤流程 */
.zimi-order-next-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.zimi-order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.zimi-order-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.zimi-order-step-1 { background: #eff6ff; color: #3b82f6; }
.zimi-order-step-2 { background: #f5f3ff; color: #7c3aed; }
.zimi-order-step-3 { background: #f0fdf4; color: #22c55e; }

.zimi-order-step-text strong {
    display: block;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 2px;
}

.zimi-order-step-text span {
    font-size: 12px;
    color: #9ca3af;
}

.zimi-order-step-connector {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* 操作按钮组 */
.zimi-order-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.zimi-order-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s;
}

.zimi-order-btn-primary {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.zimi-order-btn-primary:hover {
    background: #6d28d9;
    color: #fff;
    text-decoration: none !important;
}

.zimi-order-btn-secondary {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ede9fe;
}

.zimi-order-btn-secondary:hover {
    background: #ede9fe;
    color: #7c3aed;
    text-decoration: none !important;
}

.zimi-order-btn-outline {
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.zimi-order-btn-outline:hover {
    background: #f9fafb;
    color: #374151;
    text-decoration: none !important;
}

/* 客服卡片 */
.zimi-order-support {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: left;
}

.zimi-order-support-icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 18px;
    flex-shrink: 0;
}

.zimi-order-support-text {
    flex: 1;
}

.zimi-order-support-text strong {
    display: block;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 2px;
}

.zimi-order-support-text span {
    font-size: 12px;
    color: #9ca3af;
}

.zimi-order-support-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s;
}

.zimi-order-support-btn:hover {
    background: #dc2626;
    color: #fff;
    text-decoration: none !important;
}

/* =============================================
   响应式 - 商店/购物车
   ============================================= */
@media (max-width: 991px) {
    .zimi-configure-layout,
    .zimi-checkout-layout {
        grid-template-columns: 1fr !important;
    }
    .zimi-configure-sidebar,
    .zimi-checkout-sidebar {
        position: static !important;
    }
    .zimi-store-trust {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .zimi-store-hero {
        padding: 32px 24px !important;
    }
    .zimi-store-hero h1 {
        font-size: 24px !important;
    }
    .zimi-store-hero-stats {
        gap: 16px !important;
    }
    .zimi-store-product-grid {
        grid-template-columns: 1fr !important;
    }
    .zimi-store-guarantee {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    .zimi-order-next-steps {
        flex-direction: column !important;
    }
    .zimi-order-step-connector {
        width: 2px !important;
        height: 24px !important;
    }
    .zimi-store-trust {
        grid-template-columns: 1fr !important;
    }
    .zimi-billing-cycle-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .zimi-store-hero {
        border-radius: 14px !important;
        padding: 24px 16px !important;
    }
    .zimi-order-actions {
        flex-direction: column !important;
    }
    .zimi-order-btn {
        width: 100%;
        justify-content: center !important;
    }
    .zimi-order-support {
        flex-direction: column !important;
        text-align: center !important;
    }
    .zimi-checkout-payment-icons .payment-icons-row {
        flex-wrap: wrap !important;
    }
    .zimi-billing-cycle-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
