@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;700;900&display=swap');

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

:root {
  --navy: #1a3464;
  --teal: #2d8c8c;
  --teal-light: #e8f4f4;
  --orange: #c84b1e;
  --orange-light: #fce8e0;
  --purple: #5b4b8a;
  --purple-light: #ede8f5;
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --border: #e5e0d8;
  --text: #343435;
  --text-muted: #666;
  --table-header: #FFEFDD;
  --footer-bg: #FFECD8;
  --radius: 12px;
  --max-w: 1100px;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text);
}

a {
  text-decoration: none;
}

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 5px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 100;
  justify-content: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    width: 37%;
}

.logo-img {
    width: 100%;
    /* height: 64px; */
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 50px;
    background-color: #9C9C9C;
    flex-shrink: 0;
    margin: 0 4px;
}

.site-title { 

}

.mtitleall {
    display: flex;
    width: 56%;
    align-items: center;
    gap: 15px;
}

/* GRADIENT WRAPPER - nav + hero 共享漸層 */
.gradient-section {
  background: linear-gradient(135deg, #fde8d8 0%, #fdf3e8 35%, #faf8f0 65%, #f0f4fa 100%);
  position: relative;
  overflow: hidden;
  background-image: url(../images/kikin/mainbg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
/* 只有首頁 Hero 存在時才撐高 gradient-section */
.gradient-section:has(.hero) {
  min-height: 80vh;
}


/* NAV */
.nav-wrapper {
    /* padding: 20px 0 0 0; */
    position: relative;
    z-index: 10;
    width: 90%;
    margin: 20px auto 0 auto;
    border: 1px solid #E09E74;
    border-radius: 50px;
}

.main-nav { 
  padding: 0; 
}

.nav-inner {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    padding: 0 8px;
    border-radius: 50px;
    align-items: center;
}

nav.main-nav ul li {
    list-style-type: none;
}

li.lisitem {
    margin: 0 15px;
}

.nav-inner .lisitem a {
  text-decoration: none;
  color: #2c2c2c;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 15px 0 15px 0;
  position: relative;
  transition: color 0.2s, background 0.2s;
  border-radius: 50px;
  display: inline-block;
}

.nav-inner a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0px; 
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%; 
  height: 3px;
  background-color: #EB853C;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.nav-inner a:hover { 
  background: rgba(255,255,255,0.7); 
}

.nav-inner a:hover::after { 
  transform: translateX(-50%) scaleX(1); 
  opacity: 1; 
}

.nav-inner a.active { 
  
}

.nav-inner a.active::after { 
  transform: translateX(-50%) scaleX(1); 
  opacity: 1; 
}

.nav-separator { 
  color: var(--border); 
  display: flex; 
  align-items: center; 
  user-select: none; 
}

/* 漢堡按鈕 (桌機隱藏) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { 
  background: rgba(0,0,0,0.06); 
}

.hamburger span {
  display: block;
  width: 26px; 
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* HERO */
.hero { 
  padding: 52px 48px 72px; 
  position: relative; z-index: 1; 
}

.hero-inner { 
  /* max-width: var(--max-w); */
  margin: 0 auto;
  width: 80%; 
}

@media (max-width: 1500px) {
.hero-inner { 
max-width: var(--max-w);
width: 100%; 
}

}

.hero-label { 
  font-size: 2rem; 
  font-weight: 500; 
  color: #156197; 
}

.hero-title { 
  font-size: 2.7rem; 
  font-weight: 700; 
  color: #156197; 
  line-height: 170%; 
  margin-bottom: 10px; 
  letter-spacing: 0.03em; 
}

.hero-subtitle { 
  font-size: 1.4rem; 
  color: #2c2c2c;
  margin-bottom: 48px; 
}

/* CARDS (居中) */
.cards { 
  display: flex; 
  gap: 80px; 
  justify-content: center; 
  flex-wrap: wrap; 
  position: relative; 
  z-index: 1; 
  width: 90%; 
  margin: 0 auto;
}

@media (max-width: 1500px) {

.cards { 
  width: 100%; 
}

}

.card {
  background: var(--card-bg);
  border: 3px solid;
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  width: 25%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1); 
  transform: translateY(-3px); 
}

.border-teal{
  border-color: #A4D6DB;
}

.border-orange{
  border-color: #F5B9AB;
}

.border-purple{
  border-color: #C3BCE2;
}

.card-icon { 
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%; 
  display: grid; 
  place-items: center;
}

.card-icon img,.card-icon svg { 
  width: 65%; 
  object-fit: contain; 
}

.card-icon.teal   { background: var(--teal-light); }
.card-icon.orange { background: var(--orange-light); }
.card-icon.purple { background: var(--purple-light); }

.card-title { 
  font-size: 1.6rem; 
  font-weight: 500;
  letter-spacing: 1px; 
}

.card-title.teal   { 
  color: #086E66; 
}

.card-title.orange { 
  color: #E84A21; 
}

.card-title.purple { 
  color: #533E9C; 
}

.card-desc { 
  font-size: 1rem; 
  color: var(--text-muted); 
}

.card-btn { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  border: none; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  margin-top: 4px; 
  font-size: 18px; 
  font-weight: 700; 
  color: #fff; 
  transition: opacity 0.2s; 
  text-decoration: none;
}

.card-btn:hover { opacity: 0.85; }
.card-btn.teal   { background: var(--teal); }
.card-btn.orange { background: var(--orange); }
.card-btn.purple { background: var(--purple); }

/* TABLE SECTION */
.table-section { 
  padding: 75px 48px 85px; 
}

.table-inner { 
  /* max-width: var(--max-w); */
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  width: 80%; 
}


@media (max-width: 1500px) {

.table-inner { 
  max-width: var(--max-w);
  width: 100%; 
}

}

.section-heading {
  display: flex; 
  align-items: center;
  gap: 10px; 
  font-size: 1.6rem; 
  font-weight: 500; 
  color: #156197; 
  margin-bottom: 45px; 
  width: 100%; 
}

@media (max-width: 900px) {

.section-heading {
  font-size: 1.3rem; 
}

}

.section-heading .icon-box { 
  width: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.section-heading .icon-box img{
  width: 100%;
}

.apply-list {
    width: 86%;
    border: 6px solid #EBC69E;
    border-radius: var(--radius);
    background: var(--card-bg);
    color: #325F80;
    margin: 0 auto;
}

@media (max-width: 1500px) {

.apply-list {
    width: 100%;
}

}

@media (max-width: 900px) {

.apply-list {
    width: 90%;
}

}

.apply-row {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 18px;
  align-items: start;
}

.apply-con{
 border-bottom: 2px solid #EBC69E;
}

.apply-row:last-child {
  border-bottom: none;
}

.apply-header {
    background: var(--table-header);
    font-weight: 500;
    font-size: 1.45rem;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    text-align: center;
}

.apply-cell {
  font-size: 1.25rem;
  line-height: 160%;
}

.apply-cell-title {
padding: 25px 25px;
}

.apply-cell-desc {
  padding: 25px 25px;
  border-left: 2px solid #EBC69E;
}

@media (max-width: 640px) {
.apply-row,
.apply-header {
  grid-template-columns: 1fr;
}

.apply-row {
  padding: 16px 18px;
}

.apply-header {
  display: none;
}

.apply-cell {
  width: 100%;
  font-size: 1.1rem;
}

.apply-cell-title {
  padding: 25px 25px;
  background: var(--table-header);
}

.apply-cell-desc {
    border-left: none;
}
}

/* FOOTER */
.site-footer {
  background: var(--footer-bg);
  border-top: 2px solid #fff;
  padding: 15px 0;  
}

.footer_con{
width: 80%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}

.footer-left { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}

@media (max-width: 900px) {

.footer-left {
    gap: 5px;
    flex-wrap: wrap;
}

}

.footer-info {
    font-size: 1rem;
    color: #343435;
    line-height: 1.9;
}

.footer-info a { 
  color: #09877C; 
  text-decoration: none; 
}

.footer-info a:hover { 
  text-decoration: underline; 
}

.footer-right { 
  font-size: 1rem; 
  color: var(--text-muted); 
  text-align: right; 
}

/* LOGO PLACEHOLDER */

.logo-placeholder {
    width: 18%;
    /* height: 64px; */
    border-radius: 50%;
    /* background: linear-gradient(135deg, #c84b1e, #e8883c); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
}

img.fotlogo {
    width: 100%;
}

/* RWD TABLET (≤900px) */
@media (max-width: 900px) {

.site-header {
   padding: 14px 24px; 
}

.mtitleall {
    width: 80%;
    gap: 2px;
}

.nav-wrapper {
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.3s ease;
  position: absolute;
  border-radius: 0px;
  border: none;
  width: 100%;
}

  .nav-inner a { 
    padding: 12px 20px; 
    font-size: 1rem; 
  }

  .hero { padding: 40px 32px 56px; }
  .hero-title { font-size: 26px; }
  .table-section { padding: 40px 32px 52px; }
  .site-footer { padding: 28px 32px; }
}

/* RWD MOBILE (≤640px) */
@media (max-width: 640px) {

.site-header { 
  padding: 12px 16px; 
  flex-wrap: wrap; 
  gap: 10px; 
}

.logo-text .org-name { font-size: 13px; }
.logo-text .org-name-en { display: none; }
.site-title { font-size: 15px; letter-spacing: 0.02em; }
.header-divider { height: 40px; }

/* 漢堡按鈕出現 */
.hamburger { display: flex; }

/* Nav 抽屜 */
.nav-wrapper { 
  padding: 0; 
  overflow: hidden; 
  max-height: 0; 
  transition: max-height 0.35s ease, padding 0.3s ease; 
}

.nav-wrapper.open {
    max-height: 100vh;
    /* padding: 8px 0 12px; */
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.5);
    margin: 0px 0 0 0;
    position: absolute;
    height: 100vh;
}

.nav-inner { 
  flex-direction: column; 
  border-radius: 0; 
  border-left: none; 
  border-right: none; 
  border-top: none; 
  padding: 4px 16px; 
  background: rgba(255,255,255,0); 
  max-width: 100%; 
}

.nav-inner a { 
  padding: 13px 16px;
  border-radius: 8px; 
  font-size: 1rem; 
}

.nav-inner a::after { 
  bottom: 0px; 
}

li.lisitem {
    margin: 0 0px;
    /* padding: 10px 0 10px 0; */
    border-bottom: 1px solid #c1c1c1;
    width: 100%;
    text-align: center;
}

.nav-inner .lisitem a {
    padding: 15px 0 15px 0;
}

.nav-separator { 
  display: none; 
}

  /* Hero */
  .hero { padding: 32px 16px 48px; }
  .hero-label { font-size: 1.15rem; }
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 1rem; }

  /* Cards */
  .cards { gap: 16px; }

  .card { 
    width: 100%; 
    max-width: 320px; 
  }

  /* Table */
  .table-section { padding: 32px 16px 48px; }
  .apply-table thead { display: none; }
  .apply-table tr { display: block; border-bottom: 1.5px solid #ddd3c2; padding: 12px 0; }
  .apply-table tr:last-child { border-bottom: none; }
  .apply-table td { display: block; width: 100% !important; border: none; padding: 4px 14px; }
  .apply-table td:first-child { font-weight: 700 }
  .apply-table td:last-child { color: var(--text-muted); line-height: 1.8; }

  /* Footer */
  .site-footer { flex-direction: column; align-items: flex-start; padding: 24px 16px; gap: 16px; }
  .footer-right { text-align: left; }
}


/* ── MAIN ── */

.page-main {
    /* max-width: 900px; */
    margin: 0 auto;
    padding: 24px 48px 64px;
    width: 80%;
}

/* 麵包屑 */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--teal) }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* 頁面大標 */
.page-title {
  font-size: 2rem;
  font-weight: 500;
  color: #156197;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  line-height: 100%;
}

