/* 爱鹿 AILU 品牌官网 - 公共样式与CSS变量 */

:root {
  /* 品牌色 */
  --ailu-primary: #DBE2AB;
  --ailu-primary-light: #E9EEC9;
  --ailu-primary-dark: #C5D08A;
  --ailu-green: #2A6E3F;
  --ailu-green-dark: #1F5530;
  --ailu-green-light: #3D8A54;
  --ailu-white: #FFFFFF;
  --ailu-cream: #FAFBF5;
  --ailu-gray-50: #F7F8F4;
  --ailu-gray-100: #ECEEE6;
  --ailu-gray-200: #DADDD2;
  --ailu-gray-400: #9AA08E;
  --ailu-gray-600: #5E6555;
  --ailu-gray-800: #2E3328;
  --ailu-black: #1A1D16;

  /* 字体 */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 间距 */
  --section-gap: 80px;
  --container-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* 动效 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.4s var(--ease-out);
  --transition-slow: 0.8s var(--ease-out);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ailu-gray-800);
  background-color: var(--ailu-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* SVG 图标系统 - 兼容旧版 .icon 类 */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 通用按钮 */
.ailu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.ailu-btn--primary {
  background-color: var(--ailu-green);
  color: var(--ailu-white);
}

.ailu-btn--primary:hover {
  background-color: var(--ailu-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 110, 63, 0.25);
}

.ailu-btn--outline {
  border: 1px solid var(--ailu-green);
  color: var(--ailu-green);
  background-color: transparent;
}

.ailu-btn--outline:hover {
  background-color: var(--ailu-green);
  color: var(--ailu-white);
}

.ailu-btn--light {
  background-color: var(--ailu-white);
  color: var(--ailu-green);
}

.ailu-btn--light:hover {
  background-color: var(--ailu-primary);
  color: var(--ailu-green-dark);
}

/* 标题组件 */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ailu-green);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header__tag::before,
.section-header__tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--ailu-primary-dark);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--ailu-black);
  margin-bottom: 16px;
}

.section-header__desc {
  font-size: 16px;
  color: var(--ailu-gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* 卡片通用 */
.card-hover {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26, 29, 22, 0.08);
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s var(--ease-out) forwards;
}

/* 隐藏滚动条但保留滚动 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== 移动端 body 约束 ===== */
@media (max-width: 768px) {
  body {
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
    padding-bottom: 80px;
  }
}

/* ===== PC/移动端 显示控制 ===== */
@media (max-width: 768px) {
  .pc-header,
  .pc-carousel,
  .pc-section,
  .pc-footer { display: none !important; }
}

@media (min-width: 769px) {
  .mobile-header,
  .mobile-menu,
  .mobile-carousel,
  .mobile-section,
  .mobile-footer,
  .mobile-tabbar { display: none !important; }
}
