/* =====================================================
   WeeBack 官网 - 全局样式（Figma设计还原）
   ===================================================== */

/* --- CSS Variables --- */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-bg: #f0f5ff;
  --pink-bg: #fff1f2;
  --green-bg: #ecfdf5;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --text-dark: #111827;
  --text-body: #374151;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-dark: #0f172a;
  --bg-dark2: #1e293b;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-white);
}
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Section Spacing --- */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-blue { background: var(--blue-bg); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.section-header p {
  font-size: 15px;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto;
}
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--blue);
}
.btn-white:hover {
  background: #f0f5ff;
  color: var(--blue-dark);
}
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: all .3s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-colored {
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-blue { background: var(--blue-bg); }
.card-pink { background: var(--pink-bg); }
.card-green { background: var(--green-bg); }
.card-amber { background: var(--amber-bg); }

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-green { background: #d1fae5; color: #065f46; }

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table th {
  background: var(--bg-gray);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfd; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
}
.faq-q:hover { background: #fafbfd; }
.faq-q .arrow {
  width: 20px;
  height: 20px;
  transition: transform .3s;
  flex-shrink: 0;
  color: var(--text-gray);
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; }

/* --- Product Card --- */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: all .3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.product-card .pc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.product-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.product-card .pc-scene {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.product-card .pc-desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}
.product-card .pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.product-card .pc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-card .pc-link:hover { gap: 8px; }

/* --- Flow Steps --- */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  padding: 40px 0;
}
.flow-step {
  text-align: center;
  flex: 1;
  max-width: 150px;
  position: relative;
}
.flow-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.flow-step .step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
}
.flow-step h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.flow-step p {
  font-size: 12px;
  color: var(--text-gray);
}
.flow-step::after {
  content: '→';
  position: absolute;
  top: 56px;
  right: -12px;
  font-size: 18px;
  color: var(--blue);
  font-weight: 300;
}
.flow-step:last-child::after { display: none; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 24px; }
  .flow-steps { flex-wrap: wrap; gap: 16px; }
  .flow-step::after { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 22px; }
  .container { padding: 0 16px; }
  .flow-steps { flex-direction: column; align-items: center; }
}

/* --- Fade In Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