/* ── 驗證卡片 ── */
.verify-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 48px 36px;
  position: relative;
}

.verify-desc {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 36px;
}

/* ── 表單 ── */
.verify-form { 
display: flex; 
flex-direction: column; 
gap: 0;
width: 60%;
margin: 0 auto; 
}

.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
}
.label-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.form-input {
  flex: 1;
  height: 55px;
  border: none;
  border-radius: 8px;
  background: #eeeeee;
  padding: 0 16px;
  font-size: 1rem;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.form-input::placeholder { 
  color: #b0a99e; 
}

.form-input:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,140,140,0.15);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200,75,30,0.12);
}

/* 送出按鈕列 */
.form-submit-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  margin-top: 30px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-verify {
  background: #2F5C8E;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-verify:hover {
  background: #233f7a;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 16px rgba(26,52,100,0.25);
  transform: translateY(-1px);
}

.btn-verify:active { transform: translateY(0); }
.btn-verify:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ── 分隔線 ── */
.verify-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0 24px;
}

/* ── 注意事項 ── */
.notice-block {

}

.notice-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.notice-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-list li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  counter-increment: notice-counter;
}

.notice-list {
  counter-reset: notice-counter;
}

.notice-list li::before {
  content: counter(notice-counter) ".";
  margin-right: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 1550px) {

.page-main { 
    padding: 20px 32px 52px; 
    width: 90%;
  }

}

