/**
 * 用户中心仪表盘样式 v2.0
 * 简化重构版本
 */

/* ========================================
   1. 基础布局
   ======================================== */

.user-center-container {
  max-width: 100%;
  padding: 24px 32px;
}

.user-center-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.user-center-grid > * {
  min-width: 0;
}

/* 侧边栏模式：4列布局（支持两种选择器以确保兼容） */
body.cc-sidebar-layout .user-center-grid,
html.cc-layout-sidebar .user-center-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 响应式 */
@media (max-width: 1200px) {
  .user-center-grid,
  body.cc-sidebar-layout .user-center-grid,
  html.cc-layout-sidebar .user-center-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .user-center-container {
    padding: 16px;
  }
  
  .user-center-grid,
  body.cc-sidebar-layout .user-center-grid,
  html.cc-layout-sidebar .user-center-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================================
   2. 通用卡片
   ======================================== */

.cc-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.cc-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 12px;
}

.cc-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 2px;
}

/* 卡片跨列 - 默认 2 列布局 */
.cc-card-span-2,
.cc-products-card,
.cc-resources-card,
.cc-affiliate-card { 
  grid-column: span 2; 
}

.cc-card-span-4 { grid-column: span 4; }

@media (max-width: 768px) {
  .cc-card-span-2,
  .cc-card-span-4,
  .cc-products-card,
  .cc-resources-card,
  .cc-affiliate-card,
  .cc-quick-card,
  .cc-news-card { 
    grid-column: span 1; 
  }
}

/* ========================================
   3. 欢迎横幅
   ======================================== */

.cc-welcome-banner {
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cc-welcome-text h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.cc-welcome-text p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.cc-welcome-text strong {
  color: #2563eb;
}

.cc-welcome-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cc-welcome-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .cc-welcome-text h1 {
    font-size: 20px;
  }
  
  .cc-welcome-time {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
}

/* 仅侧边栏模式显示 */
body:not(.cc-sidebar-layout) .cc-welcome-banner {
  display: none;
}

/* ========================================
   4. 付款提醒条
   ======================================== */

.cc-alert-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.cc-alert-bar.warning {
  background: linear-gradient(135deg, #fffbea 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
}

.cc-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cc-alert-bar.warning .cc-alert-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

.cc-alert-text {
  flex: 1;
  font-size: 14px;
  color: #92400e;
  font-weight: 500;
}

.cc-alert-action {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.cc-alert-bar.warning .cc-alert-action {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

.cc-alert-action:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* ========================================
   5. 用户信息卡片
   ======================================== */

.cc-profile-card {
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
}

.cc-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.cc-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cc-profile-info {
  flex: 1;
  min-width: 0;
}

.cc-profile-greet {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.cc-profile-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-profile-name h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cc-role-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 12px;
}

.cc-profile-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* 安全徽章 */
.cc-security-badges {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.cc-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.2s;
}

.cc-badge:hover {
  transform: translateY(-2px);
}

.cc-badge.disabled {
  opacity: 0.5;
}

.cc-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0edff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cc-badge-text {
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cc-badge-text {
    display: none;
  }
}

/* ========================================
   6. 财务卡片
   ======================================== */

.cc-finance-card {
  background: linear-gradient(135deg, #fff 0%, #fffbf5 100%);
}

.cc-finance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cc-balance {
  margin-bottom: 16px;
}

.cc-balance-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}

.cc-balance-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cc-finance-stats {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #64748b;
}

.cc-finance-stats strong {
  color: #0f172a;
}

.cc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  color: #fff;
  text-decoration: none;
}

/* ========================================
   7. 产品网格
   ======================================== */

.cc-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

body.cc-sidebar-layout .cc-products-grid,
html.cc-layout-sidebar .cc-products-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1400px) {
  body.cc-sidebar-layout .cc-products-grid,
  html.cc-layout-sidebar .cc-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  body.cc-sidebar-layout .cc-products-grid,
  html.cc-layout-sidebar .cc-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cc-products-grid,
  body.cc-sidebar-layout .cc-products-grid,
  html.cc-layout-sidebar .cc-products-grid {
    grid-template-columns: 1fr;
  }
}

.cc-product-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s;
}

.cc-product-tile:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  text-decoration: none;
}

.cc-product-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cc-product-name {
  font-size: 14px;
  font-weight: 600;
}

.cc-product-count {
  color: #2563eb;
  font-size: 12px;
  margin-left: 4px;
}

.cc-product-sub {
  font-size: 12px;
  color: #64748b;
}

/* ========================================
   8. 待办事项
   ======================================== */

