/* 
  搜易营销™ 新网站样式表
  设计理念: 蜡笔画风格 + 谷歌配色
  配色: 蓝色(#4285F4) + 红色(#EA4335) + 黄色(#FBBC04) + 绿色(#34A853)
  特点: 商务专业、交互丰富、SEO友好、细节精致
*/

:root {
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC04;
  --google-green: #34A853;
  --white: #FFFFFF;
  --light-bg: #F8F9FA;
  --dark-text: #202124;
  --light-text: #5F6368;
  --border-color: #DADCE0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 排版 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark-text);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  color: var(--light-text);
  margin-bottom: 12px;
}

a {
  color: var(--google-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--google-red);
}

/* 导航栏 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-red) 25%, var(--google-yellow) 50%, var(--google-green) 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-text);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red));
  transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle - Animated Hamburger */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  /* Ensure it stays above the menu */
}

/* Hide the Font Awesome icon inside */
.menu-toggle i {
  display: none;
}

/* Create the bars using pseudo-elements and a span */
.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--dark-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top bar */
.menu-toggle::before {
  top: 0;
}

/* Middle bar (created dynamically via JS if needed, but we can assume an internal element or just use 3 lines) 
   Wait, the current HTML connects <i class="fas fa-bars"></i>. 
   We should probably add a span via JS or just style the ::before/::after and rely on the <i> being hidden.
   Actually, the simplest reliable way without changing every HTML file to add a span is 
   to treat the existing <i> as the middle bar, or just use ::before/::after + a box-shadow for the middle bar.
   
   Better plan: 
   1. Hide the <i> content but keep the element to use as a hook? No, <i> has its own FontAwesome styles.
   2. Let's use the .menu-toggle container.
   3. We need 3 bars. 
      - ::before (Top)
      - ::after (Bottom)
      - We need a Middle bar. 
      
   We can use a linear-gradient on the main element for the middle bar if we don't want to add HTML.
   OR, we can style the <i> itself to be a bar? 
   Let's try to Style the <i> tag to be the middle bar and override Font Awesome properties.
*/

.menu-toggle i {
  display: block;
  font-family: inherit;
  /* Reset font icon */
  width: 100%;
  height: 2px;
  background-color: var(--dark-text);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle i::before {
  content: none !important;
  /* Remove FontAwesome content */
}

/* Re-implement ::before and ::after on the .menu-toggle container is safer for positioning relative to the container */
.menu-toggle::before {
  top: 0;
  transform-origin: center;
}

.menu-toggle::after {
  bottom: 0;
  transform-origin: center;
}

/* Active State - Transform to X */
.menu-toggle.active i {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(234, 67, 53, 0.05) 100%);
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #87A8F2;
  text-shadow: none;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-shadow: none;
  color: #87A8F2;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--google-blue), var(--google-red));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 67, 53, 0.4);
  background: linear-gradient(90deg, var(--google-red), var(--google-blue));
}

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

.btn-outline:hover {
  background: var(--google-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* 分段 */
.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-bg);
}

/* 网格布局 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}

/* 特性卡片 */
.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
  border-color: var(--google-blue);
}

.feature-card h3 {
  color: var(--dark-text);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--light-text);
  margin-bottom: 16px;
}

/* 图片悬停效果 */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.img-hover-zoom img {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card:hover .img-hover-zoom img {
  transform: scale(1.08);
}

/* 文本中心 */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 32px;
}

/* 页面头部 */
.page-header {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 3rem;
  color: #87A8F2;
  text-shadow: none;
}

.page-header p {
  color: #87A8F2;
}

/* 列表样式 */
ul {
  list-style: none;
}

ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

ul.check-list li::before {
  content: '✓';
  color: var(--google-green);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  top: -2px;
}

/* 脚注 */
footer {
  background: linear-gradient(135deg, var(--dark-text) 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.beian-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.beian-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* WeChat Card Interaction */
.wechat-card {
  overflow: hidden;
}

.wechat-normal-content {
  transition: opacity 0.4s ease;
}

.wechat-qr-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: var(--white);
  pointer-events: none;
  padding: 20px;
}

.wechat-qr-content img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
}

/* PC Hover Effect */
@media (min-width: 768px) {
  .wechat-card:hover .wechat-normal-content {
    opacity: 0;
  }

  .wechat-card:hover .wechat-qr-content {
    opacity: 1;
    pointer-events: auto;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--google-blue);
}

footer .text-center {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    gap: 0;

    /* Animation Initial State */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    /* Start slightly above */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smooth eased transition */
    overflow: hidden;
    /* Hide content when closed */
    padding: 0 20px;
    /* No vertical padding when closed */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */
  }

  .nav-links.active {
    /* Animation Active State */
    max-height: 500px;
    /* Large enough to fit content */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 20px;
    /* Restore padding */
  }

  .nav-links a {
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

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

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-padding {
    padding: 40px 0;
  }

  .page-header {
    min-height: 300px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Optimized Mobile Footer */
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
    text-align: left;
  }

  .footer-col:nth-child(1) {
    grid-column: span 2;
    text-align: left;
  }

  .footer-col:nth-child(1) p {
    max-width: 100%;
    margin: 0;
  }

  .footer-col:nth-child(4) {
    grid-column: span 2;
  }
}

/* 打字效果 */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.typing {
  overflow: hidden;
  border-right: 3px solid var(--google-blue);
  white-space: nowrap;
  animation: typing 3s steps(40, end);
}

/* 脉冲效果 */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 滑动效果 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* 缩放效果 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

/* 渐变文字样式：蓝到红 */
.gradient-text {
  background: linear-gradient(90deg, var(--google-blue), var(--google-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 浅蓝色轮廓按钮 (Fix for "Learn More" button hover) */
.btn-outline-soft {
  background: transparent;
  color: #87A8F2;
  border: 2px solid #87A8F2;
}

.btn-outline-soft:hover {
  background: #87A8F2;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 168, 242, 0.3);
}