 

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--dark);
  background: #fffef9;
  font-family: -apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: #264a36;
  text-decoration: none;
}

button,input,select {
  font: inherit;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid #b77726;
  outline-offset: 4px;
}

.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  margin-top: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
}

.nav-cta {
  border: 1px solid var(--red);
  padding: 10px 20px;
  color: var(--red);
}

.eyebrow {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 600;
}

.red {
  color: var(--red);
}

h1,h2,.hero-line {
  font-family: "Noto Serif TC","Songti TC","PMingLiU",serif;
}

h1 {
  font-size: clamp(60px,6.4vw,92px);
  line-height: 1.23;
  color: #fffcee;
  text-shadow: 1px 1px 0 #a2b8a3;
  margin: 25px 0 16px;
}

h1 span {
  color: #ffffff;
}

.art-label {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 22px;
}

.product-frame {
  position: relative;
  background: white;
  border-radius: 48% 48% 4px 4px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 50px #5b382513;
}

.product-frame img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 40% 40% 0 0;
}

.gift-stamp {
  position: absolute;
  bottom: 18px;
  right: -12px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.5;
  transform: rotate(8deg);
  border: 5px double #e9cba7;
}

.gift-stamp span {
  font-family: Georgia,serif;
  font-size: 36px;
}

.art-caption {
  margin: 25px auto 0;
  font-size: 17px;
  font-weight: 600;
}

.art-caption small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

h2 {
  font-size: 36px;
  color: #244e40;
  line-height: 1.25;
  letter-spacing: 0px;
  margin: 16px 0 24px;
  font-weight: 600;
}
 
h3 {
  font-size: 20px;
  margin: 15px 0 10px;
}

p {
  margin: 12px 0;
  font-size: 18px;
}

.gift>div>p {
  color: var(--muted);
}

.gift-head span {
  font-size: 15px;
  color: var(--muted);
}

.gift-numbers span {
  font: 22px sans-serif;
}

.gift-numbers small {
  font: 16px sans-serif;
  color: var(--muted);
  margin-left: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
}

.apply aside>p {
  color: var(--muted);
}

aside>small {
  font-size: 15px;
  color: var(--muted);
}



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

.full {
  grid-column: 1/-1;
}

label {
  display: block;
  font-size: 18px;
  font-weight: 500;
}

input:not([type=checkbox]):not([type=file]),select {
  width: 100%;
  border: 1px solid #d5cfc5;
  background: #fff;
  padding: 12px;
  margin-top: 8px;
  border-radius: 2px;
  font-size: 16px;
  color: var(--dark);
  min-width: 0;
}

input::placeholder {
  color: #8c8780;
  font-size: 14px;
}

.field-help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.upload-icon {
  display: block;
  color: var(--red);
  font-size: 30px;
  line-height: 1;
}

.upload strong {
  display: block;
  font-size: 14px;
  margin: 12px 0 3px;
}

.upload>span:not(.upload-icon) {
  font-size: 15px;
  color: var(--muted);
}

input[type=file] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 15px;
  font-size: 13px;
}

input::file-selector-button {
  padding: 8px 12px;
  border: 1px solid #d2c3ac;
  background: white;
  border-radius: 2px;
  color: var(--red);
  cursor: pointer;
}

#preview {
  width: auto;
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  margin: 12px auto;
}

#file-status {
  font-size: 15px;
  overflow-wrap: anywhere;
}

#remove-photo {
  background: none;
  color: var(--red);
  border: 0;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}

.consent {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 24px;
  font-size: 13px;
}

.consent input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--red);
  margin-top: 3px;
}

.consent a {
  text-decoration: underline;
  color: var(--red);
}

.submit {
  width: 100%;
  font-size: 15px;
  gap: 15px;
  margin-top: 12px;
}

.form-foot {
  font-size: 15px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 0;
}



details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 500;
  font-size: 16px;
}

.details-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  padding: 0 0 20px;
  max-width: 960px;
}

.details-body ol {
  padding-left: 24px;
}

.details-body li {
  padding: 4px 0;
}

.details-body dl {
  margin: 12px 0 0;
}

.details-body dt {
  font-weight: 700;
  color: var(--dark);
  margin-top: 12px;
}

