/* ===== 商祺模板库 · 整体科技风 ===== */

/* ---- 全局深色背景 ---- */
body.body-help {
  background: #080c14;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---- 导航栏 ---- */
.site-head {
  background: rgba(8,12,20,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56,189,248,0.1) !important;
  box-shadow: 0 0 20px rgba(56,189,248,0.04), 0 4px 20px rgba(0,0,0,0.4) !important;
}
.site-head .site-nav a {
  color: #94a3b8 !important;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.site-head .site-nav a:hover,
.site-head .site-nav a.active {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56,189,248,0.35);
}

/* ---- 隐藏Logo和客服 ---- */
.site-head .aitecms { display: none !important; }
.main-im { display: none !important; }

/* ---- 标语区 ---- */
.serc {
  padding: 90px 20px 50px !important;
  text-align: center;
  position: relative;
}
.serc::before {
  content: '';
  position: absolute;
  top: 40%; left: 50%;
  width: 700px; height: 350px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(56,189,248,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.serc .tit {
  position: relative;
  z-index: 1;
}
.serc .tit i {
  display: block;
  font-size: 34px;
  font-weight: 800;
  font-style: normal;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
  margin-bottom: 12px;
  white-space: nowrap;
  line-height: 1.3;
}
.serc .tit span {
  display: block;
  color: #64748b;
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
}

/* 标语区底部分隔线 */
.serc::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.4), rgba(192,132,252,0.3), transparent);
}

/* ---- 搜索框 ---- */
.tech-search {
  padding: 0 40px 30px;
  position: relative;
  z-index: 1;
}
.tech-search form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.06), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: all 0.3s;
}
.tech-search form:focus-within {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.tech-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 14px 18px;
  font-size: 15px;
  outline: none;
  letter-spacing: 0.5px;
}
.tech-search input::placeholder {
  color: #475569;
  font-size: 14px;
}
.tech-search button {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border: none;
  color: #fff;
  padding: 0 32px;
  height: 44px;
  line-height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 3px;
  transition: all 0.3s;
  white-space: nowrap;
}
.tech-search button:hover {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* ---- 模板展示区板块标题（纯CSS生成） ---- */
.mainpc::before {
  content: '◆  TEMPLATE GALLERY  ◆';
  display: block;
  text-align: center;
  font-size: 11px;
  color: rgba(56,189,248,0.45);
  letter-spacing: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ---- 模板展示区：科技终端窗口 ---- */
.mainpc {
  padding: 0 40px 60px !important;
  position: relative;
  z-index: 1;
}

#admin_1 {
  position: relative;
  border-radius: 14px;
  padding: 2px;
  background-color: transparent;
  background-image:
    linear-gradient(135deg, rgba(56,189,248,0.7) 0px, transparent 28px),
    linear-gradient(225deg, rgba(56,189,248,0.7) 0px, transparent 28px),
    linear-gradient(315deg, rgba(56,189,248,0.7) 0px, transparent 28px),
    linear-gradient(45deg,  rgba(56,189,248,0.7) 0px, transparent 28px),
    linear-gradient(165deg, rgba(56,189,248,0.35), rgba(129,140,248,0.15), rgba(15,23,42,0.5));
  background-position: 0 0, 100% 0, 100% 100%, 0 100%, 0 0;
  background-size: 28px 28px, 28px 28px, 28px 28px, 28px 28px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.08),
    0 0 40px rgba(56,189,248,0.06),
    0 25px 60px -10px rgba(0,0,0,0.6);
  /* overflow: hidden; removed to fix mobile scroll */
}

.iframe-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  position: relative;
  z-index: 5;
  margin-top: -70px;
}

/* ---- iframe顶部遮罩：隐藏内部搜索框 ---- */
.iframe-mask {
  display: none !important;
}

/* 顶部能量条 */
#admin_1::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #c084fc, transparent);
  z-index: 12;
  opacity: 0.9;
}

/* 扫描线 */
#admin_1::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 4px,
    rgba(56,189,248,0.015) 4px,
    rgba(56,189,248,0.015) 8px
  );
  pointer-events: none;
  z-index: 10;
}

/* ---- 版权底部 ---- */
.arrow-begin {
  background: rgba(5,8,14,0.6);
  color: #475569;
  padding: 40px 20px !important;
  font-size: 12px;
  letter-spacing: 1px;
  border-top: 1px solid rgba(56,189,248,0.08);
  text-align: center;
  position: relative;
}
.arrow-begin::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.5), transparent);
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---- 移动端 ---- */
@media screen and (max-width: 768px) {
  .tech-search { padding: 0 16px 20px !important; }
  .tech-search button { padding: 0 20px; font-size: 13px; letter-spacing: 2px; }
  .tech-search input { padding: 12px 14px; font-size: 14px; }
  .mainpc { padding: 0 16px 40px !important; }
  #admin_1 {
    padding: 2px;
    border-radius: 10px;
    background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px, 100% 100%;
  }
  .iframe-wrap iframe { border-radius: 8px; }
  .serc .tit i { font-size: 24px; letter-spacing: 2px; }
  .mainpc::before { letter-spacing: 4px; font-size: 10px; }
}

/* ---- iframe移动端高度修复 ---- */
@media screen and (max-width: 800px) {
  .iframe-wrap iframe {
    height: 99999px !important;
  }
}
