*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --gold: #c8142f; --gold-dark: #9f0e24; --accent-soft: #ffe9ed; --text: #1a1a1a; --text2: #333333; --text3: #666666; --border: #e7bfc7; --bg: #ffffff; --bg2: #fff7f8; --max: 1100px; --header-h: 76px; --float-h: 76px; }
body { font-family: 'Sarabun', sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); padding-top: var(--header-h); padding-bottom: 0; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #111; padding: 14px 24px; text-align: center; position: fixed; top: 0; left: 0; right: 0; z-index: 1100; border-bottom: 2px solid var(--gold-dark); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
header img { height: 48px; width: auto; }
.page-wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.hero-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.hero-images img { width: 100%; display: block; height: auto; }
.hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.btn-login, .btn-register { display: block; text-align: center; padding: 14px 10px; font-family: 'Sarabun', sans-serif; font-size: 1rem; font-weight: 600; border: 2px solid var(--gold); text-decoration: none; transition: background .2s, color .2s; }
.btn-login { background: var(--gold); color: #fff; }
.btn-login:hover { background: var(--gold-dark); border-color: var(--gold-dark); text-decoration: none; }
.btn-register { background: var(--gold); color: #fff; }
.btn-register:hover { background: var(--gold-dark); border-color: var(--gold-dark); text-decoration: none; }
main { margin-top: 24px; }
h1 { font-size: 2.0rem; font-weight: 800; line-height: 1.3; margin-bottom: 24px; text-align: center; }
article h2 { font-size: 1.6rem; font-weight: 700; margin: 32px 0 12px; text-align: center; }
article h3 { font-size: 1.3rem; font-weight: 600; margin: 22px 0 8px; text-align: center; }
article p { margin-bottom: 14px; color: var(--text2); }
article ul, article ol { padding-left: 22px; margin-bottom: 14px; color: var(--text2); }
article li { margin-bottom: 6px; }
article strong { font-weight: 700; }
article img { width: 100%; display: block; margin: 20px 0; height: auto; }
.toc { background: var(--bg2); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 36px; }
.toc-title { font-weight: 700; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc > ol { counter-reset: toc-l1; }
.toc > ol > li { counter-increment: toc-l1; margin-bottom: 10px; display: block; }
.toc > ol > li > .toc-row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 0 6px; }
.toc > ol > li > .toc-row > .toc-num { font-size: 14px; font-weight: 400; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.toc > ol > li > .toc-row > .toc-num::before { content: counter(toc-l1) "."; }
.toc > ol > li > .toc-row > a { font-size: 14px; font-weight: 400; color: var(--text); }
.toc > ol > li > .toc-row > a:hover { color: var(--gold); text-decoration: none; }
.toc > ol > li > ol { counter-reset: toc-l2; padding: 4px 0 2px 20px; margin-top: 4px; }
.toc > ol > li > ol > li { counter-increment: toc-l2; margin-bottom: 6px; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 0 6px; }
.toc > ol > li > ol > li > .toc-num { font-size: 13px; font-weight: 400; color: var(--text3); white-space: nowrap; flex-shrink: 0; }
.toc > ol > li > ol > li > .toc-num::before { content: counter(toc-l1) "." counter(toc-l2) "."; }
.toc > ol > li > ol > li > a { font-size: 13px; color: var(--text3); }
.toc > ol > li > ol > li > a:hover { color: var(--gold); text-decoration: none; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th { background: #111; color: var(--gold); padding: 10px 14px; text-align: left; font-weight: 600; white-space: nowrap; font-size: 0.82rem; letter-spacing: 0.5px; }
tbody td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg2); }
tbody tr:hover { background: var(--accent-soft); }
tbody td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.faq { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.faq-head { margin-bottom: 20px; text-align: center; }
.faq-label { display: inline-block; background: var(--accent-soft); color: var(--gold-dark); font-size: 0.78rem; font-weight: 600; padding: 4px 12px; margin-bottom: 8px; letter-spacing: 0.5px; }
.faq-head h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 4px; }
.faq-head p { color: var(--text3); font-size: 0.88rem; }
.faq-list { border: 1px solid var(--border); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item button { width: 100%; background: none; border: none; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: 'Sarabun', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left; gap: 12px; transition: background .15s; }
.faq-item button:hover { background: var(--accent-soft); }
.faq-icon { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; transition: transform .25s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { padding: 0 18px 16px; font-size: 0.9rem; line-height: 1.75; }
footer { margin-top: 64px; background: #111; padding: 24px 24px calc(24px + var(--float-h)); text-align: center; }
footer p { font-size: 0.78rem; color: #fff; margin: 0; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100; display: flex; width: 100%; height: var(--float-h); background: #111; border-top: 2px solid var(--gold-dark); box-shadow: 0 -2px 10px rgba(0, 0, 0, .35); }
.bottom-nav-link { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 0; background: #111; border-right: 1px solid var(--gold-dark); color: var(--gold); font-weight: 700; font-size: 13px; line-height: 1; white-space: nowrap; overflow: hidden; text-decoration: none; }
.bottom-nav-link:hover { text-decoration: none; color: #ef3a56; }
.bottom-nav-link-last { border-right: none; }
@media (max-width: 600px) { .page-wrap { padding: 0 20px; } h1 { font-size: 1.4rem; } article h2 { font-size: 1.2rem; } .hero-images { grid-template-columns: 1fr; } .hero-btns { grid-template-columns: 1fr; gap: 10px; } header img { height: 38px; } :root { --header-h: 66px; --float-h: 66px; } }