body {
  background-color: #f5f5f5;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  color: #333;
}

.row {
  margin-top: 20px;
}

/* 页眉样式 */
.navbar {
  border-radius: 0;
  margin-bottom: 0;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 24px;
}

/* 商品卡片样式 */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card .caption h4 {
  color: #333;
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
}

.price {
  color: #e74c3c;
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 8px;
}

/* 分类图标样式 */
.category-item {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.category-item:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
}

.category-icon {
  margin-bottom: 10px;
}

/* 促销区域样式 */
.promotion-item {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.promotion-item h4 {
  color: white;
  margin-top: 0;
}

.promotion-item a {
  background-color: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}

/* 公告列表样式 */
.notice-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list a {
  color: #666;
  text-decoration: none;
}

.notice-list a:hover {
  color: #e74c3c;
}

/* 页脚样式 */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer h4 {
  color: #ecf0f1;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.footer ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #3498db;
}

.footer-info {
  margin-top: 20px;
}

.footer-info p {
  margin: 5px 0;
  font-size: 14px;
}

.icp-info a, .contact-info a {
  color: #3498db;
  text-decoration: none;
}

.icp-info a:hover, .contact-info a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.separator {
  color: #7f8c8d;
}

.copyright {
  color: #95a5a6;
  margin-top: 15px;
  font-size: 12px;
}

/* 轮播图样式 */
.carousel-caption {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 8px;
}

/* 缩略图样式 */
.thumbnail-images {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnail-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-images img.active,
.thumbnail-images img:hover {
  border-color: #3498db;
}

/* 商品详情页样式 */
.product-info h1 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.product-tags {
  margin-bottom: 20px;
}

.product-price {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.current-price .price-number {
  font-size: 28px;
  color: #e74c3c;
  font-weight: bold;
}

.product-stock {
  margin: 15px 0;
  padding: 10px;
  background-color: #e8f4f8;
  border-radius: 5px;
}

.quantity-selector {
  display: inline-block;
  margin-right: 20px;
}

.action-buttons .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

/* 购物车样式 */
.empty-cart {
  padding: 50px 0;
  text-align: center;
}

.cart-icon {
  margin-bottom: 20px;
}

.summary-item {
  padding: 8px 0;
  font-size: 16px;
}

.summary-total {
  font-size: 18px;
  font-weight: bold;
  padding: 15px 0;
  border-top: 2px solid #eee;
}

.total-price {
  color: #e74c3c;
  font-size: 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 18px;
  }
  
  .product-card .caption h4 {
    font-size: 14px;
  }
  
  .price {
    font-size: 16px;
  }
  
  .current-price .price-number {
    font-size: 22px;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer h4 {
    margin-top: 20px;
  }
}

label {
  color: #555;
  font-weight: bold;
}

#btn-submit {
  background: #3498db;
  background: linear-gradient(to bottom, #3498db 0%, #2980b9 100%);
  border: none;
  color: #FFF;
  margin-top: 10px !important;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

#btn-submit:hover {
  background: linear-gradient(to bottom, #2980b9 0%, #3498db 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.table-responsive {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table * {
  border-color: #ddd !important;
}

.mytitle {
  color: #2c3e50 !important;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #3498db;
}

nav {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.active a {
  background-color: #3498db !important;
  color: #fff !important;
}

.panel {
  border-color: #ddd;
  background-color: #fff;
  color: #333 !important;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel-heading {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
  color: #fff !important;
  border-color: #3498db !important;
  font-weight: bold;
  border-radius: 8px 8px 0 0 !important;
}

.progress {
  position: relative;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.progresstext {
  position: absolute;
  text-align: center;
  color: #fff;
  width: 100%;
  font-weight: bold;
  line-height: 20px;
}

/* 面包屑导航样式 */
.breadcrumb {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px 15px;
}

.breadcrumb > li + li:before {
  content: "/\00a0";
  color: #ccc;
}

/* 表单样式优化 */
.form-control {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.input-group-addon {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
}

/* 按钮样式统一 */
.btn {
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 标签样式 */
.label {
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: normal;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 卡片悬停效果 */
.card {
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.card:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  transform: translateY(-5px);
}

/* 响应式图片 */
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 文字截断 */
.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 边距工具类 */
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }
.p-10 { padding: 10px; }
.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pl-10 { padding-left: 10px; }
.pr-10 { padding-right: 10px; }

/* 面包屑导航样式 */
.breadcrumb {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px 15px;
}

.breadcrumb > li + li:before {
  content: "/\00a0";
  color: #ccc;
}

/* 表单样式优化 */
.form-control {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.input-group-addon {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
}

/* 按钮样式统一 */
.btn {
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 标签样式 */
.label {
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: normal;
}
