:root {
    --primary-color: #D46433;
    --second-color: #d7cba17a;
    --text-color: #333;
    --second-text-color: #885544;
    --background-color: #FFFCEA;
    --navbar-bg: rgba(255, 252, 234, 0.95);
    --footer-bg: rgba(255, 252, 234, 0.8);
    --footer-text: #885544;
    --shadow-color: rgba(212, 100, 51, 0.1);
}

:root[data-theme="cool"] {
    --primary-color: #77AB52;
    --second-color: #77AB52;
    --background-color: #fff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8f9fa;
    --footer-text: #666;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 4px var(--shadow-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    padding-top: 80px; /* 为固定导航栏留出空间 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.game-list {
    list-style: none;
    width: 320px;
}

.game-list .item {
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.05s ease-out, background-color 0.15s ease-out;
    box-shadow: 0 2px 5px var(--cell-shadow);
    will-change: transform;
    margin: 16px 0;
    padding: 10px 0;
    background-color: var(--second-color);
}

.game-list .item:hover {
    transition: transform 0.2s ease-in-out;
    transform: scale(1.05);
}

.game-list .item:hover a {
    color: var(--primary-color);
}

.game-list .item a {
    color: var(--second-text-color);
    text-decoration: none;
    /* width and display removed here, moved to .item-link */
}

.game-list .item:hover {
    transition: transform 0.2s ease-in-out;
    transform: scale(1.05);
}

.game-list .item:hover .item-link {
    color: var(--primary-color);
}

.item-link {
    display: block;
    color: var(--second-text-color);
    text-decoration: none;
    width: 100%;
    text-align: center;
}


.footer {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--footer-bg);  /* 使用变量替代直接设置的颜色值 */
}

.footer-text {
    font-size: 0.875rem;
    color: var(--footer-text);  /* 已经正确使用了变量 */
}

.icp-link {
    color: #885544;
    text-decoration: none;
    transition: color 0.2s;
}

.icp-link:hover {
    color: var(--primary-color);
}