:root {
  /* 颜色变量 */
  --primary: #1A73E8;
  --primary-light: #E8F0FE;
  --secondary: #0FA958;
  --accent: #0F172A;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #DDDDDD;
  --danger: #E53935;
  
  /* 字体变量 */
  --font-title: 'Inter', Arial, sans-serif;
  --font-body: Arial, Roboto, sans-serif;
  --font-mono: Menlo, monospace;
  
  /* 断点变量 */
  --mobile: 768px;
  --tablet: 1024px;
  --desktop: 1025px;
  
  /* 间距变量 */
  --gutter-desktop: 100px;
  --gutter-mobile: 20px;
  --section-spacing-desktop: 60px;
  --section-spacing-mobile: 40px;
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 主要内容区域顶部间距 */
main {
  padding-top: 120px; /* 增加顶部间距，避免内容紧贴导航栏 */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--accent);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: #0D47A1;
}

.container {
  width: 100%;
  padding-right: var(--gutter-desktop);
  padding-left: var(--gutter-desktop);
  margin-right: auto;
  margin-left: auto;
}

/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  transition: transform 0.25s;
}

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

.logo svg {
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  transform: scale(0.95);
  animation: scaleUp 0.35s forwards;
}

@keyframes scaleUp {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  color: var(--white);
}

.btn:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* 英雄区域样式 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding-top: 60px;
}

.hero-content {
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* 滚动动画类 */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式样式 */
@media (max-width: 768px) {
  .container {
    padding-right: var(--gutter-mobile);
    padding-left: var(--gutter-mobile);
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  body {
    font-size: 14px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

/* 产品页面样式 */
.products {
  padding: var(--section-spacing-desktop) 0;
}

.products h1 {
  margin-bottom: 1rem;
}

.products p {
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.product-item {
  grid-column: span 4;
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-item h3 {
  margin-bottom: 0.5rem;
}

/* SKU搜索页面样式 */
.sku-search {
  padding: var(--section-spacing-desktop) 0;
}

.sku-search h1 {
  margin-bottom: 1rem;
}

.sku-search p {
  margin-bottom: 2rem;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.sku-result {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s, transform 0.25s;
}

.sku-result.visible {
  opacity: 1;
  transform: scale(1);
}

.sku-result.success {
  background-color: rgba(15, 169, 88, 0.1);
  border: 1px solid var(--secondary);
}

.sku-result.error {
  background-color: rgba(229, 57, 53, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  animation: flash 0.3s;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* About页面样式 */
.about {
  padding: var(--section-spacing-desktop) 0;
}

.about h1 {
  margin-bottom: 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.about-section {
  grid-column: span 6;
}

.about-section h2 {
  margin-bottom: 1rem;
}

/* Contact页面样式 */
.contact {
  padding: var(--section-spacing-desktop) 0;
}

.contact h1 {
  margin-bottom: 2rem;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-right: 1rem;
  margin-bottom: 1rem;
  transition: background-color 0.25s;
}

.whatsapp-btn:hover {
  background-color: #20B955;
  color: white;
}

.whatsapp-btn svg {
  margin-right: 0.5rem;
}

/* 数字计数器动画 */
.counter {
  transition: all 0.5s ease-out;
}

/* 我们的优势部分样式 */
.our-advantages {
  position: relative;
  overflow: hidden;
}

.our-advantages::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.section-header {
  position: relative;
  z-index: 1;
}

.our-advantages .container {
  position: relative;
  z-index: 1;
}

/* 页脚样式 */
footer {
  background-color: var(--accent);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: var(--section-spacing-desktop);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  grid-column: span 3;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-column p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s;
}

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

.social-links {
  display: flex;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 0.5rem;
  transition: background-color 0.25s;
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--white);
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.newsletter-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.25s;
}

.newsletter-btn:hover {
  background-color: #0D47A1;
}

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

.footer-bottom p {
  margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .products, .sku-search, .about, .contact {
    padding: var(--section-spacing-mobile) 0;
  }
  
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .product-item {
    grid-column: span 4;
  }
  
  .about-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .about-section {
    grid-column: span 4;
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-column {
    grid-column: span 4;
    margin-bottom: 2rem;
  }
  
  .footer-bottom {
    text-align: center;
  }
}
