/* 智创者社区官网 —— 手写样式，无框架依赖。
   品牌信号色沿用如一 webchat：brand-600 #2563EB，大面积中性色。 */

:root {
  --brand-50: #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-500: #3B82F6;
  --brand-600: #2563EB;
  --ink-900: #0F172A;
  --ink-600: #475569;
  --ink-400: #94A3B8;
  --paper: #FFFFFF;
  --paper-soft: #F8FAFC;
  --line: #E2E8F0;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(15, 23, 42, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
.hide-mobile { display: inline; }

a { color: inherit; text-decoration: none; }

.text-link {
  color: var(--brand-600);
  border-bottom: 1px solid var(--brand-100);
  transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--brand-600); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-mark { width: 27px; height: 27px; border-radius: 6px; }

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  color: var(--ink-600);
}

.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--brand-600); }

.header-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-600);
  padding: 6px 14px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.header-cta:hover { background: var(--brand-50); border-color: var(--brand-500); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 104px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-shot { position: relative; }

.browser-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 24px 56px -28px rgba(15, 23, 42, 0.32);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }

.browser-url {
  margin-left: 10px;
  flex: 1;
  font-size: 12px;
  color: var(--ink-400);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.browser-frame img { display: block; width: 100%; height: auto; }

.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--brand-600);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero-title em {
  font-style: normal;
  color: var(--brand-600);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-600);
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18);
}
.btn-primary:hover { background: #1D4ED8; }

.btn-ghost {
  color: var(--ink-900);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-400); }

.btn-lg { padding: 14px 34px; font-size: 17px; }

/* ---------- Sections ---------- */

.section { padding: 90px 0; }
.section-product { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-soft { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 26px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brand-600);
  margin-bottom: 14px;
}

.section-body {
  font-size: 17px;
  color: var(--ink-600);
  margin-bottom: 18px;
}

/* ---------- Product ---------- */

.product-head { max-width: 640px; margin-bottom: 52px; }

.product-logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.product-title {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.product-slogan {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 500;
  color: var(--brand-600);
  margin-bottom: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.75;
}

.product-cta { text-align: center; }

.product-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-400);
}

/* ---------- Works ---------- */

.works-head { max-width: 640px; margin-bottom: 44px; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 28px -16px rgba(15, 23, 42, 0.22);
}

.work-media { position: relative; display: block; }

.work-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; display: block; }

/* 带 link 的作品卡:图片右下角「打开体验」标记,hover 提亮 */
.work-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.18s ease;
}
a.work-card:hover .work-play { background: var(--brand-600); border-color: var(--brand-600); }

.work-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--brand-600);
  background: linear-gradient(135deg, var(--brand-50), #F1F5F9);
}

.work-body { padding: 18px 20px 22px; }

.work-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

.work-body h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }

.work-body p { font-size: 14px; color: var(--ink-600); line-height: 1.7; }

/* ---------- Support ---------- */

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.support-card h3 { font-size: 18px; font-weight: 600; }
.support-card p { font-size: 14.5px; color: var(--ink-600); }
.support-card .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Contact ---------- */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

a.contact-item { transition: border-color 0.15s ease; }
a.contact-item:hover { border-color: var(--brand-500); }

.contact-label {
  flex: 0 0 64px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0.08em;
}

.contact-value { font-size: 15.5px; font-weight: 500; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-400);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner a { color: var(--ink-400); }
.footer-inner a:hover { color: var(--ink-600); }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .site-nav { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { max-width: 560px; }
  .hero-glow { width: 420px; height: 420px; top: -160px; right: -140px; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-card { padding: 20px 18px; }
  .works-grid { grid-template-columns: 1fr; }
  .support-cards { grid-template-columns: 1fr; }
}

@media (max-width: 960px) and (min-width: 721px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 支持页 ---------- */

.page-hero { padding: 88px 0 56px; text-align: center; }
.page-hero .section-title { font-size: 40px; margin-bottom: 18px; }

.donate-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
}

.donate-qrs { display: flex; gap: 20px; }

.qr-slot {
  width: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-align: center;
}
.qr-slot img {
  width: 160px;
  height: 160px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}
.qr-slot .qr-name { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-600); }

.donate-steps { list-style: none; display: grid; gap: 22px; }
.donate-steps li { display: flex; gap: 16px; align-items: flex-start; }
.donate-steps h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.donate-steps p { font-size: 14.5px; color: var(--ink-600); }
.step-no {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* 捐赠名单 */
.donor-table { margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.donor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 20px;
  align-items: center;
  background: var(--paper);
}
.donor-row + .donor-row { border-top: 1px solid var(--line); }
.donor-phone { font-size: 15px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.donor-amount { font-size: 15px; font-weight: 700; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.donor-more {
  display: block;
  width: 100%;
  padding: 11px 20px;
  border: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-600);
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.donor-more:hover { background: var(--brand-50); }

.donor-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--brand-50);
  font-size: 14.5px; font-weight: 600; color: var(--ink-900);
}
.donor-total .t-amount { color: var(--brand-600); }

@media (max-width: 720px) {
  .page-hero { padding: 56px 0 40px; }
  .page-hero .section-title { font-size: 30px; }
  .donate-layout { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: left; }
  .donate-qrs { flex-direction: row; }
  .qr-slot { width: 160px; }
  .qr-slot img { width: 130px; height: 130px; }
}
