:root {
    --bg-base: #f4f5f7;
    --bg-surface: #ffffff;
    --text-strong: #0f1419;
    --text-body: #536471;
    --border-subtle: #e1e8ed;
    --accent: #000000;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --card-bg: #ffffff;
    --text-heading: #0f1419;
}

[data-theme="dark"] {
    --bg-base: #0a0a0b;
    --bg-surface: #141415;
    --text-strong: #f4f4f5;
    --text-body: #a1a1aa;
    --border-subtle: #27272a;
    --accent: #ffffff;
    --card-bg: #141415;
    --text-heading: #f4f4f5;
}
[data-theme="dark"] .brand {
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 8px;
}
[data-theme="dark"] .bento-item[style*="background-color"] { filter: brightness(0.85); }
[data-theme="dark"] .btn-solid { background-color: var(--text-strong); color: var(--bg-base); }
[data-theme="dark"] .btn-solid:hover { background-color: #d4d4d8; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-strong);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* Fallbacks, emojis disabled via SVG */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Dashboard Core Layout */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Minimalist Editorial Sidebar */
.sidebar {
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.brand img {
    height: 32px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, color 0.2s;
}

.nav-item:hover {
    background-color: var(--bg-base);
    color: var(--text-strong);
}

.nav-item.active {
    background-color: var(--text-strong);
    color: var(--bg-surface);
}

.nav-item.active svg {
    fill: var(--bg-surface);
}

.icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main Content Bento Box Layout */
.main-content {
    padding: 48px;
    max-width: 1400px;
    width: 100%;
}

.page-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 20px;
}

.bento-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.bento-item:hover {
    border-color: #cfd9de;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Specific Grid Cells */
.hero-cell {
    grid-column: span 8;
    grid-row: span 3;
    background-image: url('https://game.gtimg.cn/images/rocom/web202507/share_icon.jpg');
    background-size: cover;
    background-position: center;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.hero-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Solid overlay purely for contrast */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #ffffff;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

/* Secondary Modules */
.news-cell {
    grid-column: span 4;
    grid-row: span 3;
    display: flex;
    flex-direction: column;
}

.section-head {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-strong);
    border-bottom: 2px solid var(--text-strong);
    padding-bottom: 8px;
    display: inline-block;
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-body);
    font-weight: 600;
}

.news-link {
    color: var(--text-strong);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.news-link:hover {
    text-decoration: underline;
}

/* Mini feature cells */
.feature-cell {
    grid-column: span 3;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-cell-wide {
    grid-column: span 4;
    grid-row: span 2;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: var(--bg-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-body);
}

/* Button override */
.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--text-strong);
    color: var(--bg-surface);
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-solid:hover {
    background-color: #333333;
}
