:root { --ink: #12324a; --deep: #09263d; --blue: #007c9f; --gold: #e8b84c; --cream: #f7f4eb; --white: #fff; --muted: #60717f; --danger: #ab2d2d; --line: #dce4e7; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; color: var(--ink); background: var(--cream); background-attachment: fixed; background-size: cover; animation: page-background-drift 26s ease-in-out infinite; line-height: 1.55; }
a { color: inherit; }
.hero { background-color: var(--deep); background-image: linear-gradient(124deg, rgb(9 38 61 / 82%), rgb(7 89 118 / 82%)), var(--hero-background-image, none); background-position: center, center top; background-repeat: no-repeat; background-size: cover, cover; animation: hero-background-drift 18s ease-in-out infinite; color: white; padding: 0 20px 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -18% auto -18% -34%; width: 22%; background: linear-gradient(105deg, transparent 0%, rgb(255 255 255 / 0%) 25%, rgb(255 255 255 / 30%) 50%, rgb(255 255 255 / 0%) 75%, transparent 100%); pointer-events: none; transform: skewX(-18deg) translateX(-20vw); animation: hero-light-sweep 8s ease-in-out infinite; }
.wrap { width: min(100% - 40px, 1000px); margin: 0 auto; position: relative; }
.eyebrow { color: #c9e7ef; letter-spacing: .12em; font-weight: 700; font-size: .82rem; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; } h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.16; max-width: 700px; margin-bottom: 18px; } h2 { font-size: 1.55rem; margin-bottom: 10px; } h3 { margin-bottom: 4px; }
.hero-copy { max-width: 620px; color: #e1f1f5; font-size: 1.05rem; }.eligibility { max-width: 700px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 40%); color: #fff7d6; font-size: .96rem; font-weight: 800; }.hero-content { padding-top: 62px; position: relative; z-index: 1; }.banner-image { height: clamp(130px, 25vw, 260px); margin: 0 -20px; background-size: cover; background-position: center; }.footer-image { width: 100%; max-height: 330px; object-fit: cover; display: block; border-radius: 14px; margin: -10px 0 44px; }
main { padding: 44px 0 72px; }.section { margin-bottom: 46px; }.intro { max-width: 670px; color: var(--muted); }
.notice { border-left: 5px solid var(--gold); background: #fffaf0; padding: 17px 19px; border-radius: 0 10px 10px 0; font-weight: 650; }
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.session { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 6px 20px rgb(27 59 75 / 5%); }.session-choice { width: 100%; color: var(--ink); cursor: pointer; font-family: inherit; position: relative; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }.session-choice:hover, .session-choice:focus-visible { border-color: var(--blue); box-shadow: 0 10px 24px rgb(0 124 159 / 18%); outline: none; transform: translateY(-3px); }.session-choice.selected { border: 3px solid var(--blue); padding: 18px; background: #effafd; box-shadow: 0 10px 26px rgb(0 124 159 / 22%); }.session-radio { position: absolute; top: 22px; right: 20px; width: 28px; height: 28px; border: 3px solid #9bb1bd; border-radius: 50%; background: white; }.session-choice.selected .session-radio { border-color: var(--blue); }.session-choice.selected .session-radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--blue); }.session-unavailable { opacity: .72; }.choice-hint { display: block; color: var(--blue); font-size: .88rem; font-weight: 800; margin-top: 15px; }.session-time { font-size: 1.35rem; font-weight: 800; }.venue { color: var(--muted); font-weight: 700; margin: 8px 0; }.session-note { font-size: .93rem; color: var(--muted); }.seat { color: var(--blue); font-weight: 700; margin: 14px 0 0; }.full { color: var(--danger); }
.form-card, .admin-card { background: white; padding: clamp(22px, 4vw, 38px); border-radius: 16px; box-shadow: 0 8px 26px rgb(27 59 75 / 8%); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.form-grid .wide { grid-column: 1 / -1; } label { display: block; font-weight: 700; margin-bottom: 7px; } input, select, button, textarea { font: inherit; } input, select, textarea { width: 100%; border: 1px solid #b9c6cc; padding: 12px 13px; border-radius: 8px; background: white; color: var(--ink); } textarea { min-height: 88px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: 3px solid rgb(0 124 159 / 22%); border-color: var(--blue); }.button { cursor: pointer; background: var(--blue); color: white; border: 0; font-weight: 800; padding: 13px 21px; border-radius: 8px; margin-top: 22px; }.button:hover { background: #006c8c; }.button:disabled { cursor: not-allowed; opacity: .6; }.secondary { background: white; color: var(--blue); border: 1px solid var(--blue); margin-top: 0; }.danger { background: var(--danger); }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }.form-message { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-weight: 700; }.error { color: #8e2323; background: #fff0f0; }.success { color: #15613c; background: #eefbf3; }.hidden { display: none !important; }.confirmation { background: #eefbf3; border: 1px solid #b9e5c9; border-radius: 14px; padding: 28px; }.confirmation h2 { color: #15613c; }.privacy { margin: 16px 0 0; font-size: .9rem; }.footer { background: var(--deep); color: #d4e3e8; padding: 25px 0; font-size: .92rem; }.admin-header { background: var(--deep); color: white; padding: 24px 0; }.admin-header .wrap { display: flex; justify-content: space-between; gap: 15px; align-items: center; }.admin-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }.module-link { cursor: pointer; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: white; color: var(--ink); text-align: left; font-weight: 800; font-size: 1.05rem; box-shadow: 0 6px 20px rgb(27 59 75 / 5%); }.module-link span { display: block; color: var(--blue); font-size: .76rem; letter-spacing: .08em; margin-bottom: 7px; }.module-link:hover, .module-link.active { border-color: var(--blue); background: #eaf5f8; }.toolbar, .section-heading, .bulk { display: flex; gap: 14px; align-items: end; justify-content: space-between; flex-wrap: wrap; }.toolbar label { min-width: min(100%, 330px); }.toolbar .button, .section-heading .button, .bulk .button { margin-top: 0; }.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }.stat { border-radius: 12px; padding: 18px; background: #eaf5f8; }.stat strong { font-size: 1.8rem; display: block; }.image-manager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.image-slot { border: 1px solid var(--line); padding: 16px; border-radius: 12px; }.image-slot img { width: 100%; height: 110px; object-fit: cover; border-radius: 7px; margin-bottom: 12px; }.image-slot .button { margin-top: 12px; }.session-manager { margin-top: 20px; }.managed-session { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }.managed-session span, .managed-session small { display: block; color: var(--muted); }.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 700; margin-left: 12px; cursor: pointer; }.danger-text { color: var(--danger); }.filters { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }.search-label { grid-column: span 1; }.bulk { margin-top: 16px; padding: 16px; background: #f5f9fa; border-radius: 10px; }.bulk label { flex: 1; min-width: 220px; }.table-wrap { overflow-x: auto; margin-top: 26px; } table { width: 100%; border-collapse: collapse; font-size: .94rem; } th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } th { color: var(--muted); }.status { display: inline-block; padding: 2px 8px; border-radius: 100px; font-weight: 700; font-size: .8rem; }.status.active { color: #15613c; background: #def6e6; }.status.cancelled { color: #8e2323; background: #ffe4e4; }
@media (max-width: 700px) { .session-grid, .stats, .image-manager, .filters, .admin-nav { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.hero { animation-name: hero-background-drift-mobile; background-position: center, 42% top; background-size: cover, cover; padding: 0 14px 34px; }.hero-content { padding-top: 42px; }.hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.45rem); line-height: 1.18; margin-bottom: 14px; }.hero-copy { font-size: .98rem; line-height: 1.65; }.hero::after { width: 34%; opacity: .72; }.wrap { width: min(100% - 28px, 1000px); }.managed-session { align-items: start; flex-direction: column; gap: 8px; }.toolbar, .section-heading { align-items: stretch; }.toolbar .button { width: 100%; } }
@keyframes hero-background-drift { 0%, 100% { background-position: center, center top; } 50% { background-position: center, center 14%; } }
@keyframes hero-background-drift-mobile { 0%, 100% { background-position: center, 42% top; } 50% { background-position: center, 42% 3%; } }
@keyframes hero-light-sweep { 0%, 68% { transform: skewX(-18deg) translateX(-20vw); opacity: 0; } 72% { opacity: 1; } 86%, 100% { transform: skewX(-18deg) translateX(170vw); opacity: 0; } }
@keyframes page-background-drift { 0%, 100% { background-position: center top; } 50% { background-position: center 3%; } }
@media (prefers-reduced-motion: reduce) { body, .hero, .hero::after { animation: none; } }
