/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #595958; /* 深灰色 */
  --secondary-color: #8B8B8C; /* 中灰色 */
  --light-gray: #D9D9D9; /* 浅灰色 */
  --very-light-gray: #F2F2F2; /* 非常浅灰色 */
  --navbar-bg: #363432; /* 导航栏背景色 - 使用深灰色 */
  --active-color: #E1523D; /* 激活状态颜色 - 使用新辅助色 */
}

/* 全局隐藏滚动条 */
html, body {
  overflow-x: hidden;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  /* 针对移动设备的滚动条隐藏 */
  -webkit-overflow-scrolling: touch;
}

/* 全局隐藏滚动条 - Chrome, Safari and Opera */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

/* 针对iOS Safari的滚动条隐藏 */
::-webkit-scrollbar {
  display: none;
}

/* 确保所有容器都不显示滚动条 */
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--primary-color);
  background-color: #FFFFFF;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 底部导航栏样式 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  min-height: 56px;
}

.bottom-nav-container ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottom-nav-item {
  list-style: none;
}

.bottom-nav-link {
  color: #f8fafc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s ease;
  padding: 8px 16px;
  display: inline-block;
  line-height: 1;
  min-width: 60px;
  text-align: center;
}

.bottom-nav-link:hover,
.bottom-nav-link:focus {
  color: white;
  font-weight: 600;
  outline: none;
}

/* 底部导航栏选中样式 */
.bottom-nav-link.active {
  background-color: var(--active-color);
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(2, 166, 118, 0.3);
  transition: all 0.2s ease;
}

/* 响应式设计 */
@media (min-width: 768px) {
  /* 在大屏幕上隐藏底部导航 */
  .bottom-nav {
    display: none;
  }
}

@media (max-width: 767px) {
  /* 为固定底部导航留出空间 */
  body {
    padding-bottom: 56px;
  }
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #8B8B8C;
  border-radius: 4px;
  text-decoration: none;
  color: #363432;
  background-color: white;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: #8B8B8C;
  color: white;
}

.btn-primary {
  background-color: var(--active-color);
  border-color: var(--active-color);
  color: white;
}

.btn-primary:hover {
  background-color: #c04332;
  border-color: #c04332;
}

.btn-large {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
}

/* 主内容样式 */

/* 禁用按钮样式 */
.game-card-btn-group .game-card-option-btn.disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border: 1px solid #cccccc !important;
}

.game-card-btn-group .game-card-option-btn.disabled:hover {
    background-color: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}

.game-card-btn-group .game-card-option-btn.support-btn.disabled {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
}

.game-card-btn-group .game-card-option-btn.oppose-btn.disabled {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
}

.game-card-add-option-btn:disabled,
.game-card-result-proposal-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border: 1px solid #cccccc !important;
}

.game-card-add-option-btn:disabled:hover,
.game-card-result-proposal-btn:disabled:hover {
    background-color: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}
main {
  padding: 1rem 0;
}

.hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  line-height: 1.6;
}



/* 游戏卡片组件样式 */
.game-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card-header {
    display: flex;
    padding: 12px 16px 8px;
}

