*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --gold: #D4AF37; --gold-dark: #b8941f; --text: #1a1a1a; --text2: #333333; --text3: #666666; --border: #e0e0e0; --bg: #ffffff; --bg2: #f5f5f5; --max: 1100px; --header-h: 82px; --dock-h: 82px; --dock-br-w: 2px; --dock-line-gold: var(--dock-br-w) solid var(--gold); }
body { font-family: Tahoma, "Leelawadee UI", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); padding-top: var(--header-h); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: var(--header-h); min-height: var(--header-h); display: flex; align-items: center; justify-content: center; background: #111; padding: 0 24px; text-align: center; box-sizing: border-box; border-bottom: var(--dock-line-gold); box-shadow: 0 2px 6px rgba(212, 175, 55, 0.28), 0 8px 20px rgba(0, 0, 0, 0.35); }
.header-inner { width: 100%; max-width: var(--max); height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.header-logo { display: flex; align-items: center; justify-content: center; line-height: 0; flex-shrink: 0; }
header img { height: 50px; width: auto; max-height: calc(var(--header-h) - 10px); }
.header-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; }
.nav-link { color: #fff; font-size: 0.88rem; font-weight: 600; padding: 8px 12px; border-radius: 4px; transition: background .2s, color .2s; white-space: nowrap; }
.nav-link:hover { background: var(--gold); color: #fff; text-decoration: none; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.page-wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.hero-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.hero-images img { width: 100%; display: block; height: auto; }
.hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.btn-login, .btn-register { display: block; text-align: center; padding: 14px 10px; font-family: inherit; font-size: 1rem; font-weight: 700; border: 2px solid #111; text-decoration: none; transition: background .2s, color .2s, border-color .2s; background: #f0c94d; color: #111; }
.btn-login:hover, .btn-register:hover { background: #e1b93c; border-color: #111; color: #111; text-decoration: none; }
main { margin-top: 40px; }
h1 { font-size: 2rem; 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; }
main [id] { scroll-margin-top: calc(var(--header-h) + 20px); }
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: #fdf9ec; }
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: #fdf9ec; color: var(--gold); 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: #f7f8fa; border: none; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left; gap: 12px; transition: background .15s; }
.faq-item button:hover { background: #eef1f5; }
.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; margin-bottom: 0; background: #111; padding: 24px 24px calc(24px + var(--dock-h)) 24px; text-align: center; box-sizing: border-box; }
footer p { font-size: 0.78rem; color: #fff; margin: 0; }
.bottom-dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; display: flex; width: 100%; height: var(--dock-h); min-height: var(--dock-h); box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.35); box-sizing: border-box; }
.bottom-dock a { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 100%; padding: 4px 2px; background: #111; border: var(--dock-line-gold); border-right: none; color: var(--gold); font-weight: 700; font-size: 0.8125rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; box-sizing: border-box; }
.bottom-dock a:last-child { border-right: var(--dock-line-gold); }
.bottom-dock a:hover { background: #1a1a1a; text-decoration: none; color: var(--gold); }
.bottom-dock a .dock-icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-dock a span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1100px) { .hamburger { display: flex; } .header-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: #1a1a1a; flex-direction: column; align-items: stretch; gap: 0; border-bottom: var(--dock-line-gold); z-index: 1000; } .header-nav.open { display: flex; } .nav-link { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; font-size: 1rem; } .nav-link:last-child { border-bottom: none; } }
@media (max-width: 600px) { :root { --header-h: 70px; --dock-h: 70px; } .page-wrap { padding: 0 20px; } h1 { font-size: 1.4rem; } article h2 { font-size: 1.2rem; } .hero-images { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; } .hero-btns { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; } header img { height: 40px; } .bottom-dock a { font-size: 0.75rem; } .bottom-dock a .dock-icon { width: 1.05rem; height: 1.05rem; } }