.details-body dd {
  margin: 2px 0 0;
  padding-left: 0;
}



footer .brand {
  font-size: 23px;
}

footer p {
  font-size: 14px;
}

footer small {
  font-size: 15px;
  color: var(--muted);
}


dialog::backdrop {
  background: #22171299;
}

dialog h2 {
  font-size: 27px;
}

dialog p {
  font-size: 14px;
}

dialog ul {
  font-size: 14px;
  margin: 10px 0 0;
  padding-left: 20px;
}

dialog li {
  padding: 3px 0;
}

.close {
  position: absolute;
  right: 15px;
  top: 8px;
  font-size: 28px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* 對話框開啟時焦點落在標題（螢幕閱讀器朗讀用），不顯示外框；
   關閉鈕改由使用者自行 Tab 聚焦時才顯示 :focus-visible 外框 */
dialog h2[tabindex="-1"]:focus {
  outline: none;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.dialog-actions button {
  flex: 1;
  padding: 13px;
  font-size: 14px;
}

.secondary {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

[hidden] {
  display: none!important;
}



/* Teachers Day classroom direction */
:root {
  --red: #285b49;
  --dark: #243f35;
  --paper: #fffef9;
  --line: #d7dfd4;
  --muted: #607166;
}
 
.demo {
  text-align: center;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 5px 12px;
  background: #244e40;
}
 
.brand {
  font-size: 29px;
  letter-spacing: 4px;
  font-weight: 800;
  line-height: 1.1;
  color: #285b49;
}

nav .nav-cta {
  border-radius: 7px;
  background: #f6ce6c;
  border-color: #f6ce6c;
  color: #244e40;
}

h1,h2,.hero-line,.chalk-caption {
  font-family: "Kaiti TC","DFKai-SB","KaiTi","Noto Serif TC",serif;
}

.hero {
  overflow: hidden;
  background: #224f42;
  border: 12px solid #b98b58;
  border-bottom: 20px solid #9b7047;
  box-shadow: inset 0 0 0 2px #13392e,inset 0 0 70px #10291f55;
  color: #fffbed;
  margin: 0 22px;
  position: relative;
}

.hero-inner {
  margin: auto;
  display: grid;
  align-items: center;
  max-width: 1400px;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  padding: 54px 44px 45px;
}

.hero-copy {
  z-index: 1;
}

.chalk-date {
  display: inline-block;
  border: 1px dashed #e2ead6;
  padding: 7px 16px;
  color: #fff3bb;
  font-size: 15px;
  letter-spacing: 3px;
  transform: rotate(-3deg);
}



.hero .button {
  background: #f9d570;
  color: #234939;
  border-radius: 7px;
  box-shadow: 3px 4px 0 #133629;
  font-size: 18px;
}

.hero .button:hover {
  background: #ffe5a0;
}

.hero-date {
  font-size: 13px;
  margin-top: 16px;
  letter-spacing: 1px;
  color: #f4f3da;
}

.quota {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 13px;
  flex-wrap: wrap;
}

.quota strong {
  background: #ffe9db;
  color: #824230;
  padding: 3px 12px;
  border-radius: 3px;
  transform: rotate(-2deg);
  font-size: 16px;
}

.quota span {
  color: #f6edcf;
}

.hero-art {
  text-align: center;
  position: relative;
  align-self: center;
}

.classroom-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 12px;
}

.chalk-caption {
  font-size: 22px;
  color: #f7df9a;
  letter-spacing: 2px;
  transform: rotate(-3deg);
  margin: 20px 0 0;
}

.hero-bottom {
  border-top: 1px solid #d6c8b3;
  padding: 17px 6%;
  display: flex;
  gap: 15px;
  border-color: #e4e6d13b;
  color: #dbe5d5;
  letter-spacing: 1px;
  font-size: 14px;
  justify-content: space-evenly;
}

.button {
  border: 0;
  background: var(--dark);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 16px 28px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s,transform .2s;
  border-radius: 6px;
}

.button:hover {
  transform: translateY(-1px);
  background: #163e2e;
}

.section {
  max-width: 1180px;
  margin: auto;
  padding: 85px 40px;
  padding-top: 75px;
  padding-bottom: 75px;
}



.eyebrow.red {
  font-size: 18px;
  letter-spacing: 2px;
}

.gift {
  display: grid;
  align-items: center;
  gap: 55px;
  grid-template-columns: 1fr 1fr;
}

.gift>div:first-child {
  padding: 26px 0;
}

.gift-card {
  border: 1px solid #d9dec9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 8px 8px 0 #e3e9d7;
  position: relative;
  padding: 26px 30px;
}

.gift-head {
  font-size: 13px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #285b49;
  border-bottom: 2px dashed #ccd6c6;
}

.gift-product {
  float: right;
  width: 50%;
  mix-blend-mode: multiply;
}

.gift-card h3 {
  line-height: 1.25;
  font-family: "Kaiti TC","DFKai-SB",serif;
  font-size: 30px;
  font-weight: 700;
}

.gift-numbers {
  font-family: Georgia,serif;
  font-size: 70px;
  line-height: 1.3;
  color: #c17839;
}

.gift-price {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 12px;
  clear: both;
}

.eligibility {
  max-width: none;
  background: #eaf0e1;
  border-top: 0;
  padding-left: max(40px,calc((100vw - 1100px)/2));
  padding-right: max(40px,calc((100vw - 1100px)/2));
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.teacher-grid article {
  background: #fffef5;
  border: 1px solid #d4d9c6;
  border-top: 5px solid #e6b959;
  box-shadow: 4px 5px 0 #dce5cf;
  border-radius: 2px;
  padding: 30px 24px;
}

.teacher-grid article:nth-child(2) {
  border-top-color: #d99071;
}

.teacher-grid article:nth-child(3) {
  border-top-color: #729b84;
}

.teacher-grid span {
  color: var(--red);
  letter-spacing: 1px;
  font-size: 14px;
}

.teacher-grid h3 {
  font-family: "Kaiti TC","DFKai-SB",serif;
  font-size: 23px;
}

.steps {
  padding-top: 30px;
  background: repeating-linear-gradient(transparent 0,transparent 31px,#8fa9a114 32px);
  margin-top: 25px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

.apply {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  border-top: 2px dashed #b6c4ac;
  gap: 65px;
}

.apply aside {
  padding-top: 25px;
}

.apply h2 {
  font-size: 45px;
}
 
form {
	background: white;
 
  padding: 32px;
  border: 1px solid #bfcfbe;
  box-shadow: 7px 7px 0 #e2e9d9;
  border-radius: 4px;
  position: relative;
}

.form-top {
  padding-bottom: 22px;
  margin-bottom: 25px;
  font-weight: 600;
  font-family: "Kaiti TC","DFKai-SB",serif;
  font-size: 25px;
  border-bottom: 2px solid #3d674e;
  color: #2c513d;
}

.form-top span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-family: -apple-system,BlinkMacSystemFont,"Microsoft JhengHei",sans-serif;
  font-size: 13px;
}

.upload {
  text-align: center;
  border: 1px dashed #bba88d;
  padding: 20px;
  border-color: #8ca58d;
  background: #f4f7ef;
}

.form-demo {
  font-size: 15px;
  color: var(--muted);
  padding: 10px 12px;
  background: #f2f5ed;
}

.rules {
  padding-bottom: 75px;
  border-top: 2px dashed #b6c4ac;
  padding-top: 50px;
}

.rules h2 {
  margin-bottom: 25px;
}
 
details {
	border-top: 1px solid #c6d5c3;
}

.draft-note {
  padding: 12px;
  background: #fff3d3;
}
 

.mobile-cta {
   
  background: #f7d477;
  color: #264a36;
  font-weight: 700;
}
dialog {
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  border: 1px solid var(--line);
  padding: 38px;
  color: var(--dark);
  background: #fffef6;
  border-radius: 6px;
  box-shadow: 0 20px 80px #0003;
}
 


dialog .button {
  color: white;
}

dialog .eyebrow {
  font-size: 15px;
}


.member-gate {
  padding: 48px 32px;
  background: #f4f7e9;
  border: 2px dashed #8ba27a;
  text-align: center;
  box-shadow: 7px 7px 0 #e3e9d7;
}

.member-gate h3 {
  font-family: "Kaiti TC","DFKai-SB",serif;
  font-size: 34px;
  line-height: 1.6;
  margin: 20px 0;
}

.member-gate>p {
  color: var(--muted);
}

.member-gate .button {
  width: 100%;
  margin: 22px 0 12px;
  gap: 12px;
}

.member-gate .gate-help {
  font-size: 13px;
}

.member-gate .form-demo {
  font-size: 15px;
  margin-top: 24px;
  background: #e8eddf;
}

.member-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #e4eedb;
  margin-bottom: 16px;
  font-size: 14px;
}

.member-bar button {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
}

.application-panel {
  min-width: 0;
}

#form-heading:focus {
  outline: 0;
}

#simulate-login {
  margin-top: 15px;
  width: 100%;
}


.feedback-section {
  border-top: 10px solid #b58c58;
  background: #edf2e5;
  max-width: none;
  padding-left: max(24px,calc((100vw - 1100px)/2));
  padding-right: max(24px,calc((100vw - 1100px)/2));
}

.feedback-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 35px;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c5cbc2;
  letter-spacing: 0;
  font-size: 26px;
}

