/*
 * highleveltrans.com 全站样式表 —— 现代语义化重构版
 *
 * 重构说明：
 * - 原 39 页为 HTML 4.0 表格布局 + jQuery 轮播 + <marquee> 滚动，
 *   本文件以 Flex 等高布局、CSS 动画替代全部表现层脚本。
 * - 修复原版缺陷：短内容页右侧主栏（白盒）与左侧栏底部不对齐
 *   （links 页侧栏比主栏长出 85px）。现在 .container 为 flex 拉伸
 *   等高布局，两栏底部永远对齐。
 * - 内容控件（原 CMS 机器 ID #CSinglePage/#CDetailContent/#CTitleList 等）
 *   已全部替换为语义组件类（.rich-text/.detail-content/.article-list/
 *   .scroll-list/.page-nav/.data-table 等），统一在本文件维护。
 * - 图片路径相对本文件（assets/css/ → ../images/）。
 */

/* ================= 基础 ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff url(../images/top11.jpg) repeat-x center top;
}

body,
table, th, td,
input, select, textarea, button {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "微软雅黑", Arial, sans-serif;
}

a {
  text-decoration: none;
}

img {
  border: 0;
}

.page {
  width: 1000px;
  margin: 0 auto;
}

/* 仅供屏幕阅读器 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ================= 页头与主导航 ================= */

.site-header img.logo {
  display: block;
}

/* 导航条：原 CMenuMultiLevelN 表格菜单 → 语义化 ul */
.main-nav {
  height: 44px;
  background: url(../images/NAV44.jpg);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  display: flex;
  align-items: center;
}

/* 项目间 1×13px 分隔线（原 line.gif 图片） */
.main-nav li + li::before {
  content: "";
  width: 1px;
  height: 13px;
  background: url(../images/line.gif) no-repeat;
}

.main-nav a {
  padding: 0 8px;
  line-height: 44px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #ff0;
}

/* ================= 焦点图轮播（纯 CSS，原 nivoSlider） ================= */

.banner {
  /* border-box 下 1000 总宽 = 994 内容 + 3px×2 边框，与原版渲染一致 */
  width: 1000px;
  border: 3px solid #dedede;
}

.banner-frame {
  position: relative;
  width: 994px;
  height: 300px;
  overflow: hidden;
  background: url(../images/loading.gif) no-repeat 50% 50%;
}

.banner-frame img.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 994px;
  height: 300px;
  opacity: 0;
  animation: bannerFade 24s linear infinite;
}

.banner-frame img.slide:nth-of-type(2) { animation-delay: 6s; }
.banner-frame img.slide:nth-of-type(3) { animation-delay: 12s; }
.banner-frame img.slide:nth-of-type(4) { animation-delay: 18s; }

/* 圆点指示器（原 .nivo-controlNav，bullets.png 精灵同步高亮） */
.banner-dots {
  position: absolute;
  left: 884px;
  bottom: 3px;
  z-index: 99;
}

.banner-dots span {
  display: block;
  float: left;
  width: 22px;
  height: 22px;
  margin-right: 3px;
  text-indent: -9999px;
  background: url(../images/bullets.png) no-repeat;
}

.banner-dots span:nth-child(1) { animation: dotActive 24s linear infinite; }
.banner-dots span:nth-child(2) { animation: dotActive 24s linear infinite 6s; }
.banner-dots span:nth-child(3) { animation: dotActive 24s linear infinite 12s; }
.banner-dots span:nth-child(4) { animation: dotActive 24s linear infinite 18s; }

/* ================= 公告条（原 <marquee> 横向滚动） ================= */

.announce {
  position: relative;
  height: 34px;
  margin-top: 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 34px;
  color: #0050aa;
  text-align: left;
  background: url(../images/gs-bg.jpg);
}

/* 背景图左侧 0-100px 为"网站公告"标签。将其重绘于滚动文字上层：
   文字滚入标签区即被标签遮住（原站 marquee margin-left:100px 的
   避让视觉；overflow 裁剪边界为 padding box，无法用 padding 裁文字） */
.announce::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 34px;
  background: url(../images/gs-bg.jpg) no-repeat 0 0;
  z-index: 1;
}

/* padding-left:100% 使文字从容器右缘进入，
   translateX(-100%)（相对自身总宽）滚动到左缘完全退出 */
.announce-track {
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  padding-left: 100%;
  animation: announceX 60s linear infinite;
}

/* ================= 主体两栏（flex 等高，修复底部不对齐缺陷） ================= */

