* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-color: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e8e8e8;
    --bg-color: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    gap: 6px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #73d13d;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
}

.btn-warning:hover {
    background: #ffc53d;
}

.btn-danger {
    background: var(--error-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #ff7875;
}

.btn-default {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-default:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-label.required::before {
    content: '*';
    color: var(--error-color);
    margin-right: 4px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #fafafa;
    font-weight: 600;
    color: var(--text-color);
}

tr:hover {
    background: #fafafa;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 10px;
}

.badge-primary {
    background: #e6f7ff;
    color: var(--primary-color);
}

.badge-success {
    background: #f6ffed;
    color: var(--success-color);
}

.badge-warning {
    background: #fffbe6;
    color: var(--warning-color);
}

.badge-danger {
    background: #fff2f0;
    color: var(--error-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-card.primary .stat-icon {
    background: #e6f7ff;
    color: var(--primary-color);
}

.stat-card.success .stat-icon {
    background: #f6ffed;
    color: var(--success-color);
}

.stat-card.warning .stat-icon {
    background: #fffbe6;
    color: var(--warning-color);
}

.stat-card.danger .stat-icon {
    background: #fff2f0;
    color: var(--error-color);
}

.chart-container {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar .form-input {
    flex: 1;
    min-width: 200px;
}

.search-bar .btn {
    flex-shrink: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .page-info {
    padding: 6px 12px;
    color: var(--text-secondary);
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 4px;
}

.tab-nav .tab-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tab-nav .tab-item:hover {
    color: var(--primary-color);
}

.tab-nav .tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-color);
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.sidebar {
    width: 220px;
    background: var(--white);
    box-shadow: var(--shadow);
    min-height: calc(100vh - 70px);
    padding: 20px 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    gap: 12px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.sidebar-menu a.active {
    background: #e6f7ff;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.sidebar-menu .icon {
    width: 20px;
    text-align: center;
}

.layout {
    display: flex;
}

.layout-main {
    flex: 1;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 4px;
}

.modal-close:hover {
    background: #f5f5f5;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.empty-state p {
    margin-bottom: 20px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .item-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.list-item .item-content {
    flex: 1;
}

.list-item .item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.list-item .item-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.list-item .item-action {
    flex-shrink: 0;
}

.message-list {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.message-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

.message-item:hover {
    background: #fafafa;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item .message-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e6f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-item.unread .message-icon {
    background: var(--primary-color);
    color: var(--white);
}

.message-item .message-content {
    flex: 1;
    min-width: 0;
}

.message-item .message-title {
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-item.unread .message-title {
    font-weight: 600;
}

.message-item .message-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.message-item .message-text {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-item .message-time {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 12px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.order-status.pending .status-dot {
    background: var(--warning-color);
}

.order-status.processing .status-dot {
    background: var(--primary-color);
}

.order-status.completed .status-dot {
    background: var(--success-color);
}

.order-status.cancelled .status-dot {
    background: var(--text-light);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-bar .filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-bar .filter-item label {
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-bar select.form-input {
    width: auto;
    min-width: 120px;
    padding: 6px 32px 6px 12px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    width: 120px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.detail-row .value {
    flex: 1;
    color: var(--text-color);
}

.product-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--white);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: var(--shadow);
}

.product-card .product-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 32px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card .product-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    flex: 1;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--error-color);
}

.product-card .product-stock {
    font-size: 12px;
    color: var(--text-secondary);
}

.template-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--white);
    transition: box-shadow 0.3s;
    align-items: center;
}

.template-card:hover {
    box-shadow: var(--shadow);
}

.template-card .template-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.template-card .template-info {
    flex: 1;
}

.template-card .template-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.template-card .template-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-card .template-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.verification-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--white);
    transition: box-shadow 0.3s;
    align-items: center;
}

.verification-card:hover {
    box-shadow: var(--shadow);
}

.verification-card .verify-code {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), #096dd9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.verification-card .verify-code .code {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.verification-card .verify-code .order-no {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

.verification-card .verify-info {
    flex: 1;
}

.verification-card .verify-product {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.verification-card .verify-user {
    font-size: 13px;
    color: var(--text-secondary);
}

.verification-card .verify-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.group-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--white);
    transition: box-shadow 0.3s;
    align-items: center;
}

.group-card:hover {
    box-shadow: var(--shadow);
}

.group-card .group-product {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.group-card .group-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.group-card .group-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.group-card .group-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.group-card .group-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.withdrawal-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--white);
    transition: box-shadow 0.3s;
    align-items: center;
}

.withdrawal-card:hover {
    box-shadow: var(--shadow);
}

.withdrawal-card .withdrawal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.withdrawal-card .withdrawal-info {
    flex: 1;
}

.withdrawal-card .withdrawal-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.withdrawal-card .withdrawal-amount {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.withdrawal-card .withdrawal-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.action-bar {
    display: flex;
    gap: 8px;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--error-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-light {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.auth-logo p {
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.auth-tabs .tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-tabs .tab:hover {
    color: var(--primary-color);
}

.auth-tabs .tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.protocol-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.protocol-check input[type="checkbox"] {
    margin-top: 3px;
}

.user-center-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #40a9ff 100%);
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-phone {
    font-size: 14px;
    opacity: 0.9;
}

.order-tabs {
    display: flex;
    background: var(--white);
    padding: 12px 0;
    margin-bottom: 10px;
}

.order-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.order-tabs .tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.order-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.order-list {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.order-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-item-header .order-no {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-item-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.order-item-product .product-img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.order-item-product .product-info {
    flex: 1;
}

.order-item-product .product-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.order-item-product .product-spec {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-item-product .product-price {
    text-align: right;
}

.order-item-product .price {
    font-weight: 600;
    color: var(--error-color);
}

.order-item-product .count {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-footer .total {
    font-size: 14px;
}

.order-item-footer .total .money {
    font-weight: 700;
    color: var(--error-color);
    font-size: 16px;
}

.login-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.login-banner h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.login-banner p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.login-banner .btn {
    background: var(--white);
    color: #667eea;
    padding: 14px 40px;
    font-size: 16px;
}

.login-banner .btn:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 16px;
        border-radius: 0;
        margin-left: -12px;
        margin-right: -12px;
        margin-bottom: 12px;
        box-shadow: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-logo span {
        display: none;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px;
        gap: 0;
        box-shadow: var(--shadow);
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .header-nav a:last-child {
        border-bottom: none;
    }

    .header-nav a.active::after {
        display: none;
    }

    .header-user span {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .sidebar {
        display: none;
    }

    .layout {
        display: block;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-input {
        width: 100%;
    }

    .filter-bar .btn {
        width: 100%;
    }

    .auth-box {
        padding: 24px;
        border-radius: 12px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px 12px;
    }

    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-nav .tab-item {
        padding: 10px 16px;
        white-space: nowrap;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination button {
        padding: 8px 12px;
        min-width: 36px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar .form-input {
        width: 100%;
    }

    .product-card {
        flex-direction: column;
    }

    .product-card .product-image {
        width: 100%;
        height: 160px;
    }

    .action-bar {
        flex-wrap: wrap;
    }

    .action-bar .btn {
        flex: 1;
        min-width: 80px;
    }

    .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-row .label {
        width: auto;
    }

    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .ship-drawer {
        width: 100%;
        right: -100%;
    }

    .image-upload-section {
        flex-direction: column;
    }

    .main-image-area {
        width: 100%;
    }

    .main-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .carousel-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .carousel-add-btn {
        width: 100%;
        height: 80px;
    }

    .carousel-item {
        width: 100%;
        height: 80px;
    }

    .rich-text-content {
        min-height: 150px;
    }

    .leader-order-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .leader-stats {
        width: 100%;
        justify-content: space-around;
    }

    .batch-actions {
        flex-wrap: wrap;
    }

    .batch-actions .btn {
        width: 100%;
        margin-top: 8px;
    }

    .drawer-footer {
        flex-direction: column;
    }

    .drawer-footer .btn {
        width: 100%;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 15px;
    }

    .form-input {
        padding: 12px;
        font-size: 15px;
    }

    .stats-grid .stat-card {
        margin-bottom: 0;
    }

    .user-center-header {
        padding: 24px 16px;
    }

    .order-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .order-item-product {
        flex-direction: column;
    }

    .order-item-product .product-img {
        width: 100%;
        height: 120px;
    }

    .order-item-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-end;
    }

    .message-item {
        flex-direction: column;
        gap: 8px;
    }

    .message-item .message-icon {
        margin-right: 0;
    }

    .message-item .message-time {
        margin-left: 0;
    }

    .product-card {
        flex-direction: column;
    }

    .product-card .product-image {
        width: 100%;
        height: 160px;
    }

    .template-card {
        flex-direction: column;
        align-items: stretch;
    }

    .template-card .template-icon {
        width: 48px;
        height: 48px;
    }

    .template-card .template-actions {
        justify-content: flex-end;
        margin-top: 12px;
    }

    .verification-card {
        flex-direction: column;
        align-items: stretch;
    }

    .verification-card .verify-code {
        width: 100%;
        height: 60px;
        flex-direction: row;
        gap: 12px;
    }

    .verification-card .verify-status {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 12px;
    }

    .withdrawal-card {
        flex-direction: column;
        align-items: stretch;
    }

    .withdrawal-card .withdrawal-status {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 12px;
    }

    .group-card {
        flex-direction: column;
        align-items: stretch;
    }

    .group-card .group-product {
        width: 100%;
        height: 120px;
    }

    .group-card .group-actions {
        flex-direction: row;
        justify-content: flex-end;
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-title {
        font-size: 16px;
    }

    .filter-bar {
        gap: 8px;
    }

    .auth-logo h1 {
        font-size: 24px;
    }

    .auth-box {
        padding: 20px;
    }
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    align-items: center;
    justify-content: center;
}
