/* ====================================
   十方药浴 · 品牌招商网站
   东方草本康养美学风格
   ==================================== */

/* 基础 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* 字体 */
.font-serif-sc { font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif; }
.font-sans-sc { font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* ======== Hero 背景备用 ======== */
.hero-bg-fallback {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(74, 124, 36, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(107, 68, 35, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(45, 80, 22, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #1a3010 0%, #2d5016 30%, #3d1a08 70%, #1a0d03 100%);
}

/* ======== 跑马灯 ======== */
.marquee-track {
  animation: marquee 30s linear infinite;
  display: flex;
  gap: 4rem;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======== 导航 ======== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ======== 产品卡片 ======== */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.2);
}

/* ======== 弹窗 ======== */
#product-modal {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======== 优势卡片悬停 ======== */
.advantage-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.advantage-card:hover {
  border-color: #c9a84c !important;
}

/* ======== 画廊 ======== */
.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ======== Logo符号 ======== */
.logo-symbol {
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  position: relative;
}

.logo-symbol::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ======== 赛道标签动画 ======== */
.race-tag {
  transition: all 0.3s ease;
  cursor: default;
}

.race-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}

/* ======== 表单美化 ======== */
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.1) inset !important;
  -webkit-text-fill-color: #f8f4ed !important;
}

select option {
  background: #6b4423;
  color: #f8f4ed;
}

/* ======== 市场统计卡片 ======== */
.market-stat {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.market-stat:hover {
  transform: translateY(-4px);
}

/* ======== 客群卡片 ======== */
.customer-card {
  transition: all 0.3s ease;
  cursor: default;
}

.customer-card:hover {
  transform: translateY(-2px);
}

/* ======== 加盟模式卡片 ======== */
.model-card {
  transition: all 0.3s ease;
}

/* ======== 支持项目 ======== */
.support-item {
  transition: all 0.3s ease;
  cursor: default;
}

/* ======== 分隔线装饰 ======== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #c9a84c, transparent);
}

/* ======== 东方装饰纹 ======== */
.oriental-border {
  position: relative;
}

.oriental-border::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  pointer-events: none;
}

/* ======== 滚动条美化 ======== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dcc46a;
}

/* ======== 响应式调整 ======== */
@media (max-width: 768px) {
  .marquee-track {
    animation-duration: 20s;
  }
  
  .gallery-grid {
    gap: 2px;
  }
}

/* ======== 加载动画 ======== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

/* ======== 背景纹理 ======== */
.bg-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ======== 图片渐进加载 ======== */
img {
  transition: opacity 0.3s ease;
}

img[loading] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}