.cc-todo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .cc-todo-section {
    grid-template-columns: 1fr;
  }
}

.cc-todo-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.cc-todo-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
}

.cc-todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s;
}

.cc-todo-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.cc-todo-meta {
  flex: 1;
  min-width: 0;
}

.cc-todo-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-todo-name a {
  color: inherit;
  text-decoration: none;
}

.cc-todo-name a:hover {
  color: #2563eb;
}

.cc-todo-desc {
  font-size: 12px;
  color: #64748b;
}

.cc-todo-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  transition: transform 0.2s;
}

.cc-todo-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.cc-todo-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
}

/* ========================================
   9. 资源表格
   ======================================== */

.cc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

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

.cc-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.cc-table td {
  color: #475569;
}

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

.cc-table a {
  color: #2563eb;
  text-decoration: none;
}

.cc-table a:hover {
  text-decoration: underline;
}

.cc-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
}

/* ========================================
   10. 快捷操作
   ======================================== */

.cc-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cc-quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s;
}

.cc-quick-item:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.cc-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cc-quick-title {
  font-size: 14px;
  font-weight: 600;
}

.cc-quick-sub {
  font-size: 12px;
  color: #64748b;
}

/* ========================================
   11. 公告列表
   ======================================== */

.cc-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s;
}

.cc-news-item:hover {
  border-color: #2563eb;
  transform: translateX(4px);
}

.cc-news-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.cc-news-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-news-title {
  font-size: 14px;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-news-title:hover {
  color: #2563eb;
}

.cc-news-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cc-news-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
}

.cc-news-time {
  font-size: 12px;
  color: #94a3b8;
}

/* ========================================
   12. 推广排行榜
   ======================================== */

.cc-affiliate-card {
  background: linear-gradient(165deg, #fff9e6 0%, #fffbf0 35%, #fff4e6 65%, #fff9f0 100%);
  border-color: rgba(251, 191, 36, 0.25);
}

.cc-affiliate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cc-affiliate-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
}

.cc-affiliate-icon {
  font-size: 24px;
}

.cc-affiliate-title {
  font-size: 18px;
  font-weight: 800;
  color: #92400e;
  margin: 0;
}

.cc-affiliate-sub {
  font-size: 13px;
  color: #78350f;
  margin: 8px 0 0;
}

.cc-affiliate-sub strong {
  color: #d97706;
}

.cc-affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
}

.cc-affiliate-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  color: #fff;
  text-decoration: none;
}

.cc-affiliate-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

body.cc-sidebar-layout .cc-affiliate-list,
html.cc-layout-sidebar .cc-affiliate-list {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
  body.cc-sidebar-layout .cc-affiliate-list,
  html.cc-layout-sidebar .cc-affiliate-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cc-affiliate-header {
    flex-direction: column;
  }
  
  .cc-affiliate-cta {
    width: 100%;
    justify-content: center;
  }
  
  .cc-affiliate-list,
  body.cc-sidebar-layout .cc-affiliate-list,
  html.cc-layout-sidebar .cc-affiliate-list {
    grid-template-columns: 1fr;
  }
}

.cc-affiliate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  transition: all 0.2s;
}

.cc-affiliate-item:hover {
  border-color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.cc-affiliate-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cc-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #64748b;
  flex-shrink: 0;
}

.cc-rank-badge.gold {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #78350f;
}

.cc-rank-badge.silver {
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  color: #1e293b;
}

.cc-rank-badge.bronze {
  background: linear-gradient(135deg, #fed7aa, #fb923c);
  color: #7c2d12;
}

.cc-affiliate-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-affiliate-money {
  font-size: 14px;
  font-weight: 800;
  color: #b45309;
  white-space: nowrap;
}

.cc-affiliate-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(251, 191, 36, 0.3);
  text-align: center;
  font-size: 13px;
  color: #78350f;
}

.cc-affiliate-footer i {
  color: #f59e0b;
  margin-right: 6px;
}

.cc-affiliate-footer a {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
}

.cc-affiliate-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   13. 空状态
   ======================================== */

.cc-empty {
  padding: 32px 16px;
  text-align: center;
  color: #64748b;
}

.cc-empty-icon {
  font-size: 40px;
  color: #93c5fd;
  margin-bottom: 8px;
}

.cc-empty-text {
  font-size: 14px;
  margin-bottom: 12px;
}

.cc-empty-action {
  display: inline-block;
  padding: 8px 16px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #2563eb;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
}

.cc-empty-action:hover {
  background: #e0e7ff;
}

/* ========================================
   14. 工单弹窗
   ======================================== */

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 16px;
}

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

