/* ============================================================
   同泽星云工作室 · 自定义样式（叠加在模板之上）
   主题：深空紫 · 科技感（模板主色 #6766FF）
   ============================================================ */

:root {
  --tz-primary: #6766ff;
  --tz-primary-2: #22d3ee;
  --tz-bg: #080220;
  --tz-bg-2: #0f0927;
  --tz-line: rgba(103, 102, 255, 0.22);
  --heading-color: #ffffff;
}

/* 中文字体 */
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background-color: var(--tz-bg) !important;
}

/* ===== 文本 Logo ===== */
.tz-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  line-height: 1;
}
.tz-logo .tz-star { color: var(--tz-primary); margin-right: 6px; }
.tz-logo em { font-style: normal; color: var(--tz-primary); }

/* ===== 导航适配中文（7 项） ===== */
.intelle-header-area .header-menu ul li a {
  font-size: 16px;
  padding: 35px 11px;
  letter-spacing: 0.5px;
}
.intelle-header-area .header-menu ul li a.active,
.intelle-header-area .header-menu ul li a:hover { color: var(--tz-primary); }

/* ===== 内容卡片 ===== */
.tz-grid { display: grid; gap: 26px; }
.tz-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tz-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .tz-grid-2, .tz-grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 992px) and (max-width: 1199px) { .tz-grid-3 { grid-template-columns: repeat(2, 1fr); } }

.tz-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(103, 102, 255, 0.16);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.tz-card:hover {
  transform: translateY(-6px);
  border-color: var(--tz-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(103, 102, 255, 0.08);
}
.tz-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, rgba(103, 102, 255, 0.28), rgba(34, 211, 238, 0.2));
  border: 1px solid var(--tz-line);
}
.tz-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.tz-card p { color: #ffffffb3; font-size: 15px; margin: 0; }
.tz-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--tz-primary);
  margin-bottom: 10px;
  font-weight: 600;
}
.tz-card.center { text-align: center; }
.tz-card.center .tz-icon { margin-left: auto; margin-right: auto; }

/* 卡片标题：图标与名称同行 */
.tz-course-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.tz-course-heading .tz-icon,
.tz-course-heading h3 {
  margin-bottom: 0;
}
.tz-course-heading .tz-icon {
  flex: 0 0 58px;
}

/* 同一行卡片按最高内容统一高度 */
.tz-equal-cards {
  row-gap: 24px;
}
.tz-equal-cards > [class*="col-"] {
  display: flex;
}
.tz-equal-cards .tz-card {
  width: 100%;
  height: 100%;
  min-height: 238px;
}

/* 师资卡片等高，详情入口固定对齐到底部 */
.tz-team-cards {
  row-gap: 24px;
}
.tz-team-cards > [class*="col-"] {
  display: flex;
}
.tz-team-cards .tz-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 491px;
}
.tz-team-cards .tz-card .tz-course-link {
  align-self: center;
  margin-top: auto;
  padding-top: 18px;
}
@media (max-width: 991px) {
  .tz-team-cards .tz-card { min-height: 508px; }
}
@media (max-width: 575px) {
  .tz-team-cards .tz-card { min-height: 536px; }
}

/* 列表要点 */
.tz-list { list-style: none; padding: 0; margin: 0; }
.tz-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: #ffffffb3;
  font-size: 15px;
}
.tz-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--tz-primary);
}

/* ===== 按钮 ===== */
.tz-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  font-size: 16px; font-weight: 600;
  border-radius: 50px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.25s;
}
.tz-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6766ff, #22d3ee);
  box-shadow: 0 8px 24px rgba(103, 102, 255, 0.35);
}
.tz-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 32px rgba(103, 102, 255, 0.5); }
.tz-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--tz-line);
}
.tz-btn-ghost:hover { color: var(--tz-primary); border-color: var(--tz-primary); }

/* ===== 表单 ===== */
.tz-form { width: 100%; }
.tz-grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 22px; }
.tz-grid-form .tz-span-2 { grid-column: 1 / -1; }
@media (max-width: 767px) { .tz-grid-form { grid-template-columns: 1fr; } }

