/* ============================================================
   纳斯达克大屏展示站 - 全局样式
   设计语言：深色质感 + 青蓝主色，瀑布流错落布局
   ============================================================ */

:root {
  --bg: #0b0f1a;
  --bg-soft: #121828;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --text: #1c2433;
  --text-muted: #5b6474;
  --text-invert: #eef2f8;
  --primary: #0aa2e0;        /* 纳斯达克青蓝 */
  --primary-deep: #0879c9;
  --accent: #23c2a8;
  --line: #e6eaf2;
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, .08);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, .14);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--surface-soft);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #c7d0e0; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(10, 162, 224, .28), transparent 60%),
    radial-gradient(900px 460px at 90% 0%, rgba(35, 194, 168, .22), transparent 55%),
    linear-gradient(180deg, #0b0f1a 0%, #10182c 100%);
  color: #fff;
  padding: 76px 0 66px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(10, 162, 224, .16); border: 1px solid rgba(10, 162, 224, .35);
  font-size: 13px; color: #8fd8ff; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.2; letter-spacing: 1px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #37c6ff, #6cf0dc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .subtitle { margin-top: 18px; font-size: 17px; color: #b9c4d8; max-width: 720px; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .stat {
  display: flex; flex-direction: column; padding: 14px 22px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
}
.hero .stat b { font-size: 26px; font-weight: 800; color: #fff; }
.hero .stat span { font-size: 12px; color: #9aa8bf; margin-top: 2px; }

/* ---------- 图库标题 ---------- */
.section-head { padding: 52px 0 8px; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--text); }
.section-head p { color: var(--text-muted); margin-top: 8px; font-size: 15px; }

/* ---------- 瀑布流图库 ---------- */
.gallery { padding: 18px 0 70px; }
.masonry { columns: 4 320px; column-gap: 20px; }

.card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1.2), box-shadow .28s;
  cursor: pointer;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .media { position: relative; background: #e9edf4; }
.card .media img { width: 100%; height: auto; transition: transform .5s; }
.card:hover .media img { transform: scale(1.04); }

.card .caption {
  padding: 12px 14px 14px; display: flex; align-items: center; justify-content: space-between;
}
.card .caption .t { font-size: 14px; font-weight: 600; color: var(--text); }
.card .caption .d { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card .arrow { color: var(--primary); font-weight: 700; }

/* ---------- 详情页 ---------- */
.detail-hero {
  background: linear-gradient(180deg, #0b0f1a 0%, #10182c 100%);
  color: #fff; padding: 46px 0 36px;
}
.breadcrumb { font-size: 13px; color: #9aa8bf; margin-bottom: 18px; }
.breadcrumb a { color: #8fd8ff; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-hero h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; line-height: 1.3; }
.detail-hero .meta { color: #b9c4d8; margin-top: 12px; font-size: 14px; }

.detail-main { padding: 40px 0 70px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; } }

.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0b0f1a; box-shadow: var(--shadow-lg);
}
.photo img { width: 100%; height: auto; }

.article-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); margin-top: 24px;
}
.article-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.article-card p { color: #3a4356; }

.qa-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.qa-item {
  background: #fff; border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--primary);
}
.qa-item h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.qa-item .tag {
  display: inline-block; font-size: 11px; color: var(--primary-deep);
  background: rgba(10, 162, 224, .1); padding: 2px 9px; border-radius: 999px;
  margin-bottom: 8px;
}
.qa-item p { font-size: 14px; color: #4a5366; margin-top: 8px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.pager a {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #fff; box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: transform .2s, box-shadow .2s;
}
.pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary-deep); }
.pager a.next { text-align: right; justify-content: flex-end; }
.pager .disabled { opacity: .4; pointer-events: none; }

/* ---------- 底部 ---------- */
.site-footer {
  background: #0b0f1a; color: #9aa8bf; padding: 46px 0 34px; margin-top: 30px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer .f-brand { display: inline-flex; align-items: center; color: #fff; font-weight: 700; font-size: 17px; }
.site-footer .f-logo { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 2px 6px; margin-right: 10px; }
.site-footer p { font-size: 13px; max-width: 620px; }
.site-footer a { color: #8fd8ff; }

/* ---------- 微信分享缩略图（页首隐藏图，勿删） ---------- */
.share-thumb { position: absolute; left: -9999px; top: 0; width: 300px; height: 300px; overflow: hidden; }
.share-thumb img { width: 300px; height: 300px; }

/* ---------- 详情页：窗户位置模板下载 ---------- */
.template-card .template-intro { color: #3a4356; }
.template-steps { margin: 14px 0 0; padding-left: 22px; color: #3a4356; }
.template-steps li { margin: 6px 0; line-height: 1.7; }
.template-steps b { color: var(--primary-deep); }
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 24px rgba(10, 162, 224, .32);
  transition: transform .2s, box-shadow .2s;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(10, 162, 224, .42); }
.download-btn svg { flex: none; }

/* ---------- 首页：banner 下方固定精选案例 ---------- */
.featured { padding: 40px 0 8px; }
.featured-grid {
  display: grid; gap: 16px; margin-top: 18px;
  grid-template-columns: repeat(3, 1fr);   /* 大屏：一行三张 */
}
.featured-cell {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: #e9edf4; box-shadow: var(--shadow-sm);
  transition: box-shadow .28s;
}
.featured-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1.2);
}
.featured-cell:hover { box-shadow: var(--shadow-md); }
.featured-cell:hover img { transform: scale(1.06); }   /* 鼠标悬停放大 */
.copyright { margin-top: 12px; color: #9aa8bf; font-size: 13px; }
.beian { margin-top: 10px; color: #9aa8bf; font-size: 13px; }
.beian a { color: #8fd8ff; }
@media (max-width: 768px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }  /* 手机小屏：一行两张 */

@media (max-width: 640px) {
  .hero { padding: 54px 0 48px; }
  .masonry { columns: 2 160px; column-gap: 12px; }
  .card { margin-bottom: 12px; }
  .nav-links { display: none; }
}
