.fcf-home,
.fcf-center {
  --fcf-primary: #47b2e4;
  --fcf-primary-dark: #278fbe;
  --fcf-ink: #243b55;
  --fcf-muted: #64748b;
  --fcf-line: #dbe6ef;
  --fcf-bg: #f7fbfe;
  color: var(--fcf-ink);
  font-family: "Open Sans", "Microsoft YaHei", sans-serif;
}

.fcf-wrap,
.fcf-center {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.fcf-home {
  padding: 64px 0;
  background: linear-gradient(145deg, #f5fbff 0%, #edf8ff 55%, #fff7fb 100%);
}

.fcf-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.fcf-heading h2,
.fcf-panel h2 {
  color: #37517e;
  font-weight: 700;
}

.fcf-heading h2 {
  margin: 4px 0 12px;
  font-size: clamp(28px, 4vw, 38px);
}

.fcf-eyebrow {
  margin: 0;
  color: var(--fcf-primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fcf-actions,
.fcf-qq-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fcf-actions {
  margin-bottom: 30px;
}

.fcf-button {
  appearance: none;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--fcf-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--fcf-primary-dark) !important;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.fcf-button:hover,
.fcf-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(39, 143, 190, .18);
}

.fcf-button-primary {
  border-color: var(--fcf-primary);
  background: var(--fcf-primary);
  color: #fff !important;
}

.fcf-button[disabled] {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.fcf-link-button {
  border: 0;
  background: transparent;
  color: var(--fcf-primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.fcf-card-list {
  display: grid;
  gap: 18px;
}

.fcf-card-list-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fcf-card {
  overflow-wrap: anywhere;
  padding: 22px;
  border: 1px solid var(--fcf-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(55, 81, 126, .08);
}

.fcf-card h3 {
  margin: 12px 0 8px;
  color: #37517e;
  font-size: 19px;
}

.fcf-card p:last-child {
  margin-bottom: 0;
}

.fcf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fcf-ticket {
  color: var(--fcf-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.fcf-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f6fd;
  color: #176c96;
  font-size: 12px;
  font-weight: 700;
}

.fcf-status-completed { background: #e8f8ef; color: #18794e; }
.fcf-status-closed { background: #eef2f6; color: #52606d; }
.fcf-status-waiting_player { background: #fff4db; color: #9a6300; }

.fcf-meta,
.fcf-help {
  color: var(--fcf-muted);
  font-size: 14px;
}

.fcf-qq-row {
  margin-top: 26px;
}

.fcf-center {
  padding-block: 36px 64px;
}

.fcf-panel {
  margin-bottom: 28px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--fcf-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(55, 81, 126, .08);
  scroll-margin-top: 100px;
}

.fcf-panel h2 {
  margin-top: 0;
}

.fcf-form,
.fcf-form label {
  display: grid;
  gap: 8px;
}

.fcf-form {
  gap: 18px;
}

.fcf-form label {
  color: #37517e;
  font-weight: 700;
}

.fcf-form small {
  color: var(--fcf-muted);
  font-weight: 400;
}

.fcf-form input:not([type="checkbox"]),
.fcf-form select,
.fcf-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd9e5;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-weight: 400;
}

.fcf-form textarea {
  resize: vertical;
}

.fcf-form input:focus,
.fcf-form select:focus,
.fcf-form textarea:focus {
  border-color: var(--fcf-primary);
  box-shadow: 0 0 0 3px rgba(71, 178, 228, .15);
  outline: none;
}

.fcf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fcf-form-inline {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.fcf-consent {
  display: flex !important;
  align-items: flex-start;
  grid-template-columns: auto 1fr;
  color: var(--fcf-muted) !important;
  font-size: 14px;
  font-weight: 400 !important;
}

.fcf-consent input {
  margin-top: 4px;
}

.fcf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.fcf-message {
  min-height: 20px;
  color: var(--fcf-muted);
}

.fcf-message.is-error { color: #b42318; }
.fcf-message.is-success { color: #18794e; }

.fcf-result-secret {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b7e1f4;
  border-radius: 14px;
  background: #f0faff;
}

.fcf-result-secret code {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: #1f3851;
  color: #fff;
  font-size: 15px;
}

.fcf-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.fcf-images img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--fcf-line);
  border-radius: 10px;
  background: var(--fcf-bg);
}

.fcf-timeline {
  margin: 22px 0 0;
  padding: 0 0 0 24px;
  border-left: 2px solid #cdeaf7;
  list-style: none;
}

.fcf-timeline li {
  position: relative;
  margin: 0 0 20px;
}

.fcf-timeline li::before {
  position: absolute;
  top: 5px;
  left: -31px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--fcf-primary);
  box-shadow: 0 0 0 1px var(--fcf-primary);
  content: "";
}

.fcf-timeline time {
  margin-left: 10px;
  color: var(--fcf-muted);
  font-size: 12px;
}

.fcf-timeline p {
  margin: 5px 0;
}

.fcf-private-ticket {
  margin-top: 24px;
}

.fcf-reply-box {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--fcf-line);
}

.fcf-empty {
  padding: 24px;
  border: 1px dashed var(--fcf-line);
  border-radius: 12px;
  color: var(--fcf-muted);
  text-align: center;
}

.fcf-qq-panel {
  text-align: center;
}

@media (max-width: 760px) {
  .fcf-card-list-compact,
  .fcf-grid,
  .fcf-form-inline {
    grid-template-columns: 1fr;
  }

  .fcf-form-inline .fcf-button {
    width: 100%;
  }

  .fcf-panel {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fcf-button { transition: none; }
}
