/* ==========================================================================
   客服投诉与反馈中心内页骨架：浅色服务中心 · 顶部问题检索 + 左主栏表单 + 右侧状态栏
   （独立骨架）
   ========================================================================== */

:root {
  --cs-bg: #f6f8fc;
  --cs-ink: #111827;
  --cs-muted: #5b6b82;
  --cs-blue: #1d4ed8;
  --cs-blue-lt: #3b82f6;
  --cs-line: #e3e9f2;
  --cs-warn: #b45309;
}

body.cs-page {
  background: var(--cs-bg);
  color: var(--cs-ink);
}

.cs-page .site-header { background: rgba(255, 255, 255, .95); }
.cs-page .brand-mark { background: linear-gradient(135deg, #93c5fd, #1d4ed8); color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 216, .26); }
.cs-page .brand-text em { color: var(--cs-blue); }
.cs-page .site-nav a.is-active { color: var(--cs-blue); background: rgba(29, 78, 216, .09); }
.cs-page .btn-login { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; box-shadow: 0 8px 20px rgba(29, 78, 216, .26); }

/* ---------------- Hero ---------------- */
.cs-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 96px;
  background:
    radial-gradient(680px 400px at 78% 8%, rgba(59, 130, 246, .18), transparent 66%),
    linear-gradient(180deg, #ffffff, var(--cs-bg));
  border-bottom: 1px solid var(--cs-line);
}

.cs-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, .16);
  box-shadow: 0 0 0 60px rgba(59, 130, 246, .045), 0 0 0 120px rgba(59, 130, 246, .03);
  pointer-events: none;
}

.cs-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--cs-line);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cs-blue);
}

.cs-tag i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.cs-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.5px;
}

.cs-hero h1 span { color: var(--cs-blue); }

.cs-hero .lead {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--cs-muted);
  max-width: 560px;
}

.cs-hero .lead strong { color: var(--cs-ink); }

.cs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 28px 0 18px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .07);
}

.cs-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--cs-ink);
  background: none;
}

.cs-search input::placeholder { color: #9aa7b8; }

.cs-search button {
  flex: none;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cs-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 32px rgba(29, 78, 216, .28);
}

.cs-actions .btn-room {
  background: #fff;
  border: 1px solid var(--cs-line);
  color: var(--cs-blue);
}

.cs-actions .btn-room b { letter-spacing: 1px; }

.cs-visual {
  position: relative;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(17, 24, 39, .12);
  transform: rotate(1.2deg);
}

.cs-visual img { border-radius: 16px; }

.cs-visual .badge-float {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .16);
  font-size: 13px;
  font-weight: 700;
}

.cs-visual .badge-float .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

/* ---------------- 分类卡 ---------------- */
.cs-cats {
  position: relative;
  z-index: 3;
  margin-top: -52px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-card {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .07);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 78, 216, .35);
  box-shadow: 0 22px 44px rgba(17, 24, 39, .12);
}

.cat-card .ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #eff4ff;
  font-size: 19px;
  margin-bottom: 14px;
}

.cat-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.cat-card p { font-size: 13px; line-height: 1.7; color: var(--cs-muted); }

/* ---------------- 主体：左主栏 + 右栏 ---------------- */
.cs-body { padding: 78px 0 96px; }

.cs-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  align-items: start;
}

.cs-block {
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.cs-block + .cs-block { margin-top: 24px; }

.cs-block > h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cs-block > .sub { font-size: 14.5px; color: var(--cs-muted); margin-bottom: 24px; }

/* 表单 */
.field { margin-bottom: 20px; }

.field > label,
.field > .label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 9px;
  color: #2c3a4f;
}

.field .req { color: #dc2626; margin-left: 3px; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-opt {
  position: relative;
  display: block;
}

.type-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.type-opt span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--cs-line);
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: #3d4c63;
  background: #fbfcfe;
  transition: border-color .2s, background .2s, color .2s;
}

.type-opt input:checked + span {
  border-color: var(--cs-blue);
  background: #eff4ff;
  color: var(--cs-blue);
}

