﻿/* ============================================
   苏然怡家 SODA ENJOY - 全局样式
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1AB394;
  --primary-dark: #159A7F;
  --primary-light: #2DBDA8;
  --primary-gradient: linear-gradient(135deg, #1AB394, #2DBDA8);
  --dark: #222222;
  --gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-en: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

body.en {
  font-family: var(--font-en);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary);
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.logo-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
}

.logo-slogan {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,0.15);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.lang-switch {
  color: var(--white);
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.header-slogan {
  display: none;
  color: var(--white);
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.9;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}

.hero-video.active {
  display: block;
}

.hero-video-mobile {
  display: none !important;
}

.hero-video-mobile.active {
  display: none !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  padding-left: 8%;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn-video:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(26,179,148,0.4);
}

.btn-video .play-icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-video .play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 2px;
}

/* ============================================
   Section Common Styles
   ============================================ */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-title-left .bar {
  width: 6px;
  height: 30px;
  background: var(--primary);
  border-radius: 3px;
}

.section-title-left h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}

/* ============================================
   About Section (Homepage)
   ============================================ */
.about-section {
  padding: 100px 0;
  background: var(--white);
}

.about-section > .container {
  max-width: 1300px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-image-box {
  position: relative;
  padding-left: 36px;
  padding-bottom: 18px;
}

.about-image-box::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80%;
  height: 93%;
  background: var(--primary);
  border-radius: 8px;
  z-index: 0;
}

.about-brand-img {
  position: relative;
  z-index: 1;
  width: calc(100% + 20px);
  margin-left: -20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-brand-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-brand-img.no-img {
  height: 320px;
  background: linear-gradient(135deg, #e8f5f1, #d4ede6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-brand-img.no-img::after {
  content: '图片区域';
  color: #8bc4b8;
  font-size: 16px;
  font-weight: 500;
}

.about-text p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--gray);
  margin-bottom: 20px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.about-card {
  text-align: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about-card p {
  padding: 18px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  background: var(--primary);
}

/* ============================================
   Quote / Highlight Sections (Homepage)
   --------------------------------------------
   层级结构：
   底层 = .quote-section 绿色 var(--primary) 背景
   上层 = 三个并列区域（天蓝文字 / 猫咪图 / 狗狗图），
         通过 clip-path 拼接覆盖底层；中、右底部截断在 80%，
         露出 20% 高度的绿色横向底色带，左侧天蓝触底不动。
   宽度与下方 .container 内容区对齐（1160px），居中并加圆角。
   ============================================ */
.quote-section {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: var(--primary);
  /* 100% 全宽贴边（与 .hero 一致），上下间距由相邻 section 的 padding 提供 */
}

/* 中间：猫咪图片区域 —— 上层之一，clip-path 切成中间梯形（顶部 0% → 底部截断在 80%）
   底下 20% 高度露出绿色 var(--primary) 底色
   斜边对齐左/右三角斜边在 y=80% 处的交点：左 38%、右 62%，各外扩 0.5% 防缝隙 */
.quote-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(21.5% 0, 78.5% 0, 62.5% 80%, 37.5% 80%);
  z-index: 1;
}

.quote-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-center.no-img {
  background: linear-gradient(135deg, #e8f5f1, #d4ede6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-center.no-img::after {
  content: '\56FE\7247\533A\57DF';
  color: #8bc4b8;
  font-size: 15px;
}

/* 左侧：天蓝文字区域 —— 上层之一，左三角形（\ 斜切）
   触底，使用自身天蓝色作为底色（不露出绿色 var(--primary)） */
.quote-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3498db;
  clip-path: polygon(0 0, 22% 0, 42% 100%, 0 100%);
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: 4%;
}

.quote-text {
  max-width: 380px;
}

.quote-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 24px;
}

.quote-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

/* 右侧：狗狗图片区域 —— 上层之一，右三角形（/ 斜切），底部截断在 80%
   底下 20% 高度露出绿色 var(--primary) 底色，左斜边在 y=80% 处对齐到 x=62% */
.quote-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(78% 0, 100% 0, 100% 80%, 62% 80%);
  z-index: 2;
  overflow: hidden;
}

.quote-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-right.no-img {
  background: #1a6e6a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-right.no-img::after {
  content: '\56FE\7247\533A\57DF';
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}

/* ============================================
   Sustainability Section (Homepage)
   ============================================ */
.sustain-section {
  padding: 0;  /* 上下都不留空：上贴 quote-section、下贴 footer */
  background: var(--white);
}

/* 让 sustain-section 内部图片和文字贴左右边（解除 .container 1160px 限宽） */
.sustain-section > .container {
  max-width: none;
  padding: 0;
}