.cc-modal {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.cc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cc-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cc-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cc-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.cc-modal-body {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.cc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.cc-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.cc-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cc-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.cc-btn-outline {
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.cc-btn-outline:hover {
  background: rgba(37, 99, 235, 0.05);
}

.cc-btn-danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
}

.cc-btn-danger:hover {
  background: rgba(220, 38, 38, 0.05);
}

body.cc-no-scroll {
  overflow: hidden;
}

/* ========================================
   15. 分页
   ======================================== */

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  list-style: none;
}

.pagination li a,
.pagination li span,
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination li a:hover,
.pagination .page-link:hover {
  color: #2563eb;
  background: #e0e7ff;
  transform: translateY(-1px);
}

.pagination li.active span,
.pagination li.active a,
.pagination li.active .page-link,
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.pagination li.disabled span,
.pagination li.disabled a,
.pagination .page-item.disabled .page-link {
  color: #cbd5e1;
  background: #f8fafc;
  cursor: not-allowed;
  pointer-events: none;
}

/* 上一页/下一页按钮 */
.pagination li:first-child a,
.pagination li:last-child a,
.pagination li:first-child span,
.pagination li:last-child span {
  font-size: 16px;
  padding: 0 14px;
}

/* 分页容器 */
.cc-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 24px;
}

.cc-pagination-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
}

.cc-pagination-info select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  color: #334155;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.cc-pagination-info select:hover,
.cc-pagination-info select:focus {
  border-color: #2563eb;
  outline: none;
}

@media (max-width: 640px) {
  .cc-pagination-wrap {
    flex-direction: column;
    align-items: center;
  }
  
  .pagination li a,
  .pagination li span,
  .pagination .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ========================================
   16. 侧边栏模式增强
   ======================================== */

body.cc-sidebar-layout .user-center-container,
html.cc-layout-sidebar .user-center-container {
  padding: 32px 40px;
}

/* 通用页面容器 - 适配所有页面 */
.cc-page-wrap {
  padding: 24px 32px;
}

body.cc-sidebar-layout .cc-page-wrap,
html.cc-layout-sidebar .cc-page-wrap {
  padding: 32px 40px;
}

body.cc-horizontal-layout .cc-page-wrap,
html.cc-layout-horizontal .cc-page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}

@media (max-width: 768px) {
  .cc-page-wrap,
  body.cc-sidebar-layout .cc-page-wrap,
  html.cc-layout-sidebar .cc-page-wrap {
    padding: 16px;
  }
}

/* 页面内部两栏布局 */
.cc-page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.cc-page-layout > * {
  min-width: 0;
}

body.cc-sidebar-layout .cc-page-layout,
html.cc-layout-sidebar .cc-page-layout {
  grid-template-columns: 220px 1fr;
}

@media (max-width: 960px) {
  .cc-page-layout,
  body.cc-sidebar-layout .cc-page-layout,
  html.cc-layout-sidebar .cc-page-layout {
    grid-template-columns: 1fr;
  }
}

/* 页面侧边栏 */
.cc-page-aside,
.cc-page-layout > .cc-aside {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  padding: 8px;
  position: sticky;
  top: 100px;
  height: max-content;
}

.cc-page-aside a,
.cc-page-layout > .cc-aside a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #0f172a;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.cc-page-aside a:hover,
.cc-page-aside a.active,
.cc-page-layout > .cc-aside a:hover,
.cc-page-layout > .cc-aside a.active {
  background: #f7fbff;
  color: #2563eb;
}

@media (max-width: 960px) {
  .cc-page-aside,
  .cc-page-layout > .cc-aside {
    position: static;
  }
}

/* 页面卡片区块 */
.cc-page-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  padding: 26px;
  min-width: 0;
  width: 100%;
}

.cc-page-section + .cc-page-section {
  margin-top: 24px;
}

.cc-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}

@media (max-width: 768px) {
  .cc-page-section {
    padding: 16px;
  }
}

body.cc-sidebar-layout .cc-card,
html.cc-layout-sidebar .cc-card {
  border-radius: 18px;
}

/* 侧边栏 4 列布局下的卡片跨列 */
body.cc-sidebar-layout .cc-profile-card,
body.cc-sidebar-layout .cc-finance-card,
html.cc-layout-sidebar .cc-profile-card,
html.cc-layout-sidebar .cc-finance-card {
  grid-column: span 2;
}

/* 产品、资源列表、推广排行榜：跨满 4 列 */
body.cc-sidebar-layout .cc-products-card,
body.cc-sidebar-layout .cc-resources-card,
body.cc-sidebar-layout .cc-affiliate-card,
html.cc-layout-sidebar .cc-products-card,
html.cc-layout-sidebar .cc-resources-card,
html.cc-layout-sidebar .cc-affiliate-card {
  grid-column: span 4;
}

