/* ========== 全局样式 ========== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-attachment: fixed;
}

/* 炫彩动态背景光效 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0,255,255,0.08), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,0,128,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 4s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ========== 顶部公告栏 ========== */
.announcement {
  background: linear-gradient(90deg, #ff0080, #ff8c00, #ffd700, #00ff88, #00bfff, #ff0080);
  background-size: 300% 100%;
  color: #fff;
  padding: 10px 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 1001;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
  animation: announceFlow 4s linear infinite;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

@keyframes announceFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.announcement-content {
  display: inline-block;
letter-spacing: 2px;
}


/* ========== 主内容区 iframe ========== */
.main-content {
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0;
}

#contentFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* ========== 超级弹窗公告 ========== */
#splashAnnouncement {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.75));
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 0 max(20px, env(safe-area-inset-bottom));
  z-index: 9999;
  animation: fadeInBackdrop 0.4s ease;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(8px); }
}

.announcement-modal {
  background: linear-gradient(145deg, #ffffff, #fff5f0);
  border-radius: 40px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.3), 0 0 0 4px rgba(255,105,180,0.3);
  padding: 25px 24px;
  max-width: 420px;
  width: 88%;
  text-align: center;
  position: relative;
  margin: auto;
  animation: modalBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  border: 1px solid rgba(255,255,255,0.5);
}

@keyframes modalBounce {
  0% { opacity: 0; transform: scale(0.7) translateY(-50px); }
  60% { opacity: 1; transform: scale(1.02) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.announcement-modal::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #ff0080, #ff8c00, #ffd700, #00ff88, #00bfff, #ff0080);
  border-radius: 42px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 3s linear infinite;
}

.announcement-modal:hover::before { opacity: 1; }

@keyframes borderRotate {
  0% { filter: blur(3px); transform: rotate(0deg); }
  100% { filter: blur(3px); transform: rotate(360deg); }
}

.announcement-modal h2 {
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ff0080, #ff8c00, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  display: inline-block;
}

.announcement-modal h2:first-of-type {
  font-size: 30px;
  margin-bottom: 5px;
}

.announcement-modal h2:first-of-type::before,
.announcement-modal h2:first-of-type::after {
  content: '✨';
  position: absolute;
  top: -5px;
  font-size: 24px;
  animation: sparkle 1s ease-in-out infinite;
}

.announcement-modal h2:first-of-type::before { left: -30px; animation-delay: 0s; }
.announcement-modal h2:first-of-type::after { right: -30px; animation-delay: 0.5s; }

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.announcement-modal h2:nth-of-type(2) {
  font-size: 18px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}

/* ========== 关闭按钮 X ========== */
.close-x-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-x-btn span {
  font-size: 22px;
  color: #999;
  transition: all 0.3s ease;
  display: inline-block;
}

.close-x-btn:hover {
  background: rgba(255, 0, 128, 0.1);
}

.close-x-btn:hover span {
  color: #ff0080;
  transform: rotate(90deg);
}

.announcement-modal::after {
  display: none;
}

/* ========== 流程说明卡片样式 ========== */
.flow-container {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 20px;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid rgba(0,255,255,0.3);
  transition: all 0.3s ease;
}

.flow-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,255,255,0.15);
}

.flow-title {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #0284c7;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-type {
  flex: 1;
  min-width: 180px;
  background: white;
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.flow-type:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.flow-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
}

