/* ⭐ 引入隶书字体 */
@font-face {
    font-family: SIMLI;
    src: url('fonts/SIMLI.woff2') format('woff2'),
         url('fonts/SIMLI.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 宋体, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #000080;
}

/* ===== 书法题签 Header ===== */
header {
    background: #000080;
    color: #fff;
    text-align: center;

    font-family: SIMLI, serif;

    padding: 18px 0 14px;        /* ⭐ 上虚下实 */
    letter-spacing: 0.12em;     /* ⭐ 题签关键 */
}

/* 主标题（题名） */
header h3 {
    margin: 0;
    font-size: 1.6em;

    font-weight: normal;
    line-height: 1.1;

    letter-spacing: 0.18em;     /* ⭐ 行书展开 */
}

/* 副标题 / 年款 */
header h4 {
    margin: 6px 0 0;
    font-size: 0.9em;

    font-weight: normal;
    opacity: 0.9;

    letter-spacing: 0.12em;     /* ⭐ 落款感 */
}

header h6 {
    margin: 6px 0 0;
    font-size: 0.7em;
    font-weight: normal;
    opacity: 0.85;
    letter-spacing: 0.12em;
}

/* ===== 二维码：居中 ===== */
.qrcode-wrapper {
  text-align: center;   /* ⭐ 父容器居中 */
  margin: 6px 0;
}

.thumb.qrcode {
  width: 40px;          /* 缩小 */
  height: auto;
  display: inline-block;
  cursor: zoom-in;
}

.thumb {
    width: 220px;
    margin: 10px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.thumb:hover {
    transform: scale(1.05);
}

/* 图片放大遮罩 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.8);
    z-index: 999;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
}

/* 视频部分 */
.video-wrapper {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.video-box {
    width: 200px;
}

.video-click-layer {
    position: absolute;
    inset: 0;
    cursor: zoom-in;
    background: rgba(0,0,0,0);
    z-index: 10;
}

/* 视频放大遮罩 */
#video-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
}

#overlay-video {
    width: 80vw;
    max-width: 1000px;
    height: auto;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* ===== 书法落款感 Footer ===== */
footer {
    text-align: center;
    font-family: SIMLI, serif;
    background: #000080;
    color: #fff;

    padding: 10px 0 12px;          /* ⭐ 上轻下稳 */
    letter-spacing: 0.08em;       /* ⭐ 字距微收，有墨感 */
}

/* footer 每一行 */
footer p,
footer div {
    margin: 4px 0;
    line-height: 1.25;            /* ⭐ 疏而不散 */
}

/* 最后一行：邮箱 + WJ（落款核心） */
footer .footer-bottom {
    display: inline-flex;
    align-items: center;
    gap: 10px;                    /* ⭐ 名与印之间的“呼吸感” */

    margin-top: 6px;              /* ⭐ 与正文轻断 */
    padding-top: 4px;

    border-top: 1px solid rgba(255,255,255,0.25);
}

/* 邮箱：像署名 */
footer .email-link {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;

    font-size: 0.92em;            /* ⭐ 略小，显克制 */
    letter-spacing: 0.08em;       /* ⭐ 手写感关键 */
}

footer .email-link:hover {
    text-decoration: underline;
}

/* WJ：像印章 */
footer .WJ-wrapper img {
    width: 22px;                  /* ⭐ 印章不宜大 */
    height: auto;
    opacity: 0.9;
}

/* footer 内 WJ 二维码 */
footer .WJ {
    width: 40px;     /* 小图 */
    height: auto;
}

/* ===== 站内搜索 ===== */
.search-wrapper {
  text-align: center;
  margin: 14px 0;
}

.search-bar {
  display: flex;
  justify-content: flex-end;  /* 靠右 */
  padding-right: 24px;        /* ⭐ 留白，不贴边 */
  margin: 12px 0;
}

#searchInput {
  width: 220px;
}

#searchInput:focus {
  border-color: #000080;
}

/* ===== link-list 标准化样式 ===== */

.link-list ul {
  padding-left: 0;
  margin-left: 8px;
}

.link-list li {
  list-style: none;
}

/* 分类标题 */
.link-list .section-title {
  font-size: 22px;
  font-weight: bold;
  margin: 18px 0 6px 0;
}

/* 链接：一行一个 */
.link-list li a {
  display: block;
  margin-left: 24px;
  margin-bottom: 8px;
  font-size: 20px;
  color: black;
  text-decoration: none;
}

.link-list li a:hover {
  color: gray;
}

/* ===== PPT 模块 ===== */
.ppt-section {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 12px;
}

.ppt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000080;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.ppt-header h3 {
  margin: 0;
  font-size: 16px;
}

.ppt-header button {
  background: #fff;
  color: #000080;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.ppt-content {
  display: none;
  margin-top: 10px;
}

