/* base.css - 样式初始化与怪异盒模型设置 */

/* 1. 全局怪异盒模型设置 (IE盒模型: width = content + padding + border) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. 基础标签样式重置 */
html {
  /* 基础字体设置 */
  font-size: 16px;
  line-height: 1.5;
  color: #333; /* 基础文本颜色 */
  -webkit-text-size-adjust: 100%; /* 防止iOS横屏时字体放大 */
}

/* 基础样式与工具类 */
body {
  font-family: "OPPO Sans 4";
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.5;
}

@font-face {
  font-family: "OPPO Sans 4";
  src: url("../fonts/OPPO Sans 4.0.woff2") format("woff2"), url("../fonts/OPPO Sans 4.0.woff") format("woff"),
    url("../fonts/OPPO Sans 4.0.ttf") format("truetype");
}

:root {
  --color-primary: #cc0000;
  --color-secondary: #6c757d;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
}

body {
  /* 清除body默认margin */
  margin: 0;
  min-height: 100vh; /* 确保body至少占满视口高度 */
}

/* 3. 文本相关标签重置 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit; /* 继承父级字体大小 */
  font-weight: normal; /* 清除默认加粗 */
}

p {
  margin: 0;
}

/* 4. 列表标签重置 */
ul,
ol,
li {
  list-style: none; /* 清除默认列表样式 */
}

/* 5. 链接标签重置 */
a {
  color: inherit; /* 继承父级颜色 */
  text-decoration: none; /* 清除默认下划线 */
  cursor: pointer;
}

a:hover,
a:active {
  text-decoration: none; /* 清除交互状态下划线 */
}

/* 6. 媒体标签重置 */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 转为块级元素，消除默认inline带来的间距 */
  max-width: 100%; /* 确保媒体元素不超出容器 */
  height: auto; /* 保持宽高比 */
  border: 0; /* 清除ie下图片边框 */
}

/* 7. 表单元素重置 */
input,
button,
select,
textarea {
  font-family: inherit; /* 继承父级字体 */
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent; /* 清除默认背景 */
  border: none; /* 清除默认边框 */
  padding: 0;
  margin: 0;
  outline: none; /* 清除默认焦点轮廓（可根据需求重新设置） */
  appearance: none; /* 清除浏览器默认样式（如select下拉箭头） */
  -webkit-appearance: none;
}

textarea {
  resize: vertical; /* 仅允许垂直拉伸 */
  overflow: auto; /* 确保滚动条正常显示 */
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer; /* 鼠标悬停时显示指针 */
}

/* 8. 表格标签重置 */
table {
  border-collapse: collapse; /* 合并边框 */
  border-spacing: 0; /* 清除单元格间距 */
  width: 100%; /* 默认为100%宽度 */
}

th,
td {
  text-align: left; /* 左对齐文本 */
  vertical-align: middle; /* 垂直居中 */
  padding: 0;
}

/* 9. 其他标签重置 */
address {
  font-style: normal; /* 清除地址标签默认斜体 */
}

blockquote,
q {
  quotes: none; /* 清除引用标签默认引号 */
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ccc; /* 简单的水平线样式 */
  margin: 1em 0;
}

[hidden] {
  display: none !important; /* 隐藏元素 */
}

.nav__item--has-megamenu:hover + .nav__item--has-dropdown .nav__dropdown {
  visibility: visible;
  opacity: 1;
}

.body .quick-open__container {
  margin-top: 40px;
  padding: 0 6.25rem;
  padding-bottom: 40px;
}
.body .hero--service {
  height: 320px;
  background-image: url(../images/hero-service.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 1px;
  padding: 1px 6.25rem;
}
.body .hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 0px;
  /* margin: 0 auto; */
}
.body .nav-tabs {
  padding: 0 6.25rem;
}
.empty-pane {
  height: 500px;
  width: 100%;
  background-image: url(../icons/empty.svg);
  background-size: 500px;
  background-repeat: no-repeat;
  background-position: center;

}
@media (max-width: 1000px) {
  .body .hero--service {
    padding: 1px 2rem;
  }
  .body .quick-open--service {
    padding-bottom: 30px;
  }
  .body .quick-open__container {
    margin-top: 25px;
    padding: 0 2rem;
  }
  .body .transaction-content {
    flex-direction: column;
  }
  .body .quick-open-item {
    font-size: 16px;
    font-weight: 500;
  }
  .body .breadcrumbs__item {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .body .hero--service {
    padding: 1px 1.25rem;
  }
  .body .quick-open__header {
    padding: 14px;
  }
  .body .quick-open-list {
    /* flex-direction: column; */
    flex-wrap: wrap;
    gap: 5px;
  }
  .body .quick-open-item {
    white-space: nowrap;
    flex: 0 0 calc(50% - 5px);
    display: flex;

    justify-content: space-between;
    padding: 12px;
    gap: 8px;
    border: 1px solid #e9eaeb;
  }
  .body .quick-open-item--active .square_arrow_white {
    display: inline-block;
    width: 30px;
    height: 20px;
  }
  .body .nav-tabs__item {
    white-space: nowrap;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .body .quick-open__container {
    margin-top: 40px;
    padding-bottom: 40px;
  }
  .body .nav-tabs {
    padding: 0 50px;
  }
  .body .nav-tabs__item:not(:last-child)::after {
    right: -7.5px;
  }
  .body .nav-tabs__item {
    margin-right: 15px;
  }
}

@media (max-width: 450px) {
  .body .quick-open__container {
    margin-top: 25px;
    padding: 0 24px;
  }
  .body .nav-tabs {
    padding: 0 24px;
  }
  .body .nav-tabs__item:not(:last-child)::after {
    right: -5px;
  }
  .body .nav-tabs__item {
    margin-right: 10px;
  }
  .body .hero--service {
    padding: 1px 24px;
  }

}
