/* Berlin Packaging - Custom Design System */

:root {
  /* 全新配色方案 */
  --primary-navy: #1a3a52;
  --primary-gold: #d4a056;
  --accent-teal: #2d9f87;
  --neutral-dark: #4a4a4a;
  --neutral-light: #f5f7fa;
  --white: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #1a3a52 0%, #2d5f7e 100%);
  --gradient-gold: linear-gradient(135deg, #d4a056 0%, #e6b875 100%);
  --gradient-teal: linear-gradient(135deg, #2d9f87 0%, #4db8a0 100%);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(26, 58, 82, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 58, 82, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 58, 82, 0.16);
  --shadow-xl: 0 16px 48px rgba(26, 58, 82, 0.24);

  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* 字体 */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Bootstrap颜色覆盖 */
.bg-primary { background: var(--gradient-primary) !important; }
.bg-secondary { background-color: var(--primary-gold) !important; }
.bg-success { background-color: var(--accent-teal) !important; }
.text-primary { color: var(--primary-navy) !important; }
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-primary {
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
  background: transparent;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}

/* ai-img 占位符样式 */
ai-img {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}
ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 14px;
  text-align: center;
  padding: 1rem;
  max-width: 80%;
  z-index: 1;
}
ai-img::after {
  content: '🖼️';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.3;
  font-size: 20px;
}
ai-img.rounded-circle { border-radius: 50%; }
ai-img.card-img-top { border-radius: 12px 12px 0 0; }

/* 顶部折扣提示栏 - 新设计 */
.promo-bar {
  background: var(--gradient-gold);
  padding: 0.75rem 0;
  position: relative;
  overflow: hidden;
}
.promo-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  to { left: 100%; }
}
.promo-bar .btn-light {
  background: var(--white);
  color: var(--primary-navy);
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}
.promo-bar .btn-light:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: scale(1.05);
}

/* 顶部工具栏 - 新设计 */
.top-bar {
  background: var(--primary-navy);
  color: var(--white);
  font-size: 0.875rem;
}
.top-bar a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}
.top-bar a:hover {
  color: var(--primary-gold);
}
.top-bar i {
  color: var(--primary-gold);
}

/* 导航栏 - 全新设计 */
.navbar {
  background: var(--white) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}
.navbar-brand ai-img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}
.navbar.scrolled .navbar-brand ai-img {
  height: 40px;
}
.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-navy) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Hero区域 - 全新设计 */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  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 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}
.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 统计数据卡片 */
.stats-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-gold);
}
.stats-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.stats-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}
.stats-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 产品/解决方案卡片 - 新设计 */
.solution-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid rgba(26, 58, 82, 0.08);
  height: 100%;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-gold);
}
.solution-card ai-img {
  height: 250px;
  width: 100%;
  transition: transform 0.4s ease;
}
.solution-card:hover ai-img {
  transform: scale(1.08);
}
.solution-card .card-body {
  padding: 2rem;
}
.solution-card .card-title {
  font-size: 1.5rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  font-weight: 700;
}
.solution-card .card-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.solution-card .btn {
  border-radius: 25px;
  padding: 0.6rem 1.8rem;
}

/* 认证Logo墙 */
.certification-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}
.certification-item {
  flex: 0 0 auto;
  padding: 1rem 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.certification-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* 作者信息卡片 */
.author-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary-gold);
}
.author-card ai-img {
  width: 150px;
  height: 150px;
  border: 4px solid var(--primary-navy);
  box-shadow: var(--shadow-md);
}
.author-card h4 {
  color: var(--primary-navy);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.author-card .text-primary {
  color: var(--primary-gold) !important;
  font-weight: 600;
}
.author-card .badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}
.author-card .badge.bg-primary {
  background: var(--gradient-primary) !important;
}

/* 面包屑 */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.breadcrumb-item a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb-item a:hover {
  color: var(--primary-gold);
}
.breadcrumb-item.active {
  color: var(--text-secondary);
}
.breadcrumb-item+.breadcrumb-item::before {
  content: '→';
  color: var(--text-secondary);
}

/* 页脚 */
footer {
  background: var(--primary-navy);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}
footer h5 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gold);
}
footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}
footer a:hover {
  color: var(--primary-gold);
  transform: translateX(5px);
}
footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 浮动按钮 - 新设计 */
.floating-buttons {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.floating-buttons .btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: none;
}
.floating-buttons .btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-xl);
}
.floating-buttons .btn-success {
  background: #25d366;
}
.floating-buttons .btn-primary {
  background: var(--gradient-primary);
}
.floating-buttons .btn-secondary {
  background: var(--neutral-dark);
  opacity: 0;
  transition: all 0.3s ease;
}
.floating-buttons .btn-secondary.visible {
  opacity: 1;
}

/* 表单样式 */
.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 0.2rem rgba(26, 58, 82, 0.1);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Modal样式 */
.modal-header {
  background: var(--gradient-primary);
  color: var(--white);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

/* 时间线样式 */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-gold);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-navy);
}
.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}
.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* 博客卡片 */
.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.blog-card ai-img {
  height: 220px;
  width: 100%;
}
.blog-card .card-body {
  padding: 1.5rem;
}
.blog-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.blog-meta i {
  color: var(--primary-gold);
  margin-right: 0.25rem;
}

/* 响应式调整 */
@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .stats-number { font-size: 2.5rem; }
  .floating-buttons { right: 1rem; bottom: 1rem; }
  .floating-buttons .btn { width: 50px; height: 50px; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2rem; }
  .hero-section { min-height: 500px; }
  .stats-card { padding: 1.5rem 1rem; }
  .solution-card .card-body { padding: 1.5rem; }
  .timeline { padding-left: 2rem; }
  .timeline-item::before { left: -2.5rem; }
}

/* 动画类 */
.fade-in {
  animation: fadeIn 0.8s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 工具类 */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gold {
  border-color: var(--primary-gold) !important;
}

.bg-light-navy {
  background-color: rgba(26, 58, 82, 0.05) !important;
}
