* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --primary-dark: #1d4ed8;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-border: #fbbf24;
  --info: #3b82f6;
  --info-light: #eff6ff;
  --info-border: #93c5fd;
  --text: #1e293b;
  --text-secondary: #64748b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 20px 32px;
  text-align: center;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.site-subtitle {
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.85;
}

/* Tabs */
.tabs {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.tabs-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.tab {
  flex: 1;
  padding: 16px 12px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Main */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Notice Section */
.notice-section {
  margin-bottom: 20px;
}

.notice-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--warning);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notice-card.info-card {
  border-left-color: var(--info);
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--warning-light);
  font-weight: 600;
  font-size: 16px;
}

.info-card .notice-header {
  background: var(--info-light);
}

.notice-icon {
  font-size: 20px;
}

.notice-title {
  font-weight: 600;
}

.notice-body {
  padding: 16px 20px 20px;
}

.notice-body ul {
  padding-left: 20px;
  margin: 4px 0;
}

.notice-body li {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.notice-body a {
  color: var(--primary);
  word-break: break-all;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.notice-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary-light);
}

.notice-item p {
  font-size: 14px;
  line-height: 1.7;
}

/* Flow Overview */
.flow-overview {
  margin-bottom: 28px;
}

.flow-overview-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.flow-overview-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.flow-pill:hover {
  background: var(--primary);
  color: #fff;
}

.flow-pill .pill-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.flow-pill:hover .pill-num {
  background: #fff;
  color: var(--primary);
}

/* HK/MO special notice */
.hkmo-notice {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--info);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.hkmo-notice h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.hkmo-notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hkmo-notice-box {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.hkmo-notice-box.need {
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
}

.hkmo-notice-box.no-need {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.hkmo-notice-box h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hkmo-notice-box li {
  font-size: 13px;
  margin-bottom: 2px;
}

/* Timeline */
.timeline-section {
  position: relative;
}

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}

.step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
}

.step-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.step-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.step-card.open .step-toggle {
  transform: rotate(180deg);
}

.step-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.step-card.open .step-content {
  max-height: 3000px;
}

.step-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.step-body ul {
  padding-left: 20px;
  margin: 8px 0;
}

.step-body li {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.step-body li li {
  font-size: 13px;
}

.step-body p {
  font-size: 14px;
  line-height: 1.8;
  margin: 6px 0;
}

.step-body a {
  color: var(--primary);
  word-break: break-all;
}

/* Step sub-sections */
.step-note {
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.7;
}

.step-note strong {
  color: #b45309;
}

.step-downloads {
  margin-top: 16px;
}

.step-downloads h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.download-link:hover {
  background: var(--primary);
  color: #fff;
}

.download-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Skip note */
.skip-note {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

/* General info */
.general-info {
  background: var(--info-light);
  border: 1px solid var(--info-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    padding: 28px 16px 24px;
  }

  .site-title {
    font-size: 22px;
  }

  .tab {
    font-size: 14px;
    padding: 14px 8px;
  }

  .main {
    padding: 16px 12px 40px;
  }

  .notice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hkmo-notice-grid {
    grid-template-columns: 1fr;
  }

  .flow-pills {
    gap: 6px;
  }

  .flow-pill {
    font-size: 12px;
    padding: 5px 10px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 11px;
  }

  .timeline-dot {
    left: -30px;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .step-header {
    padding: 14px 16px;
  }

  .step-title {
    font-size: 15px;
  }

  .step-body {
    padding: 0 16px 16px;
  }
}
