/* 工具介绍首页 — 独立样式，可部署至站点根目录 */

:root {
  --primary: #ff2442;
  --primary-dark: #e61f3a;
  --primary-soft: #fff0f3;
  --primary-border: #ffd6de;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-light: #999;
  --bg: #fafafa;
  --card: #fff;
  --border: #eee;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(255, 36, 66, 0.08);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.brand-icon {
  font-size: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.nav-download {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary) !important;
  font-weight: 600;
  border: 1px solid var(--primary-border);
}

.nav-download:hover {
  background: #ffe4ea;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s, background 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff5070);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 36, 66, 0.3);
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(255, 36, 66, 0.12), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), #ff6b85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Mock UI */
.hero-visual {
  display: flex;
  justify-content: center;
}

.mock-window {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--border);
}

.mock-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
}

.mock-titlebar span:first-child { background: #ff6b6b; }
.mock-titlebar span:nth-child(2) { background: #ffd93d; }
.mock-titlebar span:nth-child(3) { background: #6bcb77; }

.mock-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  font-size: 11px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.mock-tabs span {
  padding: 6px 10px 10px;
}

.mock-tabs .active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

.mock-body {
  padding: 14px;
}

.mock-card {
  padding: 14px;
  margin-bottom: 12px;
  background: var(--primary-soft);
  border-radius: 10px;
  border: 1px solid var(--primary-border);
}

.mock-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.mock-line {
  height: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

.mock-line.wide { width: 70%; }
.mock-line.short { width: 45%; }

.mock-btn {
  margin-top: 12px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5070);
  border-radius: 8px;
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #fafafa;
  border-radius: 8px;
}

.mock-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffe0e6, #fff0f3);
}

.mock-text {
  flex: 1;
  padding-top: 4px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Features */
.features {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Workflow */
.workflow {
  background: var(--bg);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  flex-shrink: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-border);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
}

/* Usage notice */
.usage-notice {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fffbf0 0%, #fff 50%, #fff8f9 100%);
  border: 1px solid #ffe4a8;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(255, 193, 7, 0.1);
  position: relative;
  overflow: hidden;
}

.usage-notice::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ffc107, #ff9800);
  border-radius: 4px 0 0 4px;
}

.usage-notice-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #fff3cd, #ffe8a3);
  border-radius: 14px;
  border: 1px solid #ffe082;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.usage-notice-body {
  flex: 1;
  min-width: 0;
}

.usage-notice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.usage-notice-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b8860b;
  background: #fff8e1;
  border: 1px solid #ffe082;
}

.usage-notice-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #8b6914;
}

.usage-notice-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: #7a6520;
  line-height: 1.7;
}

.usage-notice-desc strong {
  color: #c62828;
  font-weight: 600;
}

.usage-notice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.login-tag-primary {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary-border);
  font-weight: 600;
}

/* Multi-shop */
.multi-shop {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 36, 66, 0.06), transparent),
    linear-gradient(180deg, #fafafa 0%, #fff 40%, #fafafa 100%);
}

.multi-shop-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.multi-shop-hero-text h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.multi-shop-hero-text p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.multi-shop-hero-text strong {
  color: var(--primary);
  font-weight: 600;
}

.multi-shop-visual {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-card {
  flex: 1;
  min-width: 90px;
  max-width: 110px;
  padding: 16px 12px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 36, 66, 0.12);
  border-color: var(--primary-border);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5070);
}

.profile-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.profile-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
}

.profile-status.idle {
  color: #888;
  background: #f5f5f5;
}

.multi-shop-timeline {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  position: relative;
}

.multi-shop-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  position: relative;
  padding-bottom: 20px;
}

.multi-shop-step:last-child {
  padding-bottom: 0;
}

.multi-shop-step:not(:last-child) .multi-shop-step-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 44px;
  bottom: -20px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--primary-border), #f0f0f0);
}

.multi-shop-step-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.multi-shop-step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5070);
  box-shadow: 0 4px 12px rgba(255, 36, 66, 0.35);
  position: relative;
  z-index: 1;
}

.multi-shop-step-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.multi-shop-step-card:hover {
  border-color: var(--primary-border);
  box-shadow: 0 6px 24px rgba(255, 36, 66, 0.08);
}

.multi-shop-step-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--primary-soft);
  border-radius: 12px;
  border: 1px solid var(--primary-border);
}

.multi-shop-step-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.multi-shop-step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.multi-shop-step-card strong {
  color: var(--primary);
  font-weight: 600;
}

.multi-shop-tips {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.multi-shop-tips-title {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.multi-shop-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tip-card {
  padding: 16px;
  background: var(--bg);
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.tip-card:hover {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.tip-card-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

.tip-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .multi-shop-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .multi-shop-visual {
    order: -1;
  }

  .multi-shop-tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .usage-notice {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .usage-notice-tags {
    flex-direction: column;
  }

  .login-tag {
    justify-content: center;
  }

  .multi-shop-step {
    grid-template-columns: 36px 1fr;
    gap: 0 14px;
  }

  .multi-shop-step-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .multi-shop-step-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .multi-shop-tips-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-width: 80px;
  }
}

/* Install */
.install {
  background: #fff;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.install-lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.download-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 200;
  max-width: calc(100% - 40px);
  text-align: center;
}

.toast.hidden {
  display: none;
}

.install-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.install-card.highlight {
  background: linear-gradient(160deg, #fff8f9 0%, #fff 60%);
  border-color: var(--primary-border);
}

.install-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.install-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.install-card li {
  margin-bottom: 10px;
}

.install-card li:last-child {
  margin-bottom: 0;
}

.install-card code {
  padding: 2px 6px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.install-tip {
  margin: 20px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--primary-soft);
  border-radius: 8px;
  border: 1px solid var(--primary-border);
}

/* CTA */
.cta {
  padding: 56px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  background: #111;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 6px;
}

.footer-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .mock-window {
    max-width: 320px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .install-grid {
    grid-template-columns: 1fr 1fr;
  }

  .install-grid .install-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-download {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .section {
    padding: 48px 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}
