/* Navbar — sticky + CSS 磨砂玻璃（无 JS） */
.v2-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(5, 6, 8, 0.45);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .v2-nav {
    background: rgba(5, 6, 8, 0.9);
  }
}

.v2-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v2-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-en);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.v2-logo img {
  width: 123px;
  height: auto;
}

.v2-logo-adg {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
}

.v2-btn-pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 48px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
  color: #050608;
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform var(--motion-fast) var(--ease-out);
}

.v2-btn-pill-label {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.v2-btn-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 0 solid rgba(5, 6, 8, 0.55);
  background: transparent;
  box-sizing: border-box;
  z-index: 0;
  transition: border-width 500ms var(--ease-out),
    border-color 500ms var(--ease-out);
  pointer-events: none;
}

.v2-btn-pill:hover {
  background: var(--accent-orange);
}

.v2-btn-pill:hover::after {
  border-width: 5px;
  border-color: rgba(5, 6, 8, 0.72);
}

.v2-btn-pill:active {
  background: var(--accent-orange);
  transform: scale(0.98);
}

.v2-btn-pill:active::after {
  border-width: 5px;
  border-color: rgba(5, 6, 8, 0.85);
}

/* Pills */
.v2-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.v2-pill--pro {
  background: var(--accent-orange);
  color: var(--bg-primary);
}

.v2-pill--enterprise {
  background: var(--accent-purple);
  color: #fff;
}

.v2-pill--tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.v2-pill--status {
  background: rgba(106, 168, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(106, 168, 255, 0.2);
}

.v2-pill--status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.v2-pill--status-captured { color: #6AA8FF; background: rgba(106,168,255,0.12); }
.v2-pill--status-aligning { color: #FF6A45; background: rgba(255,106,69,0.12); }
.v2-pill--status-delivered { color: #5CE0A0; background: rgba(92,224,160,0.12); }

/* Capability cards */
.v2-cap-card {
  width: 100%;
  max-width: 300px;
  height: 180px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-end));
  border: 1px solid var(--border-subtle);
  transition: transform var(--motion-normal) var(--ease-out),
    box-shadow var(--motion-normal) var(--ease-out);
  cursor: default;
}

.v2-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.v2-cap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.v2-cap-symbol {
  font-size: 18px;
  color: var(--accent-orange);
  font-family: var(--font-en);
  line-height: 1;
  flex-shrink: 0;
}

.v2-cap-step {
  font-size: var(--font-caption);
  color: var(--accent-orange);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.v2-cap-title {
  font-size: var(--font-h3);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.25;
}

.v2-cap-desc {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Project cards */
.v2-project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-card-end));
  border: 1px solid var(--border-subtle);
  transition: transform var(--motion-normal) var(--ease-out),
    box-shadow var(--motion-normal) var(--ease-out);
}

.v2-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.v2-project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  overflow: hidden;
}

.v2-project-card--featured .v2-project-thumb {
  aspect-ratio: 960 / 540;
}

.v2-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow) var(--ease-out);
}

.v2-project-card:hover .v2-project-thumb img {
  transform: scale(1.03);
}

.v2-project-body {
  padding: 20px 24px 24px;
}

.v2-project-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 24px;
}

.v2-project-title {
  font-size: var(--font-h3);
  font-weight: 500;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-project-meta {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.v2-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.v2-project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Modals */
.v2-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.v2-modal-mask.show {
  display: flex;
}

.v2-modal-panel {
  width: min(92vw, 960px);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.v2-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--font-caption);
  color: var(--text-secondary);
}

.v2-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
}

.v2-modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.v2-modal-player {
  width: 100%;
  display: block;
  background: #000;
  max-height: 75vh;
}

/* Tweaks panel */
.v2-tweaks-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(17, 22, 29, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--motion-fast), color var(--motion-fast);
}

.v2-tweaks-toggle:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.v2-tweaks-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9000;
  width: 260px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(17, 22, 29, 0.95);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 16px;
}

.v2-tweaks-panel.open {
  display: flex;
}

.v2-tweaks-panel h4 {
  margin: 0;
  font-size: var(--font-caption);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.v2-tweaks-field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.v2-tweaks-field input[type="color"],
.v2-tweaks-field select {
  width: 100%;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0 8px;
}

.v2-tweaks-field input[type="checkbox"] {
  margin-right: 8px;
}

#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(92, 224, 160, 0.95);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--font-caption);
  font-weight: 500;
  box-shadow: var(--shadow-card);
  z-index: 9999;
  opacity: 0;
  transition: all var(--motion-normal) var(--ease-out);
  pointer-events: none;
}


/* v3 home — nav dual CTA */
.v2-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2-lang-switch {
  position: relative;
}

.v2-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border: none;
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: var(--text-primary, #f3f4f6);
  font-family: var(--font-cn);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.v2-lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.v2-lang-current {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.v2-lang-caret {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.v2-lang-switch.is-open .v2-lang-caret {
  transform: rotate(180deg);
}

.v2-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius-sm, 12px);
  background: rgba(15, 17, 21, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1200;
}

.v2-lang-switch.is-open .v2-lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.v2-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary, #c7ccd4);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.v2-lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f3f4f6);
}

.v2-lang-option.is-active {
  color: var(--accent-orange, #ff6a45);
  font-weight: 600;
}

.v2-lang-option.is-active::after {
  content: '✓';
  font-size: 12px;
}

.v2-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text-primary, #f3f4f6);
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

.v2-btn-ghost:hover {
  border-color: var(--accent-orange, #ff6a45);
  color: var(--accent-orange, #ff6a45);
  background: rgba(255, 106, 69, 0.06);
}

.v2-qr-modal-body {
  padding: 16px 20px 20px;
  text-align: center;
}

.v2-qr-service-copy {
  list-style: none;
  margin: 16px 0 8px;
  padding: 0;
  text-align: left;
  font-size: var(--font-body, 15px);
  color: var(--text-secondary, #d1d5db);
  line-height: 1.6;
}

.v2-qr-service-copy li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.v2-qr-service-copy li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent-orange, #ff6a45);
  font-weight: 700;
}

.v2-qr-response {
  margin: 8px 0 12px;
  font-size: var(--font-caption, 13px);
  color: var(--text-muted, #9ca3af);
}

.v2-qr-upload-exit {
  margin: 0 0 8px;
  font-size: var(--font-caption, 13px);
  color: var(--text-muted, #9ca3af);
}

.v2-qr-upload-exit a {
  color: var(--accent-orange, #ff6a45);
  text-decoration: none;
  font-weight: 600;
}

.v2-qr-upload-exit a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .v2-nav-actions {
    gap: 8px;
  }

  .v2-btn-ghost {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
}
