/*
Theme Name: XX88 Premium Theme
Author: XX88 Dev
Description: Giao diện tối ưu hiệu năng, khả năng truy cập và SEO kỹ thuật.
Version: 2.12
*/

:root{
    --bg-primary:#031914;
    --bg-secondary:#06261D;
    --deep-green:#073A2A;
    --emerald:#0A5A3C;
    --gold:#D9A72C;
    --bright-gold:#FFD85A;
    --light-gold:#FFE8A3;
    --white:#F8F7EF;
    --muted:#A9B5AB;
    --font-vietnamese:'Be Vietnam Pro',Arial,sans-serif;
}

*{box-sizing:border-box;-webkit-font-smoothing:antialiased;margin:0;padding:0;}
html{scroll-behavior:smooth;font-synthesis:none;}

body{
    background:var(--bg-primary);
    color:var(--white);
    font-family:var(--font-vietnamese);
    font-kerning:normal;
    text-rendering:optimizeLegibility;
    overflow-x:hidden;
    overflow-x:clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 让主内容区域自动撑开，把页脚推到最底部 */
main {
    flex: 1 0 auto;
}

/* === 手机端汉堡菜单按钮重置 === */
#mobile-menu-toggle {
    background: transparent !important; 
    border: none !important; 
    outline: none !important; 
    -webkit-appearance: none; 
    margin: 0; 
    padding: 0.5rem !important;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-right: -0.5rem; 
}

#mobile-menu-toggle:hover, #mobile-menu-toggle:active {
    background: rgba(217, 167, 44, 0.1); 
}

#mobile-menu-toggle svg {
    stroke: var(--bright-gold); 
}

/* === 核心视觉样式 === */
.font-display{
    font-family:var(--font-vietnamese);
    font-weight:800;
    line-height:1.25;
    letter-spacing:.005em;
}

