/**
 * ===========================================
 * Yitefeng 官网样式表
 * ===========================================
 */

/* ===========================================
   1. RESET & BASE - 重置样式与基础设置
   =========================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 */
  --primary: #0B3D2E;
  --primary-light: #156B50;
  --accent: #D4A843;
  --accent-hover: #E8C06A;

  /* 文本颜色 */
  --text-dark: #1A1A1A;
  --text-body: #4A4A4A;
  --text-light: #8A8A8A;

  /* 背景颜色 */
  --bg-white: #FFFFFF;
  --bg-cream: #FAFAF7;
  --bg-gray: #F2F2EF;
  --bg-dark: #0B3D2E;

  /* 字体 */
  --font-en: 'Inter', sans-serif;
  --font-cn: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;

  /* 通用设置 */
  --radius: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.cn-mode {
  font-family: var(--font-cn);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================================
   2. HEADER - 顶部导航栏
   =========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

/* 桌面端导航 */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* 当前所在页：横杠一直显示 */
.nav-desktop a.active {
  color: var(--primary);
}

.nav-desktop a.active::after {
  width: 100%;
}

/* 右侧操作区 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 语言切换按钮 */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-gray);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-toggle span {
  padding: 6px 14px;
  transition: all 0.25s;
  color: var(--text-light);
}

.lang-toggle span.active {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
}

/* CTA 按钮样式 */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 汉堡菜单按钮（移动端） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================================
   3. MEGA MENU - 全屏覆盖菜单
   =========================================== */

.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-white);
  z-index: 1050;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mega-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mega-menu-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 60px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
}

.mega-menu-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.mega-menu-col a {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.25s;
}

.mega-menu-col a:hover {
  color: var(--primary);
  padding-left: 12px;
}

.mega-menu-contact p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 8px;
}

.mega-menu-contact a.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: none;
  padding: 4px 0;
  display: inline;
}

/* ===========================================
   4. HERO - 首屏大图区域
   =========================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* 背景视频容器 */
.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 视频占位符（开发用） */
.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0B3D2E 0%, #1A6B4A 40%, #D4A843 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(26, 107, 74, 0.2) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* 轨道图标动画 */
.vp-orbits {
  position: relative;
  width: 400px;
  height: 400px;
}

.vp-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: orbit 12s linear infinite;
}

.vp-orbit span {
  animation: counter-orbit 12s linear infinite;
}

/* 不同轨道延迟 */
.o1 { animation-delay: 0s; animation-duration: 14s; }
.o2 { animation-delay: -2.8s; animation-duration: 16s; }
.o3 { animation-delay: -5.6s; animation-duration: 13s; }
.o4 { animation-delay: -8.4s; animation-duration: 15s; }
.o5 { animation-delay: -11.2s; animation-duration: 17s; }

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(180px) rotate(0deg);
    opacity: 0.8;
  }
  25% { opacity: 1; }
  50% {
    transform: rotate(180deg) translateX(180px) rotate(-180deg);
    opacity: 0.8;
  }
  75% { opacity: 1; }
  100% {
    transform: rotate(360deg) translateX(180px) rotate(-360deg);
    opacity: 0.8;
  }
}

@keyframes counter-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* 渐变遮罩 */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 61, 46, 0.45) 0%, rgba(11, 61, 46, 0.7) 100%);
  z-index: 1;
}

/* Hero 内容 */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-cta {
  padding: 14px 32px;
  font-size: 0.95rem;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-hint .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-hint .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* ===========================================
   5. SECTIONS - 通用区块样式
   =========================================== */

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.bg-cream {
  background: var(--bg-cream);
}

/* ===========================================
   6. INDUSTRY CARDS - 行业卡片
   =========================================== */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.industry-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  cursor: pointer;
}

.card-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.industry-card:hover .card-bg {
  transform: scale(1.08);
}

/* 各行业背景渐变色 */
.card-bg-dairy {
  background: linear-gradient(135deg, #E8D5B7 0%, #C9A96E 100%);
}

.card-bg-bakery {
  background: linear-gradient(135deg, #D4A574 0%, #A67C52 100%);
}

.card-bg-beverage {
  background: linear-gradient(135deg, #7EC8E3 0%, #3A8FBF 100%);
}

.card-bg-meat {
  background: linear-gradient(135deg, #C0392B 0%, #8B1A1A 100%);
}

.card-bg-snack {
  background: linear-gradient(135deg, #F39C12 0%, #D68910 100%);
}

/* 卡片叠加层 */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(11, 61, 46, 0.9) 0%, transparent 100%);
  padding: 30px 24px;
  transition: all 0.4s;
}

.industry-card:hover .card-overlay {
  background: linear-gradient(0deg, rgba(11, 61, 46, 0.95) 0%, rgba(11, 61, 46, 0.4) 100%);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 168, 67, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.industry-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.industry-card:hover p {
  max-height: 120px;
  opacity: 1;
  margin-top: 4px;
}

/* ===========================================
   7. STATS BAR - 数据统计栏
   =========================================== */

.stats-bar {
  background: var(--primary);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item .stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-item .stat-suffix {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-top: -2px;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  font-weight: 400;
}

/* ===========================================
   8. SERVICES - 服务卡片
   =========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

/* 顶部装饰线 */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===========================================
   9. CTA SECTION - 行动召唤区
   =========================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1A6B4A 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================
   10. FOOTER - 页脚
   =========================================== */

.footer {
  background: #061F17;
  padding: 80px 0 30px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: var(--accent);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ===========================================
   11. REVEAL ANIMATION - 滚动显示动画
   =========================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===========================================
   12. RESPONSIVE - 响应式布局
   =========================================== */

/* 平板尺寸 (最大 1200px) */
@media (max-width: 1200px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 移动端尺寸 (最大 900px) */
@media (max-width: 900px) {
  /* 隐藏桌面导航，显示汉堡菜单 */
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mega Menu 调整 */
  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 100px 30px 40px;
  }

  .mega-menu-col a {
    font-size: 1.1rem;
  }

  /* Hero 区域 */
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-content {
    padding: 0 24px;
  }

  /* 行业卡片 */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-card {
    height: 320px;
  }

  /* 服务卡片 */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* 统计数据 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* 页脚 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* 容器内边距 */
  .container {
    padding: 0 20px;
  }
}

/* 小屏移动端 (最大 600px) */
@media (max-width: 600px) {
  /* 行业卡片单列 */
  .industries-grid {
    grid-template-columns: 1fr;
  }

  /* Hero 标题进一步缩小 */
  .hero h1 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  /* 区块标题 */
  .section-header h2 {
    font-size: 1.8rem;
  }

  /* 页脚单列 */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* 统计数据保持两列 */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===========================================
   13. LOGO - Logo 图片样式
   =========================================== */

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand .logo-img {
  height: 40px;
  border-radius: 6px;
}