.game-card-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.game-card-info {
    flex: 1;
    padding: 0 0 0 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card-tags {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.game-card-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.game-tag {
    background-color: var(--active-color);
    color: white;
}

.status-tag {
    background-color: #FFA500;
    color: white;
}

.status-tag[data-status="2"] {
    background-color: #FFA500;
}

.status-tag[data-status="3"] {
    background-color: #4CAF50;
}

.status-tag[data-status="4"] {
    background-color: #999;
}

.game-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
    padding-top: 16px;
}

.game-card-content {
    padding: 8px 16px 16px;
}

.bonus-pool {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.bonus-pool-header {
    margin-bottom: 16px;
}

.bonus-pool-question {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.option-nav-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.option-nav-btn:hover {
    transform: scale(1.15);
}

.bonus-pool-question-text {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0 32px;
}

.bonus-pool-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.bonus-pool-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin-top: -10px;
}

.stat-bar-container {
    width: 20px;
    height: 80px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
    display: flex;
    flex-direction: column-reverse;
    position: relative;
}

.stat-bar {
    width: 100%;
    transition: height 0.3s ease;
}

.yes-bar {
    background-color: #03A64A;
}

.no-bar {
    background-color: var(--active-color);
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.yes-value {
    color: #03A64A;
}

.no-value {
    color: var(--active-color);
}

.pool-value {
    color: #2196F3;
}

.bet-btn {
    width: 32px;
    height: 32px;
    border: 1px solid;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.yes-btn {
    background-color: #03A64A;
    color: white;
    border-color: #03A64A;
}

.no-btn {
    background-color: var(--active-color);
    color: white;
    border-color: var(--active-color);
}

.bet-btn:hover {
    transform: scale(1.15);
}

.probability-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.probability-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    background-color: var(--active-color);
    color: white;
    border: none;
    border-radius: 16px;
    height: 32px;
    padding: 0 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.probability-btn:hover {
    background-color: #c04332;
}

.probability-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.game-card-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.game-card-footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.game-card-date {
    font-size: 14px;
    color: #666;
    text-align: left;
}

.game-card-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--active-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14;
}

.countdown-icon {
    font-size: 14px;
}

.countdown-text {
    font-family: 'Courier New, monospace';
    letter-spacing: 1px;
}

/* 提案卡片组件样式 */
.proposal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.proposal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.proposal-card-header {
    display: flex;
    flex-direction: row;
    padding: 12px 16px 8px;
}

.proposal-card-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.proposal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.proposal-card-image img:hover {
    transform: scale(1.05);
}

.proposal-card-info {
    flex: 1;
    padding: 0 0 0 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.proposal-card-tags {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.proposal-card-tag {
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.type-tag {
    background-color: var(--active-color);
}

.proposal-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
    padding-top: 16px;
    text-align: left;
}

.proposal-card-content {
    padding: 8px 16px 16px;
}

.proposal-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.proposal-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.support-bar {
    background-color: #4CAF50;
}

.oppose-bar {
    background-color: var(--active-color);
}

.support-value {
    color: #4CAF50;
}

.oppose-value {
    color: var(--active-color);
}

.decision-value {
    color: #2196F3;
}

.proposal-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    font-size: 14px;
    color: #666;
}

.proposal-card-date {
    display: inline-block;
}

.proposal-card-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--active-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

/* 帖子模块组件样式 */
.forum-section {
    width: 100%;
    box-sizing: border-box;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.forum-tabs {
    display: flex;
    gap: 8px;
}

.forum-tab-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--light-gray);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-tab-btn.active {
    background-color: var(--active-color);
    color: white;
    border-color: var(--active-color);
}

.create-post-btn {
    background-color: var(--active-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-post-btn:hover {
    background-color: #c04732;
}

/* 帖子模态框 */
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.long-post-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.long-post-toggle input {
    cursor: pointer;
}

.long-post-toggle span {
    font-size: 14px;
    color: var(--primary-color);
}

#post-title {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#post-title:focus {
    border-color: var(--secondary-color);
}

#post-content {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 150px;
}

#post-content:focus {
    border-color: var(--secondary-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.publish-btn {
    background-color: var(--active-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.publish-btn:hover {
    background-color: #c04732;
}

/* 帖子列表 */
.posts-list {
    margin-top: 1rem;
}

.post-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.post-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.post-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
}

.post-time {
    font-size: 14px;
    color: #666;
}

.feature-btn {
    border: none;
    background: none;
    cursor: default;
    display: flex;
    align-items: center;
}

.post-content {
    margin-bottom: 1rem;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.post-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-color);
    word-break: break-word;
    margin: 8px 0;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.action-button {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 4px 6px;
    height: 32px;
    flex-shrink: 0;
}

.support-btn,
.oppose-btn,
.comment-btn,
.reply-btn {
    padding: 4px 8px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 12px;
    font-family: inherit;
    font-weight: normal;
}

.support-btn svg {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 2px;
}

.oppose-btn svg {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 2px;
}

.action-divider {
    width: 1px;
    height: 20px;
    background-color: var(--light-gray);
    margin: 0 4px;
}

.bookmark-btn {
    padding: 4px 8px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    font-family: inherit;
    font-weight: normal;
}

/* 实体信息展示 */
.entity-info {
    margin-top: 12px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.entity-info:hover {
    background-color: #f0f0f0;
}

.entity-info img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.entity-details {
    flex: 1;
}

.entity-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.entity-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* 评论列表 */
.comments-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.comment-item {
    display: flex;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-support-btn,
.comment-oppose-btn {
    padding: 2px 6px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--primary-color);
    font-size: 12px;
}

.comment-support-btn svg,
.comment-oppose-btn svg {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 1px;
}

.comment-reply-btn {
    padding: 2px 6px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    font-size: 12px;
}

/* 评论表单 */
.comment-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 100px;
}

.comment-form textarea:focus {
    border-color: var(--secondary-color);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-comment-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.submit-comment-btn {
    background-color: var(--active-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* 新闻部分 */
.news-section {
    padding: 3rem 0;
    background-color: white;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #D9D9D9;
}

.news-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.news-item p {
    margin-bottom: 0.5rem;
    color: #8B8B8C;
}

.news-date {
    font-size: 0.9rem;
    color: #8B8B8C;
}

/* 页脚 */
footer {
    background-color: #363432;
    color: white;
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #D9D9D9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #D9D9D9;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--active-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #8B8B8C;
    color: #D9D9D9;
}

/* 侧边栏样式 */
.sidebar {
  width: 240px;
  height: 100vh;
  background-color: white;
  border-right: 1px solid #f0f0f0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  /* 隐藏滚动条但保留滚动功能 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  flex: 1;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--primary-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background-color: #f5f5f5;
  color: var(--active-color);
}

.nav-item.active {
  background-color: #f0f0f0;
  color: var(--active-color);
}

.nav-item .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 折叠按钮样式 */
.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.sidebar-toggle svg {
  transition: transform 0.3s ease;
}

/* 侧边栏折叠状态 */
.sidebar.collapsed {
  width: 80px;
  padding: 16px 8px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.sidebar.collapsed .logo {
  visibility: hidden;
  height: 60px;
  margin-bottom: 0;
}

.sidebar.collapsed .logo * {
  display: none;
}

.sidebar.collapsed .sidebar-toggle {
  display: block !important;
  position: absolute;
  top: 16px;
  right: 8px;
  z-index: 100;
}

.sidebar.collapsed .sidebar-search {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
  width: 100%;
}

.sidebar.collapsed .sidebar-search .search-input {
  display: none;
}

.sidebar.collapsed .sidebar-search .search-btn {
  position: static;
  transform: none;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 14px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
}

.sidebar.collapsed .sidebar-search .search-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--active-color);
}

.sidebar.collapsed .nav-item span {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 14px 8px;
}

.sidebar.collapsed .sidebar-auth {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.sidebar.collapsed .user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sidebar.collapsed .user-profile {
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: 60px;
}

.sidebar.collapsed .user-profile:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .user-details,
.sidebar.collapsed .sidebar-user-details,
.sidebar.collapsed .sidebar-user-nickname {
  display: none;
}

.sidebar.collapsed .user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

.sidebar.collapsed .user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar.collapsed .btn-sidebar {
  display: none;
}

.sidebar.collapsed .sidebar-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* 确保折叠按钮在折叠状态下仍然可见 */
.sidebar .logo {
  width: 100%;
}

.sidebar.collapsed .sidebar-toggle {
  display: flex;
  margin-left: 0;
}

.sidebar.collapsed .sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

/* 确保logo内部容器在折叠状态下正确显示 */
.sidebar.collapsed .logo > div {
  justify-content: center;
  gap: 8px;
}

/* 主内容区域响应侧边栏折叠 */
.main-content.sidebar-collapsed {
  margin-left: 80px;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
  .sidebar.collapsed {
    width: 60px;
    padding: 12px 4px;
  }
  
  .main-content.sidebar-collapsed {
    margin-left: 60px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .bottom-nav {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .forum-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .forum-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .forum-tab-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .btn-large {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  .game-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .game-card-image {
    margin-bottom: 1rem;
  }

  .game-card-info {
    padding: 0;
  }

  .proposal-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .proposal-card-image {
    margin-bottom: 1rem;
  }

  .proposal-card-info {
    padding: 0;
  }
}

