@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Kanit:wght@400;500;600;700&display=swap');
:root { --primary: #273e63; --accent: #c25055; --bg: #0b121d; --surface: rgba(39, 62, 99, 0.15); --surface-hover: rgba(39, 62, 99, 0.25); --border: rgba(255,255,255,0.08); --text: #e2e8f0; --text-muted: #94a3b8; --radius: 8px; --font-body: 'Inter', sans-serif; --font-display: 'Kanit', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body.elg9-body { background-color: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.elg9-app { display: flex; flex-direction: column; min-height: 100vh; }
.elg9-rail { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.elg9-logo { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 0 10px rgba(194,80,85,0.5); }
.elg9-rail-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.elg9-nav { display: flex; flex-direction: row; gap: 15px; flex-wrap: wrap; }
.elg9-nav-link { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--text); padding: 8px 14px; background: rgba(255,255,255,0.03); border-radius: var(--radius); border: 1px solid var(--border); transition: all 0.3s; }
.elg9-nav-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.elg9-rail-badge-wrap { display: none; }
.elg9-rail-badge { font-size: 12px; font-weight: 600; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.elg9-main { flex-grow: 1; min-width: 0; padding-bottom: 40px; }
.elg9-ticker-wrapper { background: rgba(0,0,0,0.4); border-bottom: 1px solid var(--border); overflow: hidden; white-space: nowrap; padding: 12px 20px; }
.elg9-ticker-track { display: inline-flex; gap: 40px; animation: elg9-scroll 25s linear infinite; }
.elg9-ticker-item { font-size: 14px; font-weight: 500; color: var(--accent); font-family: var(--font-display); }
.elg9-ticker-item:hover { text-decoration: underline; }
@keyframes elg9-scroll { 0% { transform: translateX(50%); } 100% { transform: translateX(-100%); } }
.elg9-hero { position: relative; margin: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.elg9-hero-img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 21/9; }
.elg9-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 100%); display: flex; align-items: flex-end; padding: 30px; }
.elg9-hero-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); line-height: 1.2; }
.elg9-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 20px; margin-bottom: 30px; }
.elg9-stat-box { background: var(--surface); border: 1px solid var(--border); padding: 15px; border-radius: var(--radius); text-align: center; backdrop-filter: blur(8px); }
.elg9-stat-num { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--accent); }
.elg9-stat-label { font-size: 13px; color: var(--text-muted); }
.elg9-section { padding: 0 20px; margin-bottom: 40px; }
.elg9-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 20px; border-left: 4px solid var(--accent); padding-left: 10px; }
.elg9-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.elg9-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.elg9-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(194,80,85,0.2); border-color: rgba(194,80,85,0.4); }
.elg9-card-img-wrap { position: relative; width: 100%; aspect-ratio: 1/1; }
.elg9-card-img { width: 100%; height: 100%; object-fit: cover; }
.elg9-card-badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.elg9-card-body { padding: 12px; }
.elg9-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elg9-card-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elg9-benefits { display: grid; grid-template-columns: 1fr; gap: 15px; }
.elg9-benefit-card { background: var(--surface); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius); }
.elg9-benefit-title { font-family: var(--font-display); font-size: 18px; color: var(--accent); margin-bottom: 8px; }
.elg9-benefit-text { font-size: 14px; color: var(--text-muted); }
.elg9-steps { display: grid; grid-template-columns: 1fr; gap: 15px; }
.elg9-step { background: rgba(0,0,0,0.2); border: 1px dashed var(--border); padding: 15px; border-radius: var(--radius); position: relative; }
.elg9-step-num { position: absolute; top: 15px; right: 15px; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: rgba(255,255,255,0.1); line-height: 1; }
.elg9-step-title { font-family: var(--font-display); font-size: 17px; color: #fff; margin-bottom: 6px; }
.elg9-step-desc { font-size: 14px; color: var(--text-muted); }
.elg9-payments { display: flex; flex-wrap: wrap; gap: 10px; }
.elg9-pay-label { background: var(--bg); border: 1px solid var(--primary); color: var(--text); padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500; }
.elg9-article { background: var(--surface); padding: 25px; border-radius: var(--radius); border: 1px solid var(--border); margin: 0 20px 40px; }
.elg9-article h2, .elg9-article h3 { font-family: var(--font-display); color: #fff; margin: 1.5em 0 0.8em; }
.elg9-article h2 { font-size: 24px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.elg9-article h3 { font-size: 20px; color: var(--accent); }
.elg9-article p { margin-bottom: 1.2em; }
.elg9-article ul, .elg9-article ol { margin-left: 1.5em; margin-bottom: 1.2em; }
.elg9-article li { margin-bottom: 0.5em; }
.elg9-article img { max-width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 1.2em; }
.elg9-article table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: 14px; }
.elg9-article th, .elg9-article td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.elg9-article th { background: rgba(255,255,255,0.05); color: #fff; }
.elg9-page-header { margin: 20px; }
.elg9-page-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.elg9-meta-desc { font-size: 16px; color: var(--text-muted); }
.elg9-crumbs { margin: 20px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.elg9-crumb { color: var(--accent); }
.elg9-crumb:hover { text-decoration: underline; }
.elg9-crumb::after { content: '/'; margin-left: 8px; color: var(--text-muted); }
.elg9-crumb:last-child::after { display: none; }
.elg9-faq-container { display: flex; flex-direction: column; gap: 12px; }
.elg9-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; }
.elg9-faq-q { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.elg9-faq-q::-webkit-details-marker { display: none; }
.elg9-faq-q::after { content: '+'; color: var(--accent); font-weight: 700; }
.elg9-faq-item[open] .elg9-faq-q::after { content: '-'; }
.elg9-faq-a { padding-top: 10px; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 10px; }
.elg9-pager-container { display: flex; justify-content: space-between; gap: 15px; }
.elg9-pager-btn { flex: 1; text-align: center; background: var(--surface); border: 1px solid var(--border); color: #fff; padding: 12px; border-radius: var(--radius); font-family: var(--font-display); font-size: 15px; transition: 0.3s; }
.elg9-pager-btn:hover { background: var(--accent); border-color: var(--accent); }
.elg9-footer { padding: 30px 20px; border-top: 1px solid var(--border); text-align: center; margin-top: 40px; }
.elg9-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 20px; font-size: 14px; }
.elg9-footer-links a { color: var(--accent); }
.elg9-footer-links a:hover { text-decoration: underline; }
.elg9-footer-legal { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.elg9-footer-copy { font-size: 13px; font-weight: 500; color: #fff; }
.elg9-anim-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.elg9-anim-up.elg9-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 620px) {
  .elg9-body { font-size: 15px; }
  .elg9-hero-title { font-size: 22px; }
  .elg9-stat-box { padding: 10px; }
  .elg9-stat-num { font-size: 20px; }
  .elg9-masonry { grid-template-columns: repeat(2, 1fr); }
  .elg9-card-img-wrap { aspect-ratio: 4/3; }
}
@media (min-width: 768px) {
  .elg9-app { flex-direction: row; }
  .elg9-rail { width: 280px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-bottom: none; border-right: 1px solid var(--border); padding: 30px 20px; }
  .elg9-nav { flex-direction: column; gap: 10px; }
  .elg9-rail-badge-wrap { display: block; margin-top: auto; }
  .elg9-hero { margin: 30px; }
  .elg9-hero-title { font-size: 40px; }
  .elg9-stats { grid-template-columns: repeat(4, 1fr); padding: 0 30px; }
  .elg9-section, .elg9-article, .elg9-page-header, .elg9-crumbs { padding: 0 30px; margin-left: 0; margin-right: 0; }
  .elg9-masonry { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .elg9-benefits, .elg9-steps { grid-template-columns: repeat(3, 1fr); }
}
/* v2fix-center: 扫查发现内容列未居中（margin 冲突/缺失）*/
article.elg9-article.elg9-anim-up,
footer.elg9-footer,
header.elg9-hero.elg9-anim-up,
header.elg9-page-header.elg9-anim-up,
section.elg9-section.elg9-anim-up,
section.elg9-stats.elg9-anim-up
{margin-inline:auto !important;}