.gold-text{
    background:linear-gradient(135deg,#FFE8A3 0%,#FFD85A 35%,#D9A72C 65%,#FFE8A3 100%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
}
.gold-bg{background:linear-gradient(135deg,#FFE8A3 0%,#FFD85A 45%,#D9A72C 100%)}
.gold-bg-soft{background:linear-gradient(135deg,rgba(255,232,163,.15) 0%,rgba(255,216,90,.08) 50%,rgba(217,167,44,.12) 100%)}
.gold-border{border:1px solid rgba(217,167,44,.35)}
.gold-border-soft{border:1px solid rgba(217,167,44,.18)}

.glass{background:rgba(10,90,60,.12);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(217,167,44,.16)}
.glass-dark{background:rgba(7,58,42,.45);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(217,167,44,.22)}

.btn-gold{
    background:linear-gradient(135deg,#E6D192 0%,#E6C251 45%,#C39627 100%);
    color:#031914;font-weight:700;
    box-shadow:0 8px 24px rgba(255,216,90,.25),inset 0 1px 0 rgba(255,255,255,.15);
    transition:transform .25s ease, box-shadow .25s ease;
    border:none; cursor:pointer;
}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(255,216,90,.4),inset 0 1px 0 rgba(255,255,255,.5)}

.btn-ghost{
    background:transparent;color:var(--light-gold);border:1px solid rgba(217,167,44,.45);
    transition:all .25s ease; cursor:pointer;
}
.btn-ghost:hover{background:rgba(217,167,44,.1);border-color:var(--bright-gold);color:var(--bright-gold)}

.card-hover{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,border-color .35s ease}
.card-hover:hover{transform:translateY(-6px);border-color:rgba(255,216,90,.5);box-shadow:0 20px 50px rgba(0,0,0,.4),0 0 30px rgba(217,167,44,.15)}

/* === 动画效果 === */
@keyframes pulse-gold{0%,100%{opacity:.6}50%{opacity:1}}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.pulse-gold{animation:pulse-gold 3s ease-in-out infinite}
.shimmer-text{
    background:linear-gradient(90deg,#D9A72C 0%,#FFE8A3 50%,#D9A72C 100%);
    background-size:200% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
    animation:shimmer 4s linear infinite;
}
.text-shadow-gold{text-shadow:0 2px 4px rgba(0,0,0,0.5), 0 0 30px rgba(3,25,20,0.8) !important;}
section h1, section h2 {text-shadow: 0 2px 10px rgba(0,0,0,0.6);}
.spin-slow { animation: spin-slow 40s linear infinite; }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.gold-glow { box-shadow: 0 8px 40px rgba(255,216,90,.18), 0 0 0 1px rgba(217,167,44,.25) inset; }

/* === 导航栏修复 === */
.nav-link{position:relative;color:var(--muted);font-weight:500;font-size:13px;letter-spacing:.05em;transition:color .2s ease;text-decoration:none;}
.nav-link:hover{color:var(--light-gold)}

.primary-nav ul, .footer-nav ul {list-style: none;margin: 0;padding: 0;}
.primary-nav ul {display: flex;align-items: center;gap: 2.25rem;}

img { max-width: 100%; height: auto; display: block; }

/* === 文章内页 SEO 排版样式 === */
.article-content h2 {
    font-family:var(--font-vietnamese);
    font-size: 2rem;
    font-weight:800;
    color: var(--bright-gold);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height:1.3;
    letter-spacing:0;
}.article-content h3 {font-size: 1.25rem;color: var(--white);margin-top: 2rem;margin-bottom: 0.8rem;font-weight: 600;}
.article-content p {margin-bottom: 1.5rem;line-height: 1.8;}
.article-content a {color: var(--bright-gold);text-decoration: underline !important;text-underline-offset: 3px;}
.article-content a:hover {color: var(--light-gold);}
.article-content ul, .article-content ol {margin-left: 1.5rem;margin-bottom: 1.5rem;}
.article-content li {margin-bottom: 0.5rem;line-height: 1.7;}
.article-content blockquote {border-left: 4px solid var(--gold);padding-left: 1.5rem;margin: 1.5rem 0;font-style: italic;color: var(--light-gold);}
.article-content > img {border-radius: 1rem;margin: 2rem auto;border: 1px solid rgba(217,167,44,0.2);}
.article-content figure {margin:2rem auto;text-align:center;}
.article-content figure img {margin:0 auto;border-radius:1rem;border:1px solid rgba(217,167,44,.2);}
.article-content figcaption {margin-top:.65rem;color:var(--muted);font-size:.875rem;font-style:italic;line-height:1.6;}

/* === 原生极速布局系统 (替代 Tailwind CDN) === */
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-9 { gap: 2.25rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-12 { padding-top: 3rem; } .pt-16 { padding-top: 4rem; } .pt-24 { padding-top: 6rem; }
.pb-8 { padding-bottom: 2rem; } .pb-12 { padding-bottom: 3rem; } .pb-20 { padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-7 { margin-bottom: 1.75rem; } .mb-8 { margin-bottom: 2rem; } .mb-9 { margin-bottom: 2.25rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; } .text-base { font-size: 1rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; } .text-5xl { font-size: 3rem; } .text-6xl { font-size: 3.75rem; }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; } .font-medium { font-weight: 500; }
.relative { position: relative; } .absolute { position: absolute; } .sticky { position: sticky; }
.z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.rounded-xl { border-radius: 0.75rem; } .rounded-2xl { border-radius: 1rem; } .rounded-3xl { border-radius: 1.5rem; } .rounded-full { border-radius: 9999px; }
.inline-flex { display: inline-flex; } .inline-block { display: inline-block; }
.max-w-xs { max-width: 20rem; } .max-w-sm { max-width: 24rem; } .max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; } .max-w-xl { max-width: 36rem; } .max-w-2xl { max-width: 42rem; } .max-w-5xl { max-width: 64rem; }
.w-full { width: 100%; } .h-full { height: 100%; }
.min-h-\[400px\] { min-height: 400px; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.transition-colors { transition: color 0.2s ease; } .transition-all { transition: all 0.2s ease; }

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); } /* 新增 12 列 */
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; } /* 新增 */
    .md\:col-span-4 { grid-column: span 4 / span 4; } /* 新增 */
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-\[1\.05fr_1fr\] { grid-template-columns: 1.05fr 1fr; }
    .lg\:hidden { display: none !important; } /* 修复：在电脑端隐藏手机汉堡菜单 */
    .lg\:block { display: block; }
}

/* === 补齐首页特殊布局类 === */
.max-w-\[1280px\] { max-width: 1280px; }
.max-w-\[560px\] { max-width: 560px; }
.max-w-\[900px\] { max-width: 900px; }

.text-\[80px\] { font-size: 80px; line-height: 1; }
.text-\[110px\] { font-size: 110px; line-height: 1; }
.text-\[44px\] { font-size: 44px; line-height: 1.1; }
.text-\[34px\] { font-size: 34px; line-height: 1.1; }
.text-\[15px\] { font-size: 15px; }
.text-\[11px\] { font-size: 11px; }
.text-\[10px\] { font-size: 10px; }
.text-\[180px\] { font-size: 180px; }
.text-\[220px\] { font-size: 220px; }
.text-\[200px\] { font-size: 200px; }
.text-\[260px\] { font-size: 260px; }

.tracking-\[0\.22em\] { letter-spacing: 0.22em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-\[0\.85\] { line-height: 0.85; }
.leading-\[1\] { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.aspect-\[5\/6\] { aspect-ratio: 5 / 6; }

.text-\[\#5A4015\] { color: #5A4015; }
.bg-\[\#031914\] { background-color: #031914; }
.bg-\[\#06261D\] { background-color: #06261D; }
.bg-\[var\(--bright-gold\)\] { background-color: var(--bright-gold); }
.text-\[var\(--light-gold\)\] { color: var(--light-gold); }
.text-\[var\(--bright-gold\)\] { color: var(--bright-gold); }
.text-\[var\(--white\)\] { color: var(--white); }
.text-\[var\(--muted\)\] { color: var(--muted); }
.bg-\[rgba\(3\,25\,20\,\.75\)\] { background: rgba(3,25,20,.75); }
.border-\[rgba\(217\,167\,44\,0\.15\)\] { border-color: rgba(217,167,44,0.15); }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.p-2\.5 { padding: 0.625rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-2 { padding: 0.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-7 { gap: 1.75rem; }

@media (min-width: 640px) { .sm\:inline-flex { display: inline-flex; } }
@media (min-width: 1024px) {
    .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
    .lg\:pt-24 { padding-top: 6rem; }
    .lg\:pb-20 { padding-bottom: 5rem; }
    .lg\:aspect-\[5\/6\] { aspect-ratio: 5 / 6; }
    .lg\:grid-cols-\[1\.05fr_1fr\] { grid-template-columns: 1.05fr 1fr; }
}

.shrink-0 { flex-shrink: 0; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group { }
.group:hover .group-hover\:text-\[var\(--bright-gold\)\] { color: var(--bright-gold); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.opacity-0 { opacity: 0; }
.opacity-15 { opacity: 0.15; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }
.opacity-\[0\.04\] { opacity: 0.04; }
.opacity-\[0\.05\] { opacity: 0.05; }
.blur-3xl { filter: blur(64px); }
.top-0 { top: 0; } .bottom-0 { bottom: 0; } .left-0 { left: 0; } .right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-bottom-20 { bottom: -5rem; } .-left-20 { left: -5rem; } .-inset-8 { top: -2rem; right: -2rem; bottom: -2rem; left: -2rem; }
.border-b { border-bottom-width: 1px; }

/* === 强制重置全局链接样式 (去除蓝色和下划线) === */
a { text-decoration: none !important; }
header a, footer a, .primary-nav a, .footer-nav a { color: var(--muted) !important; transition: color 0.2s ease; }
header a:hover, footer a:hover, .primary-nav a:hover, .footer-nav a:hover { color: var(--bright-gold) !important; }
footer h4 { color: var(--gold) !important; }
.btn-gold a, .btn-ghost a { color: inherit !important; }

/* === 页脚 E-E-A-T 样式补充 === */
.xx88-footer-wordmark {
    display:inline-flex;
    align-items:baseline;
    font-family:var(--font-vietnamese);
    font-size:1.75rem;
    font-style:italic;
    font-weight:800;
    line-height:1;
    letter-spacing:-.065em;
}
.footer-nav li { margin-bottom: 0.625rem; }
.footer-nav li a { font-size: 0.875rem; color: var(--muted) !important; transition: color 0.2s ease; }
.footer-nav li a:hover { color: var(--bright-gold) !important; }
footer a[aria-label] svg { transition: transform 0.3s ease; }
footer a[aria-label]:hover svg { transform: scale(1.2); }
.gap-3 { gap: 0.75rem; }
.mt-0\.5 { margin-top: 0.125rem; }

/* === 二级下拉菜单 SEO 样式 === */
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px);
    background: rgba(6, 38, 29, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(217, 167, 44, 0.25); border-radius: 0.75rem; padding: 0.5rem; min-width: 200px;
    display: flex; flex-direction: column; gap: 0.25rem; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(10, 90, 60, 0.3); margin-top: 10px;
}
.primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu li a {
    display: block; padding: 0.75rem 1.25rem; border-radius: 0.5rem; color: var(--muted) !important;
    font-size: 0.875rem; font-weight: 500; white-space: nowrap; transition: all 0.2s ease;
    letter-spacing: 0.02em;
}
.primary-nav .sub-menu li a:hover {
    background: rgba(217, 167, 44, 0.1); color: var(--bright-gold) !important; padding-left: 1.5rem;
}
.primary-nav li.menu-item-has-children > a::after {
    content: "▾"; margin-left: 0.5rem; font-size: 0.75rem; color: var(--gold);
    display: inline-block; transition: transform 0.3s ease;
}
.primary-nav li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* === 手机端导航栏样式 === */
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { width: 100%; border-bottom: 1px solid rgba(217, 167, 44, 0.1); }
.mobile-nav li a {
    display: block; padding: 0.875rem 0; color: var(--muted) !important; font-weight: 600;
    font-size: 0.95rem; letter-spacing: 0.02em; transition: color 0.2s ease;
}
.mobile-nav li a:hover { color: var(--bright-gold) !important; }
.mobile-nav .sub-menu {
    display: none; flex-direction: column; padding-left: 1.5rem; margin-bottom: 0.5rem;
    border-left: 2px solid rgba(217, 167, 44, 0.2);
}
.mobile-nav .menu-item-has-children.open-mobile-sub > .sub-menu { display: flex; }
.mobile-nav .sub-menu li a { padding: 0.5rem 0; font-size: 0.85rem; font-weight: 500; text-transform: none; }
.mobile-nav .menu-item-has-children > a {
    display: flex; justify-content: space-between; align-items: center; position: relative; padding-right: 30px;
}
.mobile-nav .menu-item-has-children > a::after {
    content: "▾"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    color: var(--gold); font-size: 1.4rem; transition: transform 0.3s ease;
}
.mobile-nav .menu-item-has-children.open-mobile-sub > a::after { transform: translateY(-50%) rotate(180deg); color: var(--bright-gold); }

/* === Hero 区限宽与文字放大适配 === */
.xx88-hero {
    width:100%; background-color:#031914; padding:0 1rem; position:relative;
}
.xx88-hero-banner {
    min-height: 200px; object-fit: cover; box-shadow: none;
}
.xx88-hero-copy {
    z-index: 10; top: 40%; left: 2.5rem; right: auto; bottom: auto;
    transform: translateY(-45%); width: 55%; max-width: 620px;
}
@media (max-width: 768px) {
    .xx88-hero-copy {
        position: relative !important; top: auto !important; left: auto !important;
        transform: none !important; width: 100% !important; max-width: 100% !important;
        padding: 2rem 1.5rem !important; background: rgba(3,25,20,0.9); margin-top: -60px;
    }
}

/* === SEO 区块悬浮文字手机端适配 === */
@media (max-width: 768px) {
    .xx88-seo-copy {
        position: relative !important; top: auto !important; left: auto !important;
        transform: none !important; width: 100% !important; max-width: 100% !important;
        padding: 2rem 1.5rem !important; background: rgba(3,25,20,0.95) !important;
        margin-top: -60px; border-radius: 1rem 1rem 0 0;
    }
}

/* === 图片 Logo 控制样式 === */
.xx88-logo-img {
    height: 52px; /* 桌面端 Logo 高度，可根据图片比例调整 */
    width: auto;   /* 宽度自适应，防止图片变形 */
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* 鼠标悬停时微浮和发光效果 */
.xx88-logo-img:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(255, 216, 90, 0.4));
}

/* 手机端 Logo 缩小，防止撑爆导航栏 */
@media (max-width: 768px) {
    .xx88-logo-img {
        height: 40px;
    }
}

/* === 修复页脚联系方式间距 === */
.space-y-3 > * + * {
    margin-top: 0.75rem; /* 上下间距 12px，和左侧菜单保持一致 */
}
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* ========================= XX88 Payment Methods (超紧凑修复版) ========================= */
.xx88-pay-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* 间距保持舒展 */
    max-width: 100%;
}
.xx88-pay-card{
    position: relative;
    height: 48px; /* 稍微增高以容纳放大后的图标 */
    width: auto;
    min-width: 86px; /* 卡片呼吸宽度 */
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px; /* 图标与下方文字间距 */
    overflow: hidden;
    border: 1px solid rgba(66,205,148,.30);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(15,62,46,.72) 0%, rgba(5,39,29,.84) 48%, rgba(3,30,22,.94) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), inset 0 -1px 0 rgba(78,255,183,.04), 0 4px 10px rgba(0,0,0,.18);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.xx88-pay-card::after{
    content:"";
    position:absolute;
    left:20%;
    right:20%;
    bottom:-1px;
    height:1px; 
    background:linear-gradient(90deg, transparent, rgba(65,255,177,.75), transparent);
    box-shadow: 0 0 6px rgba(50,255,171,.32), 0 0 10px rgba(50,255,171,.12);
    opacity:.6;
}
.xx88-pay-card::before{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(circle at 50% -30%, rgba(83,255,187,.08), transparent 55%);
    pointer-events:none;
}
.xx88-pay-card:hover{
    transform:translateY(-1px);
    border-color:rgba(79,238,174,.60);
    background: linear-gradient(145deg, rgba(19,73,53,.84), rgba(6,45,32,.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.25), 0 0 10px rgba(46,226,153,.08);
}

/* === 下方说明文字：进一步精致缩小、微降透明度 === */
.xx88-pay-name{
    position: relative;
    z-index: 2;
    color: #a9b5ab;
    font-size: 8px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.8px;
    transform: scale(0.85); /* 解决部分浏览器最小 10px 限制，真正实现精致小字 */
    transform-origin: center;
}

/* === 图标容器与各图标尺寸统一放大 === */
.xx88-pay-logo{
    position: relative;
    z-index: 2;
    height: 20px; /* 容器高度由 16px 提升至 20px */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. VISA：长度由 28px 加宽至 34px（高度保持 18px），给斜体字留出左右边距 */
.visa-logo{
    width: 34px;
    height: 18px;
    border-radius: 4px;
    background: #ffffff;
    color: #1a1f71;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.2px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* 2. MASTER：双圆由 14px 放大至 17px */
.master-logo{ 
    width: 30px; 
    height: 18px;
    position: relative;
    display: flex;
    align-items: center;
}
.master-logo span{ 
    position: absolute; 
    width: 17px; 
    height: 17px; 
    border-radius: 50%; 
} 
.master-logo span:first-child{ left: 1px; background: #eb001b; }
.master-logo span:last-child{ right: 1px; background: #f79e1b; opacity: .95; }

/* 3. MOMO：放大至 25px × 18px */
.momo-logo{
    width: 25px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: linear-gradient(145deg, #d82b87, #a51267);
    box-shadow: 0 2px 5px rgba(182,26,112,.20);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}
.momo-logo span { display: none; }

/* 4. BANK：SVG 图标由 16px 放大至 20px */
.bank-logo svg{
    width: 20px; 
    height: 20px;
    fill: none;
    stroke: #54d6a1;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 5px rgba(72,223,162,.16));
}

/* 5. USDT：底块放大至 20px × 20px，符号由 12px 放大至 14px */
.usdt-logo{
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(145deg, #32d6a0, #13956f);
    box-shadow: 0 2px 5px rgba(38,190,143,.20);
    display: flex;
    align-items: center;
    justify-content: center;
}
.usdt-logo span{
    color: white;
    font-size: 14px; 
    line-height: 1;
    font-weight: 800;
}

/* 6. ZALO：放大至 25px × 18px */
.zalo-logo{
    width: 34px;
    height: 18px;
    border-radius: 4px;
    color: #1474e9;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(24,120,238,.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === 移动端适配 === */
@media(max-width:480px){
    .xx88-pay-grid{ gap: 8px; max-width: 100%; }
    .xx88-pay-card{ height: 42px; min-width: 58px; padding: 0 6px; border-radius: 6px; }
    .xx88-pay-name{ transform: scale(0.75); }
}


/* === 游戏合作伙伴图片条样式 === */
.xx88-providers-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    min-height: 40px;
    margin-top: 2rem;
}
.xx88-providers-items img {
    height: 40px; /* 统一控制图片高度 */
    width: auto;
    opacity: 0.6; /* 默认半透明灰色 */
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.xx88-providers-items img:hover {
    opacity: 1; /* 悬停变清晰彩色 */
    filter: grayscale(0%);
    transform: translateY(-3px); /* 悬停上浮 */
}
@media (max-width: 768px) {
    .xx88-providers-items {
        gap: 1.5rem; /* 手机端缩小间距 */
    }
    .xx88-providers-items img {
        height: 32px; /* 手机端图片缩小 */
    }
}

/* === 手机端 Hero 按钮居中对齐 === */
@media (max-width: 768px) {
    .xx88-hero-buttons {
        flex-direction: column; 
        justify-content: center;
        align-items: center; 
        gap: 1rem; 
    }
    .xx88-hero-buttons a {
        width: 100% !important; 
        max-width: 320px !important; 
        margin-left: 0 !important; 
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* === 手机端强制 6 个 Logo 和 3 个徽章在一行显示 === */
@media (max-width: 768px) {
    /* 1. 强制 6 个供应商 Logo 排成一行 */
    .xx88-providers-items {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr);
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    .xx88-providers-items img {
        width: 100% !important;
        height: auto !important;
        max-height: 22px !important; /* 手机端图片缩小，确保 6 个都塞得下 */
        object-fit: contain;
    }
    
    /* 2. 强制 3 个信任徽章排成一行并居中 */
    .xx88-trust-badges {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem !important;
        text-align: center;
    }
    .xx88-trust-badges > div {
        flex-direction: column !important; /* 图标和文字上下排列 */
        justify-content: center;
        align-items: center;
        font-size: 10px !important; /* 手机端字体缩小 */
        gap: 4px !important;
    }
}

.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;
}

/* === 文章/页面内页 H1 标题样式 === */
.article-content h1 {
    font-family:var(--font-vietnamese);
    font-size: 2.8rem;
    font-weight:800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}



/* Trang Trò Chơi XX88 — phiên bản đơn giản */
.xx88-game-page,
.xx88-game-page * {
    box-sizing: border-box;
}

.xx88-game-page {
    position: relative;
    left: 50%;
    width: min(1180px, calc(100vw - 32px));
    margin: 0 0 72px;
    color: #f7f4e8;
    transform: translateX(-50%);
}

.xx88-game-page a {
    text-decoration: none;
}

.xx88-game-page h1,
.xx88-game-page h2,
.xx88-game-page h3,
.xx88-game-page p {
    margin-top: 0;
}

.xx88-game-hero {
    max-width: 820px;
    margin: 64px auto 56px;
    text-align: center;
}

.xx88-game-kicker {
    margin-bottom: 12px;
    color: #ffd85a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
}

.xx88-game-hero h1 {
    margin-bottom: 20px;
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.15;
}

.xx88-game-hero h1 span,
.xx88-section-heading h2 {
    color: #ffd85a;
}

.xx88-game-intro,
.xx88-section-heading p {
    color: #a8bbb3;
    font-size: 15px;
    line-height: 1.8;
}

.xx88-game-list,
.xx88-check-section {
    margin-bottom: 64px;
}

.xx88-section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.xx88-section-heading h2,
.xx88-responsible h2 {
    margin-bottom: 10px;
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.25;
}

.xx88-game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.xx88-game-card {
    overflow: hidden;
    border: 1px solid rgba(217, 167, 44, .28);
    border-radius: 16px;
    background: #06271e;
    transition: transform .25s ease, border-color .25s ease;
}

.xx88-game-card:hover {
    transform: translateY(-5px);
    border-color: #ffd85a;
}

.xx88-game-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
}

.xx88-game-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.xx88-game-card-body {
    display: flex;
    min-height: 190px;
    padding: 20px;
    flex: 1;
    flex-direction: column;
}

.xx88-game-card h3 {
    margin-bottom: 10px;
    color: #fffdf5;
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: 22px;
    line-height: 1.35;
}

.xx88-game-card p {
    margin-bottom: 18px;
    color: #a8bbb3;
    font-size: 14px;
    line-height: 1.7;
}

.xx88-game-card span {
    margin-top: auto;
    color: #ffd85a;
    font-size: 14px;
    font-weight: 700;
}

.xx88-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.xx88-check-grid article {
    padding: 24px;
    border: 1px solid rgba(217, 167, 44, .22);
    border-radius: 14px;
    background: #05241b;
}

.xx88-check-grid strong {
    display: inline-flex;
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    color: #3d2d08;
    border-radius: 50%;
    background: #ffd85a;
}

.xx88-check-grid h3 {
    margin-bottom: 8px;
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: 20px;
}

.xx88-check-grid p {
    margin-bottom: 0;
    color: #a8bbb3;
    font-size: 14px;
    line-height: 1.7;
}

.xx88-responsible {
    padding: 34px;
    text-align: center;
    border: 1px solid rgba(217, 167, 44, .30);
    border-radius: 16px;
    background: #06271e;
}

.xx88-responsible p {
    max-width: 700px;
    margin: 0 auto 18px;
    color: #a8bbb3;
    font-size: 14px;
    line-height: 1.8;
}

.xx88-responsible a {
    color: #ffd85a;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .xx88-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .xx88-game-page {
        width: min(100% - 24px, 520px);
        margin-bottom: 48px;
    }

    .xx88-game-hero {
        margin: 42px auto 44px;
    }

    .xx88-game-hero h1 {
        font-size: 36px;
    }

    .xx88-game-grid,
    .xx88-check-grid {
        grid-template-columns: 1fr;
    }

    .xx88-game-card-body {
        min-height: auto;
    }

    .xx88-responsible {
        padding: 26px 20px;
    }
}


/* === 手机端支付卡片强制单行显示 === */
@media (max-width: 480px) {
    /* 取消换行，缩小间距 */
    .xx88-pay-grid,
    .xx88-pay-footer {
        flex-wrap: nowrap !important;
        gap: 5px !important;
        width: 100%;
    }
    
    /* 6个卡片平分屏幕宽度，减小高度和内边距 */
    .xx88-pay-card {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        height: 44px !important;
        padding: 0 2px !important;
    }
    
    /* 缩小图标容器高度 */
    .xx88-pay-logo {
        height: 16px !important;
    }
    
    /* 按比例缩小各个图标，防止溢出 */
    .visa-logo { width: 30px !important; height: 14px !important; font-size: 7px !important; }
    .master-logo { width: 26px !important; height: 14px !important; }
    .master-logo span { width: 14px !important; height: 14px !important; }
    .momo-logo { width: 30px !important; height: 14px !important; font-size: 6px !important; }
    .bank-logo svg { width: 17px !important; height: 17px !important; }
    .usdt-logo { width: 16px !important; height: 16px !important; }
    .usdt-logo span { font-size: 11px !important; }
    .zalo-logo { width: 30px !important; height: 14px !important; font-size: 6px !important; }
    
    /* 底部文字通过 scale 缩小，绕过浏览器最小字体限制 */
    .xx88-pay-name {
        font-size: 8px !important;
        transform: scale(0.85) !important;
    }
}

/* === Bổ sung cho bản SEO / accessibility 2.1 === */
.site-header-inner { min-height: 72px; }
.backdrop-blur-xl { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 99999;
    padding: .75rem 1rem;
    color: #031914;
    border-radius: .5rem;
    background: var(--bright-gold);
    font-weight: 700;
}
.skip-link:focus { top: 1rem; }
body.admin-bar .site-header { top:32px; }

.items-start { align-items: flex-start; }
.rounded-lg { border-radius: .5rem; }
.w-2 { width: .5rem; }
.h-2 { height: .5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.max-w-\[1000px\] { max-width: 1000px; }
.text-\[16px\] { font-size: 16px; }
.tracking-wide { letter-spacing: .025em; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
.border-\[rgba\(217\,167\,44\,0\.2\)\] { border-color: rgba(217,167,44,.2); }
.space-y-2\.5 > * + * { margin-top: .625rem; }
.section-line { height: 1px; background: rgba(217,167,44,.15); }

.primary-nav,
.footer-nav,
.mobile-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}
.primary-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

header a.btn-gold { color: #031914 !important; }
header a.btn-ghost { color: var(--light-gold) !important; }
#mobile-menu-toggle { min-width: 44px; min-height: 44px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--bright-gold);
    outline-offset: 3px;
}

/* Homepage */
.xx88-home-section-title {
    font-size:clamp(1.75rem,2.4vw,2rem);
    line-height:1.2;
    letter-spacing:.015em;
    text-wrap:balance;
}
.xx88-hero-frame {
    overflow:hidden;
    border-radius:0;
    background:#031914;
    isolation:isolate;
}
.xx88-hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius:inherit;
    background: linear-gradient(90deg, rgba(3,25,20,.38) 0%, rgba(3,25,20,.22) 44%, rgba(3,25,20,0) 72%);
    pointer-events: none;
}
.xx88-hero-banner {
    width:calc(100% + 1px);
    max-width:none;
    height: auto;
    margin-left:-1px;
    aspect-ratio: 1915 / 821;
    border-radius: 0 !important;
}
.xx88-hero-copy-inner { max-width: 620px; }
.xx88-eyebrow {
    display: inline-flex;
    margin-bottom: 1.5rem;
    padding: .65rem 1rem;
    color: var(--light-gold);
    border: 1px solid rgba(217,167,44,.3);
    border-radius: 999px;
    background: rgba(3,25,20,.72);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.xx88-hero-brand {
    display: block;
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: clamp(3.5rem, 7vw, 5.75rem);
    line-height: .95;
    letter-spacing:-.065em;
}
.xx88-brand-xx {
    color:#F7F1E7;
    -webkit-text-fill-color:#F7F1E7;
}
.xx88-brand-88 {
    color:#E8AA16;
    -webkit-text-fill-color:#E8AA16;
}
.xx88-hero-title {
    display: block;
    max-width: 600px;
    margin-top: .75rem;
    color: var(--white);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.2;
    letter-spacing:-.015em;
}
.xx88-hero-intro {
    max-width: 540px;
    margin: 1.25rem 0 1.75rem;
    color: #c5cec7;
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    line-height: 1.7;
}
.xx88-hero-buttons a,
.xx88-inline-button {
    min-height: 48px;
    padding: .85rem 1.35rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.xx88-category-card,
.xx88-post-card {
    display: flex;
    flex-direction: column;
}
.xx88-category-card p,
.xx88-post-card p { flex: 1; line-height: 1.7; }
.xx88-post-card h3 a {
    color: var(--white) !important;
}
.xx88-post-card h3 a:hover {
    color: var(--bright-gold) !important;
}
.xx88-access-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 1.25rem !important;
}
.xx88-access-card,
.xx88-process-card {
    display: flex;
    min-width: 0;
    height: 100%;
    padding: 1.65rem !important;
    flex-direction: column;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(7,58,42,.62), rgba(3,25,20,.8));
}
.xx88-access-card h3,
.xx88-process-card h3 {
    margin-bottom: .75rem;
    line-height: 1.25;
}
.xx88-access-card h3 {
    font-size: 1.5rem;
}
.xx88-access-card p,
.xx88-process-card p {
    flex: 1;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.75;
}
.xx88-process-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 1.1rem !important;
}
.xx88-condition-note {
    display: flex;
    margin-top: 1.5rem;
    padding: 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(217,167,44,.28);
    border-radius: 1rem;
    background: linear-gradient(135deg,rgba(7,58,42,.72),rgba(3,25,20,.82));
}
.xx88-condition-note p {
    max-width: 900px;
    margin-top: .5rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.75;
}
.xx88-condition-note > a {
    flex: 0 0 auto;
}
.xx88-text-link {
    display: inline-flex;
    margin-top: 1rem;
    align-items: center;
    gap: .4rem;
    color: var(--bright-gold) !important;
    font-size: .875rem;
    font-weight: 700;
}
.xx88-about-media {
    display: block;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: auto;
}
.xx88-about-image {
    width: 100%;
    height: auto;
    padding: 0;
    object-fit: initial;
    filter: none;
}
.xx88-band {
    border-top: 1px solid rgba(217,167,44,.15);
    border-bottom: 1px solid rgba(217,167,44,.15);
    background: rgba(6,38,29,.38);
}
.xx88-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
}
.xx88-faq-card {
    height: 100%;
    min-height: 132px;
    padding: 1.45rem 1.5rem;
}
.xx88-faq-card h3 {
    margin: 0 0 .7rem;
    color: var(--light-gold);
    font-family: var(--font-vietnamese);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.45;
}
.xx88-faq-card p {
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.75;
}

/* Article and page templates */
.xx88-breadcrumb {
    display: flex;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.6;
}
.xx88-breadcrumb a { color: var(--light-gold) !important; }
.xx88-breadcrumb [aria-current="page"] {
    max-width: 46ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xx88-tag-list {
    display: flex;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.xx88-tag-list a {
    padding: .35rem .7rem;
    color: var(--light-gold) !important;
    border: 1px solid rgba(217,167,44,.22);
    border-radius: 999px;
    font-size: .7rem;
}
.xx88-entry-title,
.xx88-archive-header h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: clamp(2.25rem, 5vw, 3.35rem);
    line-height: 1.15;
    letter-spacing:-.01em;
}
.xx88-entry-meta {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    align-items: center;
    gap: .85rem;
    border-bottom: 1px solid rgba(217,167,44,.15);
}
.xx88-author-initial {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: #4b3509;
    border-radius: 50%;
    background: linear-gradient(135deg,#ffe8a3,#d9a72c);
    font-family:var(--font-vietnamese);
    font-weight: 700;
}
.xx88-author-link {
    color: var(--white) !important;
    font-size: .9rem;
    font-weight: 700;
}
.xx88-entry-meta p {
    margin-top: .25rem;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.55;
}
.article-content h1 { font-size: clamp(2.25rem, 5vw, 3.35rem); }
.article-content iframe,
.article-content video { max-width: 100%; }
.article-content table {
    display: block;
    width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    border-collapse: collapse;
}
.article-content th,
.article-content td {
    padding: .75rem;
    border: 1px solid rgba(217,167,44,.2);
    text-align: left;
}
.xx88-author-box,
.xx88-related-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(217,167,44,.22);
    border-radius: 1rem;
    background: rgba(7,58,42,.45);
}
.xx88-author-box-label {
    margin-bottom: .35rem;
    color: var(--gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.xx88-author-box h2,
.xx88-related-box h2 {
    color: var(--light-gold);
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: 1.4rem;
}
.xx88-author-box h2 a { color: var(--light-gold) !important; }
.xx88-author-box > p:last-child,
.xx88-related-box > p {
    margin-top: .65rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.7;
}
.xx88-related-links {
    display: flex;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.xx88-related-links a {
    padding: .65rem .9rem;
    color: var(--light-gold) !important;
    border: 1px solid rgba(217,167,44,.25);
    border-radius: .65rem;
    font-size: .8rem;
    font-weight: 700;
}
.xx88-related-links a:hover { background: rgba(217,167,44,.08); }
.xx88-page-updated {
    margin-top: 2.5rem;
    padding-top: 1rem;
    color: var(--muted);
    border-top: 1px solid rgba(217,167,44,.15);
    font-size: .75rem;
}
.xx88-archive-header { margin-bottom: 2rem; }
.xx88-post-list { display: grid; gap: 1rem; }
.xx88-list-card { padding: 1.5rem; }
.xx88-list-card time { color: var(--muted); font-size: .75rem; }
.xx88-list-card h2 {
    margin: .5rem 0 .75rem;
    font-family:var(--font-vietnamese);
    font-weight:800;
    font-size: 1.65rem;
    line-height: 1.35;
}
.xx88-list-card h2 a { color: var(--white) !important; }
.xx88-list-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.xx88-pagination { margin-top: 2rem; }
.xx88-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.xx88-pagination .page-numbers {
    padding: .55rem .75rem;
    color: var(--light-gold) !important;
    border: 1px solid rgba(217,167,44,.22);
    border-radius: .45rem;
}
.xx88-pagination .current {
    color: #031914 !important;
    background: var(--bright-gold);
}

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:text-left { text-align: left; }
    .md\:gap-5 { gap: 1.25rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; }
}

@media (max-width: 1050px) {
    .xx88-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Trên điện thoại, dùng sticky để header bám đầu màn hình nhưng vẫn giữ chỗ trong bố cục. */
@media (max-width: 1023px) {
    :root { --xx88-mobile-header-height:72px; }
    .site-header {
        position:sticky !important;
        top:0 !important;
        right:auto;
        left:auto;
        width:100%;
        z-index:9999;
        background:#031914 !important;
        box-shadow:0 8px 20px rgba(0,0,0,.18);
    }
    #main-content { padding-top: 0 !important; }
    #mobile-menu {
        max-height:calc(100dvh - var(--xx88-mobile-header-height));
        overflow-y:auto;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
    }
    body.admin-bar .site-header { top:0 !important; }
    body.admin-bar #mobile-menu {
        max-height:calc(100dvh - var(--xx88-mobile-header-height));
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header { top:0 !important; }
    body.admin-bar #mobile-menu {
        max-height:calc(100dvh - var(--xx88-mobile-header-height));
    }
}

@media (max-width: 768px) {
    .xx88-hero-frame::after { display:none; }
    .xx88-hero-copy {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin-top: 0 !important;
        padding: 1.75rem 1.25rem 2rem !important;
        transform: none !important;
        border: 1px solid rgba(217,167,44,.16);
        border-top: 0;
        border-radius: 0;
        background: rgba(6,38,29,.88) !important;
    }
    .xx88-hero-banner { min-height: 210px; border-radius: 0 !important; object-fit: cover; }
    .xx88-eyebrow { margin-bottom: 1rem; font-size: .65rem; }
    .xx88-hero-brand { font-size: 3.6rem; }
    .xx88-hero-title { font-size: 1.8rem; }
    .xx88-faq-list { grid-template-columns: 1fr; }
    .xx88-about-media { min-height: 0; }
    .xx88-access-grid { grid-template-columns: 1fr !important; }
    .xx88-condition-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    :root { --xx88-mobile-header-height:64px; }
    .site-header-inner {
        min-height:64px;
        padding-left:1rem;
        padding-right:1rem;
    }
    .site-header-inner > .flex { gap:.5rem; }
    .site-header-inner > .flex > a.btn-gold {
        display:inline-flex !important;
        min-height:40px;
        padding:.6rem .8rem;
        white-space:nowrap;
        font-size:.72rem;
    }
    .xx88-logo-img { height:36px; max-width:120px; }
    .xx88-hero { padding:0 .65rem; }
    .xx88-hero-buttons a { width: 100%; }
    .xx88-breadcrumb [aria-current="page"] { max-width: 26ch; }
    .xx88-process-grid { grid-template-columns: 1fr !important; }
    .xx88-condition-note > a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
