/* ============================================
   天羽纺织 - 首页东方雅韵视觉
   ============================================ */

/* 1. 水墨英雄区 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl) var(--container-padding);
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(46, 134, 171, 0.25), transparent 55%),
              radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.25), transparent 60%);
  opacity: 0.8;
  z-index: -2;
  animation: inkPulse 18s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width="140" height="140" viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 70h140M70 0v140" stroke="rgba(255,255,255,0.04)" stroke-width="1"/%3E%3C/svg%3E');
  opacity: 0.5;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-lg);
}

.hero-eyebrow {
  font-size: var(--font-size-sm);
  letter-spacing: 0.5em;
  color: var(--text-light);
}

.hero-title {
  font-family: var(--font-family-main);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.1;
  color: var(--primary-color);
}

.hero-title span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  line-height: var(--line-height-relaxed);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.hero-visual {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--box-shadow-xl);
  min-height: 400px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform var(--transition-slow);
}

.hero-visual::after {
  content: '丝绸之路 · 徽韵今来';
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: rgba(255, 253, 247, 0.85);
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  letter-spacing: 0.3em;
  border-radius: 999px;
}

.hero-visual:hover img {
  transform: scale(1.05);
}

@keyframes inkPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1) translate(-3%, -3%); }
}

/* 2. 英雄区指标 */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.hero-metric {
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.hero-metric strong {
  display: block;
  font-size: var(--font-size-3xl);
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  letter-spacing: 0.5em;
  color: var(--text-light);
}

.hero-scroll-indicator span {
  font-size: 12px;
}

.hero-scroll-indicator::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.8));
  animation: scrollPulse 2.5s infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0.4); opacity: 0.2; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* 3. 卷轴品牌故事 */
.brand-scroll {
  padding: var(--spacing-3xl) 0;
}

.scroll-track {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--spacing-lg);
}

.scroll-card {
  min-width: 320px;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-xl);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 231, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.35);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.scroll-card::before,
.scroll-card::after {
  content: '';
  position: absolute;
  width: 24px;
  top: 12px;
  bottom: 12px;
  background: url('data:image/svg+xml,%3Csvg width="24" height="200" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="24" height="200" rx="12" fill="rgba(212,175,55,0.25)"/%3E%3C/svg%3E');
}

.scroll-card::before { left: -12px; }
.scroll-card::after { right: -12px; }

.scroll-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.scroll-card p {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.scroll-timeline {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-lg);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--text-muted);
}

/* 4. 产品横向画廊 */
.product-gallery {
  padding: var(--spacing-3xl) 0;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.gallery-controls {
  display: flex;
  gap: var(--spacing-sm);
}

.gallery-control {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card-content {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.gallery-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.gallery-tag {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 134, 171, 0.3);
  font-size: 12px;
  color: var(--accent-blue);
}

/* 5. 工艺展示 */
.craft-section {
  padding: var(--spacing-3xl) 0;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
}

.craft-card {
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-xl);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(46, 134, 171, 0.2);
  position: relative;
}

.craft-step {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 80px;
  color: rgba(46, 134, 171, 0.1);
  font-family: var(--font-family-main);
}

.craft-card h3 {
  margin-bottom: var(--spacing-sm);
}

.craft-card p {
  color: var(--text-light);
}

.craft-flow {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.craft-flow span {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  border-radius: var(--border-radius-full);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  text-align: center;
}

/* 6. 荣誉展示 */
.honor-section {
  padding: var(--spacing-3xl) 0;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
}

.honor-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.honor-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-md);
}

.honor-stamp {
  position: absolute;
  top: 16px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.5);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-main);
  transform: rotate(-15deg);
  opacity: 0.6;
}

/* 7. 联系 CTA */
.ink-cta {
  margin: var(--spacing-3xl) 0;
  border-radius: var(--border-radius-xl);
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.3), transparent 60%),
              linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(246, 240, 231, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
}

.ink-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width="80" height="80" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="40" cy="40" r="39" stroke="rgba(46,134,171,0.1)" stroke-width="2" fill="none"/%3E%3C/svg%3E');
  opacity: 0.3;
}

.ink-cta-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  align-items: center;
}

.cta-text {
  flex: 1;
  min-width: 280px;
}

.cta-text h3 {
  font-size: var(--font-size-3xl);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-width: 240px;
}

.cta-hotline {
  font-size: var(--font-size-xl);
  color: var(--accent-color);
  font-weight: var(--font-weight-bold);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 134, 171, 0.15);
  color: var(--accent-blue);
  font-size: 12px;
}

/* 8. 浮动联系条 */
.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition-base);
}

.floating-contact.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.floating-contact button,
.floating-contact a {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(45, 52, 54, 0.9);
  color: var(--secondary-color);
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: var(--spacing-2xl);
  }

  .gallery-track {
    grid-auto-columns: minmax(240px, 1fr);
  }

  .ink-cta-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
