/* ============================================
   全局重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html{
    min-height: 100vh;
    background-color: var(--bg-page);
    background: url('/static_261005/img/common/background.jpg') no-repeat center center;
    background-size: cover;
    font-family: -apple-system, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Tahoma, Arial, sans-serif;
    color: var(--text-primary, #1e293b);
}

/* ============================================
   CSS 变量
   ============================================ */
:root {
    /* 背景色 */
    --qj-bj:#f04a1c;
    --bg-page: #f5f5f7;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-200: #e5e7eb;
    --bg-primary: #CB1298;
    --bg-reg: #ee0a24;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-disabled: #cbd5e1;
    --text-link: #3b82f6;
    --text-success: #10b981;
    --text-warning: #f59e0b;
    --text-error: #ef4444;
    
    /* 边框颜色 */
    --border-light: #e9ecef;
    --border-gray-200: #e5e7eb;
    --border-gray-300: #d1d5db;
    
    /* 主色调 */
    --main-color: #CB1298;
    
    /* 圆角 */
    --radius-0: 0;
    --radius-1: 6px;
    --radius-2: 8px;
    --radius-3: 12px;
    --radius-4: 16px;
    --radius-5: 20px;
    --radius-6: 24px;
    --radius-7: 28px;
    --radius-9: 32px;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    
    /* 间距 (4px 倍数) */
    --spacing: 4px;
}

/* === 背景颜色-开始 ===*/

