:root {
    --bg-color: #0b0d14;
    --sidebar-bg: #141724;
    --panel-bg: #1a1e2d;
    --primary: #613883;
    --primary-glow: rgba(97, 56, 131, 0.5);
    --accent: #3ea316;
    --accent-glow: rgba(62, 163, 22, 0.5);
    --text-color: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}
* {
    box-sizing: border-box;
}
html, body.rat7-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}
@media (min-width: 768px) {
    body.rat7-body { font-size: 16px; }
}
h1, h2, h3, h4 {
    font-family: 'Kanit', sans-serif;
    color: #ffffff;
    margin-top: 0;
}
.rat7-dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
}
.rat7-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}
.rat7-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rat7-logo-wrap {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}
.rat7-logo {
    font-size: 28px;
    font-family: 'Kanit', sans-serif;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    letter-spacing: 1px;
}
.rat7-slogan {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}
.rat7-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}
.rat7-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rat7-nav-item { margin: 0; }
.rat7-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}
.rat7-nav-link:hover {
    background: var(--primary);
    color: #ffffff;
}
.rat7-sidebar-footer {
    padding: 16px;
    font-size: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}
.rat7-neon-text {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
    font-weight: 600;
}
.rat7-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}
.rat7-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}
.rat7-ticker-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: var(--panel-bg);
    border-radius: 20px;
    height: 36px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}
.rat7-ticker-label {
    background: var(--primary);
    color: #ffffff;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 2;
    font-family: 'Kanit', sans-serif;
}
.rat7-ticker-track {
    display: inline-block;
    animation: rat7-ticker-scroll 25s linear infinite;
    padding-left: 100%;
}
@keyframes rat7-ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
.rat7-ticker-item {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 0 24px;
    font-size: 13px;
}
.rat7-ticker-item:hover { color: var(--accent); }
.rat7-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.rat7-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 21/9;
    min-height: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.rat7-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rat7-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11,13,20,0.95) 10%, rgba(11,13,20,0.5) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}
.rat7-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.rat7-hero-desc {
    font-size: 16px;
    color: var(--text-color);
    max-width: 400px;
    line-height: 1.5;
}
.rat7-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.rat7-stat-card {
    background: linear-gradient(135deg, var(--panel-bg), #141724);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.rat7-stat-val {
    font-size: 28px;
    font-family: 'Kanit', sans-serif;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}
.rat7-stat-lbl {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.rat7-section-title, .rat7-panel-title {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.rat7-section-title::after, .rat7-panel-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.rat7-filter-chips {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: none;
}
.rat7-filter-chips::-webkit-scrollbar { display: none; }
.rat7-chip {
    background: var(--panel-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}
.rat7-chip:hover, .rat7-chip-active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}
.rat7-cards-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    transition: opacity 0.3s ease;
}
.rat7-card {
    background: var(--panel-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}
.rat7-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
    border-color: var(--primary);
}
.rat7-card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}
.rat7-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rat7-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}
.rat7-card-body {
    padding: 12px;
}
.rat7-card-title {
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
    color: #ffffff;
    margin: 0 0 4px;
}
.rat7-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.rat7-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.rat7-panel {
    background: var(--panel-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
.rat7-step-list {
    padding: 0 0 0 20px;
    margin: 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}
.rat7-step-list li::marker {
    color: var(--accent);
    font-weight: 700;
    font-family: 'Kanit', sans-serif;
}
.rat7-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.rat7-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.rat7-tab-btn.rat7-tab-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.rat7-tab-content {
    display: none;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}
.rat7-tab-content.rat7-tab-active {
    display: block;
    animation: rat7-fade 0.3s ease;
}
@keyframes rat7-fade { from{opacity:0;} to{opacity:1;} }
.rat7-payment-section {
    background: var(--sidebar-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
.rat7-payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.rat7-pay-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.rat7-article-wrap {
    background: var(--panel-bg);
    border-radius: 16px;
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--border-color);
}
.rat7-article-wrap h1, .rat7-article-wrap h2, .rat7-article-wrap h3 {
    font-family: 'Kanit', sans-serif;
    color: #ffffff;
    margin: 1.5em 0 0.5em;
}
.rat7-article-wrap p { margin-bottom: 1em; }
.rat7-article-wrap ul, .rat7-article-wrap ol { padding-left: 20px; margin-bottom: 1em; }
.rat7-article-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
.rat7-article-wrap th, .rat7-article-wrap td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}
.rat7-article-wrap th {
    background: var(--sidebar-bg);
    color: var(--accent);
}
.rat7-article-wrap a { color: var(--accent); }
.rat7-article-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.rat7-article-wrap blockquote {
    border-left: 4px solid var(--primary);
    margin: 1em 0;
    padding-left: 16px;
    color: var(--text-muted);
}
.rat7-article-wrap hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
}
.rat7-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rat7-faq-item {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.rat7-faq-q {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rat7-faq-q::-webkit-details-marker { display: none; }
.rat7-faq-q::after {
    content: '+';
    color: var(--accent);
    font-size: 20px;
    font-family: 'Kanit', sans-serif;
}
.rat7-faq-item[open] .rat7-faq-q::after { content: '-'; }
.rat7-faq-a {
    padding: 0 16px 16px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}
.rat7-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.rat7-crumb {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}
.rat7-crumb:hover { color: var(--accent); }
.rat7-crumb-sep { color: var(--border-color); }
.rat7-page-title {
    font-size: 28px;
    margin-bottom: 8px;
}
.rat7-page-meta {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}
.rat7-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0;
}
.rat7-pager-link {
    background: var(--panel-bg);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.rat7-pager-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.rat7-footer {
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: auto;
}
.rat7-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto 32px;
}
.rat7-footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}
.rat7-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.rat7-footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
}
.rat7-footer-links a:hover { color: var(--accent); }
.rat7-legal-text {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.6;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .rat7-hero-title { font-size: 48px; }
    .rat7-hero-desc { font-size: 18px; }
    .rat7-stats-row { grid-template-columns: repeat(4, 1fr); }
    .rat7-footer-grid { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 900px) {
    .rat7-dashboard-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .rat7-menu-toggle { display: block; }
    .rat7-header {
        position: sticky;
        top: 0;
        z-index: 50;
    }
    .rat7-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 100;
        transition: left 0.3s ease;
    }
    .rat7-sidebar.rat7-active {
        left: 0;
    }
}
/* v2fix-center: 扫查发现内容列未居中（margin 冲突/缺失）*/
div.rat7-content,
footer.rat7-footer
{margin-inline:auto !important;}