.tz-field { margin-bottom: 4px; }
.tz-label {
  display: block;
  font-size: 15px; font-weight: 600; color: #fff;
  margin-bottom: 9px;
}
.tz-label .req { color: #ff6b8a; margin-left: 2px; }
.tz-input, .tz-textarea, .tz-select {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(103, 102, 255, 0.22);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tz-input:focus, .tz-textarea:focus, .tz-select:focus {
  border-color: var(--tz-primary);
  box-shadow: 0 0 0 3px rgba(103, 102, 255, 0.18);
}
.tz-textarea { min-height: 110px; resize: vertical; }
.tz-select { appearance: none; cursor: pointer; }
.tz-input::placeholder, .tz-textarea::placeholder { color: #6f6a95; }
.tz-hint { font-size: 13px; color: #8a86ad; margin-top: 7px; }

/* 单选/多选胶囊 */
.tz-options { display: flex; flex-wrap: wrap; gap: 12px; }
.tz-option {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  font-size: 14px; color: #d7d4ee;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(103, 102, 255, 0.22);
  border-radius: 50px;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}
.tz-option:hover { border-color: var(--tz-primary); color: #fff; }
.tz-option input { position: absolute; opacity: 0; pointer-events: none; }
.tz-option .dot, .tz-option .box {
  flex: none;
  width: 16px; height: 16px;
  border: 2px solid #8a86ad;
  position: relative;
  transition: 0.2s;
}
.tz-option .dot { border-radius: 50%; }
.tz-option .box { border-radius: 4px; }
.tz-option input:checked ~ .dot { border-color: var(--tz-primary); }
.tz-option input:checked ~ .dot::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--tz-primary);
}
.tz-option input:checked ~ .box { border-color: var(--tz-primary); background: var(--tz-primary); }
.tz-option input:checked ~ .box::after {
  content: "✓"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.tz-option:has(input:checked) {
  border-color: var(--tz-primary);
  background: rgba(103, 102, 255, 0.12);
  color: #fff;
}

/* 其他方向：内联输入 */
.tz-other { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tz-other .tz-other-input { flex: 1; min-width: 160px; }

/* 表单操作 */
.tz-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.tz-btn-reset {
  background: transparent; color: #b6b2d6;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.tz-btn-reset:hover { color: #fff; border-color: #fff; }

/* 错误提示 */
.tz-error { display: none; color: #ff6b8a; font-size: 13px; margin-top: 6px; }
.tz-field.invalid .tz-input,
.tz-field.invalid .tz-textarea,
.tz-field.invalid .tz-select { border-color: #ff6b8a; }
.tz-field.invalid .tz-error { display: block; }

/* 提交须知 */
.tz-notice {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 3px solid var(--tz-primary);
  background: rgba(103, 102, 255, 0.16);
  border-radius: 0 14px 14px 0;
}
.tz-notice h4 { color: #cfccff; font-size: 16px; margin-bottom: 12px; }
.tz-notice ol { padding-left: 20px; margin: 0; }
.tz-notice li { color: #e6e4f7; font-size: 14px; margin-bottom: 6px; }

/* ===== 成功页 ===== */
.tz-success {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 0 80px;
}
.tz-success-box { max-width: 600px; margin: 0 auto; }
.tz-success-icon {
  width: 88px; height: 88px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #6766ff, #22d3ee);
  box-shadow: 0 0 40px rgba(103, 102, 255, 0.5);
}
.tz-success-box h1 { font-size: 34px; margin-bottom: 18px; }
.tz-success-box p { color: #ffffffb3; font-size: 16px; margin-bottom: 30px; }

/* ===== 联系方式 ===== */
.tz-contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(103, 102, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}
.tz-contact-item .tz-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 0; flex: none; }
.tz-contact-item .label { font-size: 13px; color: #b6b2d6; }
.tz-contact-item .value { font-size: 16px; font-weight: 600; color: #fff; word-break: break-all; }

/* 项目案例缩略图占位 */
.tz-project-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  font-size: 44px;
  color: #fff;
  background: linear-gradient(135deg, rgba(103, 102, 255, 0.28), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(103, 102, 255, 0.24);
}
.tz-project-thumb span {
  font-size: 12px; letter-spacing: 1px; color: #8a86ad;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* 页面标题副标题间距 */
.tz-page-actions { margin-top: 26px; }
.tz-mt-40 { margin-top: 40px; }
.tz-mt-50 { margin-top: 50px; }
.tz-text-center { text-align: center; }

/* ===== 深色背景补丁：修复表单/课程区白底导致文字不可见 ===== */
.service-section-inner { background-color: var(--tz-bg) !important; }

/* ===== 页面最外层容器：模板默认是白底，改深色，消除区块衔接处露出的白条 ===== */
.page-wrapper {
  background-color: var(--tz-bg) !important;
}

/* ===== 内页顶部横幅：加深色底色兜底，并向下重叠 1px，消除标题区与内容区衔接处的白条 ===== */
.about-page-title,
.service-page-title,
.contact-page-title,
.feature-page-title,
.team-page-title,
.accordion-page-title {
  background-color: var(--tz-bg) !important;
  margin-bottom: -1px;
}

/* ===== 课程详情弹窗 ===== */
.tz-card-click { cursor: pointer; }
.tz-card .tz-course-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: #cfccff; font-size: 14px; font-weight: 600;
}
.tz-card .tz-course-link:hover { color: #fff; }
.tz-card .tz-course-link i { transition: transform .2s; }
.tz-card:hover .tz-course-link i { transform: translateX(4px); }

.tz-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4, 2, 16, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.tz-modal-overlay.open { opacity: 1; visibility: visible; }
.tz-modal {
  width: 100%; max-width: 680px; max-height: 86vh; overflow-y: auto;
  background: #0f0927; border: 1px solid rgba(103, 102, 255, 0.32);
  border-radius: 20px; padding: 40px 36px; position: relative;
}
.tz-modal-close {
  position: absolute; top: 16px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfccff; font-size: 22px; line-height: 1; cursor: pointer;
}
.tz-modal-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tz-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-right: 40px; }
.tz-modal-head .tz-icon { margin-bottom: 0; flex: none; }
.tz-modal-head h2 { color: #fff; font-size: 24px; margin: 4px 0 0; }
.tz-modal-sec { margin-bottom: 22px; }
.tz-modal-sec h4 { color: #b3afff; font-size: 15px; margin-bottom: 10px; }
.tz-modal-sec p { color: #e6e4f7; font-size: 15px; }
.tz-modal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.tz-modal-meta span {
  font-size: 13px; color: #cfccff; background: rgba(103, 102, 255, 0.12);
  border: 1px solid rgba(103, 102, 255, 0.24); border-radius: 50px; padding: 6px 14px;
}

/* ===== FAQ 问答列表 ===== */
.faq-list {
  display: grid;
  gap: 16px;
}
.faq-item {
  padding: 24px 26px;
  border: 1px solid rgba(103, 102, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.faq-item h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  color: #ffffffb3;
  font-size: 15px;
  line-height: 1.8;
}
.faq-question-form {
  padding: 32px;
}
.faq-question-form > h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 24px;
}
.faq-question-form > p {
  margin-bottom: 24px;
}
.faq-question-form .tz-field + .tz-field {
  margin-top: 18px;
}
.tz-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
@media (max-width: 575px) {
  .faq-item { padding: 20px; }
  .faq-question-form { padding: 24px 20px; }
}

/* ===== 后台导出页 ===== */
.tz-admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: radial-gradient(circle at top, rgba(103, 102, 255, 0.2), transparent 45%), var(--tz-bg);
}
.tz-admin-card {
  width: min(100%, 560px);
  padding: 36px;
}
.tz-admin-card h1 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 30px;
}
.tz-admin-card > p {
  margin-bottom: 26px;
}
@media (max-width: 575px) {
  .tz-admin-card { padding: 26px 20px; }
}
