/* ============================================================
   ACE PATH — 留言板页面（contact.html）
   ============================================================ */

.contact-page {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(22, 119, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 42%, #0A2158 100%);
}

/* ============ 页面头部 ============ */
.ct-hero {
  position: relative;
  padding: 170px 0 60px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.ct-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ct-hero-inner { position: relative; }
.ct-hero .hero-eyebrow { justify-content: center; margin-bottom: 22px; }

.ct-title {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.ct-subtitle {
  margin: 22px auto 0;
  color: rgba(212, 228, 255, 0.7);
  font-size: 16px;
  line-height: 1.9;
  max-width: 620px;
}

/* ============ 主体布局 ============ */
.ct-main { padding: 20px 0 120px; }
.ct-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

/* ============ 表单卡片 ============ */
.ct-form-card {
  background: #fff;
  border-radius: 22px;
  padding: 46px 44px 42px;
  box-shadow: 0 30px 80px rgba(3, 12, 34, 0.45);
}
.ct-form-head h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.ct-form-head p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.ct-form-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ct-form-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.ct-field { position: relative; margin-bottom: 20px; }
.ct-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 9px;
  letter-spacing: 0.02em;
}
.ct-field label i {
  font-style: normal;
  color: var(--blue);
  margin-left: 2px;
}
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  font-family: var(--font-cn);
  font-size: 15px;
  color: var(--ink);
  background: #F5F8FE;
  border: 1.5px solid rgba(11, 31, 78, 0.1);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: #9AA6BF; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}
.ct-field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }

.ct-field.invalid input,
.ct-field.invalid select,
.ct-field.invalid textarea {
  border-color: #FF5A5A;
  background: #FFF7F7;
}

.ct-select-wrap { position: relative; }
.ct-select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
}
.ct-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ct-counter {
  position: absolute;
  right: 4px; top: 2px;
  font-size: 12px;
  color: #9AA6BF;
  font-family: var(--font-en);
}
.ct-counter.over { color: #FF5A5A; }

.ct-submit { width: 100%; justify-content: center; margin-top: 8px; font-size: 16.5px; }

.ct-privacy {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: #9AA6BF;
  letter-spacing: 0.03em;
}

/* ============ 右侧：留言墙 ============ */
.ct-side { display: flex; flex-direction: column; gap: 24px; }

.ct-board {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 22px;
  padding: 30px 26px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ct-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.ct-board-head h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ct-board-count {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 0.05em;
}

.ct-board-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}
.ct-board-list::-webkit-scrollbar { width: 5px; }
.ct-board-list::-webkit-scrollbar-thumb {
  background: rgba(120, 160, 255, 0.3);
  border-radius: 5px;
}

.ct-msg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 160, 255, 0.14);
  border-radius: 14px;
  padding: 18px 18px 16px;
  animation: msgIn 0.6s var(--ease);
  transition: border-color 0.35s, background 0.35s;
}
.ct-msg:hover {
  border-color: rgba(0, 198, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.ct-msg-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ct-msg-avatar {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue), var(--cyan));
}
.ct-msg-meta { flex: 1; min-width: 0; }
.ct-msg-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-msg-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(160, 185, 230, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-msg-tag {
  flex: none;
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: rgba(0, 198, 255, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}
.ct-msg-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(220, 232, 255, 0.82);
  word-break: break-word;
}
.ct-msg-time {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(150, 175, 222, 0.5);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.ct-board-empty {
  text-align: center;
  padding: 36px 10px;
  color: rgba(170, 195, 240, 0.55);
  font-size: 13.5px;
  line-height: 1.9;
}
.ct-board-empty strong {
  display: block;
  color: rgba(210, 226, 252, 0.8);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ============ 服务承诺卡 ============ */
.ct-pledge {
  border-radius: 22px;
  padding: 30px 28px;
  background: linear-gradient(150deg, rgba(22, 119, 255, 0.16), rgba(0, 198, 255, 0.07));
  border: 1px solid rgba(22, 119, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ct-pledge h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.ct-pledge li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: rgba(222, 235, 255, 0.88);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px dashed rgba(120, 160, 255, 0.18);
}
.ct-pledge li:last-child { border-bottom: none; padding-bottom: 0; }
.ct-pledge li span {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--blue), #0A53C7);
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.35);
}

/* ============ 提交成功提示 ============ */
.ct-toast {
  position: fixed;
  left: 50%;
  top: 96px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 34, 88, 0.92);
  border: 1px solid rgba(0, 198, 255, 0.5);
  color: #fff;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(3, 12, 34, 0.5);
  transform: translate(-50%, -24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.ct-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ct-toast-icon {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: linear-gradient(140deg, var(--blue), var(--cyan));
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-board-list { max-height: 420px; }
}
@media (max-width: 640px) {
  .ct-hero { padding: 140px 0 44px; }
  .ct-form-card { padding: 34px 24px 30px; }
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .ct-main { padding-bottom: 88px; }
  .ct-msg-tag { display: none; }
  .ct-board { padding: 24px 18px; }
}

/* 手机端（小屏）专属适配 */
@media (max-width: 480px) {
  .ct-hero { padding: 118px 0 36px; }
  .ct-form-card { padding: 28px 18px 26px; border-radius: 18px; }
  .ct-submit { font-size: 15.5px; }
  .ct-board-list { max-height: none; }
  .ct-msg { padding: 18px 16px; }
}