.feedback-heading>.stars {
  font-size: 40px;
  color: #c5cbc2;
  margin-bottom: 14px;
}

.feedback-heading>p {
  color: var(--muted);
}

.feedback-wall {
  display: block;
  columns: 3;
  column-gap: 24px;
  margin: 35px 0 55px;
}

.feedback-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 36px;
  background: #fffdf4;
  border: 1px dashed #a2b392;
  font-family: inherit;
  font-size: 17px;
}

.feedback-empty small {
  font-family: sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.feedback-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 60px;
}

.feedback-layout aside h3 {
  font-size: 25px;
}

.feedback-layout aside ol {
  padding-left: 24px;
  line-height: 2.6;
}

.feedback-layout form>label:not(.consent) {
  margin-top: 20px;
}

.feedback-layout textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #d5cfc5;
  padding: 12px;
  margin-top: 8px;
  min-height: 140px;
  font: 16px/1.7 sans-serif;
  color: var(--dark);
}

.rating-field {
  border: 0;
  padding: 0;
  margin: 22px 0;
}

.rating-field legend {
  font-size: 18px;
}

.rating-options {
  display: flex;
  gap: 7px;
  margin: 12px 0;
}

.rating-options label {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.rating-options input {
  position: absolute;
  opacity: 0;
}

.rating-options span {
  display: block;
  border: 1px solid #c4ccb7;
  text-align: center;
  padding: 10px 3px;
  border-radius: 4px;
  color: #705312;
}

.rating-options input:checked+span {
  background: #f9d570;
  border-color: #9b7523;
  color: #493505;
}

.rating-options input:focus-visible+span {
  outline: 3px solid #547959;
}

.rating-field small {
  font-size: 15px;
  color: var(--muted);
}

#feedback-preview {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  margin: 12px auto;
}

