/* =============================================
   PetJoy 企业官网 - 主样式表
   ============================================= */

/* CSS变量 */
:root {
  /* 主色 */
  --primary: #ff6b35;
  --primary-dark: #e55a28;
  --primary-light: #ff8a5c;
  
  /* 辅助色 */
  --secondary: #2d3748;
  --secondary-light: #4a5568;
  
  /* 背景色 */
  --bg-white: #ffffff;
  --bg-light: #f7fafc;
  --bg-gray: #edf2f7;
  
  /* 文字色 */
  --text-dark: #1a202c;
  --text-normal: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  
  /* 边框 */
  --border: #e2e8f0;
  --border-light: #edf2f7;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* 字体 */
  --font-en: 'Inter', -apple-system, sans-serif;
  --font-cn: 'Noto Sans SC', -apple-system, sans-serif;
  
  /* 过渡 */
  --transition: 0.25s ease;
}

/* 重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-normal);
  background: var(--bg-white);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 容器 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* =============================================
   导航栏
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon { font-size: 1.75rem; }
.logo-text {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-toggle {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.5px;
  user-select: none;
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
}
.lang-toggle:active {
  transform: scale(0.95);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
}

/* =============================================
   按钮
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg-light);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff5f0 0%, #fff 50%, #f0f9ff 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,107,53,0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.text-primary { color: var(--primary); }
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-num span { font-size: 1.5rem; }
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================
   区块通用
   ============================================= */
.section { padding: 5rem 0; }
.section-bg { background: var(--bg-light); }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.section-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* =============================================
   产品分类
   ============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.category-card {
  display: block;
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.category-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.category-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.category-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

/* =============================================
   产品卡片
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-image {
  position: relative;
  aspect-ratio: 1;
}
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.product-badge.hot { background: var(--primary); color: white; }
.product-badge.new { background: #10b981; color: white; }
.product-info {
  padding: 1.25rem;
}
.product-category {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.5rem 0;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.product-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.product-meta .divider { margin: 0 0.5rem; }

/* =============================================
   优势区块
   ============================================= */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.advantage-card {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.advantage-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
}
.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.advantage-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.advantage-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =============================================
   流程区块
   ============================================= */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.process-step {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  padding: 0 1rem;
}
.step-num {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}
.process-line {
  flex: 0 0 60px;
  height: 2px;
  background: var(--border);
  margin-top: 3rem;
}

/* =============================================
   客户评价
   ============================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.testimonial-rating {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--text-normal);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.author-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
}
.author-company {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =============================================
   CTA区块
   ============================================= */
.cta-section { padding: 4rem 0; }
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  color: white;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   页脚
   ============================================= */
.footer {
  background: var(--secondary);
  color: white;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text { color: white; }
.footer-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 1rem 0;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); }
.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}
.footer-contact .icon { font-size: 1rem; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
}

/* =============================================
   页面标题区
   ============================================= */
.page-header {
  background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
  padding: 8rem 0 4rem;
  margin-top: 72px;
  text-align: center;
}
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.page-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   产品列表页
   ============================================= */
.products-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}
.products-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.filter-section {
  margin-bottom: 2rem;
}
.filter-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.filter-list { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition);
}
.filter-item:hover, .filter-item.active { color: var(--primary); }
.filter-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}
.products-main { padding-bottom: 3rem; }
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.products-count {
  font-size: 0.95rem;
  color: var(--text-light);
}
.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-normal);
}

/* =============================================
   关于我们页
   ============================================= */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.about-content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* 资质证书 */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.cert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.cert-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* =============================================
   联系我们页
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* 询盘表单 */
.inquiry-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.form-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.active {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .lang-toggle { display: none; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .process-steps { flex-direction: column; }
  .process-line { display: none; }
  .process-step { max-width: 100%; margin-bottom: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-page { grid-template-columns: 1fr; }
  .products-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .hero-stats { justify-content: center; }
  .cta-box { padding: 2.5rem 1.5rem; }
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease-out both; }