.container {
  display: flex;
  align-items: stretch;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.main {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}

/* 内容白盒：flex:1 保证与侧栏等高（原固定 height=545 导致短页露出缺口） */
.content-box {
  flex: 1;
  min-height: 545px;
  background: #fff;
  border-left: 1px solid #a6d4e4;
  border-right: 1px solid #a6d4e4;
  border-bottom: 1px solid #a6d4e4;
  text-align: left;
}

/* ================= 面包屑（原 .crumb） ================= */

.crumb {
  height: 32px;
  line-height: 32px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #369;
  text-align: left;
  background: url(../images/75032nva.jpg);
}

.crumb strong {
  font-weight: normal;
  margin-left: 10px;
  padding-left: 25px;
}

.crumb a:link,
.crumb a:visited {
  color: #369;
  text-decoration: none;
}

.crumb a:hover {
  color: #ff6000;
  text-decoration: underline;
}

.crumb a:active {
  color: #888;
  text-decoration: none;
}

/* ================= 侧栏盒子（联系我们 / 资料下载 / 友情链接） ================= */

.box-title {
  height: 32px;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: url(../images/24032.jpg) repeat;
}

.box-title span {
  float: left;
  margin: 9px 0 0 40px;
}

.box-title .more {
  display: block;
  float: right;
  margin: 8px 15px 0 0;
}

.box-body {
  background: #e6f3ff;
  border-left: 1px solid #a6d4e4;
  border-right: 1px solid #a6d4e4;
  border-bottom: 1px solid #a6d4e4;
  /* BFC 边界：阻止子元素（scroll-list/vscroll-brands 的 margin）
     穿透盒外，复刻原站 td 边界的渲染，标题条与蓝盒无缝衔接 */
  overflow: hidden;
}

.box-contact .box-body { min-height: 250px; }
.box-downloads .box-body { min-height: 100px; }
.box-links .box-body { min-height: 100px; }

/* 联系方式卡片（原 .lianxi 内联样式块） */
.contact-card {
  width: 220px;
  margin-left: 10px;
  padding: 0;
  font-size: 13px;
  line-height: 20px;
  color: #333;
  text-align: left;
}

/* 原站以 <br> 分行、行高 20px 紧凑排列；p 默认外边距会造成行间断缝 */
.contact-card p {
  margin: 0;
}

/* 资料下载滚动列表（原 #CTitleListScroll + .title-listps_ 浮动布局） */
.scroll-list {
  margin: 10px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.scroll-list li {
  line-height: 24px;
}

.scroll-list a {
  padding-left: 15px;
  background: url(../images/090826095650.gif) no-repeat left center;
}

.scroll-list a:link,
.scroll-list a:visited {
  color: #0050aa;
  text-decoration: none;
}

.scroll-list a:hover,
.scroll-list a:active {
  color: #ff6600;
  text-decoration: underline;
}


/* ================= 竖向滚动（原 <marquee direction="up">） ================= */

/* 轨道含两份内容，translateY(-50%) 恰好滚动一份，无缝循环 */
.vscroll-track {
  animation: vscrollUp 90s linear infinite;
}

/* 轨道内两份内容（第一份保留原控件 id，第二份为 aria-hidden 副本）统一排版，
   取代各页 head 中 #CSinglePage-xxx 的同值规则 */
.vscroll-track > div {
  margin: 0 0 0 10px;
  padding: 20px 0;
  font-size: 14px;
  line-height: 22px;
  color: #444;
  text-align: left;
}

/* 首页“公司业绩”面板 */
.vscroll {
  height: 280px;
  margin: 10px 0;
  overflow: hidden;
}

/* 侧栏“友情链接”面板 */
.vscroll-brands {
  height: 90px;
  margin: 10px 0;
  overflow: hidden;
}

/* 友情链接滚动列表（原品牌链接表格 → ul） */
.brand-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-list img {
  display: block;
}

/* ================= 首页布局 ================= */

.home-top {
  display: flex;
}

.home-intro {
  width: 490px;
}

.home-side {
  width: 250px;
  margin-left: 10px;
}

/* 公司简介文字块（原 488 表格 td padding） */
.home-intro-text {
  padding: 15px 5px 5px;
}

/* 双面板行（原 750×285 白表格） */
.home-panels {
  display: flex;
  flex: 1;
  background: #fff;
  border-left: 1px solid #a6d4e4;
  border-right: 1px solid #a6d4e4;
  border-bottom: 1px solid #a6d4e4;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel + .panel {
  margin-left: 10px;
}

.panel-title {
  height: 32px;
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: url(../images/37032.jpg) repeat;
}

.panel-title span {
  float: left;
  margin: 9px 0 0 30px;
}

.panel-title .more {
  display: block;
  float: right;
  margin: 9px 10px 0 0;
}

.panel-body {
  flex: 1;
  overflow: hidden;
  background: #eff5f7;
  border-left: 1px solid #a6d4e4;
  border-right: 1px solid #a6d4e4;
  border-bottom: 1px solid #a6d4e4;
}

/* “如何选择翻译公司”文字块（原 368 表格 td padding） */
.panel-text {
  padding: 15px 5px 5px;
}

/* ================= 内容组件（语义类，取代原 CMS 机器 ID 规则） ================= */

/* 静态内容页（原 #CSinglePage-xxx：padding 20px + 14px/#444/24px） */
.rich-text {
  font-size: 14px;
  line-height: 24px;
  color: #444;
  text-align: left;
}

.content-box > .rich-text {
  padding: 20px;
}

/* 原版整页 12px 内容（contact/pricing/achievements，span 字号包裹已剥离） */
.rich-text--compact {
  font-size: 12px;
}

/* 小节标题（原 12px <strong> 行 → h3 语义化，字号随容器） */
.rich-text h3 {
  font-size: 1em;
}

/* 首页“如何选择翻译公司”面板（原 line-height:18px） */
.panel-text .rich-text {
  line-height: 18px;
}

/* 详情页（原 #CDetailContent-xxx：margin-left 10px + padding 20px） */
.detail-content {
  margin: 0 0 0 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 24px;
  color: #444;
  text-align: left;
}

/* 新闻/招聘详情原带 1px 边框；下载详情无边框 */
.detail-content--framed {
  border: 1px solid #d4d8d9;
}

/* 下载详情标题栏（原 .down-con h2） */
.detail-content h2 {
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  text-align: center;
  border-bottom: 1px dashed #d5d5d5;
}

/* 新闻详情标题（原 .new-con h3） */
.detail-content h3 {
  font-size: 16px;
  font-weight: bold;
  line-height: 24px;
  text-align: center;
}

/* 新闻详情日期行（原 .new-con .time） */
.article-meta {
  font-size: 12px;
  color: #888;
  text-align: center;
  border-bottom: 1px dashed #ccc;
  margin-bottom: 10px;
}

/* 新闻详情正文（原 .new-con .con） */
.article-body {
  font-size: 14px;
  line-height: 200%;
}

.article-body p {
  font-size: 14px;
  line-height: 200%;
  text-indent: 2em;
}

.article-body img {
  display: block;
  margin: 10px auto;
}

/* 招聘/下载详情元信息（原 .hr-con 表格 / .down-con 表格 → dl） */
.detail-meta {
  margin: 0;
  font-size: 14px;
  line-height: 200%;
}

.detail-meta dt {
  float: left;
  clear: left;
  width: 100px;
  font-weight: bold;
  text-align: right;
}

.detail-meta dd {
  margin: 0 0 0 110px;
}

/* 招聘职位名（原 .hr-con td span） */
.detail-meta dd span {
  font-weight: bold;
}

/* 下载文件链接（原 .down-con td a 按钮样式） */
.detail-meta dd a {
  display: inline-block;
  height: 22px;
  line-height: 22px;
  padding: 0 10px;
  margin: 0 10px 10px 0;
  background-color: #f2f2f2;
  border: 1px solid #e4e4e4;
}

/* 招聘“我要应聘”（原 .hr-con-btn） */
.apply-cta {
  padding-top: 10px;
  text-align: center;
}

.apply-cta a {
  color: #ff6000;
}

/* 上一页/下一页（原 .turn-page-updown 表格 → nav；display:table 复刻原表格收缩居中） */
.page-nav {
  display: table;
  margin: 20px auto 0;
  font-size: 12px;
  line-height: 24px;
}

.page-nav span {
  margin: 0 10px;
  color: #444;
}

.page-nav span a:link,
.page-nav span a:visited {
  color: #444;
}

.page-nav a:link,
.page-nav a:visited {
  color: #6699ee;
  text-decoration: none;
}

.page-nav a:hover {
  color: #ff4e00;
  text-decoration: underline;
}

.page-nav a:active {
  color: #6699ee;
  text-decoration: none;
}

/* 数据表（原 border="1" width="100%" 表格；span 字号包裹已剥离） */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table td {
  padding: 2px 4px;
  border: 1px solid #b0b0b0;
}

/* 业绩表（原无边框 cellpadding="0" 表格） */
.data-table--plain td {
  padding: 0;
  border: 0;
}

/* 列表页（原 #CTitleList 表格行布局 → ul） */
.article-list {
  margin: 10px;
}

.article-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list li {
  height: 28px;
  padding-left: 3px;
  font-size: 12px;
  line-height: 28px;
  overflow: hidden;
}

.article-list a {
  float: left;
  padding-left: 20px;
  background: url(../images/list_li.gif) no-repeat 10px center;
}

/* 行日期（原右浮动 span） */
.article-list time {
  float: right;
  display: block;
  font-size: 12px;
  color: #999;
}

.article-list a:link {
  color: #444;
  text-decoration: none;
}

.article-list a:visited {
  color: #369;
  text-decoration: none;
}

.article-list a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.article-list a:active {
  color: #888;
  text-decoration: none;
}

/* 新闻列表分页（原 div.pagination） */
.pagination {
  padding: 3px;
  margin: 10px 0;
  font-size: 12px;
  text-align: center;
}

.pagination a {
  padding: 2px 5px;
  margin-right: 2px;
  border: 1px solid #9aafe5;
  color: #2e6ab1;
  text-decoration: none;
}

.pagination a:hover,
.pagination a:active {
  border-color: #2b66a5;
  color: #000;
  background-color: #ffffe0;
}

.pagination .current {
  padding: 2px 5px;
  margin-right: 2px;
  border: 1px solid navy;
  color: #fff;
  background-color: #2e6ab1;
  font-weight: bold;
}

.pagination .disabled {
  padding: 2px 5px;
  margin-right: 2px;
  border: 1px solid #929292;
  color: #929292;
}

/* 联系页布局组件（原 3 张布局表格 → 语义结构） */
.contact-grid {
  display: flex;
}

.contact-grid > div {
  flex: 1;
}

.contact-qr {
  width: 50%;
  text-align: center;
}

/* 付款账号（原三列表格：缩进 100px + 图片列 240px + 文字列并排） */
.pay-list {
  margin: 0 0 0 100px;
}

.pay-list dt {
  font-weight: bold;
}

.pay-list dd {
  display: flex;
  align-items: flex-start;
  margin: 0 0 10px;
}

/* 图片列 240px：对公 BOH 图左对齐，支付宝标识列内居中（原 td align） */
.pay-list .pay-logo {
  flex: 0 0 240px;
  margin: 0;
}

.pay-list dd:last-child .pay-logo {
  text-align: center;
}

.pay-list .pay-logo img {
  display: inline-block;
}

.pay-list .pay-info {
  flex: 1;
  min-width: 0;
}

.pay-list .pay-info p {
  margin: 0;
}

/* ================= 页脚 ================= */

.site-footer {
  margin-top: 8px;
}

.footer-inner {
  width: 1000px;
  height: 96px;
  padding-top: 8px;
  font-size: 12px;
  text-align: center;
  line-height: 180%;
  background: url(../images/footrr.jpg) no-repeat;
}

/* 页脚文字（原内联 color:#fff + #333 span 包裹 → 统一 #333） */
.footer-info {
  margin: 0;
  color: #333;
}

.footer-info a {
  color: #333;
}

.footer-badges {
  margin: 4px 0 0;
}

.footer-badges img {
  display: inline-block;
  vertical-align: middle;
}

/* ================= 动画 ================= */

/* 轮播交叉淡入：每张停留 22%，4% 完成过渡，24s 一轮 */
@keyframes bannerFade {
  0%   { opacity: 1; }
  22%  { opacity: 1; }
  26%  { opacity: 0; }
  99%  { opacity: 0; }
  100% { opacity: 1; }
}

/* 圆点高亮与轮播同步 */
@keyframes dotActive {
  0%     { background-position: 0 -22px; }
  24.99% { background-position: 0 -22px; }
  25%    { background-position: 0 0; }
  100%   { background-position: 0 0; }
}

/* 公告横向滚动：右缘进入 → 左缘退出 */
@keyframes announceX {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* 竖向滚动：轨道两份内容上移一份 */
@keyframes vscrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* 悬停暂停（原 marquee onmouseover="this.stop()"） */
.announce:hover .announce-track,
.vscroll:hover .vscroll-track,
.vscroll-brands:hover .vscroll-track {
  animation-play-state: paused;
}

/* 减少动态效果偏好：停止动画并静态展示首屏内容 */
@media (prefers-reduced-motion: reduce) {
  .banner-frame img.slide,
  .banner-dots span,
  .announce-track,
  .vscroll-track {
    animation: none;
  }

  .banner-frame img.slide:first-of-type {
    opacity: 1;
  }

  .banner-dots span:first-child {
    background-position: 0 -22px;
  }

  .announce-track {
    padding-left: 0;
    margin-left: 100px;
  }
}
