/* ChatGPT订阅取消 - 高级简约风格 */

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

body {
    background: #fafafa;
    color: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* 主容器 */
.main-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3rem;
}

/* 公告 */
.announcement {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.announcement svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #f59e0b;
}

.announcement-text {
    flex: 1;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Tab导航 */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.375rem;
}

.tab-btn {
    flex: 1;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #737373;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #fafafa;
    color: #0a0a0a;
}

.tab-btn.active {
    background: #0a0a0a;
    color: #ffffff;
}

/* Tab内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单步骤 */
.form-step {
    display: block;
}

/* 卡片 */
.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

/* 步骤指示器 */
.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: #e5e5e5;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #a3a3a3;
    font-size: 0.8125rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step.active {
    color: #0a0a0a;
    font-weight: 500;
}

.step.completed {
    color: #737373;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    color: #a3a3a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.step.active .step-num {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #ffffff;
}

.step.completed .step-num {
    background: #fafafa;
    border-color: #d4d4d4;
    color: #737373;
}

/* 表单 */
.form-group {
    margin-bottom: 1rem;
}

.form-group:last-of-type {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #525252;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #0a0a0a;
    transition: all 0.2s ease;
}

.form-control:hover {
    border-color: #d4d4d4;
}

.form-control:focus {
    outline: none;
    border-color: #0a0a0a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

textarea.form-control {
    height: 88px;
    padding: 0.75rem 1rem;
    resize: none;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.form-hint {
    font-size: 0.75rem;
    color: #a3a3a3;
    margin-top: 0.375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    line-height: 1.4;
}

.form-hint svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.form-hint a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-hint a:hover {
    color: #0a0a0a;
}

/* 卡密信息卡片 */
.card-info {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.625rem 0;
}

.info-item + .info-item {
    border-top: 1px solid #e5e5e5;
}

.info-item .label {
    color: #737373;
    font-size: 0.75rem;
    font-weight: 500;
}

.info-item .value {
    color: #0a0a0a;
    font-weight: 600;
    font-size: 0.8125rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 进度信息 */
.progress-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
}

.progress-bar {
    width: 120px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #525252;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
    min-width: 50px;
    text-align: right;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 0.75rem;
}

.btn-group .btn {
    flex: 1;
}

/* 批量处理样式 */
.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.batch-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0a;
}

.batch-actions {
    display: flex;
    gap: 0.5rem;
}

.batch-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.875rem;
    text-align: center;
}

.stat-item.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.stat-item.failed {
    background: #fef2f2;
    border-color: #fecaca;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 0.375rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
}

.stat-item.success .stat-value {
    color: #15803d;
}

.stat-item.failed .stat-value {
    color: #dc2626;
}

/* 任务列表 */
.task-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.task-item.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.task-item.failed {
    background: #fef2f2;
    border-color: #fecaca;
}

.task-item.processing {
    background: #fafafa;
    border-color: #d4d4d4;
}

.task-index {
    width: 28px;
    height: 28px;
    background: #e5e5e5;
    color: #525252;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.task-item.success .task-index {
    background: #bbf7d0;
    color: #15803d;
}

.task-item.failed .task-index {
    background: #fecaca;
    color: #dc2626;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: #737373;
    margin-bottom: 0.25rem;
}

.task-item.success .task-status {
    color: #15803d;
}

.task-item.failed .task-status {
    color: #dc2626;
}

.task-message {
    font-size: 0.8125rem;
    color: #525252;
    line-height: 1.4;
    word-break: break-word;
}

.task-icon {
    flex-shrink: 0;
}

