/* 易享拼 (Yi Xiang Pin) 官方网站样式表 */
:root {
  --primary: #E63946;
  --primary-gradient: linear-gradient(135deg, #FF4D4D 0%, #F93B3B 100%);
  --accent-orange: #FF7A00;
  --accent-gradient: linear-gradient(135deg, #FF7A00 0%, #FF9E00 100%);
  --dark-heading: #0F172A;
  --text-main: #334155;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(230, 57, 70, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* 导航栏 Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-heading);
}

.brand-logo svg {
  width: 38px;
  height: 38px;
}

.brand-name span {
  color: var(--primary);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark-heading);
  border: 1.5px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(230, 57, 70, 0.04);
}

/* 移动端菜单按钮 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Hero 头部 Banner */
.hero {
  padding-top: 150px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 90% 10%, rgba(255, 122, 0, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(230, 57, 70, 0.08) 0%, transparent 40%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 57, 70, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-heading);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item .stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-heading);
}

.stat-item .stat-num span {
  color: var(--primary);
}

.stat-item .stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* App 预览 Mockup */
.mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: #0F172A;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #334155;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #F1F5F9;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notch {
  width: 120px;
  height: 24px;
  background: #0F172A;
  margin: 0 auto;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.screen-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.app-header-bar {
  background: var(--primary-gradient);
  color: #FFF;
  padding: 14px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.25);
}

.product-card-mini {
  background: #FFF;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
}

.product-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 4px;
}

.group-tag {
  display: inline-block;
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 6px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.group-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* 浮动卡片 */
.floating-card {
  position: absolute;
  background: #FFF;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 60px;
  left: -20px;
}

.floating-card.card-2 {
  bottom: 80px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.avatar-group {
  display: flex;
  margin-right: 4px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #FFF;
  margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }

.float-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-heading);
}

.float-text span {
  color: var(--primary);
}

/* 核心特色 Section */
.section {
  padding: 90px 0;
}

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

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(230, 57, 70, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 拼团流程 Step Section */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: #FFF;
  padding: 30px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFF;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* 品牌资质/信赖 Section */
.trust-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.trust-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.trust-desc {
  color: #94A3B8;
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-item svg {
  color: #FFD166;
}

/* 页脚 Footer */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding-top: 70px;
  padding-bottom: 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .brand-logo {
  color: #FFF;
  margin-bottom: 16px;
}

.footer-about {
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: #FFF;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-company-details {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-company-details strong {
  color: #E2E8F0;
}

/* 法律文档及客服支持页面特有样式 */
.page-header {
  padding-top: 140px;
  padding-bottom: 40px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  color: var(--dark-heading);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.doc-layout {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.doc-menu {
  list-style: none;
}

.doc-menu li {
  margin-bottom: 8px;
}

.doc-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.doc-menu a:hover,
.doc-menu a.active {
  background: #FFF;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.doc-content {
  background: #FFF;
  line-height: 1.8;
}

.doc-content h2 {
  font-size: 22px;
  color: var(--dark-heading);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  font-size: 17px;
  color: var(--dark-heading);
  margin-top: 24px;
  margin-bottom: 12px;
}

.doc-content p {
  margin-bottom: 16px;
  color: var(--text-main);
}

.doc-content ul, .doc-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 6px;
}

.highlight-box {
  background: rgba(230, 57, 70, 0.05);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

/* FAQ 常见问题折叠卡片 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FFF;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  color: var(--dark-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #FFF;
  user-select: none;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* 响应式调整 Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions, .hero-stats {
    justify-content: center;
  }
  .features-grid, .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-banner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 32px;
  }
  .features-grid, .steps-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-card {
    display: none;
  }
}
