* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f8f9fa; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.site-header { background: #1a1a2e; color: #fff; padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: #fff; text-decoration: none; }
.main-nav a { color: #ccc; text-decoration: none; margin-left: 20px; font-size: 14px; }
.main-nav a:hover { color: #fff; }
.btn-register { background: #e94560; padding: 6px 16px; border-radius: 4px; color: #fff !important; }
.banner-section { position: relative; overflow: hidden; }
.banner-slider { display: flex; transition: transform .5s; }
.banner-slide { min-width: 100%; }
.banner-slide img { width: 100%; display: block; }
.notice-section { background: #fff3cd; padding: 15px 0; text-align: center; color: #856404; font-size: 14px; }
.games-section { padding: 40px 0; }
.games-section h2 { margin-bottom: 20px; font-size: 22px; color: #1a1a2e; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.game-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 15px; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.game-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; background: #eee; }
.game-card h3 { margin: 10px 0; font-size: 16px; color: #1a1a2e; }
.game-card p { color: #666; font-size: 13px; margin-bottom: 10px; }
.btn-play { display: inline-block; background: #e94560; color: #fff; padding: 6px 14px; border-radius: 4px; text-decoration: none; font-size: 13px; }
.btn-play:hover { background: #c73550; }
.site-footer { background: #1a1a2e; color: #aaa; text-align: center; padding: 20px 0; margin-top: 40px; font-size: 13px; }
.auth-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #1a1a2e; }
.auth-box { background: #fff; padding: 40px; border-radius: 12px; width: 380px; }
.auth-box h1 { text-align: center; margin-bottom: 24px; font-size: 22px; color: #1a1a2e; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #e94560; }
.btn-primary { width: 100%; padding: 12px; background: #e94560; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; }
.btn-primary:hover { background: #c73550; }
.alert-error { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 6px; margin-bottom: 16px; text-align: center; font-size: 13px; }
.alert-success { background: #d4edda; color: #155724; padding: 10px; border-radius: 6px; margin-bottom: 16px; text-align: center; font-size: 13px; }
.auth-link { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-link a { color: #e94560; text-decoration: none; }
.profile-box { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.profile-box p { margin-bottom: 8px; font-size: 14px; }
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.chat-toggle { width: 50px; height: 50px; border-radius: 50%; background: #e94560; color: #fff; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 4px 12px rgba(233,69,96,.4); }
.chat-toggle:hover { background: #c73550; }
.chat-panel { display: none; position: absolute; bottom: 60px; right: 0; width: 300px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.15); overflow: hidden; }
.chat-panel.open { display: block; }
.chat-header { background: #1a1a2e; color: #fff; padding: 12px; font-size: 14px; }
.chat-body { height: 200px; overflow-y: auto; padding: 10px; }
.chat-msg { margin-bottom: 8px; padding: 8px 12px; border-radius: 8px; font-size: 13px; max-width: 80%; }
.chat-msg.user { background: #e94560; color: #fff; margin-left: auto; }
.chat-msg.admin { background: #f0f0f0; }
.chat-input-area { display: flex; border-top: 1px solid #eee; }
.chat-input-area input { flex: 1; border: none; padding: 10px; outline: none; font-size: 13px; }
.chat-input-area button { background: #e94560; color: #fff; border: none; padding: 0 16px; cursor: pointer; }

@media (max-width: 768px) {
  .logo { font-size: 20px; }
  .main-nav a { margin-left: 12px; font-size: 13px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card { padding: 10px; }
  .game-card img { height: 110px; }
  .game-card h3 { font-size: 14px; }
  .game-card p { font-size: 12px; }
}