body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #2c3e50;
    text-align: center;
}

h1 {
    margin-bottom: 30px;
}

h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 0;
    border-bottom: none;
}

.toggle-btn {
    padding: 6px 12px;
    font-size: 0.9em;
    background-color: #7f8c8d;
    color: white; /* 添加文字颜色确保可见性 */
    border: none; /* 添加border:none */
    border-radius: 4px; /* 添加圆角 */
    min-width: 100px;
    text-align: center;
    cursor: pointer; /* 添加指针手势 */
}

.toggle-btn:hover {
    background-color: #95a5a6;
}

#gameListContainer.collapsed {
    display: none;
}


label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
textarea,
select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: white;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

button { /* 通用按钮样式，确保 toggle-btn 也继承这些好的属性 */
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

#addGameBtn {
    background-color: #2ecc71;
}
#addGameBtn:hover {
    background-color: #27ae60;
}


#gameListContainer {
    margin-top: 10px;
}

#gameList {
    list-style-type: none;
    padding: 0;
}

#gameList li {
    background: #ecf0f1;
    border-left: 5px solid #3498db;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐，以便多行文本时按钮位置更佳 */
    flex-wrap: nowrap;
}

#gameList li .game-info {
    flex-grow: 1;
    margin-right: 10px;
}

#gameList li strong {
    display: block;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 3px;
}

#gameList li .description {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 3px;
    word-wrap: break-word;
}

#gameList li .uploader,
#gameList li .timestamp {
    font-size: 0.8em;
    color: #95a5a6;
    display: block;
}

.delete-game-btn {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.8em;
    margin-left: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.delete-game-btn:hover {
    background-color: #c0392b;
}

.picker-section > div:first-of-type {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.picker-section > div:first-of-type label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.picker-section > div:first-of-type select {
    flex-grow: 1;
    margin-bottom: 0;
    max-width: 250px;
}

.picker-section > div:first-of-type button {
    flex-shrink: 0;
}

.picked-game-display {
    margin-top: 20px;
    padding: 20px;
    background-color: #e8f6fd;
    border: 1px solid #b2dff6;
    border-radius: 5px;
    text-align: center;
    min-height: 50px;
}

.picked-game-display h3 {
    margin-top: 0;
    color: #1f6489;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 0.9em;
}