/* ==========================================================================
   上海东信会计师事务所 — 1:1 复刻原站视觉（screen.css / media.css 提炼）
   色值、字号、间距均取自原站真实 CSS：
   品牌蓝 #2d5390 / 强调红 #de002e / 灰字 #74767a / 暖灰 #F3F2EE / 下拉灰 #E9E6DF
   ========================================================================== */

:root {
  --blue: #2d5390;
  --red: #de002e;
  --gray: #74767a;
  --warm: #F3F2EE;
  --drop: #E9E6DF;
  --ink: #000000;
  --white: #ffffff;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "news gothic", Arial, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:active, a:focus { color: var(--red); text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p { margin-top: 0; }

/* ---------- 布局容器（原站 .container：calc(100% - 64px) 居中） ---------- */
.container {
  width: calc(100% - 64px);
  max-width: 1232px;
  margin-right: auto;
  margin-left: auto;
}
.row { display: flex; flex-wrap: wrap; margin-left: -16px; margin-right: -16px; }
.row > [class*="col-"] { padding-left: 16px; padding-right: 16px; }
.col-xs-12 { width: 100%; }

/* ==========================================================================
   页头（原站 .header-top：移动端 padding 48px 0 32px；
   ≥960px 固定高 128px、logo 绝对垂直居中，照原站 screen.css）
   ========================================================================== */
.main-header { background: var(--white); }
.header-top {
  padding: 48px 0 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 960px) {
  .header-top { padding: 0; height: 128px; display: block; }
  .header-top .logo { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
}

/* Logo 防复制：CSS background-image 承载，不可选中/点击/拖拽/右键另存 */
.logo {
  display: block;
  width: 393px;
  max-width: 60vw;
  aspect-ratio: 996 / 234;
  background-image: url('/assets/img/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  cursor: default;
  pointer-events: none;
}

/* 移动端汉堡按钮（原站移动端为汉堡菜单） */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px 8px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 26px; margin: 5px auto;
  background: var(--blue);
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   主导航（原站 .mega：白色条 + 顶部发丝线，链接 #2d5390，hover 下划线）
   ========================================================================== */
.mega { background: var(--white); box-shadow: inset 0 1px 0 0 var(--warm); position: relative; z-index: 20; }
.mega__level-1 { display: flex; }
.mega__level-1 > li { margin-right: 48px; }
.nav-link {
  display: block;
  color: var(--blue);
  font-size: 16px;
  line-height: 62px;
  min-height: 64px;
  padding: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.nav-link:hover, .nav-link:focus { color: var(--blue); border-bottom: 2px solid var(--blue); }
.nav-link--current { border-bottom: 2px solid var(--blue); font-weight: 700; }

/* 服务下拉（原站 .mega__level--2：#E9E6DF 整宽面板） */
.has-dropdown { position: static; }
.mega__level-2 {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--drop);
  border-bottom: 1px solid var(--drop);
  z-index: 30;
}
.has-dropdown:hover .mega__level-2,
.has-dropdown:focus-within .mega__level-2 { display: block; }
.mega__panel { display: flex; padding: 32px 0 16px; }
.mega__group { width: 25%; padding-right: 32px; }
.mega__group-name {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.mega__group-name:hover, .mega__group-name:focus { color: var(--red); }
.mega-link {
  display: block;
  color: var(--blue);
  font-size: 16px;
  padding: 0 0 16px 0;
  transition: color .3s;
}
.mega-link:hover, .mega-link:focus { color: var(--red); }

/* ==========================================================================
   面包屑（原站 .breadcrumbs：#F3F2EE 底）
   ========================================================================== */
.breadcrumbs { background: var(--warm); }
.breadcrumbs ul { display: flex; flex-wrap: wrap; padding: 10px 0; margin: 0; }
.breadcrumbs li { font-size: 14px; color: var(--gray); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--gray); }
.breadcrumbs a { color: var(--blue); }

/* ==========================================================================
   横幅（原站 .article-banner-block--illustration.article-banner-small-size）
   图片 + #2d5390 80% 遮罩 + 白色标题，内容上下 64px
   ========================================================================== */
.article-banner-block { position: relative; overflow: hidden; background: var(--blue); }
.article-banner-block .background {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.article-banner-block .background-underlay {
  position: absolute; inset: 0;
  background-color: var(--blue);
  opacity: 0.8;
}
.article-banner-block .container { position: relative; z-index: 2; }
.article-banner-small-size .banner-inner { padding: 64px 0; }
.article-banner-block .title {
  color: var(--white);
  font-size: 36px;
  line-height: 60px;
  font-weight: 400;
  margin: 0;
}
/* 首页口号（原站内联样式：Georgia、斜体、字距 5px、42px、字重 500，不随断点缩放） */
.article-banner-block .title--slogan {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 5px;
  font-size: 42px;
  line-height: 1.4;
}

/* ==========================================================================
   按钮（原站 .btn-primary：2px 描边，hover 反色填充）
   ========================================================================== */
.btn-primary {
  display: inline-block;
  padding: 10px 32px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--blue);
  background: transparent;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
.btn-primary:hover, .btn-primary:focus { color: var(--white); background: var(--blue); }
.article-banner-block .btn-primary,
.extended-banner-block .btn-primary { color: var(--white); border-color: var(--white); }
.article-banner-block .btn-primary:hover,
.extended-banner-block .btn-primary:hover { color: var(--blue); background: var(--white); }

/* ==========================================================================
   正文两栏布局（原站 .withSecondaryNav：col-md-3 侧栏 + col-md-9 内容）
   ========================================================================== */
.t2-content { padding: 48px 0 48px; }
.col-md-3, .col-md-9 { width: 100%; }
@media (min-width: 1024px) {
  .col-md-3 { width: 25%; }
  .col-md-9 { width: 75%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-8 { width: 66.6667%; }
  .col-md-12 { width: 100%; }
  .col-sm-7 { width: 58.3333%; }
  .col-sm-9 { width: 75%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .col-sm-6 { width: 50%; }
}

/* 二级导航（原站 .secondary-nav：蓝色 18px 链接，hover 红） */
.secondary-nav li { margin-bottom: 16px; position: relative; }
.secondary-nav .backTo {
  font-size: 24px;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 24px;
}
.secondary-nav li a { color: var(--blue); font-size: 18px; display: inline-block; }
.secondary-nav li a:hover, .secondary-nav li a:focus { color: var(--red); }
.secondary-nav li a.highlight { font-weight: 700; }
.secondary-nav li > ul { padding-left: 24px; padding-top: 16px; }
.secondary-nav li > ul li { margin-bottom: 8px; position: relative; }
.secondary-nav li > ul li a { font-size: 16px; }
.secondary-nav li > ul li a.sub-highlight::before {
  content: '';
  position: absolute;
  width: 2px; margin-left: -15px;
  top: 2px; bottom: 2px;
  background: var(--blue);
}

/* 富文本（原站 .richtext：18px / 32px） */
.richtext p, .richtext li { font-size: 18px; line-height: 32px; margin-bottom: 16px; }
.richtext .svc-intro { font-size: 14px; line-height: 26px; font-weight: 700; }
.richtext .blue { color: var(--blue); }
.richtext .svc-list-title { color: var(--blue); font-weight: 700; font-size: 14px; margin: 24px 0 12px; }
.richtext .svc-item { color: var(--blue); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.richtext .svc-item::before { content: "●"; margin-right: 8px; }
.red { color: var(--red); }
.lrg-intro { font-size: 18px; line-height: 32px; }

/* 服务板块锚点（吸顶头偏移） */
.svc-section { scroll-margin-top: 24px; padding-bottom: 48px; }
.svc-section + .svc-section { border-top: 1px solid var(--warm); padding-top: 48px; }
.svc-section h2 { font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 24px; }

/* ==========================================================================
   相关行业（原站行业页：3 列卡，图片 200px 高、10px 圆角）
   ========================================================================== */
.industry-results { padding: 48px 0 96px; }
.industry-item { margin-bottom: 32px; }
.industry-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.industry-item h5 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
.industry-item p { font-size: 14px; line-height: 26px; margin-bottom: 0; }

/* ==========================================================================
   活动页（原站 events：play.jpg 大横幅 + 最新活动 + 活动日历）
   ========================================================================== */
.extended-banner-block { position: relative; overflow: hidden; background: #1a1a1a; }
.extended-banner-block .background {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.extended-banner-block .mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.extended-banner-block .container { position: relative; z-index: 2; }
.extended-banner-block .banner-inner { padding: 128px 0; }
.extended-banner-block .title { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.extended-banner-block .name { color: var(--white); font-size: 40px; line-height: 48px; margin: 0 0 16px; font-weight: 400; }
.extended-banner-block .date { color: var(--white); font-size: 14px; margin-bottom: 32px; }

.category-heading { font-size: 24px; font-weight: 400; color: var(--ink); margin: 0 0 32px; }
.news-section { padding: 48px 0; }

/* 最新活动卡（原站 .lastnews_box） */
.lastnews_box { display: block; border: 1px solid #e5e5e5; color: var(--ink); max-width: 420px; }
.lastnews_box:hover { color: var(--ink); border-color: var(--blue); }
.lastnews_box .ls_topic { display: block; color: var(--blue); font-size: 14px; padding: 16px 16px 0; }
.lastnews_box .ls_image {
  height: 200px;
  background-size: cover;
  background-position: center;
  margin: 16px;
}
.lastnews_box .ls_container { padding: 0 16px 16px; }
.lastnews_box .ls_title { font-size: 14px; line-height: 26px; }

/* 活动日历列表（原站 .result） */
.result { border-top: 1px solid #e5e5e5; padding: 24px 0; }
.result_title { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
.result_time { color: var(--gray); font-size: 14px; margin-bottom: 8px; }
.result_mess { font-size: 14px; line-height: 26px; margin-bottom: 8px; }

/* ==========================================================================
   联系我们页（原站 contact：表单 col-md-9 + sml-promo 卡 col-md-3）
   ========================================================================== */
.contactfm { padding: 48px 0 96px; }
.contact-form p { margin-bottom: 24px; }
.labelHeading { display: block; font-size: 14px; margin-bottom: 8px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  max-width: 480px;
  border: 2px solid var(--gray);
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color .3s;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus { border-color: var(--blue); outline: none; }
.contact-form input.field-error,
.contact-form textarea.field-error { border-color: var(--red); }
.contact-form label.inline { display: inline-flex; align-items: center; margin-right: 24px; font-size: 14px; cursor: pointer; }
.contact-form label.inline input { margin-right: 6px; }
.multiple_choice .labelHeading { display: inline-block; margin-right: 16px; }
.error-text { display: none; color: var(--red); font-size: 12px; margin-top: 4px; }
.error-text.show { display: block; }
.form-status { margin-top: 16px; font-size: 14px; line-height: 24px; }
.form-status--ok { color: var(--blue); }
.form-status--error { color: var(--red); }

/* 联系信息卡（原站 .sml-promo：暖灰底卡片） */
.sml-promo {
  background: var(--warm);
  padding: 24px;
  margin-bottom: 32px;
}
.sml-promo .link_title { display: block; color: var(--ink); font-size: 20px; margin-bottom: 16px; }
.sml-promo .contact_way { display: block; color: var(--blue); font-size: 16px; margin-bottom: 8px; }
.sml-promo .contact_way:hover { color: var(--red); }
.sml-promo p { font-size: 14px; line-height: 26px; margin-bottom: 0; }

/* ==========================================================================
   页脚（原站 footer：#2d5390 底，padding 128px 0 96px，白字）
   ========================================================================== */
footer[role="contentinfo"] {
  background: var(--blue);
  padding: 64px 0 64px;
  color: var(--white);
}
.social-media-list { display: flex; }
.social-media-list li { margin-right: 24px; }
.social-media-list a { display: inline-block; }
.social-media-list img { height: 30px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; }
.footer-col { width: 33.3333%; }
.footer-col .column-title { display: block; color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--white); font-size: 14px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.copyright { padding-top: 35px; text-align: center; width: 100%; }
.copyright p { margin: 0; font-size: 14px; }
.copyright a { color: var(--white); }

/* ==========================================================================
   移动端导航面板
   ========================================================================== */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--warm);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 8px 0; }
.mobile-nav a, .mobile-nav .m-nav-parent {
  display: block;
  padding: 12px 32px;
  color: var(--blue);
  font-size: 18px;
  cursor: pointer;
}
.mobile-nav a:hover { color: var(--red); }
.m-nav-sub { display: none; background: var(--warm); }
.m-nav-sub.open { display: block; }
.m-nav-sub a { padding-left: 48px; font-size: 16px; }
.m-nav-parent { position: relative; }
.m-nav-parent::after {
  content: "";
  position: absolute; right: 32px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}
.m-nav-parent.open::after { transform: translateY(-30%) rotate(225deg); }

/* ==========================================================================
   响应式（对齐原站 media.css：1024 / 959 / 768 / 479）
   ========================================================================== */
@media (max-width: 1023px) {
  .t2-content { padding: 32px 0 64px; }
  .secondary-nav-container { display: none; }
  .footer-col { width: 50%; margin-bottom: 24px; }
  footer[role="contentinfo"] { padding: 64px 0 48px; }
  .social-media-float { margin-bottom: 32px; }
}
@media (max-width: 959px) {
  .mega { display: none; }
  .nav-toggle { display: block; }
  /* 原站移动端：页头 padding 48px 0 32px，logo 高 36px（996×234 比例 → 宽约 153px） */
  .header-top { padding: 48px 0 32px; }
  .logo { width: 153px; }
  .article-banner-small-size .banner-inner { padding: 40px 0; }
  .extended-banner-block .banner-inner { padding: 64px 0; }
  .extended-banner-block .name { font-size: 28px; line-height: 36px; }
}
@media (max-width: 768px) {
  /* 原站 media.css：横幅标题 30px/40px；口号内联 42px 不缩放 */
  .article-banner-block .title { font-size: 30px; line-height: 40px; }
  .article-banner-block .title--slogan { font-size: 42px; }
}
@media (max-width: 767px) {
  .industry-item img { height: 160px; }
  .richtext p, .richtext li { font-size: 16px; line-height: 28px; }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea { max-width: 100%; }
}
@media (max-width: 479px) {
  .footer-col { width: 100%; }
}

/* 无障碍 */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media print {
  .mega, .mobile-nav, .nav-toggle, .skip-link { display: none !important; }
}
