﻿/* ===== 通信知识 - 全站样式表 v20260724 ===== */
html, body { overflow-x: hidden; width: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.7; color: #333; background: #fff; padding-top: 60px; -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; margin: 0; padding: 0; word-wrap: break-word; overflow-wrap: break-word; }
html { scroll-behavior: smooth; }
a { color: #0052a3; text-decoration: none; transition: all 0.15s; }
a:hover { color: #003366; text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* ===== 顶部导航（固定）===== */
.navbar-kunrui { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: #003D8F !important; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.navbar-kunrui .navbar-brand { color: #fff !important; font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; }
.navbar-kunrui .nav-link { color: rgba(255,255,255,0.88) !important; font-size: 0.9rem; padding: 0.45rem 0.8rem !important; }
.navbar-kunrui .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.08); border-radius: 2px; text-decoration: none; }
.navbar-kunrui .nav-link.active { color: #fff !important; font-weight: 600; background: rgba(255,255,255,0.1); border-radius: 2px; }
.navbar-kunrui .navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-kunrui .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ===== 模块区域 ===== */
.section-wrapper { padding: 2.5rem 0; }
.section-title { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1.2rem; padding-left: 0.8rem; border-left: 3px solid #003D8F; }

/* 首页顶部办卡必读引导 */
.hero-guide-section { padding: 1.4rem 0 0; }
.hero-guide-text { display: inline-block; font-size: 1.5rem; font-weight: 700; color: #003D8F; line-height: 1.5; letter-spacing: 0; margin: 0; text-align: center; }
.hero-guide-text:hover { color: #002a63; text-decoration: underline; }

/* 合规提示条 */
.disclaimer-banner { background: #f2f4f7; border: 1px solid #d5dbe3; border-radius: 4px; padding: 0.65rem 1rem; font-size: 0.8rem; color: #5a6270; margin-bottom: 1.5rem; line-height: 1.5; }

/* ===== 渠道卡片 ===== */
.channel-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow 0.2s, border-color 0.2s; }
.channel-card:hover { border-color: #003D8F; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.channel-card .card-img-top { width: 100%; height: 280px; object-fit: contain; background: #f8f8f8; }
.channel-card .card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.channel-card .card-title { font-size: 1rem; font-weight: 600; color: #222; margin-bottom: 0.4rem; }
.channel-card .card-text { font-size: 0.85rem; color: #666; margin-bottom: 0.6rem; flex: 1; }
.channel-card .card-disclaimer { font-size: 0.72rem; color: #999; margin-bottom: 0.6rem; line-height: 1.4; }
.channel-card .btn-official { display: inline-block; align-self: flex-start; margin-top: auto; padding: 0.35rem 1rem; background: #003D8F; color: #fff; border-radius: 3px; font-size: 0.85rem; text-decoration: none; }
.channel-card .btn-official:hover { background: #002a63; text-decoration: none; color: #fff; }
.channel-card .btn-official-noop { display: inline-block; align-self: flex-start; margin-top: auto; padding: 0.35rem 1rem; background: #fff; color: #003D8F; border: 1px solid #003D8F; border-radius: 3px; font-size: 0.85rem; cursor: pointer; text-decoration: none; }
.channel-card .btn-official-noop:hover { background: #003D8F; color: #fff; }
.channel-card-hidden { display: none; }
.channel-card-hidden.show { display: flex; }

/* 通用轮廓按钮 */
.btn-outline-kunrui { display: inline-block; padding: 0.35rem 1rem; background: #fff; color: #003D8F; border: 1px solid #003D8F; border-radius: 3px; font-size: 0.85rem; text-decoration: none; }
.btn-outline-kunrui:hover { background: #003D8F; color: #fff; text-decoration: none; }

.btn-toggle-more { margin-top: 1.2rem; padding: 0.5rem 1.5rem; background: #fff; border: 1px solid #003D8F; color: #003D8F; border-radius: 3px; font-size: 0.9rem; cursor: pointer; transition: all 0.15s; }
.btn-toggle-more:hover { background: #003D8F; color: #fff; }

/* ===== 首页SEO预览卡片 ===== */
.seo-preview-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1.2rem; height: 100%; }
.seo-preview-card h3 { font-size: 1.05rem; font-weight: 600; color: #222; margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.seo-preview-item { padding: 0.6rem 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.15s; }
.seo-preview-item:hover { background: #fafafa; }
.seo-preview-item:last-child { border-bottom: none; }
.seo-preview-item h4 { font-size: 0.9rem; font-weight: 500; color: #0052a3; margin-bottom: 0.15rem; }
.seo-preview-item p { font-size: 0.8rem; color: #888; margin: 0; }
/* ===== 工具分类卡片 ===== */
.tools-group-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1.2rem; height: 100%; }
.tools-group-card h3 { font-size: 1rem; font-weight: 600; color: #222; margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.tools-group-card .tool-link-item { display: block; padding: 0.5rem 0.6rem; margin-bottom: 0.35rem; background: #f8f9fa; border-radius: 3px; font-size: 0.85rem; color: #333; border: 1px solid transparent; word-break: break-all; }
.tools-group-card .tool-link-item:hover { background: #003D8F; color: #fff; text-decoration: none; border-color: #003D8F; }

/* ===== 页脚 ===== */
.footer-kunrui { background: #f5f5f5; border-top: 1px solid #e0e0e0; padding: 1.5rem 0; font-size: 0.8rem; color: #888; }
.footer-kunrui a { color: #0052a3; }
.footer-kunrui a:hover { color: #003366; }
.footer-kunrui .footer-disclaimer { font-size: 0.78rem; margin-bottom: 0.3rem; }
.footer-kunrui .footer-icp { font-size: 0.78rem; color: #aaa; }

/* ===== 子页面通用内容区 ===== */
.sub-page-content { max-width: 960px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.sub-page-content h1 { font-size: 1.4rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1.2rem; text-align: center; }
.sub-page-content h2 { font-size: 1.1rem; font-weight: 600; color: #1a1a1a; margin: 1.2rem 0 0.6rem; }
.sub-page-content p { font-size: 0.9rem; color: #555; line-height: 1.8; }

/* ===== 问答展开项 ===== */
.qa-item { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1rem; margin-bottom: 0.8rem; }
.qa-item .qa-question { font-weight: 600; color: #222; font-size: 0.95rem; cursor: pointer; }
.qa-item .qa-question:hover { color: #0052a3; }
.qa-item .qa-answer { font-size: 0.88rem; color: #555; line-height: 1.7; display: none; padding-top: 0.5rem; margin-top: 0.5rem; border-top: 1px solid #f0f0f0; }
.qa-item .qa-answer.show { display: block; }

/* ===== 资讯列表 ===== */
.news-list-item { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1rem; margin-bottom: 0.8rem; }
.news-list-item h3 { font-size: 0.95rem; font-weight: 600; color: #222; margin-bottom: 0.3rem; }
.news-list-item .news-date { font-size: 0.75rem; color: #aaa; margin-bottom: 0.3rem; }
.news-list-item .news-summary { font-size: 0.85rem; color: #555; line-height: 1.6; }

/* ===== 404错误页 ===== */
.error-404-page { text-align: center; padding: 3rem 1rem; max-width: 600px; margin: 0 auto; }
.error-404-page .error-code { font-size: 7rem; font-weight: 900; color: #003D8F; line-height: 1; margin-bottom: 0.5rem; }
.error-404-page .error-code span { color: #ccc; }
.error-404-page h1 { font-size: 1.5rem; color: #222; margin-bottom: 0.8rem; }
.error-404-page p { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; }
.error-404-page .suggest-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.5rem; }
.error-404-page .suggest-links a { display: inline-block; padding: 0.45rem 1rem; background: #003D8F; color: #fff; border-radius: 3px; font-size: 0.85rem; text-decoration: none; }
.error-404-page .suggest-links a:hover { background: #002a63; }

/* ===== 外链跳转中转页 ===== */
.redirect-page { text-align: center; padding: 2rem 1rem; max-width: 550px; margin: 0 auto; }
.redirect-page .redirect-notice { background: #f2f4f7; border: 1px solid #d5dbe3; border-radius: 4px; padding: 0.8rem 1rem; margin-bottom: 1.2rem; text-align: left; font-size: 0.85rem; color: #5a6270; }
.redirect-page .redirect-btn { display: inline-block; padding: 0.6rem 1.5rem; background: #003D8F; color: #fff; border: none; border-radius: 3px; font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.redirect-page .redirect-btn:hover { background: #002a63; }

/* ===== 注意事项模块 ===== */
.notice-block { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1.2rem; margin-bottom: 1rem; }
.notice-block h3 { font-size: 1rem; font-weight: 600; color: #222; margin-bottom: 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.notice-block ul { list-style: disc; padding-left: 1.2rem; margin: 0; }
.notice-block ul li { font-size: 0.85rem; color: #555; margin-bottom: 0.35rem; line-height: 1.6; }

/* ===== 图片弹窗 ===== */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.78); align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal-overlay img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 4px; background: #fff; padding: 0.5rem; cursor: default; user-select: none; -webkit-user-select: none; pointer-events: none; }
.modal-overlay .modal-close { position: absolute; top: 1rem; right: 1.2rem; width: 2rem; height: 2rem; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #333; z-index: 1; }
.modal-overlay .modal-close:hover { background: #fff; }
.tool-link-modal { cursor: pointer; }

/* ===== 返回顶部按钮 ===== */
.btn-back-to-top { display: none; position: fixed; bottom: 1.5rem; right: 1.2rem; z-index: 9990; width: 2.6rem; height: 2.6rem; background: #003D8F; color: #fff; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: opacity 0.25s, transform 0.2s; }
.btn-back-to-top:hover { background: #002a63; transform: translateY(-2px); }
.btn-back-to-top.show { display: block; }

/* ===== 文章合规提示 ===== */
.article-compliance { background: #fafbfc; border: 1px solid #e8e8e8; border-radius: 4px; padding: 0.8rem 1rem; font-size: 0.78rem; color: #888; margin-top: 2rem; text-align: center; line-height: 1.6; }

/* ===== 外链合规小字 ===== */
.external-link-note { font-size: 0.72rem; color: #aaa; margin-top: 0.25rem; }

/* ===== 联系站长卡片 ===== */
.contact-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 1.5rem 1.2rem; text-align: center; height: 100%; }
.contact-card img { width: 220px; height: 220px; max-width: 100%; object-fit: contain; border: 1px solid #eee; border-radius: 4px; background: #fff; margin-bottom: 0.9rem; }
.contact-card .contact-tip { font-size: 0.85rem; color: #5a6270; margin: 0; line-height: 1.6; }

/* ===== 响应式 ===== */
@media (max-width: 576px) {
  html, body { overflow-x: hidden; }
  body { padding-top: 52px; font-size: 14px; }
  .section-wrapper { padding: 1.8rem 0; }
  .section-title { font-size: 1.1rem; }
  .hero-guide-section { padding: 1rem 0 0; }
  .hero-guide-text { font-size: 1.25rem; }
  .channel-card .card-img-top { height: 220px; }
  .sub-page-content h1 { font-size: 1.15rem; }
  .navbar-kunrui .navbar-brand { font-size: 0.95rem; }
  .footer-kunrui { font-size: 0.75rem; }
  .modal-overlay img { max-width: 96vw; max-height: 82vh; padding: 0.25rem; }
  .modal-overlay .modal-close { top: 0.5rem; right: 0.6rem; width: 2.4rem; height: 2.4rem; font-size: 1.5rem; }
  .btn-back-to-top { bottom: 1rem; right: 0.8rem; }
  .error-404-page .error-code { font-size: 5rem; }
  .contact-card img { width: 180px; height: 180px; }
}
@media (min-width: 577px) and (max-width: 991px) {
  .channel-card .card-img-top { height: 250px; }
}
@media (min-width: 992px) {
  .container { max-width: 1100px; }
}
@media print {
  .navbar-kunrui, .btn-toggle-more, .btn-back-to-top, .modal-overlay { display: none !important; }
  body { padding-top: 0; background: #fff; color: #000; }
  a { color: #000; }
  .channel-card, .tools-group-card, .qa-item, .news-list-item { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .btn-official, .btn-outline-kunrui { display: none; }
}

