:root {
    --primary-color: #4682B4; /* 深蓝 */
    --primary-light: #87CEEB; /* 天蓝 */
    --primary-gradient: linear-gradient(135deg, #87CEEB, #4682B4);
    --bg-color: #F8FAFC;
    --card-bg: #EDF5FF;
    --text-main: #333333;
    --text-sub: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(70, 130, 180, 0.08);
    --shadow-md: 0 4px 12px rgba(70, 130, 180, 0.12);
    --nav-height: 60px;
    --tab-bar-height: 65px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* App 容器 */
.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--white);
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

/* 顶部导航 */
.app-header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    width: 60px;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}

.header-center h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.logo-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--white);
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.back-btn {
    cursor: pointer;
    color: var(--text-sub);
    display: flex;
    align-items: center;
}

/* 内容区 */
.app-content {
    flex: 1;
    padding: 16px;
    padding-bottom: calc(var(--tab-bar-height) + 20px);
    overflow-y: auto;
}

/* 底部导航 */
.tab-bar {
    height: var(--tab-bar-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
    width: 20%;
}

.tab-item i {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.tab-item span {
    font-size: 12px;
}

.tab-item.active {
    color: var(--primary-color);
}

/* 公共组件 */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:active {
    opacity: 0.8;
}

/* Section 标题 */
.section-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.section-title i {
    margin-right: 6px;
    width: 20px;
    height: 20px;
}

.section-title .right-link {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 12px;
}

/* 首页：Hero Banner */
.hero-banner {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-banner h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.hero-banner p {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
    z-index: 1;
}

.hero-banner .btn-banner {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
}

.hero-banner .hero-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    height: 150px;
    opacity: 0.3;
    z-index: 0;
}

/* 首页：活动通知条 */
.activity-bar {
    background-color: var(--bg-color);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.activity-bar i {
    color: var(--primary-color);
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.activity-bar span {
    flex: 1;
    color: var(--text-sub);
    font-size: 13px;
}

/* 首页：品牌标语 */
.brand-slogan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.brand-slogan .slogan-left h3 {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: normal;
}

.brand-slogan .slogan-left h2 {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 700;
}

.brand-slogan .slogan-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}

.brand-slogan .slogan-right i {
    width: 24px;
    height: 24px;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 4px;
    margin-bottom: 4px;
}

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-card .ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #38BDF8;
    color: white;
    font-size: 10px;
    padding: 4px 20px;
    transform: rotate(45deg) translate(14px, -12px);
    font-weight: bold;
}

.game-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.game-card .icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.game-card .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.game-card .desc {
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 33px;
}

.game-card .btn-primary {
    width: 80%;
}

/* 特色活动卡片 */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.activity-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 12px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.activity-card .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.activity-card .desc {
    font-size: 11px;
    color: var(--text-sub);
}

.activity-card .status {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    color: var(--text-sub);
}

.activity-card .status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    margin-right: 4px;
}

.activity-card .bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

/* 游戏页视图 */
.games-layout {
    display: flex;
    height: 100%;
}

.games-sidebar {
    width: 100px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 12px;
}

.games-sidebar .side-tab {
    padding: 10px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.games-sidebar .side-tab i {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.games-sidebar .side-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.games-content {
    flex: 1;
    padding-left: 12px;
}

/* 联系页/发布页卡片 */
.contact-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.contact-card .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.contact-card .icon-wrapper i {
    width: 24px;
    height: 24px;
}

.contact-card .info .title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.contact-card .info .title i {
    width: 14px;
    height: 14px;
    color: #38BDF8;
    margin-left: 4px;
}

.contact-card .info .detail {
    font-size: 13px;
    color: var(--text-sub);
}

/* 发布页大提示区 */
.publish-promo {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.publish-promo h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.publish-promo p {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.publish-promo .domain-line {
    font-size: 16px;
    font-weight: 600;
}

.publish-promo .domain-line .highlight {
    color: #EF4444; /* 红色高亮 */
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: var(--primary-color);
}
.loading-spinner i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}