/* FAQ 独立页 */
.page-hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.94) 0%, #fff 100%),
    url("../images/hero-bg.png") center top / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 0%, rgba(37, 99, 235, 0.12), transparent 55%);
  pointer-events: none;
}

.page-hero .wrap { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: #cbd5e1; }

.page-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1.2px;
  margin: 0 0 12px;
  font-weight: 750;
  line-height: 1.2;
}

.page-hero .lead {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  color: #64748b;
  line-height: 1.7;
}

/* Role tabs */
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
}

.role-nav {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.role-nav-title {
  font-size: 12px;
  font-weight: 750;
  color: #94a3b8;
  letter-spacing: 0.4px;
  margin: 0 0 12px;
  padding: 0 8px;
}

.role-nav button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  color: #475569;
  transition: 0.18s ease;
  margin-bottom: 4px;
}

.role-nav button:hover { background: #f8fafc; }

.role-nav button.active {
  background: #eff6ff;
  color: var(--blue);
}

.role-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 750;
}

.role-nav button[data-role="webmaster"] .role-ico { background: #dbeafe; color: #2563eb; }
.role-nav button[data-role="operator"] .role-ico { background: #dcfce7; color: #16a34a; }
.role-nav button[data-role="creator"] .role-ico { background: #e0e7ff; color: #4f46e5; }

.role-nav button.active[data-role="webmaster"] { background: #eff6ff; }
.role-nav button.active[data-role="operator"] { background: #ecfdf3; color: #15803d; }
.role-nav button.active[data-role="creator"] { background: #eef2ff; color: #4338ca; }

.role-txt b {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 2px;
}

.role-txt span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  font-weight: 500;
}

.role-nav button.active .role-txt span { opacity: 0.85; }

.faq-panels { min-width: 0; }

.faq-panel { display: none; }
.faq-panel.active { display: block; animation: fadeUp 0.28s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.panel-head p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-list details:hover { box-shadow: var(--shadow-sm); }

.faq-list details[open] {
  border-color: #c7d9f5;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
  transition: 0.18s;
}

.faq-list details[open] summary::after {
  content: "−";
  background: #eff6ff;
  color: var(--blue);
}

.faq-list details p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  padding: 0 20px 18px;
  line-height: 1.75;
  border-top: 0;
}

/* Contact */
.contact-section {
  padding: 72px 0 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  margin-top: 36px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-card > p {
  margin: 0 0 22px;
  font-size: 14px;
  color: #64748b;
}

.contact-channels {
  display: grid;
  gap: 12px;
}

.channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.channel-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #eff6ff;
  color: var(--blue);
}

.channel b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.channel span,
.channel a {
  font-size: 13px;
  color: #64748b;
}

.channel a:hover { color: var(--blue); }

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  margin: 0 0 6px;
}

.contact-form .field {
  margin-bottom: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  color: #334155;
  background: #fff;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #93b4f7;
  box-shadow: 0 0 0 4px #eff6ff;
}

.contact-form textarea { min-height: 110px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .role-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .role-nav-title { grid-column: 1 / -1; margin-bottom: 4px; }
  .role-nav button { flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; }
  .role-txt span { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-hero { padding: 48px 0 36px; }
  .role-nav { grid-template-columns: 1fr; }
  .role-nav button { flex-direction: row; text-align: left; align-items: flex-start; }
  .role-txt span { display: block; }
  .form-row { grid-template-columns: 1fr; }
}
