/* 摄影师小助手官网 — 简洁专业，偏摄影工具气质 */

:root {
  --bg: #f7f6f4;
  --bg-elevated: #ffffff;
  --text: #1c1c1a;
  --text-muted: #5c5a56;
  --text-subtle: #8a8780;
  --border: #e4e1db;
  --accent: #2f4f4f;
  --accent-hover: #243d3d;
  --accent-soft: #e8efef;
  --status-soon: #8b6914;
  --status-soon-bg: #f5eed8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(28, 28, 26, 0.06), 0 8px 24px rgba(28, 28, 26, 0.04);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "Consolas", monospace;
  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.875rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  max-width: 640px;
}

.hero-tag {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

.version-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.update-message {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-subtle);
  max-width: 28em;
}

.config-error {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #7a4a00;
  background: #fef6e8;
  border: 1px solid #ecd9b8;
  border-radius: var(--radius);
}

/* Status bar */

.features-strip {
  padding-bottom: 2.5rem;
}

.status-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  background: var(--status-soon-bg);
  color: var(--status-soon);
}

.status-bar[data-status="loading"] {
  background: var(--accent-soft);
  color: var(--text-muted);
}

.status-bar[data-status="live"] {
  background: #e6f2ea;
  color: #1f5c3a;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* Support */

.support {
  padding: 3rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.support-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.support h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 650;
}

.support-hint {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.support-meta {
  margin: 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.meta-row dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.meta-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wechat-id {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-copy {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-copy:hover {
  background: #d8e4e4;
}

.btn-copy.copied {
  color: #1f5c3a;
  background: #e6f2ea;
}

/* QR panel */

.qr-panel {
  flex-shrink: 0;
}

.qr-frame {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-placeholder {
  margin: 0;
  padding: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-subtle);
  line-height: 1.5;
}

/* Download section */

.download-section {
  padding: 3rem 0 4rem;
}

.download-inner {
  text-align: center;
}

.download-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.download-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

#download-version {
  font-family: var(--font-mono);
  color: var(--text);
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-icp {
  margin: 0;
  font-size: 0.8rem;
}

.footer-icp a {
  color: var(--text-subtle);
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Login */

.brand-link {
  text-decoration: none;
  color: inherit;
}

.login-main {
  padding: 2.5rem 0 3rem;
  min-height: 60vh;
}

.login-card {
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 2rem;
}

.login-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.login-desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.login-state {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.login-state[data-state="error"] {
  background: #f8e8e6;
  color: #8a2f2a;
}

.login-state[data-state="ok"] {
  background: #e7f3ea;
  color: #1f6b3a;
}

.ticket-panel {
  margin-bottom: 1.25rem;
}

.ticket-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.ticket-code {
  display: block;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.ticket-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.field-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: #fff;
}

.login-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

.login-success {
  margin: 0 0 0.75rem;
  color: #1f6b3a;
}

/* Responsive */

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .support-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .support-text {
    width: 100%;
  }

  .meta-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .meta-row dd {
    justify-content: center;
  }

  .qr-frame {
    width: 180px;
    height: 180px;
  }

  .header-nav {
    gap: 1rem;
  }
}
