/* PiGo 官网 — 参考 DataPickweb 布局与结构，配色保持 PiGo */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f7f6f3;
  --card-bg: #fdfcfa;
  --border: rgba(0, 0, 0, 0.08);
  --text: #2c2c2c;
  --text-muted: #5c5c5c;
  --primary: #4a6fa5;
  --primary-hover: #3d5a80;
  --radius: 10px;
  --font: "Noto Sans SC", "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --footer-bg: #3d322c;
  --footer-text: rgba(255, 255, 255, 0.95);
  --footer-muted: rgba(255, 255, 255, 0.75);
}

html { scroll-behavior: smooth; }

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

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: 70px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navbar（参考 DataPick Navbar.css）── */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
  font-size: 20px;
}

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

.brand-icon {
  font-size: 24px;
  margin-right: 8px;
  flex-shrink: 0;
}

.icon-svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

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

/* Language switcher（参考 DataPick LanguageSwitcher.css）── */
.language-switcher {
  position: relative;
  margin: 0 10px;
}

.language-dropdown {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  min-width: 120px;
  justify-content: space-between;
  font-family: inherit;
}

.language-toggle:hover {
  border-color: var(--primary);
  background: var(--bg);
}

.language-flag { font-size: 16px; }

.language-text { flex: 1; text-align: left; }

.language-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.language-toggle[aria-expanded="true"] .language-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: none;
  z-index: 1000;
}

.language-menu.show {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text);
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
}

.language-option:hover {
  background: var(--bg);
}

.language-option.active {
  background: rgba(74, 111, 165, 0.08);
  color: var(--primary);
}

/* ── 手机端导航抽屉 ── */
.nav-drawer-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.nav-drawer-toggle:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-drawer-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (max-width: 768px) {
  .nav-drawer-toggle {
    display: flex;
  }

  .nav-drawer-overlay {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100%;
    max-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 70px 0 24px;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav-menu .nav-link {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: rgba(74, 111, 165, 0.06);
  }

  .nav-menu .language-switcher {
    margin: 16px 24px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .nav-menu .language-toggle {
    width: 100%;
    min-width: 0;
  }

  body.nav-drawer-open {
    overflow: hidden;
  }

  body.nav-drawer-open .nav-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-drawer-open .nav-menu {
    transform: translateX(0);
  }

  body.nav-drawer-open .nav-drawer-toggle .nav-drawer-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-drawer-open .nav-drawer-toggle .nav-drawer-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  body.nav-drawer-open .nav-drawer-toggle .nav-drawer-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── Hero（参考 DataPick Home.css）── */
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  background: var(--bg);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.2;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: var(--text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(74, 111, 165, 0.35);
  font-size: 17px;
  padding: 18px 35px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 111, 165, 0.45);
  background: var(--primary-hover);
  color: white;
}

/* ── Features（参考 DataPick Home.css）── */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.features-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  color: var(--primary);
}

.feature-card__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer（参考 DataPick Footer.css）── */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--footer-text);
  font-size: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--footer-muted);
  line-height: 1.6;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--footer-text);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  color: var(--footer-muted);
  font-size: 0.9rem;
}

.footer-bottom p { margin: 0; }

/* ── 内页通用（Guide / About / Privacy / Terms）── */
.page-header {
  padding: 40px 0 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-header h1 i {
  color: var(--primary);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-content .container {
  padding-bottom: 60px;
}

/* Guide 内页：intro / cards / tips / faq */
.guide-intro {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 50px;
}

.guide-intro h2 {
  margin-bottom: 15px;
  font-size: 1.75rem;
}

.guide-intro p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.section--guide .card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section--guide .card__heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.section--guide .card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.os-toggle {
  display: inline-flex;
  background: var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.os-toggle__btn {
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.os-toggle__btn.active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.os-panel { display: none; }
.os-panel.active { display: block; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  background: rgba(74, 111, 165, 0.1);
  border: 1px solid rgba(74, 111, 165, 0.3);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.dl-btn:hover {
  background: rgba(74, 111, 165, 0.15);
  border-color: var(--primary);
}

.terminal {
  margin-top: 12px;
  background: #2d3748;
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #1a202c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-copy {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: transparent;
  color: #a0aec0;
  font-size: 12px;
  cursor: pointer;
}

.terminal pre {
  padding: 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.guide-tips {
  margin-top: 60px;
  margin-bottom: 40px;
}

.guide-tips h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 24px;
}

.guide-tips h2 i { color: var(--primary); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tip-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.tip-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.guide-faq { margin-top: 48px; }

.guide-faq h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 24px;
}

.guide-faq h2 i { color: var(--primary); }

.faq-list { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item h3 i { color: var(--primary); }

.faq-item p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  padding-left: 26px;
}

@media (max-width: 640px) {
  .faq-item p { padding-left: 0; }
}

/* About 内页 */
.about-intro,
.about-story {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.about-intro h2,
.about-story h2 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.about-intro h2 i,
.about-story h2 i { color: var(--primary); }

.about-intro p,
.about-story p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 12px;
}

.contact-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-section h2 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.contact-section h2 i { color: var(--primary); }

.contact-email {
  color: var(--primary);
  font-weight: 500;
}

/* Legal 页 */
.section--legal .section__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.section--legal .section__title {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}
