:root {
  --c1: #7c3aed;   /* violet */
  --c2: #ec4899;   /* pink   */
  --c3: #06b6d4;   /* cyan   */
  --brand: #ec4899;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --line: #e7e9f2;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(76, 29, 149, 0.12);
  --grad: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c3));
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: rgba(0,0,0,0.06); z-index: 60; }
.scroll-progress .bar { height: 100%; width: 0; background: var(--grad); transition: width 0.1s linear; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -0.5px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; position: relative; }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--grad); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px rgba(236,72,153,0.35);
}
.nav-cta:hover { filter: brightness(1.05); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 96px 0 84px;
  background: radial-gradient(900px 500px at 80% -10%, rgba(6,182,212,0.35), transparent 60%),
              radial-gradient(800px 500px at 10% 10%, rgba(236,72,153,0.35), transparent 60%),
              linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4c1d6b 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 46px; line-height: 1.18; margin: 0 0 18px; font-weight: 900;
  letter-spacing: -0.5px;
}
.hero p { font-size: 19px; max-width: 640px; color: rgba(255,255,255,0.85); margin: 0 0 30px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; border: 0; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px rgba(236,72,153,0.4); }
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: 32px; font-weight: 900; margin: 0 0 8px; letter-spacing: -0.3px; }
.section-sub { color: var(--muted); margin: 0 0 40px; font-size: 16px; }

/* ---------- Grid cards (glass) ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--grad); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num {
  font-size: 38px; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 14px; }

/* ---------- Article list ---------- */
.article-list { display: grid; gap: 22px; }
.article-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-item .thumb { background: var(--grad); min-height: 150px; position: relative; }
.article-item .thumb::after {
  content: "HY"; position: absolute; right: 16px; bottom: 12px; font-weight: 900; color: rgba(255,255,255,0.65); font-size: 20px;
}
.article-item .body { padding: 22px 24px 22px 0; }
.article-item h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.article-item .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.article-item p { color: var(--muted); margin: 0; }

/* ---------- Article page ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 52px 20px 76px; }
.article-wrap h1 { font-size: 34px; line-height: 1.3; margin: 10px 0 14px; }
.article-wrap h2 { font-size: 25px; margin: 40px 0 14px; padding-left: 14px; border-left: 4px solid; border-image: var(--grad) 1; }
.article-wrap p { font-size: 17px; color: #2c2c36; margin: 0 0 18px; }
.article-meta { color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.article-cover { height: 280px; border-radius: var(--radius); background: var(--grad); margin: 8px 0 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.info-row { display: flex; gap: 12px; margin-bottom: 16px; }
.info-row .ic { color: var(--brand); font-weight: 800; min-width: 24px; }
.form input, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; margin-bottom: 14px; font-family: inherit; background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(236,72,153,0.15); }
.form button {
  background: var(--grad); color: #fff; border: 0; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; cursor: pointer; font-size: 15px; box-shadow: 0 10px 24px rgba(236,72,153,0.35);
}
.form button:hover { filter: brightness(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 52px 0 30px; }
.site-footer a { color: #f9a8d4; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #94a3b8; }

/* ---------- Reveal (set by JS) ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 14px; position: absolute;
    top: 66px; left: 0; right: 0; background: #fff; padding: 18px 20px; border-bottom: 1px solid var(--line);
  }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-2, .contact-grid, .footer-grid, .stats { grid-template-columns: 1fr; }
  .article-item { grid-template-columns: 1fr; }
  .article-item .thumb { min-height: 160px; }
  .article-item .body { padding: 0 20px 20px; }
}