.sustain-photos {
  position: relative;
  /* margin-bottom 已移除：文字现在叠在图内，不再需要图与文字之间的间距 */
}

.sustain-photo-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.sustain-photo-main img {
  width: 100%;
  height: auto;
  display: block;
}

.sustain-photo-main.no-img {
  height: 380px;
  background: linear-gradient(135deg, #e8f5f1, #d4ede6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b8ddd4;
  border-radius: 12px;
}

.sustain-photo-main.no-img::after {
  content: '风景图片';
  color: #8bc4b8;
  font-size: 15px;
}

/* 装饰折线：从画面中间偏右斜上 / 再横线 — 连到女孩卡片左边中间 */
.sustain-line {
  position: absolute;
  z-index: 2;
  /* 起点：画面中间偏右（left: 52%），垂直约 55% 处 */
  /* 终点：女孩卡片左边缘 */
  left: 50%;
  top: 35%;
  width: 26%;
  height: 10.5%;
  pointer-events: none;
}

.sustain-line polyline {
  stroke-width: 5;
}

.sustain-photo-sub {
  position: absolute;
  right: 16%;
  top: 12%;
  width: 18%;
  z-index: 2;
}

.sustain-photo-card {
  position: relative;
  padding-right: 28px;
  padding-top: 28px;
}

.sustain-photo-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 80%;
  height: 90%;
  background: var(--primary);
  border-radius: 6px;
  z-index: 0;
}

.sustain-photo-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  padding: 1px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.sustain-photo-card.no-img {
  padding-left: 0;
  padding-bottom: 0;
  height: 200px;
  background: #fff;
  border-radius: 4px;
  border: 1px dashed #b8ddd4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.sustain-photo-card.no-img::before {
  display: none;
}

.sustain-photo-card.no-img::after {
  content: '人物图片';
  color: #8bc4b8;
  font-size: 14px;
}

/* 文字浮在风景图上：左下角白色叠加 */
.sustain-text {
  position: absolute;
  left: 11%;
  bottom: 28%;
  max-width: 600px;
  z-index: 3;
  /* 文字阴影增强在风景图上的可读性 */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.sustain-text h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--white);
}

.sustain-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
}

/* ============================================
   Company Page
   ============================================ */
.company-intro {
  padding: 80px 0;
}

.company-intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.company-intro-content p {
  font-size: 15px;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 15px;
  text-indent: 2em;
}

.cooperation-section {
  padding: 60px 0;
  text-align: center;
}

.cooperation-img {
  max-width: 350px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.certs-section {
  padding: 60px 0;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 30px auto 0;
}

.cert-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.cert-item img {
  width: 100%;
  height: auto;
}

/* ============================================
   Products Page
   ============================================ */
.products-category {
  padding: 80px 0 40px;
}

.products-category + .products-category {
  padding-top: 40px;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .product-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-tag.dog {
  background: #E8F8F5;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.product-tag.cat {
  background: #FDEEF0;
  color: #E84C6F;
  border: 1px solid #E84C6F;
}

.product-spec {
  font-size: 14px;
  color: var(--gray);
  line-height: 2;
}

.product-spec .label {
  color: var(--primary);
  font-weight: 600;
  margin-right: 8px;
}

.product-spec .label.pink {
  color: #E84C6F;
}

/* ============================================
   Contact Page
   ============================================ */
.service-blocks {
  padding: 80px 0;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 60px;
  overflow: hidden;
  border-radius: 0;
  min-height: 320px;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-text {
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.service-text h3 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info {
  padding: 60px 0 100px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
}

.contact-item .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

.qrcode-box {
  text-align: center;
}

.qrcode-box img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.qrcode-box p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--primary);
  padding: 24px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-logo {
  height: 35px;
}

.footer-logo-img {
  height: 100%;
  max-height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate-left {
  transform: translateX(-60px);
}

.animate-on-scroll.animate-right {
  transform: translateX(60px);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.9);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* Text typing animation */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.visible span {
  transform: translateY(0);
}

/* Counter animation */
.counter {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   Placeholder Styles (for images not yet provided)
   ============================================ */
.placeholder-img {
  background: linear-gradient(135deg, #e8f5f1, #d4ede6, #e8f5f1);
  background-size: 200% 200%;
  animation: placeholderShimmer 3s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8bc4b8;
  font-size: 14px;
  border-radius: 8px;
  border: 1px dashed #b8ddd4;
}

@keyframes placeholderShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero .placeholder-img {
  border-radius: 0;
  border: none;
}

/* 响应式样式已拆分到 style-mobile.css */