.type-opt input:focus-visible + span { outline: 3px solid #bfdbfe; outline-offset: 2px; }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--cs-line);
  border-radius: 11px;
  background: #fbfcfe;
  font: inherit;
  font-size: 14.5px;
  color: var(--cs-ink);
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cs-blue-lt);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.field textarea { min-height: 130px; resize: vertical; }

.field .hint { margin-top: 7px; font-size: 12.5px; color: #8b98a9; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.form-submit .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, .26);
}

.form-submit .note { font-size: 12.5px; color: #8b98a9; max-width: 340px; }

.form-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  display: none;
}

.form-note.is-error { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.form-note.is-ok { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* FAQ */
.faq-list { border-top: 1px solid var(--cs-line); }

.faq-item { border-bottom: 1px solid var(--cs-line); }

.faq-item .acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--cs-ink);
}

.faq-item .acc-trigger .q {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #eff4ff;
  color: var(--cs-blue);
  font-size: 12px;
  font-weight: 800;
}

.faq-item .acc-trigger .arrow {
  margin-left: auto;
  color: #9aa7b8;
  transition: transform .25s;
}

.faq-item.is-open .acc-trigger .arrow { transform: rotate(180deg); color: var(--cs-blue); }

.faq-item .acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
.faq-item.is-open .acc-panel { grid-template-rows: 1fr; }
.faq-item .acc-panel > div { overflow: hidden; }
.faq-item .acc-panel p {
  padding: 0 4px 20px 42px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--cs-muted);
}
.faq-item .acc-panel a { color: var(--cs-blue); font-weight: 600; }

/* ---------------- 右侧栏 ---------------- */
.cs-side { position: sticky; top: 96px; display: grid; gap: 18px; }

.side-card {
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.side-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }

.tg-card {
  background: linear-gradient(150deg, #0b2545, #123a63);
  border-color: transparent;
  color: #fff;
}

.tg-card h3 { color: #fff; }
.tg-card p { font-size: 13.5px; color: #a9c6e6; line-height: 1.75; }

.tg-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #38bdf8;
  color: #04263d;
  font-weight: 800;
  font-size: 14.5px;
  transition: background .2s;
}

.tg-card a:hover { background: #7dd3fc; }

.sla-list { display: grid; gap: 14px; }

.sla-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.sla-item span { font-size: 13.5px; color: var(--cs-muted); }
.sla-item b { font-size: 14px; color: var(--cs-ink); white-space: nowrap; }
.sla-item b.fast { color: #15803d; }

.side-card .mini-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--cs-line);
  font-size: 12.5px;
  line-height: 1.7;
  color: #8b98a9;
}

/* 状态流程 */
.flow { display: grid; gap: 0; }

.flow-step {
  position: relative;
  padding-left: 30px;
  padding-bottom: 22px;
}

.flow-step:last-child { padding-bottom: 0; }

.flow-step::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--cs-blue-lt);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px; top: 22px; bottom: 2px;
  width: 2px;
  background: var(--cs-line);
}

.flow-step strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.flow-step span { font-size: 12.5px; color: var(--cs-muted); line-height: 1.65; }

/* ---------------- 底部提示 ---------------- */
.cs-footer-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 24px;
  padding: 26px 30px;
  border-radius: 16px;
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.cs-footer-note .i {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fef3c7;
  color: var(--cs-warn);
  font-weight: 900;
}

.cs-footer-note h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; color: #78350f; }
.cs-footer-note p { font-size: 13.5px; line-height: 1.8; color: #92400e; }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1040px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-side { position: static; grid-template-columns: 1fr 1fr; }
  .cs-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-visual { max-width: 520px; transform: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .cs-hero { padding: 48px 0 76px; }
  .cs-hero h1 { font-size: 28px; }
  .cs-actions .btn { width: 100%; }
  .cs-cats { margin-top: -40px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cs-body { padding: 56px 0 72px; }
  .cs-block { padding: 24px 20px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cs-side { grid-template-columns: 1fr; }
  .cs-search { padding-left: 16px; }
  .cs-search button { padding: 10px 16px; }
  .cs-footer-note { grid-template-columns: 1fr; padding: 22px; }
  .faq-item .acc-panel p { padding-left: 4px; }
}
