
      :root{
        --bg: #f4f1ec;
        --card: #ffffff;
        --line: #d9d2c7;
        --line-2: #bba98f;
        --text: #1f2328;
        --muted: #6b7280;
        --primary: #e60000;
        --primary-hover: #ed301e;
        --focus: rgba(232,56,43,.22);
        --shadow: 0 18px 45px rgba(13, 23, 39, .10);
        --radius: 18px;
        --max: 1120px;
      }

      *{ box-sizing:border-box; }
      html,body{ height:100%; }
      body{
        margin:0;
        font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
        color:var(--text);
        background: var(--bg);
      }
      a{ color: inherit; }

      .topbar{
        background: #fff url("./images/bg01.jpg") no-repeat left bottom;
        background-size: 100% 8px;
        padding-bottom: 6px;
      }
      .topbar__inner{
        max-width: var(--max);
        margin: 0 auto;
        padding: 14px 18px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap: 16px;
      }
      .brand{
        display:flex;
        align-items:center;
        min-width: 0;
      }
      .brand__link{
        display:inline-flex;
        align-items:center;
        text-decoration: none;
        outline: none;
      }
      .brand__link:focus-visible{
        box-shadow: 0 0 0 4px var(--focus);
        border-radius: 8px;
      }
      .brand2__link{
        display:inline-flex;
        align-items:center;
        text-decoration: none;
        outline: none;
      }
      .brand2__link:focus-visible{
        box-shadow: 0 0 0 4px var(--focus);
        border-radius: 8px;
      }
      /* 重新設定 brand：只保留單一 logo.png，簡潔置中顯示 */
      .brand__link img{
        height: 40px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
        display:block;
      }
      .brand2__logo{
        height: 40px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
        display:block;
        flex: 0 0 auto;
      }

      .kv{
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,.04);
      }
      .kv__media{
        width: 100%;
        aspect-ratio: 1920 / 480;
        overflow: hidden;
      }
      .kv__media img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display:block;
      }

      .page{ padding: 26px 18px 52px; }
      .wrap{ max-width: var(--max); margin: 0 auto; }
      .content-grid{
        display:grid;
        grid-template-columns: 1fr 220px;
        gap: 18px;
        align-items:start;
      }
      .panel{
        background: var(--card);
        border: 2px solid var(--line-2);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 22px;
      }
      .panel__main{ padding: 6px 10px 10px; }
      .side-menu{
        display:flex;
        justify-content:center;
        align-items:flex-start;
        padding-top: 18px;
      }
      .side-menu__link{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        text-decoration:none;
        outline:none;
        border-radius: 12px;
      }
      .side-menu__link:focus-visible{
        box-shadow: 0 0 0 4px var(--focus);
      }
      .side-menu__btn{
        width: min(140px, 100%);
        height: auto;
        display:block;
      }

      .form-title{
        text-align:center;
        font-size: 28px;
        font-weight: 900;
        letter-spacing: .06em;
        margin: 4px 0 18px;
      }
      .form{
        display:grid;
        gap: 12px;
        max-width: 560px;
        margin: 0 auto;
      }
      .row{
        display:grid;
        grid-template-columns: 140px 1fr;
        gap: 12px;
        align-items:center;
      }
      label{
        justify-self:end;
        color: rgba(31,35,40,.88);
        font-weight: 800;
        font-size: 16px;
        letter-spacing: .08em;
      }
      .control{ display:flex; gap: 10px; align-items:center; }
      input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select{
        width: 100%;
        height: 40px;
        padding: 0 12px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: #fff;
        outline: none;
        transition: box-shadow .15s ease, border-color .15s ease;
        font-size: 14px;
      }
      /* 時間下拉：用自訂 Down icon 取代預設箭頭 */
      #time{
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding-right: 40px;
        background-image: url("./images/Down.svg");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px 16px;
      }
      .date-field{
        position: relative;
        width: 100%;
      }
      .date-input{
        cursor: pointer;
        caret-color: transparent;
      }
      .date-picker{
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        z-index: 20;
        width: min(360px, 100%);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 18px 45px rgba(13, 23, 39, .12);
        padding: 12px;
        display: none;
      }
      .date-picker.is-open{ display:block; }
      .date-picker__row{
        display:grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        align-items:center;
      }
      .date-picker__actions{
        display:flex;
        justify-content:flex-end;
        gap: 10px;
        margin-top: 10px;
      }
      .date-picker__btn{
        height: 34px;
        padding: 0 12px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: #fff;
        font-weight: 800;
        cursor: pointer;
      }
      .date-picker__btn--primary{
        border-color: rgba(232,56,43,.45);
        background: rgba(232,56,43,.06);
      }
      input::placeholder{ color: #9aa3af; }
      input:focus, select:focus{
        border-color: rgba(232,56,43,.65);
        box-shadow: 0 0 0 4px var(--focus);
      }
      .hint{ color: var(--muted); font-size: 12px; }
      .captcha{ display:flex; gap: 10px; align-items:center; }
      .captcha__img{
        height: 36px;
        min-width: 92px;
        border-radius: 8px;
        background: #111;
        color: #fff;
        display:flex;
        align-items:center;
        justify-content:center;
        font-weight: 900;
        letter-spacing: .38em;
        padding-left: .38em;
        user-select:none;
      }
      .captcha__refresh{
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: #fff;
        cursor: pointer;
        display:grid;
        place-items:center;
        transition: transform .12s ease, background .12s ease;
      }
      .captcha__refresh:hover{ background: #fafafa; }
      .captcha__refresh:active{ transform: scale(.98) rotate(-6deg); }
      .captcha__refresh img{ width: 18px; height: 18px; opacity: .85; display:block; }

      .agree{
        display:flex;
        gap: 10px;
        align-items:flex-start;
        margin-top: 6px;
      }
      .agree input{
        margin-top: 3px;
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
      }
      .agree p{
        margin: 0;
        font-size: 12px;
        line-height: 1.6;
        color: rgba(31,35,40,.82);
      }
      .agree a{
        color: #d81d18;
        font-weight: 900;
        text-decoration: none;
      }
      .agree a:hover{ text-decoration: underline; }
      .actions{ display:flex; justify-content:center; margin-top: 14px; }
      .btn{
        appearance:none;
        border: 0;
        border-radius: 10px;
        height: 44px;
        padding: 0 34px;
        background: var(--primary);
        color: #fff;
        font-weight: 900;
        letter-spacing: .12em;
        cursor:pointer;
        box-shadow: 0 14px 26px rgba(232,56,43,.24);
        transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
      }
      .btn:hover{ background: var(--primary-hover); }
      .btn:active{ transform: translateY(1px); box-shadow: 0 10px 18px rgba(232,56,43,.22); }

      footer{
        text-align:center;
        color: rgba(31,35,40,.68);
        font-size: 12px;
        padding: 16px 18px 24px;
      }

      @media (min-width: 960px){
        /* 桌機：側欄往下偏移 25rem */
        .side-menu{ padding-top: 12rem; }
      }

      @media (max-width: 980px){
        /* 平板仍維持右欄在右側，略窄 */
        .content-grid{ grid-template-columns: 1fr 180px; }
        .side-menu__btn{ width: min(120px, 100%); }
      }

      @media (max-width: 720px){
        .brand__link img{ max-width: 140px; height: 34px; }
        .brand2__logo{ max-width: 150px; height: 34px; }
        .kv__media{ aspect-ratio: 4 / 1; }
        /* 手機改為主欄單欄，側欄浮動於右側 */
        .content-grid{ grid-template-columns: 1fr; }
        .side-menu{
          position: fixed;
          right: 12px;
          bottom: 3rem;
          padding-top: 0;
          z-index: 10;
        }
        .side-menu__btn{ width: 90px; }
        .row{ grid-template-columns: 1fr; gap: 6px; }
        label{ justify-self:start; font-size: 16px; }
        .form{ max-width: 100%; }
      }

      @media (max-width: 420px){
        .kv__media{ aspect-ratio: 3.6 / 1; }
        .form-title{ font-size: 24px; }
        .captcha{ flex-wrap: wrap; justify-content:flex-start; }
        .btn{ width: 100%; }
        .actions{ padding: 0 6px; }
      }
      
      /*opacity是設定遮罩透明度的,可以自己調節*/
#loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #f8f8f8;
	opacity: 0.6;
	z-index: 15000;
}

#loading img {
	position: absolute;
	top: 35%;
	left: 35%;
	width: 30%;
	height: 30%;
	margin-top: -15px;
	margin-left: -15px;
}

#loading p {
	position: absolute;
	top: 55%;
	left: 45%;
	width: 30%;
	height: 30%;
	margin-top: -15px;
	margin-left: -15px;
}

.footer {
    background: #c5bcaf;
    padding: 1em;
    text-align: center;
    font-size: 0.65em;
    z-index: 500;
}

.footer p {
    margin-bottom: 0em;
    color: #fff;
}
.msg_block {
	display: block;
}
.act_period {
    color: rgba(31,35,40,.88);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .08em;
    text-align: center;
    margin-bottom: 18px;
}