/* ============================================================================
 * 小红书开放平台 · 开发者门户全局样式
 * ---------------------------------------------------------------------------
 * 迁移自 sns-account-openplatform-portal（Vite + React + Antd）时，
 * Antd 的 Alert / Steps / Tag / Card / Collapse 等组件全部改为纯 CSS 实现。
 * ============================================================================ */

/* ============ CSS Reset & Base ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue',
    Arial, sans-serif;
  color: #262626;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5715;
}

a {
  color: #ff2442;
  text-decoration: none;
}

a:hover {
  color: #ff4d6a;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============ Layout ============ */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  height: 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: saturate(180%) blur(10px);
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.app-header .logo img {
  width: 32px;
  height: 32px;
}

.app-header .nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-header .nav-menu {
  display: flex;
  gap: 4px;
  height: 62px;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.app-header .nav-menu li {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}

.app-header .nav-menu li a {
  color: #595959;
  font-size: 14px;
}

.app-header .nav-menu li:hover a,
.app-header .nav-menu li.active a {
  color: #ff2442;
}

.app-header .nav-menu li.active {
  border-bottom-color: #ff2442;
}

.app-main {
  flex: 1;
}

.app-footer {
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 40px 24px;
}

.app-footer a {
  color: rgba(255, 255, 255, 0.65);
}

.app-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.app-footer h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.app-footer ul li {
  margin-bottom: 8px;
  font-size: 13px;
}

.app-footer ul li a:hover {
  color: #ff2442;
}

.app-footer .copyright {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  text-align: center;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: inherit;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-primary {
  background: #ff2442;
  color: #fff;
  border-color: #ff2442;
}

.btn-primary:hover {
  background: #ff4d6a;
  border-color: #ff4d6a;
  color: #fff;
}

.btn-default {
  background: #fff;
  color: #262626;
  border-color: #d9d9d9;
}

.btn-default:hover {
  border-color: #ff2442;
  color: #ff2442;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-danger-text {
  color: #ff4d4f;
}

.btn-danger-text:hover {
  color: #ff7875;
}

.btn-text {
  border: none;
  padding: 0 8px;
  height: 28px;
  color: #595959;
}

.btn-text:hover {
  color: #ff2442;
}

/* ============ Hero (Landing) ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fff5f6 0%, #fff 60%);
  padding: 96px 40px 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 36, 66, 0.12), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 36, 66, 0.1);
  color: #ff2442;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1f1f1f;
  letter-spacing: -1px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #ff2442, #ff8f5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: #595959;
  margin-bottom: 40px;
  max-width: 720px;
}

.hero .cta {
  display: flex;
  gap: 16px;
}

/* ============ Section ============ */
.section {
  padding: 96px 40px;
}

.section.gray {
  background: #fafafa;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f1f1f;
}

.section-title p {
  font-size: 16px;
  color: #8c8c8c;
}

/* ============ Feature Cards ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  row-gap: 6px;
  align-items: start;
}

.feature-card:hover {
  border-color: #ff2442;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 36, 66, 0.08);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2442, #ff8f5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  grid-row: span 2;
  margin-bottom: 0;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0;
  align-self: start;
  line-height: 1;
  /* 让标题文字顶部与图标顶部视觉对齐（补偿字体自身的顶部空白） */
  padding-top: 4px;
}

.feature-card p {
  font-size: 14px;
  color: #8c8c8c;
  line-height: 1.6;
  grid-column: 2;
  margin: 0;
}

/* ============ Steps ============ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.step-card .step-no {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: #ff2442;
  border: 2px solid #ff2442;
  font-size: 22px;
  font-weight: 700;
  line-height: 52px;
  margin-bottom: 16px;
}

.step-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: #8c8c8c;
  line-height: 1.6;
}

/* Steps 水平版（申请页顶部进度条） */
.steps-horizontal {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}

.steps-horizontal .step {
  flex: 1;
  text-align: left;
  position: relative;
  padding-right: 16px;
}

.steps-horizontal .step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #8c8c8c;
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.steps-horizontal .step.active .step-icon {
  background: #ff2442;
  color: #fff;
}

.steps-horizontal .step-title {
  font-weight: 500;
  font-size: 14px;
  color: #262626;
  display: inline;
}

.steps-horizontal .step-desc {
  color: #8c8c8c;
  font-size: 12px;
  margin-top: 4px;
  margin-left: 36px;
}

/* Steps 垂直版（快速接入页流程） */
.steps-vertical {
  border-left: 2px solid #f0f0f0;
  padding-left: 24px;
  margin: 24px 0 32px 12px;
}

.steps-vertical .step {
  position: relative;
  padding-bottom: 24px;
}

.steps-vertical .step::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d9d9d9;
}

.steps-vertical .step-title {
  font-size: 15px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 4px;
}

.steps-vertical .step-desc {
  color: #595959;
  font-size: 14px;
  line-height: 1.6;
}

/* ============ Alert ============ */
.alert {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  margin: 16px 0;
  align-items: flex-start;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  width: 20px;
  text-align: center;
}

