/* 顺手右键 · RightHand 官网样式 — 素雅克制、苹果原生极简风 */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --card-elevated: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.10);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --menu-bg: rgba(255, 255, 255, 0.90);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.08);
  --shadow-menu: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-soft: #141416;
    --card: #18181b;
    --card-elevated: #1e1e22;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #7c7c82;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #2997ff;
    --accent-hover: #40a3ff;
    --accent-soft: rgba(41, 151, 255, 0.16);
    --nav-bg: rgba(11, 11, 13, 0.78);
    --menu-bg: rgba(34, 34, 38, 0.90);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.45);
    --shadow-menu: 0 20px 50px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

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

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部磨砂导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-en {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-sm {
  font-size: 12.5px;
  padding: 6px 14px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

/* Hero 首屏 */
.hero {
  padding: 76px 0 64px;
  text-align: center;
}

.hero-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: block;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-meta {
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* 交互式 macOS 访达桌面演示区 */
.demo-wrap {
  margin-top: 48px;
}

.demo-tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 18px;
}

.demo-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.demo-tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.mac-window {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
}

.mac-titlebar {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.mac-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mac-body {
  position: relative;
  min-height: 330px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.finder-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.finder-item {
  padding: 16px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  cursor: pointer;
  user-select: none;
}

.finder-item:hover {
  background: rgba(127, 127, 127, 0.06);
}

.finder-item.selected {
  background: var(--accent-soft);
  border-color: rgba(0, 113, 227, 0.25);
}

.file-glyph {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.folder-glyph {
  width: 52px;
  height: 42px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.folder-glyph::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 6px;
  width: 20px;
  height: 6px;
  border-radius: 4px 4px 0 0;
  background: var(--border-strong);
}

.file-label {
  font-size: 12px;
  color: var(--text);
  text-align: center;
  word-break: break-all;
}

.demo-hint {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--text-tertiary);
  padding-top: 4px;
}

/* 模拟 macOS 右键菜单 */
.context-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 240px;
}

.ctx-menu {
  width: 196px;
  padding: 6px;
  border-radius: 12px;
  background: var(--menu-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-menu);
}

.ctx-submenu {
  width: 168px;
  margin-top: 52px;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: all 0.16s ease;
}

.ctx-submenu.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.ctx-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 6px;
}

.ctx-item {
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 450;
  padding: 6px 9px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}

.ctx-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ctx-item.system {
  color: var(--text-tertiary);
  cursor: default;
}

.ctx-item:not(.system):hover,
.ctx-item.active {
  background: var(--accent);
  color: #ffffff;
}

.ctx-item:not(.system):hover svg,
.ctx-item.active svg {
  stroke: #ffffff;
}

.ctx-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 演示内悬浮轻提示 */
.demo-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 10px);
  background: rgba(24, 24, 27, 0.90);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.demo-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 区块通用排布 */
.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-header h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

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

/* 功能 2x2 素雅卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color 0.18s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 两步上手 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* FAQ 折叠列表 */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--text-tertiary);
  transition: transform 0.16s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 下载收尾区 */
.cta-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* 子页面文档排版（隐私政策 / 技术支持） */
.doc-page {
  padding: 64px 0 88px;
}

.doc-inner {
  max-width: 720px;
  margin: 0 auto;
}

.doc-inner h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.doc-updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 36px;
}

.doc-section {
  margin-bottom: 30px;
}

.doc-section h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.doc-section p,
.doc-section li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.doc-section ul {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 12px;
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

/* 响应式适配 */
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .mac-body {
    grid-template-columns: 1fr;
  }

  .context-stage {
    flex-direction: column;
    min-height: auto;
  }

  .ctx-submenu {
    margin-top: 6px;
  }

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