/**
 * reset.css - 基础样式初始化
 * 兼容: 主流浏览器及 IE10+
 */

/* 统一盒模型 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 清除默认间距 */
* {
  margin: 0;
  padding: 0;
}

/* 根元素设置 */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  line-height: 1.5;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth; /* 平滑滚动 */
}

/* 主体样式 */
body {
  color: #333;
  background-color: #fff;
  min-height: 100vh; /* 最小高度铺满视口 */
  font-size: 14px;
}

/* HTML5 块级元素兼容 */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* 列表去点 */
ol, ul {
  list-style: none;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  transition: all .3s ease-in-out;
  color: #333;
}


/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
}

/* 图片响应式 */
img {
  /* display: block; */
  max-width: 100%;
  height: auto;
  border-style: none;
}

/* ===== 表单元素初始化 ===== */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  border: 1px solid #e6e6e6;
  padding: 0.6em 0.8em;
  background-color: #fff;
  border-radius: 6px;
}
select{
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 32px;
}
/* 按钮基础样式 */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background-color: #f6f6f6;
  border-color: #aaa;
  cursor: pointer;
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  background-color: #e8e8e8;
  border-color: #888;
}

/* 表单验证状态 */
.form-group.error input,
.form-group.error textarea,
.form-group.error .form-select {
    border-color: #f7b700;
}

.form-group.error label {
    color: #f7b700;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success .form-select {
    border-color: #2ecc71;
}

.form-group.success label {
    color: #2ecc71;
}

/* 输入框基础样式 */
.form-group input,
.form-group textarea,
.form-group .form-select {
    width: 100%;
    padding: .65em 1em;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group .form-select:focus {
    border-color: #f7b700;
    outline: none;
    -webkit-box-shadow: 0 0 0 2px rgba(247, 183, 0, 0.1);
    box-shadow: 0 0 0 2px rgba(247, 183, 0, 0.1);
}

.form-group label {
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

/* 移除按钮内部边框 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* 复选框和单选框 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  border: none;
  background: none;
  vertical-align: middle;
}

/* 搜索框 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/* 文本域 */
textarea {
  overflow: auto;
  resize: vertical;
}

/* ===== 表格初始化 ===== */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 0.5em;
  border: 1px solid #e6e6e6;
}
th {
  font-weight: 600;
  background-color: #f6f6f6;
}

/* ===== 其他元素 ===== */
hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
}
pre, code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
  white-space: pre-wrap;
}
[hidden] {
  display: none;
}

/* ===== IE10+ 兼容 ===== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  input[type="checkbox"], input[type="radio"] {
    vertical-align: baseline;
  }
}

/* ===== 工具类 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.container {
  margin: 0 auto;
  max-width: 1260px;
  padding: 0 15px;
}

/* ===== 基础按钮样式 ===== */
.btn {
  padding: .6em 1em;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #d6d6d6;
}
/* 流光效果 */
.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  opacity: 0;
}
.btn:hover:before {
  left: 20%;
  opacity: 1;
}
/* 玻璃覆盖层 */
.btn:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover {
  transform: translateX(-3px);
}
.btn:hover:after {
  opacity: 0.6;
}
