:root {
  --navy: #16355c;
  --ink: #24303b;
  --muted: #5c6b7a;
  --accent: #19b5bc;
  --accent-strong: #0d9aa2;
  --teal-dark: #0e3f42;
  --teal-darker: #0a2f31;
  --mint: #e9f5ee;
  --mint-border: #d3e9dc;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #e3e8ee;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 40, 60, .08), 0 4px 16px rgba(20, 40, 60, .06);
  font-size: 16px;
}

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

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { color: var(--navy); font-weight: 600; line-height: 1.25; }
.page-title { font-size: 2.2rem; margin-bottom: .4rem; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 24px 10px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { font-size: .98rem; font-weight: 600; line-height: 1.25; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.header-top { display: flex; align-items: center; gap: 18px; }
.small-link {
  background: none; border: 0; color: var(--ink); font-size: .88rem;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 0;
}
.small-link.plain:hover { text-decoration: underline; }
.icon-btn { background: none; border: 0; color: var(--ink); display: inline-flex; padding: 6px; }
.btn-signin {
  background: #4a7fe0; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 22px; font-size: 1.02rem;
}
.btn-signin:hover { background: #3a6fd0; }
.user-chip {
  background: none; border: 0; color: var(--ink); font-size: .88rem;
  display: inline-flex; align-items: center; gap: 4px;
}
.main-nav { display: flex; gap: 34px; }
.nav-item { position: relative; }
.nav-link {
  background: none; border: 0; color: var(--navy);
  font-size: 1.12rem; font-weight: 500; padding: 8px 2px;
  display: inline-flex; align-items: center; gap: 6px;
}
.chev { font-size: .8em; line-height: 0; transform: translateY(-2px); color: var(--muted); }
.dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); min-width: 230px; padding: 8px 0; z-index: 60;
}
.nav-item.open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 18px; color: var(--ink); font-size: .92rem; }
.dropdown a:hover { background: var(--mint); text-decoration: none; }
.searchbar { border-top: 1px solid var(--line); background: #fff; padding: 12px 24px; }
.searchbar input {
  width: 100%; max-width: 1192px; margin: 0 auto; display: block;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  padding: 10px 24px; font-size: .95rem; font-weight: 500;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: var(--teal-darker); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { background: #f1f4f7; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 16px; font-size: .87rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(120deg, #0a2f31 0%, #0e3f42 45%, #11565a 75%, #19827f 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -180px; width: 560px; height: 560px;
  border-radius: 50%; border: 90px solid rgba(255,255,255,.06);
}
.hero::before {
  content: ""; position: absolute; left: -120px; bottom: -220px; width: 480px; height: 480px;
  border-radius: 50%; border: 70px solid rgba(25,181,188,.14);
}
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 96px 24px 110px; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 2.9rem; max-width: 820px; margin-bottom: 22px; font-weight: 600; }
.hero p { max-width: 780px; font-size: 1.18rem; color: #d9ecec; margin-bottom: 34px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stat-strip-inner {
  max-width: 1240px; margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.stat-num { font-size: 1.9rem; font-weight: 600; color: var(--navy); }
.stat-label { color: var(--muted); font-size: .92rem; }

.section { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.7rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Event card */
.event-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  border-bottom: 4px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,40,60,.14); text-decoration: none; }
.event-cover { height: 160px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.6rem; font-weight: 700; letter-spacing: 1px; }
.event-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-type { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .72rem; padding: 3px 10px; border-radius: 999px;
  background: #e4f2f6; color: #17606b; white-space: nowrap;
}
.tag.grey { background: #eef1f4; color: var(--muted); }
.event-date { font-size: .85rem; color: var(--muted); }
.event-title { color: var(--navy); font-size: 1.08rem; font-weight: 600; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,.92); border: 0; border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: #b0bac4; font-size: 1.05rem;
}
.fav-btn.active { color: #e04a63; }

/* Tech card */
.tech-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: transform .15s ease, box-shadow .15s ease; color: inherit;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,40,60,.14); text-decoration: none; }
.tech-card .cat-line { font-size: .78rem; color: var(--muted); border-bottom: 2px solid var(--accent); padding-bottom: 10px; min-height: 58px; }
.tech-card h3 { font-size: 1.05rem; }
.tech-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.tech-company { color: var(--accent-strong); font-size: .85rem; }
.trl-pill {
  border: 1.5px solid var(--teal-dark); border-radius: 999px; padding: 2px 12px;
  font-size: .78rem; font-weight: 600; color: var(--teal-dark);
}

