/* ========================================
   American Greetings - 全新视觉设计
   配色：温暖玫瑰金 + 金色点缀 + 奶油白
   ======================================== */

:root {
  /* 全新配色方案 - 温暖庆祝主题 */
  --primary-color: #E8505B;        /* 玫瑰金红 */
  --secondary-color: #F9A825;      /* 金色 */
  --accent-color: #5D4E6D;         /* 深紫褐 */
  --light-bg: #FFF8F0;             /* 奶油白 */
  --card-bg: #FFFFFF;
  --text-dark: #2C2C2C;
  --text-muted: #6C6C6C;
  --border-light: #F0E4D7;
  --shadow-soft: rgba(232, 80, 91, 0.1);
  --gradient-warm: linear-gradient(135deg, #E8505B 0%, #F9A825 100%);
  --gradient-elegant: linear-gradient(135deg, #5D4E6D 0%, #8B7BA8 100%);
}

/* 全局样式 */
* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* 顶部提示栏 - 庆祝风格 */
.promo-bar {
  background: var(--gradient-warm);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.promo-bar::before {
  content: '🎁';
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  opacity: 0.15;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-70%); }
}

.promo-bar .btn-light {
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.promo-bar .btn-light:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 导航栏 - 优雅现代 */
.navbar {
  padding: 1rem 0;
  border-bottom: 2px solid var(--border-light);
  background: white !important;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.6rem 1.2rem !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-warm);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 3px 3px 0 0;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 70%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar .btn-primary {
  background: var(--gradient-warm);
  border: none;
  border-radius: 25px;
  padding: 0.6rem 2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--shadow-soft);
  transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-soft);
}

/* AI图片占位符 - 礼物盒风格 */
ai-img {
  display: block;
  background: linear-gradient(135deg, #FFF8F0 0%, #F0E4D7 100%);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px dashed var(--border-light);
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 1rem;
  max-width: 80%;
  font-weight: 500;
}

ai-img::after {
  content: '🎁';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

ai-img.rounded-circle {
  border-radius: 50% !important;
  border-style: solid;
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

ai-img[logo="true"]::after {
  content: '📮';
  font-size: 1.5rem;
}

/* Hero轮播 */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--gradient-elegant);
  overflow: hidden;
}

.hero-section ai-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: 0;
  border: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 {
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content .btn {
  border-radius: 30px;
  padding: 0.9rem 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.hero-content .btn-light {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-content .btn-light:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(232, 80, 91, 0.2);
}

.card-body {
  padding: 1.8rem;
}

.card-title {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card .btn-primary {
  background: var(--gradient-warm);
  border: none;
  border-radius: 25px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card .btn-primary:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px var(--shadow-soft);
}

/* 统计数据 */
.stats-section {
  background: var(--card-bg);
  padding: 4rem 0;
  border-top: 3px solid var(--border-light);
  border-bottom: 3px solid var(--border-light);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

/* 作者信息卡 */
.author-card {
  background: white;
  border-radius: 20px;
  border-left: 6px solid var(--primary-color);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.author-card:hover {
  box-shadow: 0 12px 40px rgba(232, 80, 91, 0.15);
  transform: translateY(-5px);
}

/* 表单样式 */
.form-label {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 2px solid var(--border-light);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(232, 80, 91, 0.15);
  background: white;
}

form .btn-primary {
  background: var(--gradient-warm);
  border: none;
  border-radius: 30px;
  padding: 1rem 3rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(232, 80, 91, 0.3);
}

form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 80, 91, 0.4);
}

/* 页脚 */
footer {
  background: var(--gradient-elegant);
  color: white;
  position: relative;
  overflow: hidden;
}

footer h5 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.6rem;
}

footer a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* 浮动按钮 */
.floating-buttons .btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.5rem;
}

.floating-buttons .btn:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.floating-buttons .btn-success {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-buttons .btn-primary {
  background: var(--gradient-warm);
}

.floating-buttons .btn-secondary {
  background: var(--gradient-elegant);
}

#backToTop {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 模态框 */
.modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  background: var(--gradient-warm);
  border: none;
  padding: 1.8rem 2rem;
}

.modal-body {
  padding: 2.5rem;
  background: var(--light-bg);
}

/* 面包屑 */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .floating-buttons .btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* 辅助类 */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }
.bg-primary { background: var(--gradient-warm) !important; }

::selection {
  background: var(--primary-color);
  color: white;
}
