/**
 * 个人标签引导页 - 后台管理样式
 *
 * @description 后台管理页面样式
 */

/* ==================== 后台布局 ==================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    max-width: calc(100% - 260px);
    background: var(--bg-primary);
    min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.admin-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

/* ==================== 统计卡片 ==================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== 表格 ==================== */
.table-container {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ==================== 状态标签 ==================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.status-paid {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.status-shipped {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* .btn 已统一定义在 components.css,此处删除重复 */

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ==================== 表单 ==================== */
.admin-form {
    max-width: 600px;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.admin-form .form-input,
.admin-form .form-select,
.admin-form .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.admin-form .form-input:focus,
.admin-form .form-select:focus,
.admin-form .form-textarea:focus {
    border-color: var(--accent);
    outline: none;
}

/* ==================== 卡片 ==================== */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================== 后台强制暗色主题 ==================== */
.admin-layout #themeToggle { display: none !important; }

/* ==================== 设置页面样式 ==================== */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
.settings-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}
.settings-tab:hover { color: var(--text-primary); }
.settings-tab.active { background: rgba(99, 102, 241, 0.2); color: var(--accent); }
.settings-section { display: none; }
.settings-section.active { display: block; }

/* 工具卡片样式 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.tool-card:hover {
    border-color: var(--accent);
}
.tool-card.selected {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}
.tool-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}
.tool-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
    color: var(--accent);
}
.tool-card.selected .tool-card-icon {
    background: var(--accent);
    color: white;
}
.tool-card-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.tool-card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 导航菜单项样式 */
.navmenu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.navmenu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.navmenu-card:hover {
    border-color: var(--accent);
}
.navmenu-card.selected {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

/* ==================== 用户详情弹窗 ==================== */
.user-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.user-detail-modal.active {
    display: flex;
}
.user-detail-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==================== 发货弹窗 ==================== */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.admin-modal-overlay.hidden {
    display: none;
}
.ship-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
}
.ship-modal h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ==================== SKU管理样式 ==================== */
.sku-list {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}
.sku-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px 80px 100px 40px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.sku-item img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}
.sku-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
.sku-form input {
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    width: 100%;
}
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

/* ==================== 导航管理样式 ==================== */
.nav-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.nav-item-admin {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    position: relative;
}
.nav-item-admin.inactive {
    opacity: 0.5;
}
.nav-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.nav-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ==================== Go跳转统计样式 ==================== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.stats-card-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.stats-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.stats-filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.stats-filter-btn:hover,
.stats-filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ==================== 用户详情弹窗样式 ==================== */
.user-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.user-detail-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-avatar-large {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}
.user-detail-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}
.user-detail-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.modal-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.modal-tab:hover,
.modal-tab.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
}
.modal-tab-content {
    display: none;
}
.modal-tab-content.active {
    display: block;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.info-item {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.info-value {
    font-size: 1rem;
    font-weight: 500;
}
.bookmark-list,
.log-list {
    max-height: 400px;
    overflow-y: auto;
}
.bookmark-item,
.log-item {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}
.balance-form {
    max-width: 600px;
}
.balance-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ==================== 图标选择器样式 ==================== */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.icon-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.icon-option:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent);
}
.icon-option.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.icon-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

input[type="checkbox"] {
    display: none;
}

/* ==================== 统计表格样式 ==================== */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}
.stats-table th,
.stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.stats-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
}
.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}
.rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}
.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}
.rank-other {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
}
.url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.clicks-cell {
    font-weight: 600;
    color: var(--accent);
}

/* ==================== 热门网址列表样式 ==================== */
.top-urls-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.top-url-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.top-url-rank {
    flex-shrink: 0;
}
.top-url-info {
    flex: 1;
    min-width: 0;
}
.top-url-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-url-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-url-clicks {
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

/* ==================== 工具卡片样式（补充） ==================== */
.tool-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.tool-card span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.tool-card small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== 导航菜单卡片样式（补充） ==================== */
.navmenu-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.navmenu-card span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.navmenu-card small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== 空状态样式 ==================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state p {
    font-size: 1rem;
}

/* ==================== 自定义导航样式 ==================== */
.custom-nav-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}
.custom-nav-name,
.custom-nav-url,
.custom-nav-icon {
    flex: 1;
}

/* ==================== 图片上传样式 ==================== */
.image-upload-container {
    margin-top: 0.5rem;
}
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}
.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-preview-item.main-image {
    border-color: var(--accent);
    border-width: 2px;
}
.main-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}
.image-add-btn {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.image-add-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.image-add-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==================== HTML编辑器样式 ==================== */
.html-editor {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.html-editor button {
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
}
.html-editor button:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent);
}
.html-textarea {
    font-family: monospace;
    resize: vertical;
}

/* ==================== SKU列表样式（补充） ==================== */
.sku-list {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}
.sku-item {
    display: grid;
    grid-template-columns: 1fr 1fr 100px 80px 60px 40px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.sku-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
.sku-form input {
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    width: 100%;
}

/* ==================== 标签页样式 ==================== */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.tab:hover,
.tab.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ==================== 操作按钮样式 ==================== */
.action-btn {
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.action-btn-primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
}
.action-btn-primary:hover {
    background: var(--accent);
    color: white;
}
.action-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
.action-btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* ==================== 模态框样式 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
/* ==================== 后台管理弹窗（补充） ==================== */
.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.admin-modal.hidden {
    display: none;
}
.admin-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.admin-modal-large {
    max-width: 900px;
}
.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.admin-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}
.admin-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* .form-group / .form-label / .form-input 已统一定义在 components.css,此处删除重复 */
.custom-select-wrapper {
    position: relative;
}
.custom-select {
    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='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ==================== 订单详情样式 ==================== */
.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.order-detail-row:last-child {
    border-bottom: none;
}
.order-detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.order-detail-modal .modal-body {
    padding: 1.5rem;
}

/* ==================== 响应式样式 ==================== */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    .admin-main {
        margin-left: 0;
        max-width: 100%;
    }
    .info-grid,
    .balance-form-grid {
        grid-template-columns: 1fr;
    }
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    .tool-grid,
    .nav-grid-admin {
        grid-template-columns: repeat(2, 1fr);
    }
}