/* Partner card */
.partner-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 16px 14px; text-align: center; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .15s ease; color: inherit;
}
.partner-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.partner-logo { height: 66px; display: flex; align-items: center; justify-content: center; }
.partner-name { color: var(--muted); font-size: .85rem; }
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 12px; color: #fff;
  font-weight: 700; font-size: 1.35rem; letter-spacing: .5px;
}
.logo-img { max-height: 62px; max-width: 150px; object-fit: contain; }

/* Cluster card */
.cluster-card { background: var(--mint); border-radius: var(--radius); padding: 30px 28px; display: flex; gap: 22px; }
.cluster-icon { flex: none; width: 66px; height: 66px; color: #2e8f6f; }
.cluster-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cluster-card p { color: #3c4a56; font-size: .95rem; margin-bottom: 14px; }

/* ---------- Filter bar ---------- */
.filterbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 20px 0 8px; }
@media (max-width: 900px) { .filterbar { grid-template-columns: repeat(2, 1fr); } }
.filter label { display: block; font-size: .78rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.filter select, .filter input {
  width: 100%; border: 0; border-bottom: 2px solid #b8ccd8; background: transparent;
  padding: 8px 2px; font: inherit; color: var(--navy);
}
.search-input {
  width: 100%; padding: 12px 16px 12px 42px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235c6b7a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 14px center no-repeat;
}
.result-count { color: var(--ink); font-size: .92rem; margin: 14px 0 20px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; min-width: 900px; }
table.data th {
  text-align: left; font-size: .82rem; color: var(--ink); font-weight: 600;
  padding: 14px 16px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1px solid #cfd8e0; border-radius: 8px; font: inherit; background: #fff;
}
.field input:disabled { background: #f1f4f7; color: var(--muted); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.alert { border-radius: 8px; padding: 12px 16px; font-size: .9rem; margin-bottom: 16px; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c3bd; }
.alert-info { background: var(--mint); color: #205a41; border: 1px solid var(--mint-border); }

.infobox { background: var(--mint); border-radius: var(--radius); padding: 24px; }
.infobox h3 { font-size: 1.05rem; margin-bottom: 12px; }
.infobox p { font-size: .9rem; color: #34424e; margin-bottom: 12px; }

/* Upload zone */
.dropzone {
  border: 2px dashed #c3cdd6; border-radius: 10px; background: #fafbfc;
  padding: 34px 20px; text-align: center; color: var(--muted); cursor: pointer; font-size: .9rem;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone .up-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }

/* Rich text editor */
.rte-toolbar { display: flex; gap: 4px; flex-wrap: wrap; background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px 8px 0 0; padding: 6px; }
.rte-toolbar button {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  min-width: 34px; height: 32px; font-size: .82rem; color: var(--ink);
}
.rte-toolbar button:hover { border-color: var(--accent); }
.rte-area {
  border: 1px solid #cfd8e0; border-top: 0; border-radius: 0 0 8px 8px;
  min-height: 180px; padding: 14px 16px; background: #fff; outline: none; font-size: .95rem;
}
.rte-area:focus { border-color: var(--accent); }
.char-note { font-size: .8rem; color: var(--accent-strong); margin-top: 6px; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin-bottom: 14px; }
.dash-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--mint);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.dash-link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 4px; border-top: 1px solid var(--line); color: inherit;
}
.dash-link:hover { text-decoration: none; background: #fafcfd; }
.dash-link .t { font-weight: 600; color: var(--ink); font-size: .95rem; }
.dash-link .s { color: var(--muted); font-size: .85rem; }
.chip-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-tab { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 5px 14px; font-size: .82rem; }
.chip-tab.active { border-color: var(--accent); color: var(--accent-strong); background: #eafafb; }
.summary-list { background: #f2f8f4; border-radius: 10px; padding: 16px 18px; }
.summary-list .row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid #e0ece4; font-size: .9rem; }
.summary-list .row:last-child { border-bottom: 0; }
.summary-head { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); margin-bottom: 4px; }

/* Profile */
.avatar {
  width: 60px; height: 60px; border-radius: 50%; background: var(--teal-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }

/* ---------- Wizard ---------- */
.stepper { display: flex; align-items: center; margin: 26px 0 30px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 90px; flex: none; }
.step .dot {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid #c3cdd6; color: #8896a4; background: #fff; font-weight: 600; font-size: .9rem;
}
.step.active .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done .dot { border-color: var(--accent); color: var(--accent); }
.step .lbl { font-size: .82rem; color: #8896a4; }
.step.active .lbl, .step.done .lbl { color: var(--ink); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: #d7dee5; margin: 0 4px 22px; }
.step-line.done { background: var(--accent); }

/* TRL bar */
.trl-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0 4px; }
.trl-seg { flex: 1; cursor: pointer; opacity: .85; }
.trl-seg:hover { opacity: 1; }
.trl-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.trl-desc { background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: .9rem; }
.trl-marker {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent);
  background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Benefit list */
.benefit-box { background: #d9efdb; border-radius: 10px; padding: 20px 24px; }
.benefit-box h3 { margin-bottom: 10px; font-size: 1rem; }
.benefit-box ul { margin-left: 20px; }

/* Detail layout */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.side-card h4 { font-size: .78rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }

/* Page hero banner */
.page-hero { position: relative; color: #fff; padding: 70px 0; background: linear-gradient(110deg, #123c46 0%, #17545a 60%, #1f7a74 100%); }
.page-hero h1 { color: #fff; font-size: 2.4rem; background: rgba(255,255,255,.14); display: inline-block; padding: 12px 28px; border-radius: 10px; backdrop-filter: blur(2px); }

/* Benefit rows */
.benefit-row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; background: var(--mint); border-radius: 10px; padding: 22px 26px; margin-bottom: 14px; }
@media (max-width: 760px) { .benefit-row { grid-template-columns: 1fr; } }
.benefit-row h3 { font-size: 1rem; color: #1c5c46; }
.benefit-row p { font-size: .93rem; color: #33424e; }

/* Misc */
.pill-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.pill-toggle button { border: 0; background: none; padding: 7px 18px; font-size: .87rem; color: var(--muted); }
.pill-toggle button.active { background: var(--teal-dark); color: #fff; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .big-icon {
  width: 74px; height: 74px; border-radius: 16px; background: #e0f4f6; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.kv { display: flex; gap: 8px; font-size: .9rem; padding: 4px 0; }
.kv .k { color: var(--muted); min-width: 120px; }
.badge-dot { width: 9px; height: 9px; background: #e04a63; border-radius: 50%; display: inline-block; }
.status-pill { font-size: .74rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.status-pill.draft { background: #fdf3d7; color: #8a6d1a; }
.status-pill.published { background: #dcf2e3; color: #1e7b45; }
.actions-row { display: flex; gap: 10px; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 34px; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--teal-darker); color: #bcd6d4; margin-top: 60px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 50px 24px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 30px;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer p { font-size: .86rem; }
.site-footer a { display: block; color: #bcd6d4; font-size: .88rem; padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 16px; font-size: .8rem; }

@media (max-width: 900px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .header-right { align-items: flex-start; }
  .main-nav { gap: 20px; flex-wrap: wrap; }
  .hero h1 { font-size: 2.1rem; }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
}