/* ════════════════════════════
   RWD TABLET (≤900px)
════════════════════════════ */
@media (max-width: 900px) {

  .page-main { 
    padding: 20px 32px 52px; 
    width: 90%;
  }

  .verify-card { 
    padding: 32px 32px 28px;
   }

.verify-form {
width: 95%;
}

}

/* ════════════════════════════
   RWD MOBILE (≤640px)
════════════════════════════ */
@media (max-width: 640px) {
  .page-main { 
    padding: 16px 16px 48px; 
  }

  .page-title {
    font-size: 1.4rem;
}

  .verify-card {
    padding: 24px 16px 20px; 
  }

  .verify-desc { font-size: 1rem; 
    margin-bottom: 24px; 
  }

  /* 表單欄位改垂直排列 */
  .form-row { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 8px; 
    margin-bottom: 25px; 
  }

  .form-label { 
    width: auto; 
    font-size: 1.1rem;
  }

  .form-input {
        width: 100%;
        padding: 12px 16px;
    }

  .btn-verify { 
    width: 100%; 
    padding: 14px; 
  }

}


/* ════════════════════════════
   OTP 驗證頁面專用樣式
════════════════════════════ */

/* 已發送手機號碼提示 */
.otp-sent-notice {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.otp-phone {
  color: var(--orange);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
}

/* 副說明文字 */
.otp-sub-desc {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
}

/* OTP 輸入列（input + 重新發送按鈕並排） */
.otp-input-row {
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.otp-code-input {
  max-width: 320px;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  font-weight: 400;
}

/* 重新發送按鈕 */
.btn-resend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  height: 48px;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.btn-resend:hover:not(.disabled) {
  background: #4b5563;
}

.btn-resend.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-resend:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.resend-icon {
  display: flex;
  align-items: center;
}

/* 返回按鈕 */
.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border: none;
  background-color: #277E5B;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Noto Sans TC', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.btn-back:hover {
  background-color: #126845;
  transform: translateY(-1px);
  letter-spacing: 0.1em;
}

.btn-back:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}


