/* ==========================================================
   NanaZip 官方网站 - 全局样式
   Design: 低调高级 / 墨蓝底 + 哑金点缀
   ========================================================== */

:root {
  --bg: #10151b;
  --bg-deep: #0b0f14;
  --panel: #161d26;
  --panel-2: #1b2430;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #e9e6df;
  --text-dim: #a6b0bb;
  --text-faint: #6f7a86;
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, 0.14);
  --green: #7fb69a;
  --font-sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --radius: 10px;
  --maxw: 1160px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景细腻纹理：极淡的噪点 + 顶部微光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(200, 169, 106, 0.07), transparent 60%),
    radial-gradient(900px 480px at 8% 0%, rgba(96, 130, 168, 0.06), transparent 55%);
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: var(--gold); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: #e2c68e; }

img { max-width: 100%; display: block; }

::selection { background: rgba(200, 169, 106, 0.28); color: #fff; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 21, 27, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(200, 169, 106, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-name em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.28s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gold);
  color: #14100a !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px !important;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover { background: #e2c68e; color: #14100a !important; transform: translateY(-1px); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------------- 通用段落 ---------------- */
.section { padding: 88px 0; }

.section-tight { padding: 64px 0; }

.section-head { max-width: 760px; margin-bottom: 48px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text);
}

.section-sub {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 15.5px;
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  padding: 116px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gold-soft);
  background: rgba(200, 169, 106, 0.08);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(127, 182, 154, 0.8);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
}

.hero-lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: 999px;
  transition: all 0.28s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #14100a;
}

.btn-primary:hover {
  background: #e2c68e;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(200, 169, 106, 0.22);
  color: #14100a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-meta {
  margin-top: 26px;
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.hero-visual {
  position: relative;
}

.hero-shot {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-5deg) rotateX(1deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover .hero-shot {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.shot-caption {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: center;
  letter-spacing: 0.08em;
}

/* ---------------- 特性卡片 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: linear-gradient(160deg, var(--panel), rgba(22, 29, 38, 0.6));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  border-color: rgba(200, 169, 106, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 18px;
}

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

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

/* ---------------- 截图画廊 ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

.gallery-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.gallery-item img { width: 100%; }

.gallery-cap {
  padding: 14px 18px 16px;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line-soft);
}

.gallery-wide { grid-column: 1 / -1; }

/* ---------------- 下载区 ---------------- */
.dl-panel {
  background: linear-gradient(165deg, rgba(200, 169, 106, 0.07), transparent 45%), var(--panel);
  border: 1px solid rgba(200, 169, 106, 0.22);
  border-radius: 14px;
  padding: 44px 46px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.dl-list { list-style: none; }

.dl-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 12px;
}

.dl-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

.dl-btns { display: flex; flex-direction: column; gap: 14px; }

.btn-disk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 22px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-sans);
  text-align: left;
  transition: border-color 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.btn-disk:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: rgba(200, 169, 106, 0.07);
}

.btn-disk .disk-name { font-size: 16px; font-weight: 600; }
.btn-disk .disk-tip { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.btn-disk .disk-arrow { color: var(--gold); font-size: 15px; flex-shrink: 0; }

.dl-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dl-note b { color: var(--gold); font-weight: 600; }

/* ---------------- 版本日志 ---------------- */
.changelog-list { display: flex; flex-direction: column; gap: 18px; }

.cl-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
  transition: border-color 0.3s ease;
}

.cl-item:hover { border-color: rgba(200, 169, 106, 0.28); }

.cl-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cl-ver {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--gold);
  font-weight: 600;
}

.cl-date {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.cl-tag {
  font-size: 11.5px;
  color: var(--green);
  border: 1px solid rgba(127, 182, 154, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.cl-body { color: var(--text-dim); font-size: 14.5px; }
.cl-body ul { padding-left: 20px; }
.cl-body li { margin-bottom: 5px; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 860px; }

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
  padding: 20px 26px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .mark {
  color: var(--gold);
  font-size: 19px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q .mark { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.faq-a-inner {
  padding: 0 26px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.8;
}

.faq-item.open .faq-a { max-height: 600px; }

/* ---------------- 表格 / 通用 ---------------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.info-table th, .info-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.info-table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  width: 180px;
  white-space: nowrap;
}

.info-table td { color: var(--text-dim); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding: 52px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: 12px;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}

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

.footer-col li { margin-bottom: 9px; }

.footer-col a {
  color: var(--text-faint);
  font-size: 13.5px;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 12.5px;
}

/* ---------------- 下载弹窗 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-mask.active { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(170deg, #1c2531, #141a22);
  border: 1px solid rgba(200, 169, 106, 0.28);
  border-radius: 16px;
  padding: 36px 34px 32px;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s ease;
}

.modal-mask.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-size: 17px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close:hover { color: var(--text); border-color: var(--gold); transform: rotate(90deg); }

.modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-disk {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

/* 二维码呼吸边框 */
.qr-frame {
  display: inline-block;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(200, 169, 106, 0.55);
  animation: qr-breathe 2.6s ease-in-out infinite;
  margin-bottom: 20px;
}

.qr-frame img {
  width: 168px;
  height: 168px;
  border-radius: 6px;
}

@keyframes qr-breathe {
  0%, 100% {
    border-color: rgba(200, 169, 106, 0.45);
    box-shadow: 0 0 0 0 rgba(200, 169, 106, 0.0), 0 0 22px rgba(200, 169, 106, 0.08);
  }
  50% {
    border-color: rgba(226, 198, 142, 0.9);
    box-shadow: 0 0 0 5px rgba(200, 169, 106, 0.05), 0 0 34px rgba(200, 169, 106, 0.2);
  }
}

.modal-tip {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal-tip b { color: var(--gold); font-weight: 600; }

.modal-hint {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.65;
}

/* ---------------- 面包屑 / 页面头 ---------------- */
.page-hero { padding: 72px 0 44px; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.page-hero .lead {
  color: var(--text-dim);
  font-size: 16.5px;
  max-width: 720px;
}

.crumb {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.crumb a { color: var(--text-faint); }
.crumb a:hover { color: var(--gold); }

/* ---------------- 关于 ---------------- */
.about-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 34px 36px;
  margin-bottom: 22px;
}

.about-card h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 14px;
}

.about-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.about-card p:last-child { margin-bottom: 0; }

.link-list { list-style: none; margin-top: 6px; }
.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link-list li:last-child { border-bottom: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-panel { grid-template-columns: 1fr; padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(14, 19, 25, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 28px 22px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 4px; font-size: 15px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 33px; }
  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 32px; }
  .wrap { padding: 0 20px; }
  .dl-panel { padding: 26px 20px; }
  .modal { padding: 30px 22px 26px; }
  .qr-frame img { width: 148px; height: 148px; }
}