#feedback-remove {
  background: none;
  border: 0;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
}

#feedback-file-status {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.feedback-card {
  background: white;
  padding: 16px;
  border: 1px solid #d0dac4;
  box-shadow: 4px 4px 0 #dbe4ce;
}

.feedback-card>img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.feedback-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feedback-card small {
  font-size: 15px;
  color: var(--muted);
}

.feedback-card h3 {
  overflow-wrap: anywhere;
}

.review-status {
  background: #fff2c8;
  border-left: 4px solid #b88727;
  padding: 14px;
  font-size: 14px;
}

.demo-review {
  margin-top: 55px;
}

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

.review-controls article {
  padding: 20px;
  background: #fffef8;
}

.review-controls button {
  border: 1px solid #6d8760;
  color: #2c513d;
  background: #f4f7ee;
  padding: 8px 13px;
  margin: 5px 7px 0 0;
  cursor: pointer;
  font-size: 14px;
}

.review-controls button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.review-controls p {
  font-size: 14px;
}

.feedback-message-label textarea:focus-visible {
  outline: 3px solid #b77726;
  outline-offset: 4px;
}



.teacher-review {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 24px;
  background: #fffef8;
  border: 1px solid #d2dac5;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 3px 5px 0 #dbe5cf;
}

.review-photo {
  aspect-ratio: 1;
  position: relative;
  background: none;
  overflow: hidden;
}

