:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --surface: #ffffff;
  --border: #e8eaed;
  --border-strong: #dcdfe4;
  --text: #1d1d1f;
  --text-secondary: #5f6368;
  --text-muted: #8b9098;
  --accent: #4d6bfe;
  --accent-hover: #3b57e0;
  --accent-soft: #eef1ff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 4px 16px rgba(16, 24, 40, 0.04);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
section[id] { scroll-margin-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 14px; font-weight: 650; }
.brand-text small { font-size: 12px; color: var(--text-secondary); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero { padding: 108px 0 88px; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 820px; }
.pill, .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 5px 12px;
}
.eyebrow { background: transparent; padding: 0; color: var(--accent); }
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 24px 0 20px;
  font-weight: 750;
}
.hero-accent { color: var(--accent); }
.hero-subtitle {
  font-size: 20px;
  color: var(--text);
  margin: 0 0 12px;
  font-weight: 550;
}
.hero-desc { font-size: 16px; color: var(--text-secondary); margin: 0 0 32px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* 通用区块 */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  font-weight: 700;
}
.section-lead { color: var(--text-secondary); font-size: 15px; margin: 0; max-width: 460px; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 550; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* 卡片网格 */
.card-grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.info-card, .news-card, .member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.info-card:hover, .news-card:hover, .member-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.07);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 18px;
}
.info-card h3, .news-card h3, .member-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 650;
}
.info-card p, .news-card p, .member-card p { font-size: 14px; margin: 0 0 4px; }
.muted { color: var(--text-secondary); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 9px;
}

.panel {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.panel h3 { font-size: 17px; margin: 0 0 10px; font-weight: 650; }
.panel p { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* 动态卡片 */
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.news-card h3 { font-size: 17px; }
.news-card p { color: var(--text-secondary); margin-bottom: 20px; }

/* 相册 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item { margin: 0; }
.gallery-photo {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.photo-symbol { font-size: 32px; line-height: 1; opacity: 0.5; }
.photo-name { font-size: 16px; font-weight: 600; letter-spacing: 0.06em; }
.photo-1 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.photo-2 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.photo-3 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.photo-4 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; }
.photo-5 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #9d174d; }
.photo-6 { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #334155; }
.gallery-item:hover .gallery-photo {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.gallery-item figcaption { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 10px; }

/* 成员 */
.member-card { text-align: center; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
}
.avatar-1 { background: #dbeafe; color: #1e40af; }
.avatar-2 { background: #dcfce7; color: #166534; }
.avatar-3 { background: #fef3c7; color: #92400e; }
.avatar-4 { background: #e0e7ff; color: #3730a3; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-grid h2 { font-size: 30px; letter-spacing: -0.02em; margin: 10px 0 12px; }
.contact-list { margin-top: 28px; border-top: 1px solid var(--border); }
.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.contact-key { color: var(--text-secondary); }
.contact-val { color: var(--text); text-align: right; }
.form-panel { margin-top: 0; }
.form-panel label { display: block; font-size: 13px; font-weight: 550; margin: 16px 0 6px; }
.form-panel input, .form-panel textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-panel input:focus, .form-panel textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.12);
}
.form-panel .btn { margin-top: 20px; width: 100%; }
.form-note { font-size: 12px !important; color: var(--text-muted) !important; margin-top: 12px !important; }

/* 页脚 */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 14px; }
.footer-brand p { font-size: 12px; color: var(--text-secondary); margin: 2px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

/* 新闻详情弹窗 */
.news-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(80vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
}
.news-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); }
.dialog-close { background: none; border: 0; padding: 0 4px; font-size: 26px; line-height: 1; color: var(--text-muted); cursor: pointer; }
.dialog-close:hover { color: var(--text); }
.news-dialog h2 { font-size: 24px; line-height: 1.4; margin: 18px 0 20px; }
.dialog-body p { font-size: 15px; line-height: 1.9; color: var(--text-secondary); margin: 0 0 16px; }
.dialog-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
button.text-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-size: 14px; font-weight: 550; cursor: pointer; }
button.text-link:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 36px; }
  .nav { gap: 18px; }
}
@media (max-width: 720px) {
  .header-inner { height: 60px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .brand-text strong { font-size: 13px; }
  .hero { padding: 72px 0 60px; }
  .hero h1 { font-size: 34px; }
  .hero-subtitle { font-size: 17px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin-top: 48px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .grid-4, .grid-3, .gallery-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