.task-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e5e5;
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* 按钮 */
.btn {
    height: 44px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.btn-primary {
    background: #0a0a0a;
    color: #ffffff;
}

.btn-primary:hover:not(.loading):not(:disabled) {
    background: #262626;
}

.btn-primary:active:not(.loading):not(:disabled) {
    background: #3a3a3a;
}

.btn-primary.loading {
    color: transparent;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #d4d4d4;
}

/* 引导提示框 */
.guide-box {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
}

.guide-title {
    font-size: 0.8125rem;
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.guide-text {
    font-size: 0.75rem;
    color: #3b82f6;
}

/* 说明列表 */
.instruction {
    background: #fafafa;
    border-left: 3px solid #0a0a0a;
    padding: 0.875rem 1rem;
    border-radius: 4px;
}

.instruction ol {
    margin: 0;
    padding: 0;
}

.instruction li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #525252;
}

.instruction li:last-child {
    margin-bottom: 0;
}

.instruction a {
    color: #0a0a0a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.instruction a:hover {
    opacity: 0.7;
}

/* details/summary 样式 */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    color: #0a0a0a;
}


/* 结果显示 */
.result {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result.success .result-icon {
    background: #dcfce7;
}

.result.success .result-icon svg {
    color: #15803d;
}

.result.error .result-icon {
    background: #fee2e2;
}

.result.error .result-icon svg {
    color: #dc2626;
}

.result-message {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0a0a0a;
}

.result-desc {
    color: #737373;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

/* ==================== 管理后台 ==================== */

/* 顶栏 */
.topbar {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sidebar-logo {
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: -0.01em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-link {
    color: #737373;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.topbar-link:hover:not(button) {
    color: #0a0a0a;
    background: #fafafa;
}

.topbar-link.active:not(button) {
    color: #0a0a0a;
    background: #f5f5f5;
}

button.topbar-link {
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

button.topbar-link:hover {
    color: #0a0a0a;
    background: transparent !important;
}

button.topbar-link:focus {
    background: transparent !important;
    outline: none !important;
}

.topbar-link svg {
    width: 18px;
    height: 18px;
}

/* 用户菜单 */
.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #0a0a0a;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.menu-item:hover {
    background: #fafafa;
}

.menu-item.danger {
    color: #dc2626;
}

.menu-item.danger:hover {
    background: #fef2f2;
}

.menu-item svg {
    width: 16px;
    height: 16px;
}

.menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0.25rem 0;
}

/* 主内容区 */
.content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 区块 */
.section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.toolbar {
    display: flex;
    gap: 0.5rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat-label {
    font-size: 0.75rem;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

/* 图表网格 */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 数据表格 */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.data-table thead {
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #525252;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #0a0a0a;
}

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

.data-table code, .card-code {
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 0.375rem;
}

.btn-action {
    width: 32px;
    height: 32px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #737373;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
    color: #0a0a0a;
}

.btn-action.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #737373;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: #fafafa;
    border-color: #d4d4d4;
    color: #0a0a0a;
}

/* 标签 */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* 复选框 */
.checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0a0a0a;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.page-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #525252;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #fafafa;
    border-color: #d4d4d4;
    color: #0a0a0a;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.875rem;
    color: #525252;
    padding: 0 1rem;
}

/* 批量操作按钮 */
.batch-actions {
    display: flex;
    gap: 0.5rem;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.password-input .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a3a3a3;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #0a0a0a;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* 成功横幅 */
.success-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #15803d;
}

/* 卡密输出框 */
.card-output-box {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem;
}

.card-output-box textarea {
    width: 100%;
    height: 240px;
    padding: 0.875rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    background: #ffffff;
    margin-bottom: 1rem;
    resize: none;
}

.card-output-box textarea:focus {
    outline: none;
    border-color: #d4d4d4;
}


/* 按钮（管理后台） */
.btn-sm {
    height: 32px;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    width: auto;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

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

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0a0a0a;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #737373;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #0a0a0a;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 2rem;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: #737373;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #0a0a0a;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 2rem 1rem 2rem;
        min-height: auto;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .steps {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .step {
        font-size: 0.75rem;
    }
    
    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
    }
    
    .topbar {
        height: auto;
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .topbar-right {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-bar {
        width: 80px;
    }
}