.flow-badge.type-a {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.flow-badge.type-b {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.flow-steps {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.flow-divider {
  font-size: 14px;
  font-weight: bold;
  color: #94a3b8;
  padding: 0 5px;
}

.flow-note {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

/* 简化流程步骤样式（随身WiFi版） */
.flow-steps-simple {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: white;
  padding: 10px;
  border-radius: 30px;
  word-break: keep-all;
}

.flow-steps-simple span {
  display: inline-block;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 0 2px;
  font-size: 12px;
}

/* 提示卡片样式（随身WiFi版） */
.tips-container {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 20px;
  padding: 12px 15px;
  margin: 15px 0;
  border: 1px solid rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}

.tips-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,158,11,0.15);
}

.tips-title {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #b45309;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.7);
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #78350f;
  transition: all 0.2s ease;
}

.tip-item:hover {
  transform: translateX(5px);
  background: rgba(255,255,255,0.9);
}

.tip-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.tip-text {
  text-align: left;
  line-height: 1.4;
}

/* 规则列表样式 */
.rules-list {
  text-align: left;
  margin: 15px 0 10px;
}

.rule-item {
  background: #f8fafc;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 25px;
  font-size: 13px;
  color: #334155;
  transition: all 0.3s ease;
  border-left: 3px solid #ff69b4;
}

.rule-item:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, #fff0f5, #ffe4ec);
  border-left-color: #ff0080;
}

.rule-item a {
  color: #ff69b4;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.rule-item a:hover {
  color: #ff0080;
  text-decoration: underline;
}

.know-btn {
  background: linear-gradient(135deg, #ff0080, #ff8c00, #ffd700);
  background-size: 200% 200%;
  color: white;
  border: none;
  border-radius: 60px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 15px;
  box-shadow: 0 8px 20px rgba(255,0,128,0.4);
  animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.know-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(255,0,128,0.6);
}

.know-btn:active { transform: scale(0.98); }

/* ========== 悬浮按钮 ========== */
.right-vertical-link {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 12px 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  z-index: 1001;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
}

.right-vertical-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.right-vertical-link:hover::before {
  left: 100%;
}

.right-vertical-link:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.right-vertical-link img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.right-vertical-link:hover img {
  transform: scale(1.15);
}

.right-vertical-link span {
  writing-mode: vertical-lr;
  text-orientation: upright;
  font-size: 12px;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.share-btn {
  position: fixed;
  top: calc(50% + 150px);
  right: 10px;
  transform: translateY(-50%);
  padding: 12px 6px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  z-index: 1001;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.share-btn:hover::before {
  left: 100%;
}

.share-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.6);
}

.share-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.share-btn:hover img {
  transform: scale(1.15);
}

.share-btn span {
  writing-mode: vertical-lr;
  text-orientation: upright;
  font-size: 12px;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

/* ========== 版权样式 ========== */
.copyright {
  position: fixed;
  bottom: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  z-index: 1000;
  left: 0;
  right: 0;
  text-align: center;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.copyright a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.copyright a:hover { 
  color: #ffd700; 
  text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* ========== 自定义炫酷光标 ========== */
.cursor {
  width: 22px;
  height: 22px;
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, #00ff88, #ff0080);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.2s, height 0.2s;
  z-index: 9999;
  mix-blend-mode: difference;
  box-shadow: 0 0 20px rgba(0,255,136,0.6);
}

/* ========== 移动端适配 ========== */
@media (max-width: 480px) {
  .announcement-modal { padding: 18px 16px; max-width: 92%; }
  .announcement-modal h2:first-of-type { font-size: 24px; }
  .announcement-modal h2:first-of-type::before,
  .announcement-modal h2:first-of-type::after { display: none; }
  .announcement-modal h2:nth-of-type(2) { font-size: 16px; }
  .know-btn { padding: 10px 22px; font-size: 14px; }
  
  .close-x-btn { top: 8px; right: 12px; width: 28px; height: 28px; }
  .close-x-btn span { font-size: 18px; }
  
  .right-vertical-link, .share-btn { padding: 10px 5px; }
  .right-vertical-link span, .share-btn span { font-size: 10px; }
  .right-vertical-link img, .share-btn img { width: 18px; height: 18px; }
  
  .flow-row { flex-direction: column; }
  .flow-divider { transform: rotate(90deg); padding: 5px 0; }
  .flow-type { width: 100%; }
  .flow-steps { font-size: 11px; }
  .rule-item { font-size: 11px; padding: 6px 10px; }
  
  .flow-steps-simple { font-size: 11px; }
  .flow-steps-simple span { font-size: 10px; padding: 3px 8px; }
  .tip-item { font-size: 11px; padding: 6px 10px; }
  .tip-icon { font-size: 16px; }
  
  .cursor { display: none; }
}

/* ========== 减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  .flow-type,
  .rule-item,
  .tips-container,
  .know-btn,
  .right-vertical-link,
  .share-btn,
  .cursor {
    animation: none;
    transition: none;
  }
  
  .right-vertical-link::before,
  .share-btn::before {
    display: none;
  }
}

/* ========== 子目录页优化（2026-11-26 回滚）========== */
#contentFrame {
  height: calc(100vh - 73px);
  height: calc(100dvh - 73px);
}

/* ========== SEO：视觉隐藏标题 ========== */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ========== 修复底部露出 body 紫色渐变 ========== */
body {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}
.announcement {
    flex: 0 0 auto;
}
/* iframe 全屏铺满，公告条浮在上面（避免底部露 body 渐变） */
#contentFrame {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}
.announcement {
    position: relative;
    z-index: 10;
}


/* 页面主标题（可见小字，勿隐藏） */
.seo-h1{display:block;position:relative;z-index:1002;height:24px;line-height:24px;font-size:12px;font-weight:400;letter-spacing:.3px;color:#64748b;text-align:center;margin:0;padding:0 10px;background:transparent;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:600px){.seo-h1{display:block;position:relative;z-index:1002;height:24px;line-height:24px;font-size:12px;font-weight:400;letter-spacing:.3px;color:#64748b;text-align:center;margin:0;padding:0 10px;background:transparent;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}





/* ===== 子页 h1（低调小字，横幅之上） ===== */
.seo-h1{display:block;position:relative;z-index:1002;height:24px;line-height:24px;font-size:12px;font-weight:400;letter-spacing:.3px;color:#64748b;text-align:center;margin:0;padding:0 10px;background:transparent;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* ===== 子页 h1（低调小字，横幅之上） ===== */
.seo-h1{display:block;position:relative;z-index:1002;height:24px;line-height:24px;font-size:12px;font-weight:400;letter-spacing:.3px;color:#64748b;text-align:center;margin:0;padding:0 10px;background:transparent;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* ===== 布局修复 20261130：横幅与 h1 占位，iframe 占剩余空间，互不遮挡 ===== */
html { height: 100%; }
body {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.announcement { flex: 0 0 auto !important; position: relative; z-index: 10; }
.seo-h1 { flex: 0 0 auto !important; }
#contentFrame {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: auto !important;
  border: 0 !important;
  display: block !important;
  background: #fff;
  position: static !important;
}
.announcement-content {
  display: block !important;
white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  letter-spacing: .5px;
  text-align: center;
}
/* ===== 横幅：恢复原滚动效果 ===== */
.announcement {
  background: linear-gradient(90deg, #ff0080, #ff8c00, #ffd700, #00ff88, #00bfff, #ff0080);
  background-size: 300% 100%;
  color: #fff;
  padding: 10px 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}
.announcement-content {
  display: inline-block !important;
letter-spacing: 2px;
  white-space: nowrap;
}
/* ===== 子页 h1：恢复可见（灰字居中，24px 高）===== */
.seo-h1 {
  display: block !important;
  position: relative !important;
  z-index: 1002 !important;
  flex: 0 0 auto !important;
  height: 24px !important;
  line-height: 24px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: .3px !important;
  color: #64748b !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  clip: auto !important;
  width: auto !important;
  opacity: 1 !important;
}
/* ===== 横幅滚动：从头就能看见文字（不再从屏幕外开始）===== */
