html, body {
    font-size: 0.8em;
    background: linear-gradient(135deg, #ffd6d6 0%, #fff5cc 100%);
    margin: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: #ff5c5c;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff3333;
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .games .item {
        width: calc(50% - 1.2em);
        padding: 0.5em;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .games .item {
        width: calc(33% - 1.2em);
        padding: 0.5em;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .games .item {
        width: calc(25% - 1.2em);
        padding: 0.5em;
    }
}

.header {
    display: flex;
    width: 100%;
    position: relative;
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #ff5c5c 0%, #ff8888 100%);
    box-shadow: 0 2px 10px rgba(255, 92, 92, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .logo-box {
    display: inline-flex;
    vertical-align: top;
    padding: 0.2em 1em;
}
.header .search-input {
    display: inline-flex;
    vertical-align: top;
    width: 60%;
}
.header .search-btn {
    display: inline-flex;
    vertical-align: top;
    text-align: left;
}
.header .logo {
    height: 4em;
}
.header .logo-title {
    display: inline-flex;
    width: 80%;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 3.8em;
    overflow: hidden;
    white-space: nowrap;
}
.header .search-input input {
    width: calc(100% - 6em);
    margin: 0.5em 1em;
    padding: 0.5em 1.5em;
    border-radius: 1.5em;
    border-color: #ffcc66;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.3s;
}.header .search-input input:focus {
    border-color: #ffaa00;
}

.header .search-btn button {
    display: inline-block;
    margin: 0.5em auto;
    background-color: #ffaa00;
    padding: 0.5em;
    border-radius: 0.5em;
    border-color: #ffaa00;
    color: white;
    transition: background-color 0.3s;
}

.header .search-btn button:hover {
    background-color: #ff8800;
}

.footer {
    margin: 6em auto;    
    font-size: 0.5em;
    line-height: 3em;
    color: #666;
}

.footer a {
    color: #666;
}

.footer p {
    text-align: center;
}

.history {
    margin: 0.5em auto;
}

.history .item {
    margin: 0.5em;
    padding: 1em;
    border-radius: 0.5em;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 92, 92, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.history .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 92, 92, 0.2);
}
.history .icon {
    width: 2em;
    height: 2em;
    border-radius: 1em;
}
.history .title {
    padding-left: 0.5em;
    display: inline-flex;
    white-space: nowrap;
    overflow: hidden;
    width: calc(100% - 4em);
    height: 2em;
    line-height: 2em;
}

.topic {
    padding: 2em 1em 1em 2em;
}
.topic .logo {
    width: 2em;
    height: 2em;
}
.topic .title {
    padding-left: 1em;
    font-weight: bold;
}

.games .item {
    display: inline-block;
}

.games .item  a {
    display: block;
}

.games .icon {
    width: 100%;
    height: 100%;
    border-radius: 1em;
}

.games .title {
    padding: 1em;
    overflow: hidden;
    white-space: nowrap;
}

.info {
    margin: 2em auto;
}
.info .title {
    padding: 1em;
    font-weight: bold;
}
.info .play-btn {
    text-align: center;
    margin: 1em auto;
}
.info .play-btn img {
    width: 17em;
    height: 7em;
}
.info .desc {

    margin: 1em;
}