* { box-sizing: border-box; }
:root { --site-width: 1180px; --site-gutter: 20px; --site-outer-width: 1220px; --brand-blue: #0f7fc8; }
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; color: #1f2933; background: #fff; display: flex; flex-direction: column; }
body > main, .site-main { flex: 1 0 auto; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar { border-bottom: 1px solid #e5e7eb; background: #fff; }
.topbar-inner { width: 100%; max-width: var(--site-outer-width); margin: 0 auto; min-height: 112px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--site-gutter); }
.brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.brand-logo { flex: 0 0 88px; width: 88px; height: 88px; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { display: block; font-size: 24px; font-weight: 700; color: var(--brand-blue); line-height: 1.3; white-space: nowrap; }
.brand-subtitle { display: block; margin-top: 16px; font-size: 13px; color: #334155; letter-spacing: .2px; white-space: nowrap; }
.hotline { text-align: right; color: #64748b; font-size: 14px; }
.hotline strong { display: block; color: var(--brand-blue); font-size: 22px; margin-top: 4px; }
.nav { background: #0f3c68; }
.nav-inner { width: 100%; max-width: var(--site-outer-width); margin: 0 auto; display: flex; flex-wrap: wrap; padding: 0 var(--site-gutter); }
.nav a { color: #fff; padding: 16px 22px; font-size: 15px; }
.nav a.active, .nav a:hover { background: #2563eb; }
.hero { background: linear-gradient(135deg, #0f3c68, #2563eb); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.12)); }
.hero-slide { display: none; background-size: cover; background-position: center; }
.hero-slide.active { display: block; }
.hero-inner { width: 100%; max-width: var(--site-outer-width); margin: 0 auto; min-height: 360px; padding: 72px var(--site-gutter); display: flex; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: 42px; line-height: 1.2; }
.hero p { max-width: 680px; margin: 18px 0 0; font-size: 18px; color: #dbeafe; line-height: 1.8; }
.hero-dots { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.hero-dot { width: 26px; height: 4px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.hero-dot.active { background: #fff; }
.section { width: 100%; max-width: var(--site-outer-width); margin: 0 auto; padding: 56px var(--site-gutter); }
.section-title { display: flex; align-items: end; justify-content: space-between; border-bottom: 2px solid #0f3c68; padding-bottom: 12px; margin-bottom: 28px; }
.section-title h2 { margin: 0; color: #0f3c68; font-size: 28px; }
.section-title span { color: #94a3b8; margin-left: 10px; font-size: 15px; }
.more { color: var(--brand-blue); font-size: 14px; }
.richtext { line-height: 1.9; color: #334155; }
.profile-layout { display: flex; align-items: center; gap: 72px; }
.profile-layout > .richtext { flex: 1 1 auto; min-width: 0; }
.profile-image { flex: 0 0 360px; margin-left: auto; min-height: 260px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #1e3a8a; font-weight: 700; }
.profile-image img { width: 100%; height: auto; object-fit: contain; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 30px; }
.project-item { display: block; min-width: 0; text-align: center; color: #222; }
.project-cover { width: 100%; aspect-ratio: 260 / 220; background: #f1f5f9; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #64748b; }
.project-cover img { width: 100%; height: calc(100% + 56px); object-fit: cover; object-position: center top; transition: transform .25s ease; }
.project-item h3 { margin: 13px 0 0; min-height: 24px; color: #222; font-size: 16px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.project-item:hover .project-cover img { transform: scale(1.04); }
.project-item:hover h3 { color: #0f3c68; }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-size: 14px; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d6dde7; color: #334155; background: #fff; }
.pager a:hover, .pager-current { border-color: #0f3c68; background: #0f3c68; color: #fff; }
.pager-disabled { color: #94a3b8; background: #f8fafc; }
.qualification-wall { display: flex; flex-wrap: wrap; gap: 18px; overflow: hidden; }
.qualification-image { flex: 0 0 calc((100% - 54px) / 4); height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qualification-image img { width: 100%; height: 100%; object-fit: contain; }
.card { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(15, 60, 104, .12); transform: translateY(-2px); }
.cover { height: 160px; background: #e8eef5; display: flex; align-items: center; justify-content: center; color: #64748b; }
.home-project-card { border: 0; border-radius: 0; background: transparent; }
.home-project-card:hover { box-shadow: none; }
.home-project-card .cover { background: transparent; }
.home-project-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { margin: 0 0 8px; font-size: 17px; color: #0f3c68; line-height: 1.5; }
.meta { color: #64748b; font-size: 13px; }
.list { display: grid; gap: 14px; }
.list-item { border-bottom: 1px solid #e5e7eb; padding: 18px 0; }
.list-item h3 { margin: 0 0 8px; color: #0f3c68; font-size: 20px; }
.list-item p { margin: 0 0 8px; color: #64748b; line-height: 1.7; }
.section > h1 { color: #0f3c68; margin: 0 0 12px; }
.project-detail { max-width: 1100px; }
.project-detail-head { text-align: center; border-bottom: 1px solid #e5e7eb; margin-bottom: 30px; padding-bottom: 24px; }
.project-detail-head h1 { margin: 0; color: #0f3c68; font-size: 24px; line-height: 1.4; }
.project-detail-head .meta { margin-top: 28px; color: #8a93a3; font-size: 14px; }
.project-detail-content { max-width: 860px; margin: 28px auto 0; text-align: left; }
.project-carousel { position: relative; max-width: 900px; margin: 18px auto 0; padding: 0 52px 58px; }
.project-carousel-stage { position: relative; width: 100%; aspect-ratio: 780 / 605; background: #f8fafc; overflow: hidden; }
.project-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateX(4%); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.project-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.project-slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.project-carousel-arrow { position: absolute; top: calc(50% - 12px); transform: translateY(-50%); z-index: 2; width: 42px; height: 72px; border: 0; background: transparent; color: #a5adba; font-size: 50px; line-height: 1; cursor: pointer; }
.project-carousel-arrow:hover { color: #2563eb; }
.project-carousel-prev { left: 0; }
.project-carousel-next { right: 0; }
.project-carousel-thumbs { position: absolute; left: 52px; right: 52px; bottom: 0; height: 48px; display: flex; justify-content: center; gap: 8px; overflow: hidden; }
.project-thumb { width: 64px; height: 48px; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; opacity: .78; }
.project-thumb.active { border-color: #2563eb; opacity: 1; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-detail > h1 { text-align: center; }
.article-detail > .meta { text-align: center; margin-bottom: 22px; }
.article-images { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 24px 0; }
.article-images img { width: 64%; max-width: none; height: auto; object-fit: contain; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 900px; margin: 36px auto 44px; text-align: center; }
.contact-card { min-width: 0; color: #0f172a; }
.contact-icon { width: 104px; height: 104px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.contact-icon img { width: 100%; height: 100%; object-fit: contain; }
.contact-card h3 { margin: 0 0 8px; color: #0f3c68; font-size: 15px; font-weight: 700; }
.contact-card p { margin: 0; color: #0f172a; font-size: 13px; line-height: 1.7; }
.contact-map-image { max-width: 870px; margin: 0 auto; overflow: hidden; }
.contact-map-image img { width: 100%; height: auto; display: block; }
.contact-map-empty { max-width: 870px; margin: 0 auto; padding: 36px 20px; text-align: center; color: #64748b; border: 1px dashed #cbd5e1; background: #f8fafc; }
.message-layout { display: grid; grid-template-columns: minmax(0, 560px) 500px; align-items: start; justify-content: space-between; gap: 72px; }
.message-main { min-width: 0; width: 100%; }
.message-side { width: 100%; padding-top: 36px; }
.message-side img { width: 100%; height: 340px; object-fit: cover; object-position: center; display: block; }
.message-main .form, .message-main .form-alert { max-width: none; }
.career-layout { display: grid; grid-template-columns: minmax(0, 1fr) 500px; align-items: start; gap: 72px; }
.career-main { flex: 1 1 0; min-width: 0; }
.career-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.career-tab { border: 1px solid #cbd5e1; background: #fff; color: #0f3c68; padding: 10px 18px; cursor: pointer; font: inherit; }
.career-tab.active, .career-tab:hover { background: #0f3c68; border-color: #0f3c68; color: #fff; }
.career-panel { display: none; }
.career-panel.active { display: block; }
.career-panel h3 { margin: 0 0 10px; color: #0f3c68; font-size: 24px; }
.career-side { width: 100%; padding-top: 52px; }
.career-side img { width: 100%; height: 340px; object-fit: cover; object-position: center; display: block; }
.apply-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 118px; min-height: 38px; border-radius: 8px; background: #1d7fc1; color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(29, 127, 193, .18); }
.apply-btn:hover { background: #0f3c68; color: #fff; }
.apply-btn-small { min-width: 104px; min-height: 34px; padding: 0 16px; font-size: 14px; }
.career-apply { margin-top: 22px; }
.form { max-width: 720px; display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; color: #334155; }
.field label b { color: #dc2626; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd5e1; border-radius: 4px; padding: 12px 13px; font: inherit; background: #fff; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .08); }
.field textarea { min-height: 132px; resize: vertical; }
.field-help { margin: 8px 0 0; color: #64748b; font-size: 13px; }
.field-error { min-height: 20px; margin-top: 6px; color: #dc2626; font-size: 13px; line-height: 1.5; }
.form-alert { max-width: 720px; margin: 0 0 18px; padding: 12px 14px; border-radius: 4px; line-height: 1.6; }
.form-alert.success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.form-alert.error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.btn { border: 0; border-radius: 4px; background: #0f3c68; color: #fff; padding: 12px 30px; cursor: pointer; font-size: 15px; min-width: 110px; }
.btn:hover { background: #2563eb; }
.footer { flex-shrink: 0; background: #111827; color: #d1d5db; padding: 18px 0 16px; }
.footer-inner { width: 100%; max-width: var(--site-outer-width); margin: 0 auto; padding: 0 var(--site-gutter); line-height: 1.8; font-size: 14px; }
.friend-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(209,213,219,.45); font-weight: 700; }
.friend-links strong { margin-right: 6px; }
.friend-links a { color: #f3f4f6; font-weight: 700; }
.friend-links a + a::before { content: "|"; margin: 0 13px; color: rgba(209,213,219,.9); }
.footer-info { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.empty { padding: 32px; text-align: center; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 6px; }
@media (max-width: 900px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 20px; gap: 12px; }
  .brand { align-items: center; gap: 14px; }
  .brand-logo { flex-basis: 64px; width: 64px; height: 64px; }
  .brand-title { font-size: 20px; }
  .brand-subtitle { margin-top: 6px; font-size: 12px; }
  .hotline { text-align: left; }
  .nav a { padding: 13px 14px; }
  .hero h1 { font-size: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qualification-image { flex-basis: calc((100% - 18px) / 2); height: 170px; }
  .profile-layout { flex-direction: column; align-items: stretch; gap: 28px; }
  .profile-image { flex-basis: auto; width: 100%; max-width: 420px; margin-left: 0; }
  .article-images img { width: 70%; }
  .contact-cards { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .message-layout, .career-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .message-main { max-width: none; width: 100%; }
  .message-side, .career-side { width: 100%; max-width: 520px; margin-left: 0; padding-top: 0; }
  .message-side img, .career-side img { height: auto; object-fit: contain; }
  .project-carousel { padding: 0 36px 54px; }
  .project-carousel-arrow { width: 32px; font-size: 42px; }
  .project-carousel-thumbs { left: 36px; right: 36px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .qualification-image { flex-basis: 100%; height: 160px; }
  .article-images img { width: 100%; max-width: none; }
  .project-detail-head h1 { font-size: 17px; }
  .project-carousel { padding: 0 0 50px; }
  .project-carousel-stage { aspect-ratio: 4 / 3; }
  .project-carousel-arrow { top: calc(50% - 18px); width: 36px; height: 56px; color: rgba(15, 60, 104, .75); background: rgba(255,255,255,.68); font-size: 38px; }
  .project-carousel-prev { left: 0; }
  .project-carousel-next { right: 0; }
  .project-carousel-thumbs { left: 0; right: 0; height: 42px; justify-content: flex-start; overflow-x: auto; }
  .project-thumb { flex: 0 0 56px; height: 42px; }
}