.tile-0 {
  background-position: 0% 0%;
  aspect-ratio: 4/5;
}

.tile-1 {
  background-position: 50% 0%;
  aspect-ratio: 4/3;
}

.tile-2 {
  background-position: 100% 0%;
}

.tile-3 {
  background-position: 0% 100%;
  aspect-ratio: 4/3;
}

.tile-4 {
  background-position: 50% 100%;
  aspect-ratio: 1;
}

.tile-5 {
  background-position: 100% 100%;
  aspect-ratio: 6/5;
}

.photo-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  color: #fff;
  background: #173627d9;
  border-radius: 3px;
  font-size: 15px;
  z-index: 1;
}

.review-content {
  padding: 22px;
}

.review-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.review-meta h3 {
  font-size: 19px;
  margin: 0;
}

.review-meta>span {
  font-size: 15px;
  color: #63765f;
}

.review-content .stars {
  font-size: 18px;
  gap: 4px;
  letter-spacing: 0;
  margin: 8px 0;
}

.fiction-label {
  font-size: 15px;
  color: #6e795f;
  border-top: 1px dashed #d6ddcd;
  display: block;
  padding-top: 10px;
}

.review-disclosure {
  text-align: center;
  color: #66715d;
  font-size: 13px;
  max-width: 720px;
  margin: 20px auto 28px;
}

.letter-title {
  background: #fff2c4;
  color: #87652b;
  padding: 22px 24px 0;
  font-size: 18px;
  font-family: "Kaiti TC","DFKai-SB",serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.letter-title span {
  font-family: Georgia,sans-serif;
  font-size: 64px;
  line-height: 1;
}

.teacher-review:has(.letter-title) {
  background: repeating-linear-gradient(#fffbed 0,#fffbed 31px,#eae8d1 32px);
}

.withdrawal,.line-contact {
  font-size: 13px;
  color: #586e52;
}

.withdrawal a,.line-contact a {
  color: #285b49;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line-contact {
  padding: 20px 0;
  border-top: 1px solid #c5d0bb;
  margin-top: 25px;
}

.login-preview-note {
  font-size: 13px;
  color: #586b54;
  background: #edf2e5;
  padding: 13px;
  margin: 20px 0;
}

footer a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}



/* Varied photo crops, preserving each source tile's proportions. */
.tile-0::before {
  width: 125%;
  left: -12.5%;
  background-position: 0% 0%;
}

.tile-1::before {
  background-position: 50% 0%;
}

.tile-2::before {
  background-position: 100% 0%;
}

.tile-3::before {
  background-position: 0% 100%;
}

.tile-4::before {
  background-position: 50% 100%;
}

.tile-5::before {
  background-position: 100% 100%;
}

.brand-official {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  letter-spacing: 0;
}

.brand-official img {
  display: block;
  width: 245px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
header {
  padding: 21px 5%;
	padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
	background: #fffdf4;
  border-bottom: 0;
}
 

footer .brand-official img {
  width: 230px;
}
 
/* Transparent logo sits directly on a light footer surface. */
footer {
  background: #edf2e5;
  color: #28513f;
	padding: 40px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid #ccd8c0;
}

footer .brand-official {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

footer .brand,footer small {
  color: #28513f;
}

/* Consumer page layout corrections */
.privacy-note {
  margin: 38px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  padding: 22px;
  padding-top: 24px;
  border: 0;
  transform: none;
  box-shadow: none;
  border-left: 4px solid #b99240;
  border-radius: 4px;
  background: #fff3ca;
}

.privacy-note p {
  color: var(--muted);
  margin-bottom: 0;
}

.keep-word {
  display: inline-block;
  white-space: nowrap;
}

.step-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 14px;
}

.step-grid article>div {
  min-width: 0;
}

.step-grid b {
  margin-top: 16px;
  font-family: "Kaiti TC","DFKai-SB",serif;
  color: #b17740;
  font-size: 42px;
}

.step-grid h3 {
  font-size: 20px;
}

.feedback-wall:has(.feedback-empty) {
  columns: auto;
}

.my-feedback {
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #bfcfbe;
  background: #fffef8;
}

.my-feedback-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.my-feedback-heading h3 {
  margin: 0;
}

.feedback-state-label {
  font-size: 14px;
  background: #edf2e5;
  padding: 4px 12px;
  color: #31543e;
}

.my-feedback[data-state="pending"] .feedback-state-label,.my-feedback[data-state="edit_pending"] .feedback-state-label {
  background: #fff1cb;
  color: #77561a;
}

.my-feedback[data-state="revision"] .feedback-state-label,.my-feedback[data-state="rejected"] .feedback-state-label {
  background: #f9e5da;
  color: #80452e;
}

.my-feedback p {
  font-size: 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.my-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.my-feedback-actions button,.my-feedback-actions a {
  font-size: 14px;
  padding: 10px 16px;
}

.my-feedback-actions a {
  color: var(--red);
  text-decoration: underline;
}

#feedback-form textarea {
  max-width: 100%;
}

button:disabled {
  opacity: .6;
  cursor: wait;
}

.upload input[type=file] {
  min-width: 0;
}

.form-grid>label {
  min-width: 0;
}



.published-review-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* 會員實際上傳的照片：填滿方框並置中裁切。
   .review-photo > img 的 width:300% 位移是設計稿把單張雪碧圖
   裁成 6 種構圖（tile-0~5）用的，套在單張照片上會放大三倍並裁歪，
   因此這裡以較高的優先權覆寫回正常的 cover 行為。 */
.review-photo > img.published-review-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transform: none;
}

.teacher-review h3 {
  margin-top: 0;
}

.my-feedback[data-state="empty"] {
  border-style: dashed;
}

.field-error {
  margin: 7px 0 0;
  color: #b3261e;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  text-align: left;
}

input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"] {
  border-color: #b3261e!important;
}

