body {
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background: #f2f2f2;
}

/* ---- Header ---- */
.header {
    text-align: center;
    padding: 20px 0;
}

.header h1 {
    font-size: 28px;
    margin: 0;
}

.search-bar {
    margin-top: 15px;
}

.search-bar input {
    width: 300px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #bbb;
}

.search-bar button {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    background: #4c84ff;
    color: white;
    cursor: pointer;
}


/* ---- Layout ---- */
.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

/* Left/Right side boxes */
.side-box {
    width: 180px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    height: auto;
}

.side-box h3 {
    text-align: center;
}

.side-box.right ul {
    padding-left: 20px;
}

/* ---- Scroll Area ---- */
.scroll-area {
    flex-grow: 1;
    margin: 0 20px;
    max-height: 650px;         /* 可滚动区域高度 */
    overflow-y: auto;          /* 允许滚动 */
    padding-right: 10px;
}

/* ---- Feature Card ---- */
.feature-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    text-decoration: none;
    color: black;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.feature-card h2 {
    margin: 0 0 10px 0;
}

.feature-card .tag {
    font-size: 12px;
    color: #888;
}
.top-right-login {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.1rem;
}

.top-right-login a {
    color: #444;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 14px;
    background: #f1f1f1;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.top-right-login a:hover {
    background: #e5e5e5;
}
.language-switcher {
    position: absolute;
    top: 20px;
    right: 120px;
    font-size: 1rem;
}

.language-switcher a {
    text-decoration: none;
    color: #333;
    padding: 6px 12px;
    background: #eee;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.language-switcher a:hover {
    background: #ddd;
}
.lang-switcher {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
}
