/* Notepad++ 中文下载官网 — 官方风、PC 端优先 */
:root {
  --npp-blue: #1B7FCB;
  --npp-blue-dark: #166BAC;
  --npp-blue-deep: #0B3D63;
  --npp-blue-light: #EAF3FB;
  --npp-cyan: #00A8E8;
  --text: #2C3E50;
  --text-light: #5D6D7E;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --border: #E2E8F0;
  --shadow: 0 8px 30px rgba(11, 61, 99, .08);
  --shadow-strong: 0 16px 45px rgba(11, 61, 99, .14);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--npp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--npp-blue-deep);
}
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: .96rem;
  color: var(--text);
  font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: var(--npp-blue); text-decoration: none; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--npp-blue);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--npp-blue-dark); text-decoration: none; transform: translateY(-1px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--npp-blue), var(--npp-blue-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(27,127,203,.35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--npp-blue-dark), var(--npp-blue-deep)); transform: translateY(-2px); text-decoration: none; }
.btn-secondary {
  background: #fff;
  color: var(--npp-blue);
  border: 2px solid var(--npp-blue);
}
.btn-secondary:hover { background: var(--npp-blue-light); text-decoration: none; }
.btn-group { display: inline-flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0B3D63 0%, #1B7FCB 60%, #00A8E8 100%);
  color: #fff;
  padding: 86px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 3rem; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.5px; }
.hero .lead { font-size: 1.25rem; opacity: .92; margin: 0 0 32px; max-width: 540px; }
.hero-badges { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 500;
}
.hero-shot {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-strong);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: transform .4s;
}
.hero-shot:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.hero-shot img { border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.2); display: block; }

/* ---------- section ---------- */
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title h2 { font-size: 2.1rem; margin: 0 0 10px; color: var(--npp-blue-deep); }
.section-title p { margin: 0; color: var(--text-light); font-size: 1.05rem; }

/* ---------- feature grid ---------- */
.features { background: var(--bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--npp-blue-light);
  color: var(--npp-blue);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--text-light); font-size: .96rem; }

/* ---------- download cards ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-card.recommended { border-color: var(--npp-blue); box-shadow: 0 0 0 1px var(--npp-blue) inset; }
.rec-tag {
  position: absolute;
  top: 0; right: 0;
  background: var(--npp-blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-bottom-left-radius: 10px;
}
.dl-os { font-size: 1.35rem; font-weight: 800; color: var(--npp-blue-deep); }
.dl-ver { color: var(--text-light); font-size: .92rem; margin: 8px 0 14px; }
.dl-meta { list-style: none; margin: 0 0 22px; padding: 0; font-size: .9rem; color: var(--text-light); }
.dl-meta li { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.dl-meta li:last-child { border-bottom: none; }

/* ---------- install steps ---------- */
.steps { background: var(--bg-soft); }
.step-list { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  margin-bottom: 30px;
  align-items: start;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--npp-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
  flex-shrink: 0;
}
.step-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-body h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--npp-blue-deep); }
.step-body p { margin: 0 0 14px; color: var(--text-light); }
.step-body img { border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.step-note { background: #FFF8E1; border-left: 4px solid #FFC107; padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 14px; font-size: .92rem; color: #6C5700; }

/* ---------- version table ---------- */
.version-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.version-table th, .version-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .96rem; }
.version-table th { background: var(--npp-blue-light); color: var(--npp-blue-deep); font-weight: 700; }
.version-table tr:last-child td { border-bottom: none; }
.version-table .tag { background: var(--npp-blue); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 4px; margin-left: 8px; }

/* ---------- faq ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; padding: 22px 26px; }
.faq-item h3 { margin: 0 0 10px; font-size: 1.08rem; color: var(--npp-blue-deep); }
.faq-item p { margin: 0; color: var(--text-light); font-size: .96rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--npp-blue-deep);
  color: rgba(255,255,255,.75);
  padding: 44px 0 28px;
  font-size: .92rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #fff; }
.footer-links { display: flex; gap: 22px; }

/* ---------- floating download bar ---------- */
.float-download {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(11,61,99,.12);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .35s ease;
}
.float-download.visible { transform: translateY(0); }
.float-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.float-text { display: flex; align-items: center; gap: 12px; }
.float-text img { width: 40px; height: 40px; border-radius: 10px; }
.float-text strong { color: var(--npp-blue-deep); font-size: 1.1rem; }
.float-text span { color: var(--text-light); font-size: .9rem; }
.float-btns { display: flex; gap: 12px; }
.float-btns .btn { padding: 11px 22px; font-size: .95rem; border-radius: 24px; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 28px; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .feature-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.7rem; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 1.05rem; }
  .float-inner { flex-direction: column; text-align: center; }
  .float-text { justify-content: center; }
}