input[aria-invalid="true"]:focus-visible,select[aria-invalid="true"]:focus-visible,textarea[aria-invalid="true"]:focus-visible {
  outline-color: #b3261e;
}

.feedback-entry {
  margin-top: 20px;
}

.wall-heading {
  margin: 60px 0 24px;
}

.load-more {
  display: flex;
  margin: 24px auto;
}

.mobile-actions a {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 0px 8px;
  min-height: 45px;
  font-size: 18px;
}

.mobile-actions a+a {
  background: #285b49;
  color: #fff;
}

.mobile-actions {
  padding: 0;
  display: none;
}


input[readonly] {
  background: #edf0e9!important;
  color: #526258;
  cursor: default;
}

#member-phone-help {
  display: block;
  margin-top: 6px;
}

/* Typography adjustments */
h1, p {
  letter-spacing: normal;
}

.hero-line {
  line-height: 1.55;
  color: #f5d888;
  margin: 20px 0;
  font-size: 31px;
}

.intro {
  color: #e3ecdf;
  margin: 19px 0 24px;
  font-size: 17px;
}

.gift-card p {
  font-size: 15px;
}

.gift-card .product-note {
  line-height: 1.6;
  color: #687261;
  font-size: 14px;
}

.section-heading > p {
  max-width: 240px;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.teacher-grid p {
  color: #526652;
  font-size: 17px;
}

p.note {
  font-size: 15px;
}

.step-grid p {
  color: var(--muted);
  line-height: 1.85;
  overflow-wrap: break-word;
  font-size: 17px;
}

.privacy-note p, .details-body p {
  font-size: 16px;
}

p.field-help {
  font-size: 15px;
}

#file-status, #feedback-file-status {
  font-size: 14px;
}

p.form-foot {
  font-size: 14px;
}

footer p, dialog p {
  font-size: 16px;
}

.member-gate .gate-help, p.review-disclosure, p.withdrawal, p.line-contact {
  font-size: 15px;
}

.review-content p {
  line-height: 1.9;
  margin: 12px 0 17px;
  font-size: 17px;
}

.my-feedback p, .review-controls p, p.review-status {
  font-size: 16px;
}

p.field-error {
  font-size: 15px;
}




.review-photo::before {
  display: none;
}

.review-photo > img {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 300%;
  max-width: none;
  height: auto;
  transform: translateY(-25%);
}

.review-photo.tile-0 > img {
  left: -12.5%;
  width: 375%;
}

.review-photo.tile-1 > img {
  left: -100%;
}

.review-photo.tile-2 > img {
  left: -200%;
}

