/* 边见文化前台优雅配色主题样式 */

:root {
  /* 主色调：温和的绿色系 */
  --primary-green: #52c41a;
  --light-green: #b7eb8f;
  --dark-green: #389e0d;
  
  /* 辅助色调：优雅的中性色 */
  --primary-blue: #1890ff;
  --primary-gray: #595959;
  --light-gray: #f5f5f5;
  --dark-gray: #262626;
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-green: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-elegant: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  
  /* 文本和背景 */
  --text-color: #262626;
  --text-secondary: #8c8c8c;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --border-color: #d9d9d9;
  
  /* 强调色 */
  --accent-orange: #ff7875;
  --accent-gold: #fadb14;
  --success-color: #52c41a;
  --warning-color: #faad14;
  --error-color: #ff4d4f;
}

/* 基础样式 */
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-white);
}

/* 导航栏样式 */
.navbar {
  background: var(--gradient-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: white !important;
  font-weight: 600;
  font-size: 1.4rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 8px;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* 英雄区域样式 */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::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="20" cy="20" r="0.5" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
}

/* 页面头部样式 */
.page-header {
  background: var(--gradient-primary);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
  margin-top: 76px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--bg-white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* 产品卡片样式 */
.product-card {
  height: 100%;
  position: relative;
}

.product-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-price {
  color: var(--accent-orange);
  font-size: 1.4rem;
  font-weight: 700;
}

.product-category {
  background: var(--success-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-weight: 500;
}

/* 按钮样式 */
.btn-primary {
  background: var(--primary-blue);
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.btn-primary:hover {
  background: #40a9ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

.btn-success {
  background: var(--success-color);
  border: none;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-radius: 20px;
  font-weight: 600;
}

/* 表单样式 */
.form-control {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: 14px;
}

/* 产品详情页样式 */
.product-image {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-info {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.order-form {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 支付页面样式 */
.payment-container {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.payment-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

.order-number {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  border-left: 4px solid var(--primary-blue);
}

.notice-box {
  background: var(--gradient-elegant);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.notice-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

/* 特色区域样式 */
.features-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* 联系页面样式 */
.contact-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

/* 页脚样式 */
.footer {
  background: var(--dark-gray);
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer a:hover {
  color: white;
  transform: translateX(3px);
}

.footer .list-unstyled li {
  margin-bottom: 8px;
}

/* 工具类 */
.text-primary {
  color: var(--primary-blue) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.bg-light-custom {
  background-color: var(--bg-light) !important;
}

.border-primary {
  border-color: var(--primary-blue) !important;
}

/* 面包屑导航 */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* 徽章样式 */
.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
}

.badge.bg-success {
  background-color: var(--success-color) !important;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 分页样式 */
.pagination .page-link {
  color: var(--primary-blue);
  border-color: var(--border-color);
  border-radius: 8px;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .product-card .card-img-top {
    height: 200px;
  }
  
  .product-image {
    height: 250px;
  }

  .page-header {
    padding: 60px 0 40px;
    margin-top: 70px;
  }

  .features-section, .contact-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .payment-container {
    padding: 2rem;
    margin: 20px;
  }

  .contact-card, .product-info, .order-form {
    padding: 1.5rem;
  }
} 