html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f7f9;
  color: #2f2f2f;
  font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
  line-height: 1.8;
}

.rs-page,
.rs-page * {
  box-sizing: border-box;
}

.rs-page a {
  color: #0b5cab;
  text-decoration: none;
}

.rs-page a:hover {
  text-decoration: underline;
}

.rs-banner {
  background: #ffffff;
}

.rs-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.rs-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.rs-hero {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5f2 100%);
  border: 1px solid #d9e4e1;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 20px rgba(23, 54, 93, 0.05);
  margin-bottom: 18px;
}

.rs-hero-tag {
  display: inline-block;
  background: #e7f4ee;
  color: #1d6b56;
  border: 1px solid #cfe7dc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.rs-title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  color: #17365d;
}

.rs-subtitle {
  margin: 0;
  font-size: 16px;
  color: #5a6572;
}

.rs-hero-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.rs-info-card {
  background: #ffffff;
  border: 1px solid #dde6eb;
  border-radius: 14px;
  padding: 16px;
}

.rs-info-label {
  font-size: 13px;
  color: #728090;
  margin-bottom: 4px;
}

.rs-info-value {
  font-size: 18px;
  font-weight: 700;
  color: #17365d;
  line-height: 1.5;
}

.rs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.rs-btn {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.rs-btn-primary {
  background: #1f5f49;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(31, 95, 73, 0.16);
}

.rs-btn-primary:hover {
  background: #184c3a;
  text-decoration: none !important;
}

.rs-btn-secondary {
  background: #e7f4ee;
  color: #1f5f49 !important;
  border: 1.5px solid #1f5f49;
}

.rs-btn-secondary:hover {
  background: #cfe7da;
  text-decoration: none !important;
}

.rs-btn-large {
  padding: 16px 28px;
  font-size: 18px;
}

.rs-nav {
  background: #ffffff;
  border: 1px solid #dce4e9;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
}

.rs-nav a {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f6f9fb;
  border: 1px solid #e0e8ed;
  color: #425364 !important;
  font-size: 14px;
  font-weight: 700;
}

.rs-nav a:hover {
  background: #eef5fb;
  text-decoration: none !important;
}

.rs-main {
  display: block;
}

.rs-section {
  background: #ffffff;
  border: 1px solid #dce4e9;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 6px 18px rgba(23, 54, 93, 0.04);
  margin-bottom: 18px;
}

.rs-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  color: #17365d;
}

.rs-news-box {
  background: linear-gradient(135deg, #fffdf8 0%, #fff8f8 100%);
  border: 1px solid #efe2d0;
  border-radius: 12px;
  padding: 16px;
}

.rs-news-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
  background: #fff1ef;
  border: 1px solid #f3c7bf;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.rs-news-content {
  color: #5d6672;
  font-size: 15px;
}

.rs-highlight {
  background: #f7fafb;
  border-left: 4px solid #1f5f49;
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  color: #4b5663;
  margin-bottom: 16px;
}

.rs-ul,
.rs-ol {
  margin: 0;
  padding-left: 22px;
}

.rs-ul li,
.rs-ol li {
  margin-bottom: 8px;
}

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

.rs-step-card,
.rs-org-card,
.rs-sub-block,
.rs-simple-card {
  background: #fafcfd;
  border: 1px solid #e2e9ed;
  border-radius: 14px;
  padding: 18px;
}

.rs-step-no {
  font-size: 12px;
  font-weight: 700;
  color: #7a8793;
  margin-bottom: 6px;
}

.rs-step-card h3,
.rs-org-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #17365d;
}

.rs-step-card p,
.rs-org-card p {
  margin: 0 0 8px;
}

.rs-prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.rs-prize-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dfe8ee;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(23, 54, 93, 0.04);
}

.rs-prize-title {
  font-size: 18px;
  font-weight: 700;
  color: #17365d;
  margin-bottom: 4px;
}

.rs-prize-count {
  font-size: 14px;
  color: #6f7c89;
  margin-bottom: 10px;
}

.rs-prize-value {
  font-size: 22px;
  font-weight: 700;
  color: #1f5f49;
  line-height: 1.5;
}

.rs-org-card img:not(.rs-logo-client):not(.rs-logo-executor) {
  max-width: 180px;
  height: auto;
  vertical-align: middle;
  border: 0;
}

.rs-small {
  font-size: 14px;
}

.rs-cta {
  text-align: center;
  margin-top: 24px;
}

.rs-footer {
  text-align: center;
  color: #75808b;
  font-size: 14px;
  padding: 24px 0 0;
}

/* ===== Section Title Icon Badge ===== */
.rs-title-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #e7f4ee;
  color: #1f5f49;
}

.rs-title-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* ===== Hero Info Card Head (icon + label 同列) ===== */
.rs-info-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.rs-info-icon {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
  color: #1f5f49;
}

/* ===== Step Card Head (icon + h3 同列) ===== */
.rs-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rs-step-head .rs-step-no {
  flex-shrink: 0;
  margin-bottom: 0;
}

.rs-step-head h3 {
  margin: 0;
}

/* ===== Button Icon ===== */
.rs-btn-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 2;
  vertical-align: middle;
  margin-right: 4px;
  position: relative;
  top: -1px;
}

/* ===== Step Icon Badge ===== */
.rs-step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7f4ee;
  color: #1f5f49;
  margin-bottom: 10px;
}

.rs-step-icon-badge {
  background: #1f5f49;
  color: #ffffff;
}

.rs-step-icon-badge svg,
.rs-step-no svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ===== Prize Icon ===== */
.rs-prize-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  stroke-width: 1.6;
  color: #1f5f49;
  opacity: 0.75;
}

/* ===== Contact Rows ===== */
.rs-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.55;
  color: #3d4d5c;
}

.rs-contact-row:last-child {
  margin-bottom: 0;
}

.rs-contact-icon {
  flex-shrink: 0;
  display: inline-block;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #1f5f49;
  overflow: visible;
}

/* ===== Unit Logo Rows ===== */
.rs-unit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #dde6eb;
}

.rs-unit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rs-unit-label {
  font-size: 13px;
  font-weight: 700;
  color: #728090;
  white-space: nowrap;
  min-width: 4.8em;
}

/* 委託單位 logo — 稍小 */
.rs-logo-client {
  display: block;
  height: 34px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* 執行單位 logo — 比委託單位明顯大一些 */
.rs-logo-executor {
  display: block;
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .rs-hero-info,
  .rs-grid-2,
  .rs-prize-grid {
    grid-template-columns: 1fr;
  }

  .rs-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .rs-shell {
    padding: 14px 12px 36px;
  }

  .rs-hero,
  .rs-section {
    padding: 20px 16px;
  }

  .rs-title {
    font-size: 24px;
  }

  .rs-btn,
  .rs-btn-large {
    width: 100%;
    text-align: center;
  }

  .rs-nav a {
    display: block;
    text-align: center;
    margin-right: 0;
  }
}