/* ════════════════════════════
   RWD MOBILE (≤640px)
════════════════════════════ */
@media (max-width: 640px) {
  .otp-sent-notice { font-size: 15px; }
  .otp-phone { font-size: 17px; }

  .otp-input-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .otp-code-input { max-width: 100%; width: 100%; }
  .btn-resend { width: 100%; justify-content: center; }

  .otp-btn-row { flex-direction: column; }
  .btn-back,
  .btn-otp-submit { width: 100%; justify-content: center; text-align: center; }
}


/* ════════════════════════════
   query.css
   申請進度查詢頁面專用樣式
════════════════════════════ */

/* ── 查詢卡片外框 ── */
.query-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── 欄寬定義（CSS variables 方便統一維護） ── */
:root {
  --col-id:     10%;
  --col-type:   15%;
  --col-name:   12%;
  --col-term:   16%;
  --col-grade:  13%;
  --col-amount:  10%;
  --col-status: 1fr;      /* 剩餘空間全給狀態欄 */
}

/* ── 表頭 ── */
.list-header {
  display: grid;
  grid-template-columns:
    var(--col-id)
    var(--col-type)
    var(--col-name)
    var(--col-term)
    var(--col-grade)
    var(--col-amount)
    var(--col-status);
  background: #fff8f0;
  border-bottom: 1.5px solid var(--border);
  padding: 0 20px;
}