.jb-bj {background: linear-gradient(90deg, #ff2f8b, #8a2be2);}

/* 页面背景 */
.ty-bj { background-color: var(--qj-bj); }
.ty-color { color: var(--qj-bj); }

/* 页面背景 */
.bg-page { background-color: var(--bg-page); }

/* 白色背景 */
.bg-white { background-color: var(--bg-white); }

/* 灰度背景 */
.bg-gray-50 { background-color: var(--bg-gray-50); }
.bg-gray-100 { background-color: var(--bg-gray-100); }
.bg-gray-200 { background-color: var(--bg-gray-200); }

/* 主题色背景 */
.bg-primary { background-color: var(--bg-primary); }
.bg-reg { background-color: var(--bg-reg); }

/* 可选：更多常用背景变体 */
.bg-transparent { background-color: transparent; }
.bg-current { background-color: currentColor; }
/* === 背景颜色-结束 ===*/

/* === 布局 === */
.block {display: block;}
.inline-block {display: inline-block;}
.inline {display: inline;}
.flex {display: flex;}
.inline-flex {display: inline-flex;}
.grid {display: grid; }
.hidden {display: none;}

/* Flex 布局 */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink { flex-shrink: 1; }
.flex-grow-0 { flex-grow: 0; }
.flex-grow { flex-grow: 1; }

/* 对齐 */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }
.self-stretch { align-self: stretch; }

/* 列数定义 */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* 自动列数（自适应） */
.grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-cols-auto-fill { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* 固定列宽 + 自适应 */
.grid-cols-sidebar { grid-template-columns: 240px 1fr; }
.grid-cols-2-sidebar { grid-template-columns: 1fr 240px; }
.grid-cols-header { grid-template-columns: auto 1fr auto; }

/* 行数定义 */
.grid-rows-1 { grid-template-rows: repeat(1, 1fr); }
.grid-rows-2 { grid-template-rows: repeat(2, 1fr); }
.grid-rows-3 { grid-template-rows: repeat(3, 1fr); }
.grid-rows-auto { grid-template-rows: auto; }

/* 间距 (gap) */
.gap-0 { gap: 0; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* 列间距 (column-gap) */
.col-gap-1 { column-gap: 4px; }
.col-gap-2 { column-gap: 8px; }
.col-gap-3 { column-gap: 12px; }
.col-gap-4 { column-gap: 16px; }
.col-gap-5 { column-gap: 20px; }
.col-gap-6 { column-gap: 24px; }

/* 基础列跨度 - 支持 1-12 列 */
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* 完整列（占满所有列） */
.col-span-full { grid-column: 1 / -1; }

/* 行间距 (row-gap) */
.row-gap-1 { row-gap: 4px; }
.row-gap-2 { row-gap: 8px; }
.row-gap-3 { row-gap: 12px; }
.row-gap-4 { row-gap: 16px; }
.row-gap-5 { row-gap: 20px; }
.row-gap-6 { row-gap: 24px; }

/* === 间距 === */
/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }
.m-6 { margin: 24px; }
.m-8 { margin: 32px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 4px; margin-right: 4px; }
.mx-2 { margin-left: 8px; margin-right: 8px; }
.mx-3 { margin-left: 12px; margin-right: 12px; }
.mx-4 { margin-left: 16px; margin-right: 16px; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 4px; margin-bottom: 4px; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
.my-3 { margin-top: 12px; margin-bottom: 12px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.my-5 { margin-top: 20px; margin-bottom: 20px; }
.my-6 { margin-top: 24px; margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 30px; }
.mb-7 { margin-bottom: 40px; }
.mb-8 { margin-bottom: 50px; }
.mb-9 { margin-bottom: 90px; }


.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 20px; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-5 { margin-right: 20px; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-5 { padding-top: 20px; }
.pt-6 { padding-top: 24px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-5 { padding-bottom: 20px; }
.pb-6 { padding-bottom: 24px; }
.pb-7 { padding-bottom: 28px; }
.pb-8 { padding-bottom: 48px; }
.pb-9 { padding-bottom: 96px; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 4px; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 12px; }
.pl-4 { padding-left: 16px; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 12px; }
.pr-4 { padding-right: 16px; }

/* === 宽高 === */
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-auto { width: auto; }
.w-50 { width: 50%; }
.w-33 { width: 33.333333%; }
.w-66 { width: 66.666667%; }
.w-25 { width: 25%; }
.w-75 { width: 75%; }

.w-4 { width: 16px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-14 { width: 56px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-24 { width: 96px; }
.w-32 { width: 128px; }

.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }

.h-4 { height: 16px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-14 { height: 56px; }
.h-16 { height: 64px; }

.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }

/* === 文字颜色 === */
.text-white { color: #ffffff; }
.text-black { color: #000000; }

.text-success { color: #10b981; }  /* 成功绿 */
.text-warning { color: #f59e0b; }  /* 警告橙 */
.text-error { color: #ef4444; }    /* 错误红 */
.text-link { color: #3b82f6; }     /* 链接蓝 */
.text-grey { color: #7e859b; }     /* 灰色 */

/* === 字体大小 === */
.text-12 { font-size: 12px; line-height: 16px; }
.text-14 { font-size: 14px; line-height: 20px; }
.text-16 { font-size: 16px; line-height: 24px; }
.text-18 { font-size: 18px; line-height: 28px; }
.text-20 { font-size: 20px; line-height: 28px; }
.text-24 { font-size: 24px; line-height: 32px; }
.text-30 { font-size: 30px; line-height: 36px; }

/* === 字重 === */
.font-100 { font-weight: 100; }
.font-200 { font-weight: 200; }
.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

/* === 文本对齐 === */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* === 文本溢出 === */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }
.break-all { word-break: break-all; }

/* === 圆角 === */
.rounded-0 { border-radius: var(--radius-0); }
.rounded-1 { border-radius: var(--radius-1); }
.rounded-2 { border-radius: var(--radius-2); }
.rounded-3 { border-radius: var(--radius-3); }
.rounded-4 { border-radius: var(--radius-4); }
.rounded-5 { border-radius: var(--radius-5); }
.rounded-6 { border-radius: var(--radius-6); }
.rounded-7 { border-radius: var(--radius-7); }
.rounded-8 { border-radius: var(--radius-8); }
.rounded-9 { border-radius: var(--radius-9); }
.rounded-full { border-radius: var(--radius-full); }

/* === 边框 === */
.border { border: 1px solid var(--border-gray-200); }
.border-0 { border: 0; }
.border-t { border-top: 1px solid var(--border-gray-200); }
.border-b { border-bottom: 1px solid var(--border-gray-200); }
.border-l { border-left: 1px solid var(--border-gray-200); }
.border-r { border-right: 1px solid var(--border-gray-200); }

.border-light { border-color: var(--border-light); }
.border-gray-200 { border-color: var(--border-gray-200); }
.border-gray-300 { border-color: var(--border-gray-300); }
.border-transparent { border-color: transparent; }

/* === 阴影 === */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* === 定位 === */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* === Z-index === */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* === 透明度 === */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* === 光标 === */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-wait { cursor: wait; }

/* === 溢出 === */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* === 用户选择 === */
.select-none { user-select: none; }
.select-all { user-select: all; }
.select-text { user-select: text; }

/* === 过渡动画 === */
.transition { transition: all 0.2s ease; }
.transition-colors { transition: background-color 0.2s, border-color 0.2s; }
.transition-opacity { transition: opacity 0.2s; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* === 交互效果 === */
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:bg-gray-50:hover { background-color: var(--bg-gray-50); }
.hover\:bg-gray-100:hover { background-color: var(--bg-gray-100); }
.active\:opacity-70:active { opacity: 0.7; }
.active\:scale-95:active { transform: scale(0.95); }

/* === 按钮重置 === */
button, input, textarea, select {
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* === 图片 === */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* === 列表 === */
.list-none { list-style: none; }
.list-disc { list-style: disc; }
.list-decimal { list-style: decimal; }