/* ===== 首页轮播 ===== */
.banner { position: relative; height: 560px; overflow: hidden; background: #0b2a5e; }
.banner .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s; display: flex; align-items: center;
}
.banner .slide.active { opacity: 1; }
.banner .slide-text { color: #fff; max-width: 560px; }
.banner .slide-text h2 { font-size: 42px; font-weight: 600; line-height: 1.3; }
.banner .slide-text p { font-size: 18px; margin: 16px 0 28px; opacity: .9; }
.banner .dots { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; }
.banner .dots span {
  display: inline-block; width: 28px; height: 4px; margin: 0 4px; background: rgba(255, 255, 255, .5); cursor: pointer;
}
.banner .dots span.active { background: #fff; }

/* ===== 服务卡片 ===== */
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card .body { padding: 20px 22px 24px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--text-2); font-size: 14px; }

/* ===== 简介 / 数据 ===== */
.about-text p { color: var(--text-2); margin-bottom: 14px; text-indent: 2em; }
.about-img img { border-radius: 8px; }
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.feature-list .item { padding: 28px 16px; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
.feature-list .item b { display: block; font-size: 20px; color: var(--primary); margin-bottom: 6px; }
.feature-list .item span { color: var(--text-2); font-size: 14px; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; }
.info-table th, .info-table td { border: 1px solid var(--border); padding: 12px 16px; text-align: left; }
.info-table th { width: 200px; background: var(--bg); font-weight: normal; color: var(--text-2); }
.license-img { max-width: 720px; margin: 0 auto; border: 1px solid var(--border); padding: 8px; background: #fff; }

/* ===== 资讯 ===== */
.news-tabs { display: flex; gap: 10px; margin-bottom: 26px; }
.news-tabs a { padding: 6px 20px; border-radius: 20px; border: 1px solid var(--border); color: var(--text); }
.news-tabs a.active, .news-tabs a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.news-item { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.news-item img { width: 240px; height: 156px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-item h3 { font-size: 19px; margin-bottom: 8px; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--primary); }
.news-item p { color: var(--text-2); font-size: 14px; }
.news-meta { color: #98a4b3; font-size: 13px; margin-top: 10px; }
.news-meta span { margin-right: 16px; }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card .body { padding: 16px 18px 20px; }
.news-card h3 { font-size: 16px; line-height: 1.5; height: 48px; overflow: hidden; }
.news-card h3 a { color: var(--text); }
.pager { text-align: center; margin-top: 30px; }
.pager a { display: inline-block; min-width: 36px; padding: 4px 10px; margin: 0 3px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.article { max-width: 860px; margin: 0 auto; }
.article h1 { font-size: 28px; line-height: 1.4; text-align: center; }
.article .news-meta { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.article-body { padding: 26px 0; font-size: 16px; line-height: 1.9; }
.article-body p { margin-bottom: 16px; text-indent: 2em; }
.article-body h3 { margin: 22px 0 10px; font-size: 18px; }
.article-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; font-size: 14px; }

/* ===== 评论 ===== */
.comments { max-width: 860px; margin: 40px auto 0; }
.comments h3 { font-size: 20px; margin-bottom: 14px; }
.comment-form textarea { height: 100px; }
.comment-tip { font-size: 13px; color: var(--text-2); margin: 8px 0 12px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-item .who { font-size: 14px; color: var(--primary); }
.comment-item .time { font-size: 12px; color: #98a4b3; margin-left: 10px; }
.comment-item .text { margin-top: 6px; white-space: pre-wrap; word-break: break-all; }
.login-tip { background: var(--bg); padding: 20px; text-align: center; border-radius: 6px; color: var(--text-2); }

/* ===== 表单 ===== */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-2); }
.form-row label i { color: var(--danger); font-style: normal; margin-right: 2px; }
.input, textarea, select {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 15px; font-family: inherit; outline: none; background: #fff; transition: .2s;
}
textarea { height: 120px; padding: 10px 12px; resize: vertical; }
.input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.input.err, select.err { border-color: var(--danger); }
.field-msg { font-size: 13px; color: var(--danger); min-height: 18px; margin-top: 3px; }
.field-msg.ok { color: var(--success); }
.region-row { display: flex; align-items: center; gap: 10px; }
.region-row .fixed { white-space: nowrap; padding: 0 14px; height: 42px; line-height: 42px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row .q {
  min-width: 120px; height: 42px; line-height: 42px; text-align: center; background: var(--primary-light);
  color: var(--primary-dark); font-weight: bold; border-radius: 4px; cursor: pointer; user-select: none;
}
.check-row { font-size: 14px; color: var(--text-2); }
.check-row input { vertical-align: -2px; margin-right: 4px; }

/* ===== 登录注册 ===== */
.auth-wrap { background: var(--bg); padding: 60px 0; min-height: calc(100vh - 72px - 300px); }
.auth-box { width: 480px; max-width: 100%; margin: 0 auto; background: #fff; border-radius: 8px; padding: 36px 40px; box-shadow: 0 6px 30px rgba(0, 0, 0, .06); }
.auth-box h2 { text-align: center; font-size: 24px; margin-bottom: 26px; }
.auth-box .switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-2); }
.auth-box.wide { width: 560px; }

/* ===== 个人中心 ===== */
.uc { display: flex; gap: 24px; align-items: flex-start; }
.uc-side { width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px 0; text-align: center; }
.uc-side img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 10px; }
.uc-side .menu { margin-top: 18px; text-align: left; }
.uc-side .menu a { display: block; padding: 10px 28px; color: var(--text); border-left: 3px solid transparent; }
.uc-side .menu a.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); }
.uc-main { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px 32px; min-height: 420px; }
.uc-main h3 { font-size: 20px; margin-bottom: 20px; }
.record { border: 1px solid var(--border); border-radius: 6px; padding: 14px 18px; margin-bottom: 14px; }
.record .head { display: flex; justify-content: space-between; font-size: 13px; color: #98a4b3; }
.record .text { margin: 6px 0; white-space: pre-wrap; word-break: break-all; }
.record .reply { background: var(--primary-light); padding: 10px 14px; border-radius: 4px; font-size: 14px; margin-top: 8px; }
.tag { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 3px; line-height: 20px; }
.tag.pending { background: #fff4e5; color: #d97706; }
.tag.approved, .tag.handled { background: #e7f7ee; color: var(--success); }
.tag.rejected { background: #fdecec; color: var(--danger); }

/* ===== 文档页（协议/政策） ===== */
.doc { max-width: 900px; margin: 0 auto; }
.doc h2 { font-size: 20px; margin: 28px 0 12px; }
.doc p, .doc li { color: #34495e; margin-bottom: 10px; }
.doc ol, .doc ul { padding-left: 2em; }
.doc ol { list-style: decimal; }
.doc ul { list-style: disc; }
.doc .update { color: var(--text-2); text-align: right; }

/* ===== 联系 ===== */
.contact-info .row { display: flex; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.contact-info .row b { width: 100px; color: var(--text-2); font-weight: normal; flex-shrink: 0; }
.map-img { border-radius: 8px; margin-top: 30px; }

/* ===== 移动端 ===== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav, .user-bar { display: none; }
  .header.open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; margin: 0; box-shadow: 0 6px 12px rgba(0, 0, 0, .08); }
  .header.open .nav a { line-height: 48px; border-top: 1px solid var(--border); }
  .header.open .user-bar { display: block; position: absolute; top: 22px; right: 60px; }
  .grid-3, .grid-2, .feature-list { grid-template-columns: 1fr; }
  .footer-cols, .uc { flex-direction: column; }
  .uc-side { width: 100%; }
  .banner { height: 380px; }
  .banner .slide-text h2 { font-size: 28px; }
  .news-item { flex-direction: column; }
  .news-item img { width: 100%; height: auto; }
  .auth-box { padding: 28px 20px; }
}