.list-header > div {
  padding: 16px 12px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #343435;
}

.list-header > div + div {
  border-left: 1px solid #ede8df;
}

/* ── 資料列表 ── */
.list-body {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── 單筆資料列 ── */
.list-row {
  display: grid;
  grid-template-columns:
    var(--col-id)
    var(--col-type)
    var(--col-name)
    var(--col-term)
    var(--col-grade)
    var(--col-amount)
    var(--col-status);
  border-bottom: 1px solid #ede8df;
  padding: 0 20px;
  transition: background 0.15s;
  align-items: stretch;
}

.list-row:hover { background: #fdf9f5; }
.list-row--last { border-bottom: none; }

/* ── 儲存格 ── */
.cell {
  padding: 16px 12px;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  align-items: center;
}
.cell + .cell {
  border-left: 1px solid #ede8df;
}

/* ── 狀態欄：狀態文字 + 操作按鈕並排 ── */
.col-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.status-text {
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.status-supplement { color: var(--orange); font-weight: 600; }
.status-rejected   { color: #9ca3af; }

/* ── 操作按鈕共用 ── */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.action-btn:hover { transform: translateY(-1px); }
.action-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* 我要撤件 — 灰色外框 */
.btn-withdraw {
  background: #DDE9ED;
  color: #000;
  border-color: #A3BCC4;
}
.btn-withdraw:hover { background: #f3f4f6; }

/* 申請送件 — 灰色外框（暫存狀態） */
.btn-submit {
  background: #DDE9ED;
  color: #000;
  border-color: #A3BCC4;
}
.btn-submit:hover { background: #f3f4f6; }

/* 進入補件 — 灰色外框 */
.btn-supplement {
  background: #DDE9ED;
  color: #000;
  border-color: #A3BCC4;
}

.btn-supplement:hover { background: #f3f4f6; }

/* ════════════════════════════
   RWD TABLET (≤ 900px)
════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --col-id:     100px;
    --col-type:   130px;
    --col-name:    80px;
    --col-term:   120px;
    --col-grade:   90px;
    --col-amount:  70px;
  }
  .list-header > div,
  .cell { padding: 14px 8px; font-size: 13px; }
}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
   表格改為卡片式堆疊
════════════════════════════ */
@media (max-width: 900px) {
  /* 隱藏桌機表頭 */
  .list-header { display: none; }

  /* 每列改為卡片 */
  .list-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 16px 12px;
    border-bottom: 2px solid var(--border);
  }
  .list-row--last { border-bottom: none; }

  /* 每個 cell 顯示 data-label 作為標籤 */
  .cell {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0ebe3;
  }

  .cell + .cell {
      border-left: none;
  }

  .cell:last-child { border-bottom: none; }

  /* data-label 偽元素當左欄標題 */
  .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 90px;
    margin-right: 8px;
  }

  /* 狀態欄改垂直排 */
  .col-status {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }

  .status-text {
    font-size:0.9rem;
  }

  .action-btn {
    font-size: 0.9rem;  
  }
}


/* ════════════════════════════
   tutorial.css
   申請案例線上教學頁專用樣式
════════════════════════════ */

/* ── 教學卡片外框 ── */
.tutorial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 0;
}

/* ── 步驟清單 ── */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── 單一步驟列 ── */
.step-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 40px;
  transition: background 0.15s;
  position: relative;
}

.step-row--last { border-bottom: none; }


/* 向下三角箭頭，固定在虛線末端 */

.step-connector {
    position: absolute;
    left: 72px;
    transform: translateX(-50%);
    bottom: -24px;
    width: 9px;
    min-height: 50px;
    background-image: url(../image/Line.png);
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    background-size: 100%;
}

.step-row--last .step-connector { display: none; }

/* ── Step Badge（斜體圓形數字徽章） ── */
.step-badge {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #BBE6F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  margin-top: 2px;
  position: relative;
  flex-shrink: 0;
  font-family: 'Noto Serif TC', serif;
}

.step-label {
  font-size: 1.1rem;
  color: #21556B;
  line-height: 1;
  font-weight: 600;
  position: relative;
  top: -18px;
  display: inline-block;
  text-shadow:
    2px 0 0 #BBE6F9,
    -2px 0 0 #BBE6F9,
    0 2px 0 #BBE6F9,
    0 -2px 0 #BBE6F9,
    2px 2px 0 #BBE6F9,
    -2px 2px 0 #BBE6F9,
    2px -2px 0 #BBE6F9,
    -2px -2px 0 #BBE6F9;
  -webkit-text-stroke: 0;
}

.step-num {
    font-size: 2rem;
    font-weight: 900;
    color: #21556B;
    line-height: 1;
    font-style: italic;
    margin-top: -15px;
    margin-left: -7px;
}

/* ── 步驟內容 ── */
.step-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  align-items: center;
}

/* 垂直分隔線 */
.step-divider {
  width: 1px;
  align-self: stretch;
  background: #727070;
  border-radius: 2px;
  margin: 0 24px;
  flex-shrink: 0;
  min-height: 40px;
}

/* 步驟標題 */
.step-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #343435;
  white-space: nowrap;
  width: 160px;
  flex-shrink: 0;
  padding-top: 2px;
  line-height: 1.5;
}

.step-title-sub {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

/* 步驟說明文字 */
.step-desc {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.85;
  flex: 1;
  padding-top: 2px;
}

/* ════════════════════════════
   RWD TABLET (≤ 900px)
════════════════════════════ */
@media (max-width: 900px) {
  .step-row { padding: 22px 28px; gap: 0; }
  .step-badge { width: 54px; height: 54px; margin-right: 20px; }
  .step-num { font-size: 1.3rem; }
  .step-title { width: 130px; font-size: 1rem; }
  .step-divider { margin: 0 18px; }
  .step-desc { font-size: 1rem; }

  .step-connector {
    display: none;
}

}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
   步驟改為垂直堆疊
════════════════════════════ */
@media (max-width: 640px) {

  .step-row {
    flex-direction: column;
    padding: 20px 16px;
    gap: 14px;
  }

  /* badge + 標題 橫排 */
  .step-badge {
    width: 48px;
    height: 48px;
    margin-right: 0;
    margin-top: 0;
  }

.step-num {
    font-size: 1.7rem;
    margin-top: -15px;
}
  .step-label { 
    font-size: 0.9rem; 
  }

  /* 內容區改直排 */

  .step-body {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
  }


  /* badge + 標題 在手機放同一行 */
  .step-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  

  /* 隱藏垂直分隔線，改水平線 */
  .step-divider {
    width: 100%;
    height: 1px;
    min-height: unset;
    margin: 4px 0 8px;
    background: #e0d8ce;
  }

  .step-title {
    width: auto;
    white-space: normal;
    font-size: 1.1rem;
  }

  .step-desc { font-size: 14px; }

  .step-title-sub {
    white-space: normal;
    font-size: 1rem;
    display: inline-block;
}

}


/* ════════════════════════════
   regulation.css
   法規說明頁面專用樣式
════════════════════════════ */

/* ── 法規卡片外框 ── */
.regulation-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 0 8px;
}

/* ── 法規清單 ── */
.regulation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── 單筆法規項目 ── */
.regulation-item {
  padding: 24px 40px 28px;
  transition: background 0.15s;
}

.regulation-item:hover {  

}

/* ── 法規標題 ── */
.regulation-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.bullet {
  color: #606060;
  font-size: 0.5rem;
  flex-shrink: 0;
}

/* ── 法規連結 ── */
.regulation-link {
  display: inline-block;
  margin-left: 22px;  /* 對齊標題文字（跳過 bullet） */
  font-size: 1.15rem;
  color: #156197;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.6;
  transition: color 0.2s, opacity 0.2s;
}

.regulation-link:hover {
  color: #1e6a6a;
  opacity: 0.85;
}

.regulation-link:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ════════════════════════════
   RWD TABLET (≤ 900px)
════════════════════════════ */
@media (max-width: 900px) {
  .regulation-item { padding: 20px 28px 24px; }
  .regulation-title { font-size: 15px; }
  .regulation-link { font-size: 14px; }
}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
════════════════════════════ */
@media (max-width: 640px) {
  .regulation-item { padding: 18px 16px 20px; }
  .regulation-title { font-size: 15px; gap: 8px; }
  .regulation-link {
    margin-left: 20px;
    font-size: 14px;
    word-break: break-all;
  }
}

/* ─── 補充元件樣式（WebForms 新元件） ─── */

/* 麵包屑 */
.kikin-breadcrumb ol { display:flex; flex-wrap:wrap; list-style:none; padding:12px 0 4px 0; margin:0; gap:6px; font-size:0.9rem; color:var(--text-muted); }
.kikin-breadcrumb ol li a { color:var(--navy); }

/* 步驟列 */
.step-bar { display:flex; justify-content:center; gap:0; padding:20px 0 10px 0; }
.step-item { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; max-width:120px; position:relative; }
.step-item::after { content:''; position:absolute; top:16px; right:-50%; width:100%; height:2px; background:#e5e0d8; z-index:0; }
.step-item:last-child::after { display:none; }
.step-item span { width:32px; height:32px; border-radius:50%; background:#e5e0d8; color:#999; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.9rem; z-index:1; position:relative; }
.step-item small { font-size:0.72rem; color:var(--text-muted); text-align:center; }
.step-item.done span { background:var(--teal); color:#fff; }
.step-item.done::after { background:var(--teal); }
.step-item.current span { background:var(--navy); color:#fff; box-shadow:0 0 0 3px rgba(26,52,100,0.2); }

/* 主內容區（pages） */
.page-body { padding:0; }
.page-main { max-width:var(--max-w); margin:0 auto; padding:20px 24px 40px; }
.page-title { font-size:1.6rem; font-weight:700; color:var(--navy); margin:20px 0 16px; }

/* 身份驗證頁 */
.verify-card { max-width:860px; margin:0 auto; padding:24px; }
.verify-inner { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:32px; margin-bottom:24px; }
.verify-step { }
.verify-icon { text-align:center; margin-bottom:20px; }
.verify-icon img { width:64px; height:64px; }
.verify-desc { color:var(--text-muted); text-align:center; margin-bottom:28px; line-height:1.8; }
.verify-form-row { display:flex; align-items:flex-start; gap:16px; margin-bottom:20px; }
.verify-label { min-width:140px; font-weight:600; padding-top:8px; color:var(--navy); }
.verify-input-wrap { flex:1; }
.verify-input-wrap .form-control { border:1px solid var(--border); border-radius:8px; padding:8px 12px; font-size:1rem; width:100%; }
.input-hint { font-size:0.8rem; color:var(--text-muted); margin-top:4px; }
.required { color:#c84b1e; }
.verify-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.btn-verify-primary { display:inline-flex; align-items:center; gap:8px; background:var(--navy); color:#fff; border:none; border-radius:8px; padding:10px 24px; font-size:1rem; font-weight:600; cursor:pointer; transition:background 0.2s; }
.btn-verify-primary:hover { background:#0f2448; }
.btn-verify-primary img { width:18px; height:18px; filter:brightness(10); }
.btn-verify-secondary { display:inline-flex; align-items:center; gap:8px; background:#fff; color:var(--navy); border:1.5px solid var(--navy); border-radius:8px; padding:10px 20px; font-size:0.95rem; cursor:pointer; }
.btn-verify-cancel { color:var(--text-muted); font-size:0.9rem; text-decoration:underline; padding:10px 8px; }
.otp-phone-show { border:none; background:transparent; font-weight:700; color:var(--navy); width:auto; display:inline; padding:0; }
.otp-input { font-size:1.5rem; letter-spacing:0.5rem; text-align:center; max-width:180px; }
.otp-timer { font-size:0.85rem; color:#c84b1e; margin-top:12px; }
.verify-loading { text-align:center; padding:40px; }
.loading-spinner { width:40px; height:40px; border:4px solid #e5e0d8; border-top:4px solid var(--navy); border-radius:50%; animation:spin 0.8s linear infinite; margin:0 auto 16px; }
@keyframes spin { to { transform:rotate(360deg); } }
.verify-notes { background:#faf8f5; border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; }
.verify-notes h3 { font-size:1rem; color:var(--navy); margin-bottom:10px; }
.verify-notes ul { padding-left:20px; color:var(--text-muted); font-size:0.9rem; line-height:1.9; }

/* Modal */
.kikin-modal { border-radius:var(--radius); overflow:hidden; }
.modal-icon-danger { font-size:3rem; color:#dc3545; }
.modal-icon-warning { font-size:3rem; color:#fd7e14; }
.modal-icon-info { font-size:3rem; color:var(--teal); }
.btn-modal-ok { background:var(--navy); color:#fff; border:none; border-radius:8px; padding:8px 32px; font-size:1rem; cursor:pointer; }

/* 類別選擇頁 */
.category-subtitle { color:var(--text-muted); margin-bottom:28px; }
.category-cards { display:flex; flex-wrap:wrap; gap:20px; margin:24px 0; }
.category-card { display:flex; justify-content:center; align-items:center; min-width:200px; padding:28px 32px; border-radius:var(--radius); background:#fff; font-size:1.1rem; font-weight:700; cursor:pointer; border:2px solid transparent; transition:all 0.2s; }
.category-card.border-teal { border-color:var(--teal); color:var(--teal); }
.category-card.border-teal:hover { background:var(--teal-light); }
.category-card.border-orange { border-color:var(--orange); color:var(--orange); }
.category-card.border-orange:hover { background:var(--orange-light); }
.category-card.border-purple { border-color:var(--purple); color:var(--purple); }
.category-card.border-purple:hover { background:var(--purple-light); }
.category-card-desc { font-size:0.85rem; color:var(--text-muted); margin-top:-12px; padding-left:4px; }
.category-closed { text-align:center; padding:40px; background:#faf8f5; border-radius:var(--radius); border:1px dashed var(--border); color:var(--text-muted); }
.category-closed i { font-size:2.5rem; display:block; margin-bottom:12px; color:var(--orange); }

/* 首頁期間表格 */
.apply-open-tag { display:inline-block; background:#e8f4f4; color:var(--teal); border-radius:4px; padding:2px 8px; font-size:0.82rem; font-weight:600; margin-top:4px; }
.apply-closed-tag { display:inline-block; background:#f5f5f5; color:#999; border-radius:4px; padding:2px 8px; font-size:0.82rem; margin-top:4px; }

/* 關閉申辦提示 */
.cards-closed { text-align:center; padding:32px; background:rgba(255,255,255,0.7); border-radius:var(--radius); }
.closed-notice { font-size:1.1rem; color:var(--text-muted); margin-bottom:16px; }
.btn-paper { display:inline-block; background:var(--orange); color:#fff; border-radius:8px; padding:10px 24px; font-weight:600; }
.btn-paper-sm { display:inline-block; border:1px solid var(--border); border-radius:8px; padding:6px 16px; font-size:0.9rem; color:var(--text-muted); margin-top:12px; }
.home-links { padding:12px 0; }

/* nav active 狀態 */
.nav-active a { font-weight:700; color:var(--orange) !important; }

/* 響應式 */
@media (max-width: 640px) {
    .verify-form-row { flex-direction:column; gap:6px; }
    .verify-label { min-width:auto; padding-top:0; }
    .step-bar { gap:0; }
    .step-item small { display:none; }
    .category-cards { flex-direction:column; }
    .category-card { min-width:auto; }
}