/* 常用功能和公告：各占 2 列 */
body.cc-sidebar-layout .cc-quick-card,
body.cc-sidebar-layout .cc-news-card,
html.cc-layout-sidebar .cc-quick-card,
html.cc-layout-sidebar .cc-news-card {
  grid-column: span 2;
}

body.cc-sidebar-layout .cc-products-grid,
html.cc-layout-sidebar .cc-products-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1400px) {
  body.cc-sidebar-layout .cc-products-grid,
  html.cc-layout-sidebar .cc-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  /* 中屏：2 列布局 */
  body.cc-sidebar-layout .cc-products-card,
  body.cc-sidebar-layout .cc-resources-card,
  body.cc-sidebar-layout .cc-affiliate-card,
  html.cc-layout-sidebar .cc-products-card,
  html.cc-layout-sidebar .cc-resources-card,
  html.cc-layout-sidebar .cc-affiliate-card {
    grid-column: span 2;
  }
  
  body.cc-sidebar-layout .cc-quick-card,
  body.cc-sidebar-layout .cc-news-card,
  html.cc-layout-sidebar .cc-quick-card,
  html.cc-layout-sidebar .cc-news-card {
    grid-column: span 1;
  }
}

@media (max-width: 1024px) {
  body.cc-sidebar-layout .user-center-container,
  html.cc-layout-sidebar .user-center-container {
    padding: 16px;
  }
  
  body.cc-sidebar-layout .cc-profile-card,
  body.cc-sidebar-layout .cc-finance-card,
  html.cc-layout-sidebar .cc-profile-card,
  html.cc-layout-sidebar .cc-finance-card {
    grid-column: span 1;
  }
  
  body.cc-sidebar-layout .cc-products-grid,
  html.cc-layout-sidebar .cc-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body.cc-sidebar-layout .cc-welcome-banner,
  html.cc-layout-sidebar .cc-welcome-banner {
    display: none;
  }
}

@media (max-width: 768px) {
  /* 移动端：全部单列 */
  body.cc-sidebar-layout .cc-products-card,
  body.cc-sidebar-layout .cc-resources-card,
  body.cc-sidebar-layout .cc-affiliate-card,
  body.cc-sidebar-layout .cc-quick-card,
  body.cc-sidebar-layout .cc-news-card,
  html.cc-layout-sidebar .cc-products-card,
  html.cc-layout-sidebar .cc-resources-card,
  html.cc-layout-sidebar .cc-affiliate-card,
  html.cc-layout-sidebar .cc-quick-card,
  html.cc-layout-sidebar .cc-news-card {
    grid-column: span 1;
  }
}

/* ========================================
   17. 横版模式
   ======================================== */

body.cc-horizontal-layout .user-center-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ========================================
   18. 页面背景
   ======================================== */

body {
  background: #f7fbff;
}

body.cc-sidebar-layout,
html.cc-layout-sidebar body {
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  background-attachment: fixed;
}

/* ========================================
   19. 通用表单组件
   ======================================== */

.cc-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  padding: 28px;
  margin-bottom: 24px;
}

.cc-form-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2563eb;
  display: inline-block;
}

.cc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

@media (max-width: 768px) {
  .cc-form-grid {
    grid-template-columns: 1fr;
  }
  
  .cc-form-card {
    padding: 20px;
  }
}

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

.cc-form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .cc-form-group.full-width {
    grid-column: span 1;
  }
}

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

.cc-form-input,
.cc-form-control {
  width: 100%;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #f8fafc;
  transition: all 0.2s ease;
  color: #334155;
}

.cc-form-input:hover,
.cc-form-control:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.cc-form-input:focus,
.cc-form-control:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cc-form-input:disabled,
.cc-form-control:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

/* 下拉框 */
.cc-form-select {
  width: 100%;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #f8fafc 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='%2364748b' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #334155;
}

.cc-form-select:hover {
  border-color: #cbd5e1;
  background-color: #fff;
}

.cc-form-select:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Select2 下拉框美化 */
.select2-container--default .select2-selection--single {
  height: 44px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  padding: 0 14px !important;
  transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
  border-color: #cbd5e1 !important;
  background: #fff !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 0 !important;
  color: #334155 !important;
  font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #64748b transparent transparent transparent !important;
  border-width: 5px 5px 0 5px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #2563eb transparent !important;
  border-width: 0 5px 5px 5px !important;
}

/* 下拉菜单容器 */
.select2-dropdown {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden;
  margin-top: 4px !important;
}

