/* ==========================================================================
   客户投诉与反馈中心 内页骨架：票据台账风 · 表单 Hero + 受理流程 + 工单台账 + 双通道
   ========================================================================== */

:root {
  --fb-amber: #92400e;
  --fb-amber-dk: #78350f;
  --fb-gold: #d97706;
  --fb-red: #b91c1c;
  --fb-paper: #fffdf6;
  --fb-ink: #44403c;
  --fb-muted: #8a8274;
  --fb-line: #ece4d4;
}

body.fb-page {
  background: var(--fb-paper);
  color: var(--fb-ink);
}

.fb-page .brand-mark {
  background: linear-gradient(140deg, var(--fb-gold), var(--fb-amber));
  color: #fffbeb;
  box-shadow: 0 6px 16px rgba(146, 64, 14, .3);
}
.fb-page .brand-text em { color: var(--fb-amber); }
.fb-page .site-nav a.is-active { color: var(--fb-amber); }
.fb-page .site-nav a::after { background: var(--fb-gold); }
.fb-page .btn-login {
  background: linear-gradient(135deg, var(--fb-gold), var(--fb-amber));
  box-shadow: 0 8px 20px rgba(146, 64, 14, .3);
}
.fb-page .btn-login:hover { box-shadow: 0 12px 26px rgba(146, 64, 14, .4); }
.fb-page .footer-col a:hover { color: var(--fb-gold); }
.fb-page .footer-contact a:hover { border-color: var(--fb-gold); background: rgba(217, 119, 6, .08); }

/* ---------------- Hero ---------------- */
.fb-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  background:
    radial-gradient(720px 460px at 88% 8%, rgba(217, 119, 6, .14), transparent 64%),
    radial-gradient(560px 400px at 0% 100%, rgba(185, 28, 28, .07), transparent 70%),
    linear-gradient(180deg, #fffef9, var(--fb-paper));
}

.fb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(146, 64, 14, .07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  pointer-events: none;
}

.fb-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.fb-hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--fb-line);
  box-shadow: var(--shadow-s);
  font-size: 13px;
  font-weight: 700;
  color: var(--fb-amber);
}

.fb-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.6px;
}

.fb-hero h1 span {
  background: linear-gradient(100deg, var(--fb-gold), var(--fb-amber) 60%, var(--fb-amber-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.fb-page .btn-primary {
  background: linear-gradient(135deg, var(--fb-gold), var(--fb-amber));
  color: #fff;
  box-shadow: 0 10px 26px rgba(146, 64, 14, .32);
}

.fb-page .btn-primary:hover { box-shadow: 0 14px 32px rgba(146, 64, 14, .42); }

.fb-page .btn-room {
  background: #fff;
  border-color: var(--fb-line);
  color: var(--fb-amber);
}

.fb-visual { position: relative; }

.fb-visual img {
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--shadow-m);
}

.fb-visual .stamp-float {
  position: absolute;
  left: -18px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--fb-red);
  color: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  font-size: 13.5px;
  font-weight: 800;
  transform: rotate(-2deg);
}

.fb-visual .stamp-float small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .75;
}

/* ---------------- 受理流程（横向时间线） ---------------- */
.fb-section { padding: 80px 0 0; }

.fb-head {
  max-width: 560px;
  margin-bottom: 44px;
}

.fb-head .k {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--fb-amber);
  margin-bottom: 12px;
}

.fb-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -.4px; }

.fb-head p { margin-top: 12px; color: var(--fb-muted); font-size: 15.5px; }

.fb-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 70px;
  position: relative;
}

.fb-timeline::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--fb-gold) 0 8px, transparent 8px 16px);
  opacity: .5;
}

.fb-tl-item {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  text-align: center;
}

.fb-tl-item .node {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fb-gold);
  font-size: 26px;
  box-shadow: var(--shadow-s);
}

.fb-tl-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }

.fb-tl-item p { font-size: 13.5px; line-height: 1.7; color: var(--fb-muted); }

.fb-tl-item .time {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(146, 64, 14, .08);
  color: var(--fb-amber);
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- 反馈表单（示例台账） ---------------- */
.fb-twocol {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 70px;
}

.fb-form {
  padding: 32px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--fb-line);
  box-shadow: var(--shadow-m);
}

.fb-form h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }

.fb-form .sub { font-size: 13.5px; color: var(--fb-muted); margin-bottom: 22px; }

.fb-form .frow {
  margin-bottom: 16px;
}

.fb-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fb-ink);
  margin-bottom: 7px;
}