.alert-body {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.alert-desc {
  color: #595959;
  font-size: 13px;
  line-height: 1.7;
}

.alert-info {
  background: #e6f4ff;
  border-color: #91caff;
}
.alert-info .alert-icon,
.alert-info .alert-title {
  color: #1677ff;
}

.alert-success {
  background: #f6ffed;
  border-color: #b7eb8f;
}
.alert-success .alert-icon,
.alert-success .alert-title {
  color: #52c41a;
}

.alert-warning {
  background: #fffbe6;
  border-color: #ffe58f;
}
.alert-warning .alert-icon,
.alert-warning .alert-title {
  color: #faad14;
}

.alert-error {
  background: #fff2f0;
  border-color: #ffccc7;
}
.alert-error .alert-icon,
.alert-error .alert-title {
  color: #ff4d4f;
}

/* ============ Tag ============ */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid transparent;
  margin-right: 4px;
}

.tag-blue     { background: #e6f4ff; border-color: #91caff; color: #1677ff; }
.tag-green    { background: #f6ffed; border-color: #b7eb8f; color: #52c41a; }
.tag-orange   { background: #fff7e6; border-color: #ffd591; color: #fa8c16; }
.tag-red      { background: #fff1f0; border-color: #ffa39e; color: #f5222d; }
.tag-purple   { background: #f9f0ff; border-color: #d3adf7; color: #722ed1; }
.tag-magenta  { background: #fff0f6; border-color: #ffadd2; color: #c41d7f; }
.tag-cyan     { background: #e6fffb; border-color: #87e8de; color: #08979c; }
.tag-gold     { background: #fffbe6; border-color: #ffe58f; color: #d48806; }
.tag-volcano  { background: #fff2e8; border-color: #ffbb96; color: #d4380d; }
.tag-geekblue { background: #f0f5ff; border-color: #adc6ff; color: #2f54eb; }
.tag-processing { background: #e6f4ff; border-color: #91caff; color: #1677ff; }
.tag-success  { background: #f6ffed; border-color: #b7eb8f; color: #52c41a; }
.tag-error    { background: #fff1f0; border-color: #ffa39e; color: #f5222d; }
.tag-default  { background: #fafafa; border-color: #d9d9d9; color: #595959; }

/* ============ Card ============ */
.card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
}

.card-hoverable {
  transition: all 0.2s ease;
  cursor: pointer;
}

.card-hoverable:hover {
  border-color: #ff2442;
  box-shadow: 0 4px 16px rgba(255, 36, 66, 0.08);
}

.card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f1f1f;
}

/* ============ Doc layout ============ */
.doc-layout {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

.doc-sider {
  width: 260px;
  border-right: 1px solid #f0f0f0;
  padding: 24px 12px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fafafa;
  flex-shrink: 0;
}

.doc-nav-group {
  margin-bottom: 20px;
}

.doc-nav-title {
  padding: 4px 16px;
  font-size: 12px;
  color: #8c8c8c;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.doc-sider ul li {
  border-radius: 6px;
  margin: 2px 0;
  transition: background 0.15s ease;
}

.doc-sider ul li a {
  display: block;
  padding: 8px 16px;
  color: #262626;
  font-size: 14px;
  line-height: 1.5;
}

.doc-sider ul li:hover {
  background: #fff;
}

.doc-sider ul li.active {
  background: #fff0f2;
}

.doc-sider ul li.active a {
  color: #ff2442;
  font-weight: 500;
}

.doc-content {
  flex: 1;
  padding: 40px 60px;
  min-width: 0;
  max-width: 960px;
}

.doc-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.doc-content .doc-meta {
  color: #8c8c8c;
  font-size: 13px;
  margin-bottom: 32px;
}

.doc-content h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  padding-top: 16px;
}

.doc-content h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}

.doc-content h4 {
  font-size: 15px;
  margin: 20px 0 10px;
  color: #1f1f1f;
}

.doc-content p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #434343;
}

.doc-content ul,
.doc-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.8;
  color: #434343;
}

.doc-content ul { list-style: disc; }
.doc-content ol { list-style: decimal; }

.doc-content li {
  margin-bottom: 4px;
}

.doc-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #d63384;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.doc-content pre {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0 24px;
  font-size: 13px;
  line-height: 1.6;
}

.doc-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.doc-content blockquote {
  border-left: 4px solid #ff2442;
  padding: 12px 20px;
  background: #fff5f6;
  border-radius: 4px;
  margin: 16px 0;
  color: #595959;
}

.doc-content blockquote p {
  margin-bottom: 0;
}

.doc-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0 24px;
  font-size: 14px;
}

.doc-content th,
.doc-content td {
  border: 1px solid #e8e8e8;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.doc-content th {
  background: #fafafa;
  font-weight: 600;
}

.doc-content a { color: #ff2442; }
.doc-content a:hover { text-decoration: underline; }

/* 文档页内的按钮需要还原自身颜色，避免被 .doc-content a 的红色覆盖 */
.doc-content a.btn,
.doc-content a.btn:hover { text-decoration: none !important; }
.doc-content a.btn-primary,
.doc-content a.btn-primary:hover { color: #fff !important; }
.doc-content a.btn-default { color: #262626 !important; }
.doc-content a.btn-default:hover { color: #ff2442 !important; }
.doc-content a.btn-ghost,
.doc-content a.btn-ghost:hover { color: #fff !important; }
.doc-content a.btn-text { color: #595959 !important; }
.doc-content a.btn-text:hover { color: #ff2442 !important; }

/* API 端点样式 */
.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  margin: 16px 0;
}

.method-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.method-tag.get    { background: #1677ff; }
.method-tag.post   { background: #52c41a; }
.method-tag.put    { background: #fa8c16; }
.method-tag.delete { background: #f5222d; }

.endpoint code {
  font-size: 14px;
  color: #1f1f1f;
  background: transparent;
  padding: 0;
}

/* Collapse（用原生 details/summary） */
.doc-content details {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.doc-content details[open] summary {
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.doc-content details summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  color: #1f1f1f;
  user-select: none;
}

.doc-content details summary::-webkit-details-marker { display: none; }

.doc-content details summary::before {
  content: '›';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
  font-weight: 700;
  color: #8c8c8c;
}

.doc-content details[open] summary::before {
  transform: rotate(90deg);
}

.doc-content details .details-body {
  padding: 16px;
}

/* ============ Tabs（用 :target 或 details 都行，这里用简单 details 单开） ============ */
.tabs {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}

.tabs .tab {
  border-bottom: 1px solid #f0f0f0;
}
.tabs .tab:last-child { border-bottom: none; }

.tabs .tab-title {
  padding: 12px 16px;
  background: #fafafa;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.tabs .tab-title::before {
  content: '›';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
  color: #8c8c8c;
}

.tabs .tab[open] .tab-title::before {
  transform: rotate(90deg);
}

.tabs .tab-content {
  padding: 16px;
}

/* ============ Console ============ */
.console-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.console-header {
  margin-bottom: 32px;
}

.console-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.console-header p {
  color: #8c8c8c;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.app-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.app-card:hover {
  border-color: #ff2442;
  box-shadow: 0 4px 16px rgba(255, 36, 66, 0.08);
}

.app-card-header {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 16px;
}

.app-card .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff2442, #ff8f5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.app-card .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-title { flex: 1; min-width: 0; }

.app-card .app-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: #1f1f1f;
  display: flex;
  align-items: center;
}

.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.cred-label {
  width: 78px;
  color: #8c8c8c;
  flex-shrink: 0;
}

.cred-value {
  background: #f6f6f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: #262626;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-desc {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #f0f0f0;
  font-size: 13px;
  line-height: 1.6;
  color: #595959;
}

.app-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-muted { color: #8c8c8c; }
.text-secondary { color: #595959; }

/* ============ Form ============ */
.form-item {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #262626;
}

.form-label.required::before {
  content: '*';
  color: #ff4d4f;
  margin-right: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  color: #262626;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
  font-family: inherit;
}

.form-textarea {
  height: auto;
  min-height: 80px;
  padding: 8px 12px;
  line-height: 1.6;
  resize: vertical;
}

.form-select { appearance: menulist; }

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: #ff8f5c;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #ff2442;
  box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.15);
}

.form-extra {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 4px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.form-section-title:first-child { margin-top: 0; }

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.radio-group input[type='radio'] {
  margin-right: 6px;
}

.radio-group label:hover {
  border-color: #ff2442;
  color: #ff2442;
}

.radio-group input[type='radio']:checked + span,
.radio-group label:has(input:checked) {
  border-color: #ff2442;
  color: #ff2442;
  background: #fff5f6;
}

.checkbox-group label {
  display: block;
  padding: 6px 0;
  cursor: pointer;
}

.checkbox-group input[type='checkbox'] {
  margin-right: 8px;
}

.checkbox-group input:disabled + span {
  color: #bfbfbf;
  cursor: not-allowed;
}

/* ============ Result ============ */
.result {
  text-align: center;
  padding: 60px 32px;
  background: #fff;
  border-radius: 12px;
}

.result-icon {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f6ffed;
  color: #52c41a;
  font-weight: 700;
}

.result-icon.error { background: #fff1f0; color: #ff4d4f; }
.result-icon.warning { background: #fffbe6; color: #faad14; }
.result-icon.info { background: #e6f4ff; color: #1677ff; }

.result-title {
  font-size: 24px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 12px;
}

.result-subtitle {
  color: #595959;
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.result-actions {
  display: inline-flex;
  gap: 12px;
}

/* ============ Search box ============ */
.search-box {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin-bottom: 16px;
}

.search-box input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-box input:focus {
  border-color: #ff2442;
  box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.15);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .app-header { padding: 0 16px; }
  .app-header .nav-menu li { padding: 0 8px; }
  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: 36px; }
  .hero .subtitle { font-size: 16px; }
  .section { padding: 60px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .app-footer .footer-inner { grid-template-columns: 1fr; }
  .doc-layout { flex-direction: column; }
  .doc-sider {
    width: 100%;
    position: static;
    height: auto;
  }
  .doc-content { padding: 24px 20px; }
  .console-layout { padding: 20px; }
  .app-grid { grid-template-columns: 1fr; }
}
