/* 游戏账号租赁平台 - 主样式文件 */

/* 全局样式 */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f5f5;
}

/* 导航栏样式 */
.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* 主要内容区域 */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  border-bottom: none;
  padding: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

/* 按钮样式 */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  box-shadow: 0 2px 5px rgba(0,123,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,123,255,0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #1e7e34);
  box-shadow: 0 2px 5px rgba(40,167,69,0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #bd2130);
  box-shadow: 0 2px 5px rgba(220,53,69,0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* 表单样式 */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-group label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* 筛选区域 */
.filter-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06);
 
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #6f42c1, #e83e8c, #fd7e14, #28a745);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 筛选器标题 */
.filter-section .card-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 0;
  height: 2rem;
  display: flex;
  align-items: center;
}

/* 筛选器卡片体对齐 */
.filter-section .card-body {
  padding-top: 0.65rem;
}

/* 租赁规则标题对齐 */
.card.border-warning .card-header {
  height: 2rem;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
}

.card.border-warning .card-header h6 {
  margin: 0;
  line-height: 1;
}

/* 租赁规则卡片体对齐 */
.card.border-warning .card-body {
  padding-top: 1.25rem;
}

.filter-section .card-title i {
  color: #007bff;
  font-size: 1.1em;
  margin-right: 0.5rem;
}

/* 表单标签 */
.filter-section .form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.filter-section .form-label::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(135deg, #007bff, #6f42c1);
  border-radius: 2px;
  margin-right: 8px;
}

/* 选择框样式 */
.filter-section .form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
}