.fb-form label i {
  font-style: normal;
  color: var(--fb-red);
}

.fb-form select,
.fb-form input,
.fb-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--fb-line);
  border-radius: 10px;
  background: #fffdf8;
  font-size: 14px;
  color: var(--fb-ink);
  font-family: inherit;
}

.fb-form textarea { resize: vertical; min-height: 90px; }

.fb-form .fcat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fb-form .fcat span {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--fb-line);
  background: #fffdf8;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fb-muted);
}

.fb-form .fcat span.is-active {
  background: var(--fb-amber);
  border-color: var(--fb-amber);
  color: #fff;
}

.fb-form .fsubmit {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fb-gold), var(--fb-amber));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(146, 64, 14, .3);
  transition: transform .2s, box-shadow .2s;
}

.fb-form .fsubmit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(146, 64, 14, .4);
}

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

.fb-form .form-note.is-ok {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.fb-form .form-note.is-error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* 受理承诺侧栏 */
.fb-promise-list {
  display: grid;
  gap: 14px;
}

.fb-promise-list .pitem {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--fb-line);
  box-shadow: var(--shadow-s);
}

.fb-promise-list .pitem .no {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--fb-gold), var(--fb-amber));
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

.fb-promise-list h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }

.fb-promise-list p { font-size: 13.5px; line-height: 1.65; color: var(--fb-muted); }

/* ---------------- 工单台账（表格） ---------------- */
.fb-ledger {
  margin-bottom: 70px;
}

.fb-ledger-wrap {
  overflow-x: auto;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--fb-line);
  box-shadow: var(--shadow-s);
}

.fb-ledger table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.fb-ledger th,
.fb-ledger td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--fb-line);
  font-size: 14px;
}

.fb-ledger thead th {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .8px;
  color: var(--fb-amber-dk);
  text-transform: uppercase;
}

.fb-ledger tbody tr:last-child td { border-bottom: 0; }

.fb-ledger tbody tr:hover { background: #fffdf8; }

.fb-ledger .tid { font-family: var(--mono); font-size: 13px; color: var(--fb-ink); font-weight: 700; }

.fb-ledger .st {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 800;
}

.fb-ledger .st.done { background: #f0fdf4; color: #166534; }
.fb-ledger .st.doing { background: #fffbeb; color: var(--fb-amber); }
.fb-ledger .st.new { background: #fef2f2; color: var(--fb-red); }

/* ---------------- 双通道 ---------------- */
.fb-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 70px;
}

.fb-channel {
  padding: 30px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--fb-line);
  box-shadow: var(--shadow-s);
}

.fb-channel.tg {
  background: linear-gradient(160deg, #fff, #fffbeb);
  border-color: rgba(217, 119, 6, .3);
}

.fb-channel .ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 26px;
  margin-bottom: 16px;
  background: rgba(146, 64, 14, .08);
}

.fb-channel h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }

.fb-channel p { font-size: 14px; line-height: 1.75; color: var(--fb-muted); }

.fb-channel .to {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--fb-amber);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ---------------- 相关 ---------------- */
.fb-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 70px;
}

.fb-related a {
  display: block;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s, box-shadow .22s;
}

.fb-related a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(146, 64, 14, .16);
  border-color: var(--fb-gold);
}

.fb-related strong { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }

.fb-related span { font-size: 13.5px; color: var(--fb-muted); }

/* ---------------- CTA ---------------- */
.fb-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: 42px;
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--fb-amber-dk), var(--fb-amber));
  color: #fff;
  box-shadow: var(--shadow-m);
}

.fb-cta h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; }

.fb-cta p { color: rgba(255, 247, 237, .82); margin-top: 8px; font-size: 15px; }

.fb-cta .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.fb-cta .btn-primary {
  background: #fff;
  color: var(--fb-amber-dk);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.fb-cta .btn-room {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 247, 237, .4);
  color: #fffbeb;
}

/* ---------------- 动画 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .fb-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .fb-visual { max-width: 540px; }
  .fb-timeline { grid-template-columns: 1fr 1fr; }
  .fb-timeline::before { display: none; }
  .fb-twocol { grid-template-columns: 1fr; }
  .fb-channels { grid-template-columns: 1fr; }
  .fb-related { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .fb-hero { padding: 52px 0 60px; }
  .fb-hero h1 { font-size: 32px; }
  .fb-timeline { grid-template-columns: 1fr; }
  .fb-form { padding: 24px; }
  .fb-cta { flex-direction: column; text-align: center; align-items: center; }
}
