/* ============================================================
   XINRONGYUAN — B2B Trade Website Stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
/* NOTE: Variables now defined in templates/header.php for theme switching */
/*
:root {
  --primary: #5F7B55;
  --primary-light: #C29A5F;
  --accent: #8A9A7B;
  --accent-light: #A7B89A;
  --dark: #3D3832;
  --light: #FAF6EF;
  --text: #3D3832;
  --text-light: #7A7266;
  --white: #ffffff;
  --border: #E5DCCB;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(95,123,85,0.08);
  --shadow-md: 0 8px 24px rgba(95,123,85,0.12);
  --shadow-lg: 0 16px 40px rgba(95,123,85,0.16);
  --header-h: 72px;
  --transition: all 0.3s ease;
}
*/

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 860px;
}

section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section-title {
  font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-title.light {
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.0625rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-link.active {
  color: var(--primary);
}

.lang-switch {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 130%);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}

.page-title {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.page-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}

/* ---------- Home hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 32px;
}

/* ---------- Category cards (home) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.category-card .card-body {
  padding: 24px;
}

.category-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ---------- Products page ---------- */
.product-category {
  padding: 72px 0;
}

.category-header {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.category-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.category-index {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
}

.category-intro h2 {
  font-size: 1.875rem;
  margin: 8px 0 14px;
}

.category-intro p {
  color: var(--text-light);
  font-size: 1.0625rem;
  max-width: 620px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-name {
  font-size: 1.0625rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light);
}

.product-specs {
  flex: 1;
  margin-bottom: 18px;
}

.product-specs li {
  font-size: 0.875rem;
  color: var(--text-light);
  padding: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.spec-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.product-moq {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.product-moq strong {
  color: var(--primary);
}

/* ---------- CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 1.0625rem;
}

/* ---------- About page ---------- */
.about-hero {
  padding: 130px 0;
  text-align: center;
  color: var(--white);
}

.about-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 14px;
}

.about-hero p {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.9);
}

.intro-text p {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  color: var(--text);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px 32px;
  text-align: center;
  border-top: 4px solid var(--accent);
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.mv-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.mv-card h3 {
  margin-bottom: 12px;
  font-size: 1.375rem;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.value-icon {
  font-size: 2.25rem;
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Stats ---------- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 20px 10px;
}

.stat-number,
.stat-suffix {
  display: inline-block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1.1;
}

.stat-label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrap,
.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
}

.contact-form-wrap h2,
.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.req {
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--light);
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(208,162,84, 0.15);
}

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.9375rem;
}

.alert-success {
  background: #EDF3E8;
  color: #7BA05B;
  border: 1px solid #CFE6C4;
}

.alert-error {
  background: #fdedec;
  color: #c0392b;
  border: 1px solid #f5c6c3;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--light);
}

.info-item:last-of-type {
  border-bottom: none;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 3px;
}

.info-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  word-break: break-word;
}

.info-hours {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ---------- Chatbot ---------- */
.chatbot-section {
  padding: 60px 0 90px;
}

.chat-window {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
  background: var(--light);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 82%;
}

.chat-msg.bot {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.user {
  align-self: flex-start;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-msg.user .chat-bubble {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.bot .chat-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble.typing {
  opacity: 0.7;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

.chat-input-area {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--light);
  transition: var(--transition);
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
}

/* ---------- 404 ---------- */
.error-page {
  padding: 110px 0;
  text-align: center;
}

.error-code {
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 64px 24px 44px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-about {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-contact li {
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* No-JS fallback: keep content visible if IntersectionObserver never runs */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  /* .product-grid removed - force 4 columns always */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-header {
    grid-template-columns: 1fr;
  }
  .category-image img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--light);
  }

  .lang-switch {
    margin: 14px 0 10px;
    text-align: center;
  }

  .nav-cta {
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .page-title {
    font-size: 1.875rem;
  }

  .about-hero {
    padding: 80px 0;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .category-grid,
  .mv-grid,
  .values-grid,
  .contact-layout,
  .form-row {
    grid-template-columns: 1fr;
  }
  /* .product-grid removed - force 4 columns always */

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number,
  .stat-suffix {
    font-size: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 24px 32px;
  }

  .contact-form-wrap,
  .contact-info {
    padding: 30px 22px;
  }

  .chat-window {
    height: 480px;
  }

  .chat-msg {
    max-width: 92%;
  }
}

/* 手机：产品网格单列 */
/* @media (max-width: 480px) { .product-grid removed - force 4 columns always } */

/* ========== 中老年幸福生活主题 - 场景导航卡（手风琴展开效果） ========== */
.scene-cards {
    display: flex;
    gap: 16px;
    padding: 56px 0;
    max-width: 1280px;
    margin: 0 auto;
    align-items: stretch;
}

.scene-card {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: #F7F4EE;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(74, 63, 53, 0.08);
    transition: flex 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                transform 0.4s ease;
}

.scene-card:hover {
    flex: 2.6 1 0;
    box-shadow: 0 18px 44px rgba(74, 63, 53, 0.28);
    transform: translateY(-4px);
    z-index: 2;
}

.scene-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.scene-card:hover .scene-card__image {
    transform: scale(1.05);
}

.scene-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(74, 63, 53, 0) 0%,
        rgba(74, 63, 53, 0.15) 50%,
        rgba(74, 63, 53, 0.85) 100%
    );
}

.scene-card__label {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #4a3f35;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.scene-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    z-index: 4;
    color: #fff;
}

.scene-card__icon {
    display: none;
}

.scene-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.scene-card__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin: 0 0 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.scene-card__link {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.scene-card:hover .scene-card__link {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
    .scene-cards {
        gap: 12px;
        padding: 40px 0;
    }
    .scene-card:hover {
        flex: 1.8 1 0;
    }
}

@media (max-width: 600px) {
    .scene-cards {
        flex-direction: column;
        gap: 16px;
    }
    .scene-card,
    .scene-card:hover {
        flex: 1 1 auto;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

}