:root {
    --primary-color: #4a69bd;
    --secondary-color: #1e3799;
    --bg-color: #f1f2f6;
    --card-bg: #ffffff;
    --text-color: #2f3542;
    --accent-color: #e67e22;
    --gradient-blue: linear-gradient(135deg, #6a89cc 0%, #4a69bd 100%);
    --gradient-purple: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 80px;
    min-height: 100vh;
    position: relative;
}

/* Header */
header {
    background: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Banner Carousel */
.banner-carousel {
    width: 100%;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    cursor: pointer;
}

.carousel-item img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* Notice Bar */
.notice-bar {
    background: #fff;
    margin: 0 10px 10px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.notice-icon {
    color: var(--accent-color);
    font-size: 16px;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    font-size: 14px;
    color: #57606f;
}

.notice-content marquee {
    vertical-align: middle;
}

/* User Info */
.user-info {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.user-details h2 {
    font-size: 16px;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 14px;
    color: #747d8c;
}

/* Section Title */
.section-header {
    padding: 15px 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
}

.view-all {
    font-size: 12px;
    color: #747d8c;
    text-decoration: none;
}

/* Grids */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
}

/* Cards */
.game-card,
.activity-card {
    background: linear-gradient(to bottom, #f0f7ff, #ffffff);
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.game-card:active,
.activity-card:active {
    transform: scale(0.98);
}

.game-card .badge,
.activity-card .badge {
    position: absolute;
    top: 5px;
    right: -15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    font-size: 9px;
    padding: 2px 12px;
    transform: rotate(45deg);
    width: 80px;
    text-align: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-card-header,
.activity-card-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
}

.game-card-header img,
.activity-card-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.game-card-header h3,
.activity-card-header h3 {
    font-size: 13px;
    color: #2f3542;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-desc,
.activity-card-desc {
    font-size: 14px;
    color: #57606f;
    font-weight: bold;
    margin: 8px 0 12px;
    min-height: 20px;
    line-height: 1.2;
}

.btn-enter {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3);
    text-decoration: none;
    display: inline-block;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top: 1px solid #f1f2f6;
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #a4b0be;
    font-size: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 22px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s;
    background: transparent;
    color: #ced6e0;
}

.nav-item.active {
    color: #4a69bd;
    font-weight: bold;
}

.nav-item.active i {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3);
}

.nav-item:not(.active) i {
    color: #a4b0be;
}

/* Tools */
.tool-list {
    padding: 10px;
}

.tool-card {
    background: var(--gradient-blue);
    color: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.tool-card.dark {
    background: #1e272e;
}

.tool-card.purple {
    background: var(--gradient-purple);
}

.tool-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.tool-info p {
    font-size: 13px;
    opacity: 0.8;
}

.tool-arrow {
    font-size: 24px;
}

/* Contact */
.contact-item {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #f1f2f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-details p {
    font-size: 14px;
    color: #747d8c;
}