.filter-section .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.filter-section .form-select:hover {
  border-color: #007bff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 搜索输入框 */
.filter-section .form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px 0 0 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.filter-section .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.filter-section .form-control:hover {
  border-color: #007bff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 按钮样式 */
.filter-section .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-section .btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: 2px solid #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.filter-section .btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.filter-section .btn-outline-secondary {
  background: #fff;
  border: 2px solid #6c757d;
  color: #6c757d;
  border-radius: 12px;
  margin-left: 0.5rem;
}

.filter-section .btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* 输入组样式 */
.filter-section .input-group {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.filter-section .input-group:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .filter-section {
    padding: 1.5rem;
    margin: -2rem 0 1.5rem 0;
    border-radius: 16px;
  }
  
  .filter-section .card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .filter-section .form-select,
  .filter-section .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .filter-section .btn {
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 576px) {
  .filter-section {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .filter-section .btn-outline-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* 账号卡片 */
.account-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.account-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.account-card .card-footer {
  background: var(--light-color);
  border-top: 1px solid #dee2e6;
  margin-top: auto;
}

.account-image {
  height: 200px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.price-tag {
  background: linear-gradient(135deg, var(--success-color), #1e7e34);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-available {
  background-color: #d4edda;
  color: #155724;
}

.status-rented {
  background-color: #f8d7da;
  color: #721c24;
}

.status-maintenance {
  background-color: #fff3cd;
  color: #856404;
}

/* 分页样式 */
.pagination {
  justify-content: center;
  margin-top: 2rem;
}

.page-link {
  border-radius: var(--border-radius);
  margin: 0 0.25rem;
  border: 2px solid #dee2e6;
  color: var(--primary-color);
  transition: var(--transition);
}

.page-link:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border-color: var(--primary-color);
}

/* 模态框样式 */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  border-bottom: none;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* 警告消息 */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f1b0b7);
  color: #721c24;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
}

/* 页脚样式 */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer h5 {
  color: white;
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: white;
}

/* 统计卡片 */
.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 1rem;
}

.stats-card h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stats-card p {
  margin: 0;
  opacity: 0.9;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* 广告轮播样式 */
.banner-carousel-section {
    position: relative;
    overflow: hidden;
    max-width: 80%;
    margin: 0 auto 2rem auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.banner-slide {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px);
}

.banner-content {
    color: white;
    z-index: 2;
    position: relative;
    animation: slideInFromLeft 0.8s ease-out;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-description {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    font-weight: 300;
}

.banner-actions {
    margin-top: 2.5rem;
}

.banner-actions .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}

.banner-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.banner-actions .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.banner-actions .btn:hover::before {
    left: 100%;
}

/* 轮播控制按钮样式 */
.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 轮播指示器样式 */
.carousel-indicators {
    bottom: 25px;
    margin-bottom: 0;
    gap: 8px;
}

.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.carousel-indicators button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.carousel-indicators button.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.carousel-indicators button.active::before {
    width: 8px;
    height: 8px;
}

.carousel-indicators button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* 加载状态样式 */
.banner-loading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.banner-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.banner-loading .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.4em;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

/* 默认横幅样式 */
.banner-fallback {
    min-height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.banner-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

/* 轮播动画效果 */
.carousel-item {
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active {
    animation: slideInScale 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 动画关键帧 */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-carousel-section {
        max-width: 95%;
        border-radius: 15px;
    }
    
    .banner-slide {
        height: 175px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-description {
        font-size: 1.1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .banner-slide {
        height: 140px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-actions .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner-slide {
    height: 200px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .banner-actions .btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control-prev {
    left: 15px;
  }
  
  .carousel-control-next {
    right: 15px;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
  
  .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .filter-section {
    margin: -2rem 0 1rem 0;
    padding: 1.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .main-content {
    padding: 1rem 0;
  }
  
  .filter-section {
    margin: -1.5rem 0 1rem 0;
    padding: 1rem;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* 图片上传样式 */
.upload-area {
  border: 2px dashed #dee2e6;
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary-color);
  background-color: #e3f2fd;
}

.upload-area.dragover {
  border-color: var(--primary-color);
  background-color: #e3f2fd;
  transform: scale(1.02);
}

.upload-placeholder {
  cursor: pointer;
}

.image-preview-item {
  position: relative;
  margin-bottom: 1rem;
}

.image-preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 2px solid #dee2e6;
  transition: var(--transition);
}

.image-preview-item:hover img {
  border-color: var(--primary-color);
}

.image-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--danger-color);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.image-remove-btn:hover {
  background-color: #c82333;
  transform: scale(1.1);
}

.image-upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: rgba(0,0,0,0.1);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  overflow: hidden;
}

.image-upload-progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

/* 图片轮播样式优化 */
.carousel-control-prev,
.carousel-control-next {
  width: 30px;
  height: 30px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  opacity: 0.8;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 12px;
  height: 12px;
}

/* 账号表格美化样式 */
.table-responsive {
  border-radius: var(--border-radius);
  overflow-x: auto;
  overflow-y: hidden;
}

.table {
  margin-bottom: 0;
  min-width: 1200px; /* 确保表格有足够宽度显示所有列 */
}

.table thead th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  font-weight: 600;
  color: var(--dark-color);
  padding: 1rem 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
}

.table tbody tr {
  transition: var(--transition);
  border: none;
}

.table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table tbody td {
  padding: 1rem 0.75rem;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

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

/* 账号图片样式 */
.table tbody td img {
  transition: var(--transition);
  border: 2px solid #e9ecef;
}

.table tbody td img:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

/* 徽章样式优化 */
.badge {
  font-size: 0.75rem;
  padding: 0.4em 0.6em;
  border-radius: 6px;
  font-weight: 500;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
  color: white !important;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-light {
  background-color: #f8f9fa !important;
  color: #495057 !important;
  border: 1px solid #dee2e6;
}

/* 按钮组样式 */
.btn-group-sm .btn {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

.btn-group-sm .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group-sm .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* 表格卡片样式 */
#accountsContainer.card {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

#accountsContainer .card-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  padding: 1.25rem;
}

#accountsContainer .card-header h5 {
  margin: 0;
  font-weight: 600;
}

#accountsContainer .card-header .badge {
  font-size: 0.8rem;
  padding: 0.5em 0.8em;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.85rem;
    border-radius: 0; /* 移动端去掉圆角以节省空间 */
  }
  
  .table {
    min-width: 1000px; /* 移动端稍微减少最小宽度 */
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.5rem 0.25rem;
  }
  
  .btn-group-sm .btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0.3em 0.5em;
  }
}

/* 图片模态框样式 */
.modal-lg {
  max-width: 800px;
}

.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-body img {
  max-height: 500px;
  object-fit: contain;
}

/* 文本截断样式 */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 价格显示样式 */
.h6.text-primary {
  font-weight: 700;
  font-size: 1.1rem;
}

/* 状态徽章动画 */
.badge.bg-success {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}