.ppt-content iframe {
  width: 100%;
  height: 650px;
  border: none;
  background: #fff;
  border-radius: 6px;
}

.ppt-actions {
  text-align: center;
  margin-top: 6px;
}

.ppt-actions a {
  color: #000080;
  font-size: 14px;
  text-decoration: none;
}

.ppt-actions a:hover {
  text-decoration: underline;
}

/* 📱 手机 */
@media (max-width: 600px) {
  .ppt-content iframe {
    height: 420px;
  }
}

. instagram-icon {
  color: #000080;
  font-size: 15px;
  margin-left: 12px;
}

/* 📱 手机 */
@media (max-width: 600px) {
  .ppt-content iframe {
    height: 420px;
  }
}

. facebook-icon {
  color: #000080;
  font-size: 15px;
  margin-left: 12px;
}

.csv-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-align: center;
}

#csv-password-box input {
  padding: 8px 12px;
  font-size: 1em;
}

#csv-password-box button {
  margin-left: 8px;
  padding: 8px 16px;
  cursor: pointer;
}

#csv-error {
  color: crimson;
  margin-top: 10px;
}

#csvTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#csvTable th,
#csvTable td {
  border: 1px solid #aaa;
  padding: 6px;
}

/* ===== Q&A 整体居中容器 ===== */
.qa-section {
  max-width: 900px;
  margin: 40px auto;        /* ⭐ 水平居中 */
  padding: 24px;
 /* background: #ffffff; */
  border: 1px solid #ccc;
  border-radius: 12px;
  text-align: center;       /* 密码输入居中 */
}

/* ===== 密码输入 ===== */
.qa-section input {
/*  width: 220px; */
  padding: 8px 16px;
  font-size: 1em; /* 14px; */
}

.qa-section button {
  margin-left: 8px;
  padding: 4px 8px;
    font-size: 0.9rem;
  cursor: pointer;
}

#qaClose {
  margin-left: 8px;
  padding: 8px 16px;
  cursor: pointer;
  background: #000080;
  color: #fff;
  border: none;
  border-radius: 6px;
}

#qaClose:hover {
  background: #333399;
}

#qaShowPwd {
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 0.9rem;
  cursor: pointer;
}



/* ===== Q&A 内容区 ===== */
.qa-content {
  margin-top: 20px;
  text-align: left;         /* ⭐ Q&A 左对齐，不顶页面左 */
}

/* ===== 单个 Q&A 卡片 ===== */
.qa-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #f9f9f9;
}

/* 去掉默认小三角 */
.qa-card summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;
}

.qa-card summary::-webkit-details-marker {
  display: none;
}

/* 自定义箭头 */
.qa-card summary::before {
  content: "▸ ";
  transition: transform 0.2s ease;
}

.qa-card[open] summary::before {
  transform: rotate(90deg);
}




/* .qa-section {
  margin: 20px auto;
  max-width: 700px;  ⭐ 宽度不要太挤
  text-align: left;
} */

/* 输入框和按钮 
.qa-section input {
  padding: 6px;
  font-size: 16px;
  margin-right: 4px;
}

.qa-section button {
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}*/

/* Q&A 卡片样式 */
/* .qa-content details.qa-card {
 /* background-color: #fdfdfd;        卡片背景 */
/*   border: 1px solid #ccc;          边框 */
/*  border-radius: 8px;                圆角 */
/*  padding: 10px 15px;                内边距 */
/*  margin-bottom: 10px;               卡片间距 */
 /* box-shadow: 2px 2px 6px rgba(0,0,0,0.1);  阴影
  cursor: pointer;
} */

/* summary 样式 
.qa-content details.qa-card summary {
  font-weight: bold;
  font-size: 16px;
  list-style: none;     /* 去掉默认方块 */
/*  outline: none;         去掉 focus 边框 */
} */

/* 内部文字 
.qa-content details.qa-card p {
  margin: 8px 0 0 0;
  font-size: 14px;
} */

/* ===== CSV 高级卡片风格 ===== */
.csv-box table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.csv-box th,
.csv-box td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}

.csv-box th {
  background: #000080;
  color: #fff;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
}

.csv-box tr {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.csv-box tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.csv-box td, .csv-box th {
  border: none;
}

@media (max-width: 600px) {
  .csv-box table {
    font-size: 12px;
  }

  .csv-box th, .csv-box td {
    padding: 8px 12px;
  }
}

.csv-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-align: center;
  background: #fdfdfd;
  position: relative;
}

.csv-close-btn {
  background: #000080;
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
  float: right;
}

.csv-close-btn:hover {
  background: #333399;
}

/* ===== 网站访问统计 UV / PV ===== */
.site-counter {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
  text-align: center;
}

.site-counter span {
  color: #00539B;   /* Duke 蓝 */
  font-weight: 600;
}

/* 手机上稍微小一点 */
@media (max-width: 768px) {
  .site-counter {
    font-size: 12px;
  }
}
