/* ============================================================
   学习练习双端展示页面 - 电脑版样式
   样式表位置: template/default/report/css/report.css
   修改颜色/间距/字体直接改这里即可
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: #e8ebe9;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ---------- 站点头部 ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 22px 20px 0;
}

.site-header .site-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-header h1 {
  font-size: 20px;
  color: #0e7a5f;
  letter-spacing: 1px;
}

.site-header .sub {
  font-size: 12px;
  color: #98a29d;
  margin-top: 3px;
}

.site-header nav {
  margin-left: auto;
  font-size: 14px;
}

.site-header nav a {
  color: #0e7a5f;
  margin-left: 18px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  border-bottom-color: #0e7a5f;
}

/* ---------- 首页 hero ---------- */
.hero {
  max-width: 1000px;
  margin: 26px auto 0;
  padding: 44px 30px;
  background: linear-gradient(135deg, #0e7a5f 0%, #12997a 100%);
  color: #fff;
  text-align: center;
  border-radius: 10px;
}

.hero h2 {
  font-size: 30px;
  letter-spacing: 4px;
}

.hero p {
  margin-top: 14px;
  font-size: 14px;
  opacity: .88;
  line-height: 1.9;
}

.searchbar {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 0;
}

.searchbar input {
  width: 320px;
  padding: 11px 16px;
  border: none;
  outline: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
}

.searchbar button {
  padding: 11px 30px;
  border: none;
  cursor: pointer;
  background: #0b5c47;
  color: #fff;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
  letter-spacing: 4px;
}

.searchbar button:hover {
  background: #094d3b;
}

/* ---------- 报告卡片列表 ---------- */
.cards {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.cards>h3 {
  font-size: 18px;
  color: #0e7a5f;
  padding-left: 10px;
  border-left: 4px solid #0e7a5f;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid #dfe5e2;
  border-radius: 8px;
  padding: 20px 22px;
  transition: all .2s;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(14, 122, 95, .16);
  transform: translateY(-2px);
}

.card-name {
  font-size: 19px;
  font-weight: bold;
  color: #222;
}

.card-row {
  margin-top: 9px;
  font-size: 13px;
  color: #67716c;
}

.card-code {
  margin-top: 12px;
  font-size: 12px;
  color: #0e9bb3;
  font-family: Consolas, monospace;
  letter-spacing: 1px;
}

.card-btn {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #0e7a5f;
  border: 1px solid #0e7a5f;
  border-radius: 4px;
  padding: 5px 14px;
}

.card:hover .card-btn {
  background: #0e7a5f;
  color: #fff;
}

.empty-tip {
  margin-top: 16px;
  font-size: 13px;
  color: #98a29d;
}

/* ---------- 原理说明区 ---------- */
.how {
  max-width: 1000px;
  margin: 46px auto 0;
  padding: 0 20px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how .item {
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  border-top: 3px solid #0e9bb3;
}

.how .item b {
  display: block;
  font-size: 15px;
  color: #0e7a5f;
  margin-bottom: 10px;
}

.how .item p {
  font-size: 13px;
  color: #67716c;
  line-height: 1.9;
}

/* ---------- 站点底部 ---------- */
.site-footer {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 18px 20px 30px;
  text-align: center;
  font-size: 12px;
  color: #9aa5a0;
}

/* ================= 报告详情页（纸面版式） ================= */

/* 顶部工具条（打印时隐藏） */
.toolbar {
  max-width: 850px;
  margin: 18px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #67716c;
}

.toolbar button,
.toolbar a.btn {
  padding: 8px 20px;
  background: #0e7a5f;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 2px;
}

.toolbar a.btn {
  background: #fff;
  color: #0e7a5f;
  border: 1px solid #0e7a5f;
}

.toolbar button:hover,
.toolbar a.btn:hover {
  opacity: .88;
}

/* 纸张 */
.sheet {
  max-width: 850px;
  margin: 16px auto 40px;
  padding: 0 16px;
}

.sheet-inner {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(14, 122, 95, .045) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(14, 122, 95, .045) 0 2px, transparent 2px 7px),
    #fffdf8;
  border: 7px solid #0e7a5f;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .13);
  padding: 46px 58px 34px;
}

/* 内侧细线框 */
.sheet-inner::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(14, 122, 95, .55);
  pointer-events: none;
}

.rep-title {
  text-align: center;
  font-family: SimHei, "Microsoft YaHei", sans-serif;
  font-size: 27px;
  letter-spacing: 3px;
  color: #1c2b26;
}

.rep-date {
  text-align: center;
  margin-top: 13px;
  font-size: 13px;
  color: #a2aaa6;
}

/* 信息区 + 证件照 */
.rep-body {
  position: relative;
  margin-top: 34px;
  padding-right: 150px;
  min-height: 380px;
}

.rep-info {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 0;
  align-content: start;
}

.rep-info dt {
  font-size: 14.5px;
  color: #8a938f;
  padding: 9.5px 0 9.5px 26px;
}

.rep-info dd {
  font-size: 14.5px;
  color: #232b28;
  padding: 9.5px 0;
  border-bottom: 1px dashed rgba(14, 122, 95, .18);
}

.rep-info dt {
  border-bottom: 1px dashed rgba(14, 122, 95, .18);
}

.rep-photo {
  position: absolute;
  top: 4px;
  right: 26px;
  width: 108px;
  height: 144px;
  object-fit: cover;
  border: 1px solid #cfd8d3;
  background: #eaf3f0;
}

/* 验证码盒子 */
.rep-verify {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 2px solid #35b597;
  border-radius: 8px;
  padding: 20px 26px;
  background: rgba(255, 255, 255, .75);
}

#qrcode {
  width: 96px;
  height: 96px;
  flex: none;
  background: #fff;
}

