/* 99S China — clean static stylesheet */
:root {
  --blue: #1260b8;
  --blue-d: #0b4a94;
  --blue-l: #2f86d6;
  --sky: #eaf3fc;
  --line: #c4def5;
  --text: #3d4a5c;
  --muted: #6b7a8c;
  --bg: #f4f9fe;
  --card: #fff;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.8 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- header / nav ---------- */
.site-header {
  background:
    radial-gradient(1200px 220px at 85% 120%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(110deg, #0a428a 0%, #1260b8 45%, #3b97e6 100%);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 115px; }
.logo { display: block; line-height: 0; }
.logo img { height: 115px; width: auto; max-width: 100%; }
.tagline { height: 115px; width: auto; opacity: .95; }

.site-nav { background: #fff; border-bottom: 3px solid var(--blue); box-shadow: 0 2px 8px rgba(18,96,184,.12); position: sticky; top: 0; z-index: 20; }
.site-nav ul { display: flex; }
.site-nav li { flex: 1 1 0; position: relative; }
.site-nav li + li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.site-nav a { display: block; text-align: center; padding: 9px 6px 8px; color: var(--blue); line-height: 1.35; }
.site-nav a b { display: block; font-size: 16px; font-weight: 600; }
.site-nav a span { display: block; font: 12px Arial, sans-serif; color: #5a9bdc; }
.site-nav a:hover, .site-nav li.on a { background: var(--blue); color: #fff; text-decoration: none; }
.site-nav a:hover span, .site-nav li.on a span { color: #d6e9ff; }
.site-nav li.on::before, .site-nav li.on + li::before, .site-nav li:hover::before, .site-nav li:hover + li::before { display: none; }

/* ---------- generic ---------- */
main.wrap { padding-top: 28px; padding-bottom: 48px; min-height: 52vh; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(18,96,184,.06); }
.page-card { padding: 28px 34px 34px; }
.page-title { font-size: 26px; color: var(--blue); font-weight: 600; padding-bottom: 12px; margin-bottom: 22px; border-bottom: 2px solid var(--line); line-height: 1.3; }
.page-title small, .sec-title small, .side-title small { font: 400 14px Arial, sans-serif; color: var(--muted); margin-left: 8px; }
.page-title.plain { border: 0; margin-bottom: 18px; }
.sec-title { font-size: 20px; color: var(--blue); font-weight: 600; margin: 38px 0 18px; padding-left: 12px; border-left: 4px solid var(--blue); line-height: 1.3; }
.rich p { margin: 0 0 1em; }
.rich p.c { text-align: center; }
.rich p.r { text-align: right; }
.rich img { display: block; margin: 1em auto; border-radius: 4px; }
.rich a { text-decoration: underline; }
.flow::after { content: ""; display: block; clear: both; }
.float-l { float: left; margin: 4px 26px 12px 0; }
.float-r { float: right; margin: 4px 0 12px 26px; }
.photo { border-radius: 6px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.btn {
  display: inline-block; cursor: pointer; border: 1px solid var(--blue); background: var(--blue); color: #fff;
  padding: 8px 22px; border-radius: 4px; font: inherit; line-height: 1.5;
}
.btn:hover { background: var(--blue-d); color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.ghost:hover { background: var(--sky); color: var(--blue-d); }
.logo-tile {
  width: 160px; flex: none; border-radius: 6px; padding: 8px;
  background: linear-gradient(135deg, #0b4a94, #2f86d6);
}
.logo-tile img { display: block; width: 100%; }

/* ---------- home ---------- */
.home-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { padding: 6px 0 12px; }
.side-title { font-size: 18px; color: var(--blue); padding: 14px 24px 12px; border-bottom: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid #e3effb; }
.link-list li:last-child { border: 0; }
.link-list a, .link-grid a { display: flex; align-items: center; gap: 14px; padding: 14px 24px; color: #4f84bf; font-size: 16px; }
.link-list a:hover, .link-grid a:hover { background: var(--sky); color: var(--blue); text-decoration: none; }
.badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 5px;
  background: linear-gradient(135deg, #0b4a94, #2f86d6); display: block;
}
.badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 18px; }
.link-grid li { border: 1px solid #e3effb; border-radius: 6px; }
.link-grid a { padding: 10px 16px; }

.banner { position: relative; overflow: hidden; padding: 10px; }
.viewport { overflow: hidden; border-radius: 4px; }
.slides { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; }
.slide img { display: block; width: 100%; aspect-ratio: 820 / 315; object-fit: cover; border-radius: 4px; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(11,74,148,.55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.banner:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-btn.prev { left: 20px; } .car-btn.next { right: 20px; }
.dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; box-shadow: 0 0 3px rgba(0,0,0,.4); }
.dots button.on { background: #fff; }

.intro-card { display: flex; gap: 26px; align-items: flex-start; margin-top: 22px; padding: 26px 30px; flex-wrap: wrap; }
.intro-card .logo-tile { width: 150px; }
.intro-card .rich { flex: 1 1 360px; color: #1b5da9; }
.intro-card .more { flex-basis: 100%; text-align: right; }
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.promo figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.promo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- people / timeline / members ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { display: flex; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; }
.person > img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.person h3 { font-size: 19px; color: var(--blue); }
.person .role { color: var(--blue-l); margin-bottom: 6px; }
.person p { font-size: 14px; line-height: 1.75; margin-bottom: .4em; }
.org { text-align: center; overflow-x: auto; }
.org img { max-width: 100%; }

.timeline { position: relative; margin-left: 10px; padding-left: 28px; border-left: 3px solid var(--line); }
.timeline li { position: relative; margin-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 22px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.ev-card { display: flex; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; align-items: flex-start; }
.ev-card img { width: 220px; flex: none; border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
.ev-card h3 { font-size: 17px; color: var(--blue); margin-bottom: 4px; }
.ev-card p { font-size: 14px; color: var(--text); }

.members { display: grid; gap: 24px; }
.member { display: flex; gap: 30px; padding: 26px; align-items: flex-start; }
.m-photo { width: 300px; flex: none; border-radius: 6px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.m-text h2 { font-size: 21px; color: var(--blue); line-height: 1.4; }
.m-text h3 { font: 400 14px Arial, sans-serif; color: var(--muted); margin: 2px 0 10px; }
.m-text p { margin-bottom: .7em; }
.m-text .extra { margin-top: 12px; border-radius: 4px; }

/* ---------- news ---------- */
.news-list li { border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border: 0; }
.news-list a { display: flex; gap: 22px; padding: 20px 6px; color: inherit; }
.news-list a:hover { background: var(--sky); text-decoration: none; }
.thumb { width: 220px; flex: none; }
.thumb img, .thumb .ph { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.thumb .ph { display: grid; place-items: center; font: 700 30px Arial, sans-serif; color: rgba(255,255,255,.85); background: linear-gradient(135deg, #0b4a94, #3b97e6); }
.n-text h2 { font-size: 18px; color: var(--blue); line-height: 1.5; margin-bottom: 2px; }
.n-text .date { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.n-text p { color: var(--text); font-size: 14px; }

.article { max-width: 940px; margin: 0 auto; }
.article h1 { font-size: 26px; text-align: center; color: var(--blue); line-height: 1.5; }
.article header { text-align: center; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.article .date { color: var(--muted); font-size: 13px; margin-top: 4px; }
.article .crumb { margin-bottom: 14px; font-size: 14px; }
.article .rich { font-size: 16px; line-height: 1.9; }

/* ---------- forms ---------- */
.contact { margin-bottom: 4px; }
.lead { margin-bottom: 18px; }
.mailform { display: grid; gap: 22px; margin-top: 8px; }
.field label { display: block; font-weight: 500; }
.field input[type=text], .field textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 12px; font: inherit; color: var(--text);
  border: 1px solid #b7d3ee; border-radius: 4px; background: #fff;
}
.field input[type=text]:focus, textarea:focus { outline: 2px solid rgba(18,96,184,.35); border-color: var(--blue); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { padding: 0; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.opt { display: inline-flex; align-items: center; gap: 6px; font-weight: 400 !important; }
.opt input.inline { width: 220px; margin: 0 0 0 4px; padding: 4px 8px; border: 1px solid #b7d3ee; border-radius: 4px; font: inherit; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.field.wide { grid-column: 1 / -1; }
h3.sub { font-size: 17px; color: var(--blue); font-weight: 600; margin-top: 6px; }
.note { padding: 12px 16px; background: var(--sky); border-left: 4px solid var(--blue); border-radius: 4px; font-size: 14px; }
.note p + p { margin-top: 4px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.result { padding: 14px; border: 1px dashed var(--blue); border-radius: 6px; background: #fbfdff; }
.result textarea { width: 100%; margin: 8px 0; padding: 8px; font: 14px/1.6 monospace; border: 1px solid #b7d3ee; border-radius: 4px; }
.help { margin-top: 18px; color: var(--muted); font-size: 14px; padding-left: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%232f86d6'/%3E%3Ctext x='12' y='17' font-size='15' font-family='Arial' font-weight='700' fill='white' text-anchor='middle'%3E?%3C/text%3E%3C/svg%3E") no-repeat 0 4px / 20px; }

/* ---------- footer ---------- */
.site-footer { background: #0b3f7e; color: #bcd6f2; text-align: center; padding: 22px 0 26px; font-size: 13px; }
.site-footer a { color: #e6f1ff; margin: 0 14px; }
.foot-nav { margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; }
  .side { order: 2; }
  .tagline { display: none; }
  .people { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .logo img { height: auto; width: 100%; max-width: 480px; }
  .head-in { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .site-nav ul { flex-wrap: wrap; }
  .site-nav li { flex: 1 1 25%; }
  .site-nav li + li::before { display: none; }
  .site-nav a b { font-size: 14px; }
  .page-card { padding: 20px 16px 24px; }
  .page-title { font-size: 22px; }
  .member, .news-list a, .ev-card { flex-direction: column; }
  .m-photo, .thumb, .ev-card img { width: 100%; }
  .float-l, .float-r { float: none; display: block; margin: 0 auto 16px; }
  .intro-card { padding: 18px 16px; }
  .promo, .grid2, .link-grid { grid-template-columns: 1fr; }
  .person { flex-direction: column; align-items: center; text-align: center; }
  .article h1 { font-size: 22px; }
  .timeline { padding-left: 20px; }
  .timeline li::before { left: -30px; }
}
@media (prefers-reduced-motion: reduce) { .slides { transition: none; } }