.select2-container--default .select2-results__option {
  padding: 12px 16px !important;
  font-size: 14px;
  color: #334155;
  transition: all 0.15s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
}

.select2-search--dropdown {
  padding: 12px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #2563eb !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select2-results {
  max-height: 280px !important;
}

.select2-results__options {
  padding: 4px 0 !important;
}

/* 单选框 */
.cc-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-radio-item {
  position: relative;
}

.cc-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-radio-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cc-radio-item label::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cc-radio-item input[type="radio"]:checked + label {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.cc-radio-item input[type="radio"]:checked + label::before {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 3px #fff;
}

/* 复选框 */
.cc-checkbox-item {
  position: relative;
  display: inline-flex;
}

.cc-checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-checkbox-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cc-checkbox-item label::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cc-checkbox-item input[type="checkbox"]:checked + label {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.cc-checkbox-item input[type="checkbox"]:checked + label::before {
  border-color: #2563eb;
  background: #2563eb 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='%23fff' d='M10 3L4.5 8.5 2 6'/%3E%3C/svg%3E") no-repeat center;
  background-size: 12px;
}

/* 文件上传 */
.cc-upload-box {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cc-upload-box:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.cc-upload-icon {
  font-size: 32px;
  color: #2563eb;
  margin-bottom: 8px;
}

.cc-upload-text {
  font-size: 14px;
  color: #64748b;
}

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

.cc-upload-preview img {
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.cc-upload-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}

/* 提交按钮 */
.cc-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.cc-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.cc-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 通用提示框 */
.cc-tip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin: 16px 0;
}

.cc-tip-box.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.cc-tip-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.cc-tip-box.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.cc-tip-box.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.cc-tip-box .cc-submit-btn,
.cc-tip-box .cc-verify-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* ========================================
   20. 状态徽章
   ======================================== */

.cc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.cc-status-badge.success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.cc-status-badge.pending {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.cc-status-badge.failed,
.cc-status-badge.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.cc-status-badge.info {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* ========================================
   21. 状态图标（圆形大图标）
   ======================================== */

.cc-status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #fff;
}

.cc-status-icon.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.cc-status-icon.pending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  animation: cc-pulse 2s ease-in-out infinite;
}

.cc-status-icon.failed,
.cc-status-icon.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.cc-status-icon.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes cc-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
}

/* ========================================
   22. 信息展示框
   ======================================== */

.cc-info-box {
  max-width: 480px;
  margin: 24px auto 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  text-align: left;
}

.cc-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

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

.cc-info-label {
  color: #64748b;
}

.cc-info-value {
  color: #0f172a;
  font-weight: 500;
}

/* ========================================
   支付弹窗 - 透明背景（预加载防止闪烁）
   ======================================== */

#pay .modal-content,
.cc-pay-modal .modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#pay .modal-body,
.cc-pay-modal .modal-body {
  padding: 0 !important;
  background: transparent !important;
}

#pay .modal-header,
.cc-pay-modal .modal-header {
  display: none !important;
}

/* 弹窗遮罩统一透明黑色 */
.modal-backdrop {
  background-color: #0f172a !important;
}

.modal-backdrop.show {
  opacity: 0.75 !important;
}

/* 防止弹窗打开时页面元素错位 */
body.modal-open {
  padding-right: 0 !important;
  overflow: hidden;
}

/* ========================================
   常用功能快捷入口
   ======================================== */

.cc-shortcuts-card {
  grid-column: 1 / -1 !important;
  padding: 20px !important;
}

.cc-shortcuts-card:hover {
  transform: none !important;
}

.cc-shortcuts-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 16px !important;
}

.cc-shortcut-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  border: 1px solid transparent !important;
}

.cc-shortcut-item:hover {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-2px) !important;
}

.cc-shortcut-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.cc-shortcut-icon i {
  font-size: 24px !important;
  color: #fff !important;
}

.cc-shortcut-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.cc-shortcut-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 2px !important;
  line-height: 1.4 !important;
}

.cc-shortcut-desc {
  font-size: 12px !important;
  color: #94a3b8 !important;
  line-height: 1.4 !important;
}

/* 响应式 */
@media (max-width: 1400px) {
  .cc-shortcuts-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .cc-shortcuts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .cc-shortcuts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .cc-shortcut-item {
    padding: 12px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
  
  .cc-shortcut-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  
  .cc-shortcut-icon i {
    font-size: 22px !important;
  }
  
  .cc-shortcut-title {
    font-size: 13px !important;
  }
  
  .cc-shortcut-desc {
    font-size: 11px !important;
  }
}