#qrcode img,
#qrcode canvas {
  width: 96px;
  height: 96px;
}

.rep-verify-text p {
  font-size: 13px;
  color: #55605b;
  line-height: 2;
}

.rep-verify-text .vcode {
  font-size: 14px;
  color: #333;
}

.vcode-link {
  color: #0e9bb3;
  font-weight: bold;
  font-size: 16.5px;
  font-family: Consolas, monospace;
  letter-spacing: .5px;
  border-bottom: 1px dotted #0e9bb3;
}

.vcode-link:hover {
  color: #0b7d90;
}

/* 注意事项 */
.rep-notes {
  margin-top: 22px;
}

.rep-notes .nt {
  font-size: 13.5px;
  font-weight: bold;
  color: #1c2b26;
  margin-bottom: 6px;
}

.rep-notes p {
  font-size: 12.5px;
  color: #67716c;
  line-height: 2.05;
}

/* 右下徽标 + 声明 */
.rep-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.rep-foot img {
  height: 34px;
  opacity: .9;
}

.rep-disclaimer {
  margin-top: 10px;
  text-align: right;
  font-size: 11px;
  color: #a2aaa6;
}

/* ---------- 搜索结果页 ---------- */
.page-title {
  max-width: 1000px;
  margin: 34px auto 0;
  padding: 0 20px;
  font-size: 22px;
  color: #0e7a5f;
  letter-spacing: 2px;
}

.result-box {
  max-width: 1000px;
  margin: 8px auto 0;
  padding: 0 20px;
}

.no-result {
  padding: 40px 0;
  text-align: center;
  color: #98a29d;
  font-size: 14px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 10px;
}

.pagination a,
.pagination span {
  padding: 7px 14px;
  border: 1px solid #dfe5e2;
  background: #fff;
  font-size: 13px;
  color: #55605b;
  border-radius: 4px;
}

.pagination a:hover {
  border-color: #0e7a5f;
  color: #0e7a5f;
}

/* ---------- 单页(关于) ---------- */
.about-box {
  max-width: 1000px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.about-card {
  background: #fff;
  border-radius: 8px;
  padding: 34px;
  line-height: 2.1;
  font-size: 14.5px;
  color: #4a544f;
}

.about-card h2 {
  font-size: 20px;
  color: #0e7a5f;
  margin-bottom: 14px;
}

/* ================= 打印样式（生成 PDF 的关键） ================= */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  body {
    background: #fff;
  }

  .no-print {
    display: none !important;
  }

  .sheet {
    margin: 0;
    max-width: 100%;
    padding: 0;
  }

  .sheet-inner {
    box-shadow: none;
    border-width: 6px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .rep-verify {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #qrcode img,
  #qrcode canvas {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}