.review-photo.tile-3 > img {
  transform: translateY(-75%);
}

.review-photo.tile-4 > img {
  left: -100%;
  transform: translateY(-75%);
}

.review-photo.tile-5 > img {
  left: -200%;
  transform: translateY(-75%);
}

.stars .star {
  color: #c5cbc2;
}

.stars .star.is-active {
  color: #ae7a1d;
}

@media(max-width:800px) {
  .hero-inner {
    padding: 42px 24px;
    gap: 32px;
  }

  .hero-inner,.gift,.apply {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 500px;
  }

  .hero-art {
    max-width: 430px;
    width: 100%;
    margin: auto;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-line {
    font-size: 24px;
  }

  .hero-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 15px;
    padding: 15px;
  }

  .section {
    padding: 55px 24px;
  }

  .gift {
    gap: 30px;
  }

  .section-heading {
    display: block;
  }

  .section-heading>p {
    max-width: none;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .teacher-grid article {
    padding: 20px 24px;
  }

  .teacher-grid p br {
    display: none;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .step-grid p br {
    display: none;
  }

  .step-grid h3 {
    margin-bottom: 0;
  }

  .step-grid p {
    margin-top: 2px;
  }

  .apply {
    gap: 26px;
  }

  .apply h2 {
    font-size: 34px;
  }

  .privacy-note {
    margin: 24px 0;
  }

  .privacy-note p br {
    display: none;
  }

  h2 {
    font-size: 28px;
  }

  .apply aside h2 br {
    display: none;
  }

  header {
    padding: 18px 22px;
  }

  .brand {
    font-size: 25px;
  }

  nav>a:not(.nav-cta) {
    display: none;
  }

  nav .nav-cta {
    font-size: 15px;
    padding: 8px 10px;
  }

  form {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .gift-head {
    flex-direction: column;
    gap: 2px;
  }

  .gift-card {
    padding: 24px;
  }

  .form-top {
    font-size: 17px;
  }

  .form-grid label {
    min-width: 0;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 38px 20px 100px;
    gap: 12px;
  }

  .mobile-cta {
    position: fixed;
    bottom: -1px;
    left: 0;
    right: 0;
    display: block;
    color: white;
    text-align: center;
    
    font-size: 15px;
    z-index: 10;
    box-shadow: 0 -3px 15px #0001;
  }

  dialog {
    padding: 30px 24px;
  }

  .demo {
    font-size: 15px;
    letter-spacing: 0;
  }

  .gift-stamp {
    right: 0;
    width: 103px;
    height: 103px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

}

@media(min-width:1450px) {
  .hero {
    max-width: 1450px;
    margin: 0 auto;
  }

}

@media(max-width:1000px) and (min-width:801px) {
  .hero-inner {
    padding: 40px 28px;
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 65px;
  }

  .intro br {
    display: none;
  }

  .chalk-caption {
    font-size: 19px;
  }

  .gift {
    gap: 30px;
  }

  .gift-product {
    width: 38%;
  }

  .gift-head {
    flex-direction: column;
  }

  .teacher-grid h3 {
    font-size: 20px;
  }

}

@media(max-width:800px) {
  .hero {
    margin: 0 10px;
    border-width: 7px;
    border-bottom-width: 13px;
  }

  .hero-inner {
    padding: 30px 21px 28px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: 60px;
    line-height: 1.25;
  }

  .hero-line {
    font-size: 27px;
  }

  .hero-art {
    max-width: 560px;
  }

  .classroom-art {
    border-radius: 6px;
  }

  .chalk-caption {
    font-size: 20px;
    margin-top: 12px;
  }

  .hero-bottom {
    font-size: 15px;
    padding: 13px 10px;
  }

  .intro {
    font-size: 14px;
  }

  .intro br {
    display: none;
  }

  .quota {
    gap: 10px;
    font-size: 15px;
  }

  .quota strong {
    font-size: 15px;
  }

  .section {
    padding: 52px 24px;
  }

  .gift {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gift>div:first-child {
    padding: 0;
  }

  .gift-product {
    float: none;
    display: block;
    width: min(100%,220px);
    max-width: 100%;
    margin: 0 auto 16px;
  }

  .gift-head {
    flex-direction: row;
  }

  .gift-card {
    padding: 23px;
  }

  .eligibility {
    padding: 50px 24px;
  }

  .teacher-grid article {
    padding: 24px;
  }

  .teacher-grid h3 {
    font-size: 23px;
  }

  h2 {
    font-size: 29px;
  }

  .apply {
    gap: 22px;
  }

  .apply aside {
    padding-top: 0;
  }

  .apply h2 {
    font-size: 34px;
  }

  .form-top {
    font-size: 24px;
  }

  .steps {
    margin-top: 0;
  }

  .privacy-note {
    margin: 25px 0;
  }

  .form-grid {
    gap: 22px;
  }

  .rules {
    padding-top: 40px;
  }

  footer {
    padding-bottom: 95px;
  }

  .hero .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-date {
    text-align: center;
    font-size: 18px;
    letter-spacing: .5px;
  }

}

@media(max-width:370px) {
  .hero h1 {
    font-size: 55px;
  }

  .hero-line {
    font-size: 24px;
  }

  .gift-head {
    flex-direction: column;
  }

  .gift-product {
    width: 40%;
  }

}

@media(max-width:800px) {
  .member-gate {
    padding: 32px 22px;
  }

  .member-gate h3 {
    font-size: 29px;
  }

  .member-gate .button {
    font-size: 18px;
    padding: 15px 10px;
  }

}

@media(max-width:800px) {
  .feedback-layout,.review-controls {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feedback-wall {
    grid-template-columns: 1fr;
  }

  .feedback-section {
    padding: 45px 24px;
  }

  .feedback-heading h2 {
    font-size: 29px;
  }

  .rating-options {
    gap: 5px;
  }

  .rating-options span {
    font-size: 14px;
  }

  .feedback-layout form {
    padding: 22px;
  }

  .feedback-empty {
    font-size: 19px;
  }

  .feedback-heading p br {
    display: none;
  }

}

@media(min-width:801px) and (max-width:1050px) {
  nav {
    gap: 15px;
  }

  .feedback-layout {
    gap: 25px;
  }

}

@media(max-width:1050px) {
  .feedback-wall {
    columns: 2;
  }

}

@media(max-width:600px) {
  .feedback-wall {
    columns: 1;
  }

  .review-photo {
    aspect-ratio: 1.12;
  }

  .review-content {
    padding: 22px;
  }

  .feedback-heading h2 {
    font-size: 28px;
  }

}

@media(max-width:800px) {
  header {
    padding: 10px 16px;
    gap: 12px;
  }

  header .brand-official img {
    width: 190px;
  }

  header .nav-cta {
    white-space: nowrap;
  }

  footer .brand-official img {
    width: 210px;
  }

}

@media(max-width:380px) {
  header .brand-official img {
    width: 155px;
  }

  header {
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
  }

  nav .nav-cta {
    padding: 8px;
  }

}

@media(max-width:1100px) and (min-width:801px) {
  .step-grid {
    gap: 22px;
  }

  .step-grid article {
    grid-template-columns: 42px minmax(0,1fr);
    gap: 12px;
  }

  .step-grid b {
    font-size: 36px;
  }

  .step-grid p {
    font-size: 14px;
  }

}

@media(max-width:800px) {
  .step-grid article {
    grid-template-columns: 48px minmax(0,1fr);
    gap: 15px;
  }

  .step-grid b {
    font-size: 40px;
  }

  .privacy-note {
    padding: 20px;
  }

  .my-feedback {
    padding: 20px;
  }

  .my-feedback-actions .button {
    width: auto;
  }

  .my-feedback-actions {
    gap: 10px;
  }

}

@media(max-width:800px) {
  .mobile-actions {
    display: flex;
  }

  .feedback-layout {
    margin-top: 28px;
  }

  #feedback-compose {
    scroll-margin-top: 24px;
  }

  .feedback-entry {
    width: 100%;
  }

}

@media (max-width: 1100px) and (min-width: 801px) {
  .step-grid p {
    font-size: 16px;
  }

}

@media (max-width: 800px) {
  .hero-line {
    font-size: 29px;
  }

  .intro {
    font-size: 16px;
  }

}

@media (max-width: 370px) {
  .hero-line {
    font-size: 26px;
  }

}
