@font-face {
    font-family: 'AdminIcon';
    src: url('/static/admin/fonts/iconfont.woff2') format('woff2'),
         url('/static/admin/fonts/iconfont.woff') format('woff'),
         url('/static/admin/fonts/iconfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.fa, .icon {
    display: inline-block;
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", Arial, sans-serif;
    font-weight: normal;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
}

.icon:before { content: '•'; }
.icon-wine:before { content: '🍷'; }
.icon-home:before { content: '⌂'; }
.icon-goods:before { content: '▣'; }
.icon-order:before { content: '≡'; }
.icon-distribute:before { content: '◎'; }
.icon-member:before,
.icon-user:before { content: '👤'; }
.icon-points:before { content: '★'; }
.icon-free:before { content: '✓'; }
.icon-dividend:before { content: '◈'; }
.icon-finance:before { content: '￥'; }
.icon-marketing:before { content: '✦'; }
.icon-diy:before { content: '✎'; }
.icon-risk:before { content: '⚠'; }
.icon-menu:before { content: '☰'; }
.icon-arrow-right:before { content: '›'; }
.icon-add:before,
.icon-check:before { content: '+'; }
.icon-edit:before { content: '✎'; }
.icon-delete:before { content: '×'; }
.icon-search:before { content: '⌕'; }
.icon-export:before,
.icon-download:before { content: '⇩'; }
.icon-refresh:before { content: '↻'; }
.icon-success:before { content: '✓'; }
.icon-error:before { content: '✕'; }
.icon-warning:before { content: '⚠'; }
.icon-info:before { content: 'i'; }
.icon-eye:before { content: '◉'; }
.icon-upload:before { content: '⇧'; }
.icon-admin:before { content: '⚙'; }
.icon-empty:before { content: '∅'; }
.icon-image:before { content: '▧'; }
.icon-category:before { content: '▦'; }
.icon-cart:before { content: '🛒'; }
.icon-bell:before { content: '🔔'; }
.icon-shield:before { content: '▰'; }
.icon-truck:before { content: '▱'; }
.icon-refund:before { content: '↩'; }
.icon-headphones:before { content: '☎'; }
.icon-message:before { content: '✉'; }
.icon-share:before { content: '↗'; }
.icon-news:before { content: '☷'; }
.icon-back:before { content: '‹'; }
.icon-more:before { content: '⋯'; }
.icon-ship:before { content: '⇢'; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f7fa;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #1890ff;
}

.container {
    width: 100%;
    padding: 20px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-success {
    background-color: #52c41a;
    color: #fff;
}

.btn-success:hover {
    background-color: #73d13d;
}

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

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

.btn-default {
    background-color: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    background-color: #f5f5f5;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #1890ff;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #666;
}

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

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

.pagination {
    margin-top: 20px;
    text-align: right;
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.pagination a:hover, .pagination a.active {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.search-form {
    background-color: #fff;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.search-form .form-group {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 0;
}

.search-form .form-group:last-child {
    margin-right: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background-color: #fff;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-success {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-warning {
    background-color: #fff7e6;
    color: #fa8c16;
}

.status-error {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.status-info {
    background-color: #e6f7ff;
    color: #1890ff;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: #52c41a;
}

.toast.error {
    background-color: #ff4d4f;
}

.toast.warning {
    background-color: #fa8c16;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.switch-group {
    display: flex;
    align-items: center;
}

.switch-group input[type="checkbox"] {
    display: none;
}

.switch {
    display: inline-block;
    width: 48px;
    height: 28px;
    background-color: #d9d9d9;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.switch-group input[type="checkbox"]:checked + .switch {
    background-color: #1890ff;
}

.switch-group input[type="checkbox"]:checked + .switch::after {
    left: 22px;
}

.switch-text {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
}

.card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-item {
    flex: 1;
    margin-right: 20px;
}

.flex-item:last-child {
    margin-right: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: #1890ff;
}

.text-success {
    color: #52c41a;
}

.text-danger {
    color: #ff4d4f;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.text-muted {
    color: #999;
}

.tree-container {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

.tree-node {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
}

.tree-node::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 0;
    width: 2px;
    background-color: #d9d9d9;
}

.tree-node:last-child::before {
    display: none;
}

.tree-node::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 16px;
    height: 2px;
    background-color: #d9d9d9;
}

.node-info {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-bottom: 12px;
}

.node-name {
    font-weight: bold;
    margin-right: 12px;
}

.node-level {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #e6f7ff;
    color: #1890ff;
}

.node-children {
    margin-top: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 28px;
}

.stat-icon-green {
    background-color: #f6ffed;
    color: #52c41a;
}

.stat-icon-blue {
    background-color: #e6f7ff;
    color: #1890ff;
}

.stat-icon-orange {
    background-color: #fff7e6;
    color: #fa8c16;
}

.stat-icon-red {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.stat-label {
    font-size: 14px;
    color: #999;
    margin: 4px 0;
}

.stat-change {
    font-size: 12px;
    color: #52c41a;
    margin: 0;
}

.hot-goods-list {
    list-style: none;
    padding: 0;
}

.hot-goods-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hot-goods-list li:last-child {
    border-bottom: none;
}

.rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
}

.goods-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.goods-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
}

.goods-name {
    font-size: 14px;
    margin: 0;
    color: #333;
}

.goods-sales {
    font-size: 12px;
    margin: 4px 0 0;
    color: #999;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.permission-tree {
    max-height: 400px;
    overflow-y: auto;
}

.permission-module {
    margin-bottom: 12px;
}

.permission-module label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.permission-actions {
    padding-left: 20px;
}

.permission-actions label {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
    font-weight: normal;
}

.tier-row {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.tier-row:last-child {
    border-bottom: none;
}

.chart-container {
    height: 300px;
}

.status-blue {
    background-color: #e6f7ff;
    color: #1890ff;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 40px;
}

.editor-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.component-panel {
    width: 220px;
    background-color: #f5f7fa;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    flex-shrink: 0;
}

.param-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.param-key {
    width: 30% !important;
}

.param-value {
    flex: 1;
}

.goods-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.goods-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.goods-stats .stat-item {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 2px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.goods-stats .stat-num {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.goods-stats .stat-label {
    font-size: 14px;
    color: #999;
}

.search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 16px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-form .form-group {
    display: flex;
    flex-direction: column;
}

.search-form .form-group label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.search-form .form-input {
    width: 160px;
}

.batch-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.batch-actions label {
    cursor: pointer;
    font-size: 14px;
}

.batch-actions .btn {
    padding: 6px 14px;
    font-size: 13px;
}

.upload-area {
    position: relative;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #1890ff;
    background-color: #f0f5ff;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    margin-top: 12px;
}

.upload-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
}

.upload-preview-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.remove-image:hover {
    background-color: #ff4d4f;
}

.sku-preview {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.batch-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.checkbox-column {
    width: 40px;
    text-align: center;
}

.goods-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.rank-gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #fff;
}

.rank-silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #fff;
}

.rank-bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #1890ff;
    border-radius: 4px;
    transition: width 0.3s;
}

.level-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.level-normal {
    background-color: #f5f5f5;
    color: #666;
}

.level-vip {
    background-color: #fff7e6;
    color: #fa8c16;
}

.level-partner {
    background-color: #f6ffed;
    color: #52c41a;
}

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

.info-item {
    padding: 12px;
    background-color: #fafafa;
    border-radius: 8px;
}

.info-item label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.info-item .info-value {
    font-size: 14px;
    color: #333;
}

.address-info {
    padding: 16px;
    background-color: #fafafa;
    border-radius: 8px;
}

.address-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.address-name {
    font-weight: bold;
    font-size: 16px;
}

.address-phone {
    font-size: 14px;
    color: #666;
}

.address-tag {
    padding: 2px 8px;
    background-color: #1890ff;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

.address-detail {
    font-size: 14px;
    color: #666;
}

.fee-list {
    padding: 0;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.fee-item.fee-total {
    padding-top: 16px;
    font-weight: bold;
    font-size: 16px;
    color: #ff4d4f;
}

.fee-label {
    color: #666;
}

.fee-value {
    font-weight: 500;
}

.log-list {
    padding: 0;
}

.log-item {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.log-time {
    color: #999;
    width: 160px;
}

.log-action {
    color: #333;
    flex: 1;
}

.log-operator {
    color: #1890ff;
}

.order-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.review-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    font-size: 13px;
}

.image-preview {
    display: flex;
    gap: 8px;
}

.preview-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.modal-large {
    width: 700px;
}

.spec-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-tag {
    padding: 4px 12px;
    background-color: #f0f5ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
}

.spec-value-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.spec-value-item .form-input {
    flex: 1;
    width: auto;
}

.member-detail {
    max-width: 1000px;
}

.member-info {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-basic {
    flex: 1;
}

.member-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.member-id {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.member-level {
    margin-bottom: 8px;
}

.member-stats {
    display: flex;
    gap: 20px;
}

.member-stats .stat-item {
    flex: 1;
    text-align: center;
    padding: 16px;
    background-color: #fafafa;
    border-radius: 8px;
}

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

.info-grid .info-item {
    padding: 12px;
    background-color: #fafafa;
    border-radius: 8px;
}

.goods-selector {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.goods-selector:hover {
    border-color: #1890ff;
    background-color: #f0f5ff;
}

.selector-empty {
    color: #999;
}

.selector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.selector-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.selector-item .price {
    margin-left: auto;
    color: #ff4d4f;
    font-weight: bold;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
}

.tag-primary {
    background-color: #e6f7ff;
    color: #1890ff;
}

.tag-blue {
    background-color: #f0f5ff;
    color: #40a9ff;
}

.tag-orange {
    background-color: #fff7e6;
    color: #fa8c16;
}

.tag-success {
    background-color: #f6ffed;
    color: #52c41a;
}

.tag-green {
    background-color: #e6fffb;
    color: #13c2c2;
}

.tag-gray {
    background-color: #f5f5f5;
    color: #666;
}

.icon-comment:before { content: '☰'; }
.icon-star:before { content: '☆'; }
.icon-star-fill:before { content: '★'; }
.icon-reply:before { content: '↵'; }
.icon-component:before { content: '▦'; }
.icon-clock:before { content: '◷'; }
.icon-copy:before { content: '⧉'; }

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stats-cards .stat-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.stats-cards .stat-card:hover {
    transform: translateY(-2px);
}

.stats-cards .stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 32px;
}

.stats-cards .stat-icon.seckill-icon {
    background: linear-gradient(135deg, #fff2f0, #ffccc7);
}

.stats-cards .stat-icon.group-icon {
    background: linear-gradient(135deg, #f0f5ff, #d6e4ff);
}

.stats-cards .stat-icon.flash-icon {
    background: linear-gradient(135deg, #fff7e6, #ffe58f);
}

.stats-cards .stat-icon.gift-icon {
    background: linear-gradient(135deg, #f6ffed, #b7eb8f);
}

.stats-cards .stat-info {
    flex: 1;
}

.stats-cards .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.stats-cards .stat-label {
    font-size: 14px;
    color: #999;
    margin: 4px 0;
}

.stats-cards .stat-trend {
    font-size: 12px;
    font-weight: 500;
}

.marketing-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.marketing-tabs .tab-item {
    padding: 12px 24px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.marketing-tabs .tab-item.active {
    background-color: #1890ff;
    color: #fff;
}

.marketing-tabs .tab-item:hover {
    border-color: #1890ff;
}

.activity-list {
    padding: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

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

.activity-item:hover {
    background-color: #fafafa;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
}

.activity-info {
    flex: 1;
}

.activity-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.activity-desc {
    font-size: 13px;
    color: #666;
}

.activity-desc .price {
    color: #ff4d4f;
    font-weight: bold;
    margin-right: 8px;
}

.activity-desc .original {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.activity-desc .group-size {
    color: #1890ff;
    font-size: 12px;
    padding: 2px 8px;
    background-color: #e6f7ff;
    border-radius: 4px;
}

.activity-desc .discount {
    color: #52c41a;
    font-weight: bold;
}

.activity-desc .gift {
    color: #fa8c16;
}

.activity-time {
    text-align: right;
}

.activity-time > div:first-child {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.activity-time .countdown {
    font-size: 12px;
    color: #1890ff;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ===== Page Header ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h1,
.page-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
}

.header-action {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===== Search Bar ===== */
.search-bar {
    background-color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-bar.card {
    padding: 16px 20px;
}

.search-bar form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-item label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    min-width: 200px;
}

.search-input:focus {
    border-color: #1890ff;
}

.search-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fff;
    min-width: 120px;
}

.search-select:focus {
    border-color: #1890ff;
}

.search-btn {
    padding: 8px 20px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background-color: #40a9ff;
}

/* ===== Data Table ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.data-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #666;
}

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

.data-table tr:last-child td {
    border-bottom: none;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #f6ffed;
    color: #52c41a;
}

.badge-danger {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.badge-warning {
    background-color: #fff7e6;
    color: #fa8c16;
}

.badge-info {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* ===== Button Variants ===== */
.btn-warning {
    background-color: #fa8c16;
    color: #fff;
}

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

.btn-edit {
    background-color: #1890ff;
    color: #fff;
}

.btn-edit:hover {
    background-color: #40a9ff;
}

.btn-delete {
    background-color: #ff4d4f;
    color: #fff;
}

.btn-delete:hover {
    background-color: #ff7875;
}

/* ===== Text Colors ===== */
.text-gray {
    color: #999;
}

/* ===== Card Body ===== */
.card-body {
    padding: 0;
}

/* ===== Modal (for team tree) ===== */
.modal[style*="display: block"],
.modal.show {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal .modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal .modal-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal .modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal .modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
}

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

.modal .modal-body {
    padding: 16px;
}

.modal ul {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.modal li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal li:last-child {
    border-bottom: none;
}

/* ===== Detail Rows ===== */
.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.detail-row label {
    width: 120px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
    font-weight: 500;
}

.detail-row span,
.detail-row p {
    flex: 1;
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* ===== Image List ===== */
.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-image:hover {
    transform: scale(1.05);
}

/* ===== Form Horizontal ===== */
.form-horizontal {
    padding: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #666;
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: #1890ff;
}

.form-actions {
    margin-top: 16px;
    text-align: right;
}

/* ===== Form Select ===== */
.form-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fff;
}

.form-select:focus {
    border-color: #1890ff;
}

/* ===== Permission List ===== */
.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background-color: #fafafa;
    border-radius: 8px;
}

.permission-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.permission-item:hover {
    border-color: #1890ff;
}

.permission-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.permission-item input[type="checkbox"]:checked + span {
    color: #1890ff;
    font-weight: 500;
}

/* ===== Form Row (two-column layout) ===== */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

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