/*
Theme Name: 私服发布站主题
Theme URI: https://sifu.cxcsj.xyz
Author: Game Server Team
Author URI: https://sifu.cxcsj.xyz
Description: 专为游戏私服发布站设计的WordPress主题，支持多游戏导航、用户偏好记录、高并发访问
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: game-server-theme
Tags: game, server, private-server, gaming
*/

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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: #2a1810;
    color: #e8d4b8;
    line-height: 1.6;
}

/* 隐藏非管理员的WordPress管理工具栏 */
body.hide-admin-bar #wpadminbar {
    display: none !important;
}

body.hide-admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.hide-admin-bar.admin-bar {
    margin-top: 0 !important;
}

html.hide-admin-bar {
    margin-top: 0 !important;
}

/* 顶部导航条 - 怀旧复古风格 */
.game-navbar {
    background: linear-gradient(135deg, #3d2817 0%, #5a3d2b 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid #d4a574;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.site-logo {
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    color: #f4d03f;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.game-nav-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.game-nav-scroll::-webkit-scrollbar {
    height: 6px;
}

.game-nav-scroll::-webkit-scrollbar-track {
    background: #3d2817;
}

.game-nav-scroll::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 3px;
}

.game-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-wrap: wrap;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.game-nav-list.expanded {
    max-height: 500px;
}

.game-nav-item {
    margin: 0;
}

.game-nav-item.hidden {
    display: none;
}

.game-nav-link {
    display: block;
    padding: 18px 22px;
    color: #c9a66b;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    background: rgba(212, 165, 116, 0.05);
    margin: 2px;
    border-radius: 4px 4px 0 0;
}

.game-nav-link:hover {
    color: #f4d03f;
    background: rgba(244, 208, 63, 0.15);
    border-bottom-color: #d4a574;
    transform: translateY(-2px);
}

.game-nav-link.active {
    color: #f4d03f;
    background: rgba(244, 208, 63, 0.2);
    border-bottom-color: #f4d03f;
    box-shadow: 0 2px 8px rgba(244, 208, 63, 0.3);
}

/* 展开/收起按钮 */
.toggle-games-btn {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    border: none;
    color: #2a1810;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.toggle-games-btn:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 208, 63, 0.4);
}

.toggle-games-btn .arrow-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.toggle-games-btn.expanded .arrow-icon {
    transform: rotate(180deg);
}

.toggle-games-btn .btn-text {
    font-size: 13px;
}

/* 主内容区域 */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 服务器列表 */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.server-list-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border-radius: 8px;
    padding: 15px 20px;
    border: 2px solid #5a3d2b;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.server-list-item:hover {
    border-color: #d4a574;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
    background: linear-gradient(135deg, #4a3320 0%, #5a3d2b 100%);
}

.server-list-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-list-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-width: 150px;
    margin-left: 20px;
}

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

.server-title {
    font-size: 20px;
    font-weight: bold;
    color: #f4d03f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.server-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.server-status.online {
    background: #8bc34a;
    color: #1a1a1a;
}

.server-status.offline {
    background: #d32f2f;
    color: #fff;
}

.server-info {
    margin: 15px 0;
}

.server-info p {
    margin: 8px 0;
    color: #c9a66b;
    font-size: 14px;
}

.server-game {
    color: #f4d03f !important;
    font-weight: 600;
}

.server-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #5a3d2b;
}

.server-date {
    font-size: 12px;
    color: #9a7b5a;
}

.view-more {
    color: #d4a574;
    font-weight: 600;
    transition: all 0.3s ease;
}

.server-card:hover .view-more {
    color: #f4d03f;
    transform: translateX(5px);
}

.featured-badge {
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(244, 208, 63, 0.4);
}

/* 列表样式 */
.server-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.server-list-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.server-list-title a {
    color: #f4d03f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.server-list-title a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

.featured-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-tag.online {
    background: rgba(139, 195, 74, 0.2);
    color: #8bc34a;
    border: 1px solid #8bc34a;
}

.status-tag.offline {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

.server-list-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #c9a66b;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item strong {
    color: #d4a574;
    margin-right: 5px;
}

.server-list-desc {
    color: #9a7b5a;
    line-height: 1.6;
    font-size: 14px;
}

.btn-view-detail {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-view-detail:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.4);
}

.server-list-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #c9a66b;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
}

.stat-value {
    font-weight: 600;
    color: #d4a574;
}

/* 筛选区域 */
.filter-section {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    padding: 20px;
    border: 2px solid #5a3d2b;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.filter-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #d4a574;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

.filter-select {
    background: #2a1810;
    color: #e8d4b8;
    border: 2px solid #5a3d2b;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #d4a574;
    outline: none;
    background: #3d2817;
}

.search-group {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    background: #2a1810;
    color: #e8d4b8;
    border: 2px solid #5a3d2b;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #d4a574;
    outline: none;
    background: #3d2817;
}

.search-input::placeholder {
    color: #9a7b5a;
}

.search-btn {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    color: #1a1a1a;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    background: #3d2817;
    color: #e8d4b8;
    border: 2px solid #5a3d2b;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-btn:hover {
    background: #4a3320;
    border-color: #d4a574;
    color: #f4d03f;
}

.page-btn.active {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    color: #1a1a1a;
    border-color: #f4d03f;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
}

.page-ellipsis {
    color: #9a7b5a;
    padding: 0 5px;
}

/* 游戏选择弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    max-width: 900px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 3px solid #d4a574;
}

.modal-header {
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid #5a3d2b;
}

.modal-header h2 {
    color: #f4d03f;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-header p {
    color: #c9a66b;
    font-size: 16px;
}

.modal-body {
    padding: 30px;
}

.game-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.game-selection-card {
    background: #2a1810;
    border: 2px solid #5a3d2b;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-selection-card:hover {
    transform: translateY(-5px);
    border-color: #d4a574;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
    background: #3d2817;
}

.game-selection-card.selected {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    border-color: #f4d03f;
    box-shadow: 0 8px 20px rgba(244, 208, 63, 0.4);
}

.game-selection-card.selected h3 {
    color: #1a1a1a;
}

.game-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #3d2817;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #5a3d2b;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-icon-placeholder {
    font-size: 30px;
}

.game-selection-card h3 {
    color: #f4d03f;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid #5a3d2b;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #2a1810;
}

.game-selection-card.selected .selection-indicator {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.game-selection-card.selected .selection-indicator::after {
    content: '✓';
    color: #f4d03f;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #5a3d2b;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
}

.btn-secondary {
    background: #5a3d2b;
    color: #c9a66b;
}

.btn-secondary:hover {
    background: #6b4a35;
    color: #e8d4b8;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #5a3d2b;
    border-top-color: #f4d03f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #c9a66b;
    font-size: 16px;
}

.no-results,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #c9a66b;
    font-size: 18px;
}

.error-message {
    color: #d32f2f;
}

/* 底部 */
.site-footer {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    margin-top: 80px;
    padding: 40px 20px 20px;
    border-top: 3px solid #d4a574;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #f4d03f;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-section p {
    color: #c9a66b;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c9a66b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f4d03f;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #5a3d2b;
}

.footer-bottom p {
    color: #9a7b5a;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .site-logo {
        text-align: center;
        border-bottom: 2px solid #5a3d2b;
    }

    .game-nav-scroll {
        width: 100%;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group {
        max-width: 100%;
    }

    .server-list-item {
        flex-direction: column;
    }

    .server-list-right {
        margin-left: 0;
        margin-top: 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .game-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        margin: 20px auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   用戶認證頁面樣式
   ======================================== */
.auth-page {
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
    background: #2a1810;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.auth-box {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #5a3d2b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #f4d03f;
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.auth-header p {
    color: #c9a66b;
    font-size: 16px;
}

.auth-messages {
    margin-bottom: 20px;
}

.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success-message {
    background: rgba(139, 195, 74, 0.2);
    border: 2px solid #8bc34a;
    color: #8bc34a;
}

.error-message {
    background: rgba(211, 47, 47, 0.2);
    border: 2px solid #d32f2f;
    color: #ff6b6b;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    color: #d4a574;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form .required {
    color: #d32f2f;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background: #2a1810;
    border: 2px solid #5a3d2b;
    border-radius: 6px;
    color: #e8d4b8;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #d4a574;
    background: #3d2817;
}

.auth-form .form-control::placeholder {
    color: #9a7b5a;
}

.auth-form .form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #9a7b5a;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #5a3d2b;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-bar.weak {
    background: #d32f2f;
}

.strength-bar.medium {
    background: #ff9800;
}

.strength-bar.strong {
    background: #8bc34a;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin: 0;
    color: #c9a66b;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-group a {
    color: #f4d03f;
    text-decoration: none;
    font-size: 14px;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #f4d03f;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #5a3d2b;
    border-top-color: #f4d03f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #5a3d2b;
}

.form-footer p {
    color: #c9a66b;
    font-size: 14px;
}

.form-footer a {
    color: #f4d03f;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.auth-benefits {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #5a3d2b;
}

.auth-benefits h3 {
    color: #f4d03f;
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: start;
}

.benefits-list .icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(244, 208, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4d03f;
}

.benefits-list strong {
    color: #f4d03f;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.benefits-list p {
    color: #c9a66b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .auth-benefits {
        padding: 30px 20px;
    }
}

/* ========================================
   發佈私服頁面樣式
   ======================================== */
.publish-page,
.my-servers-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #2a1810;
}

.publish-container,
.my-servers-container {
    max-width: 900px;
    margin: 0 auto;
}

.publish-header,
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.publish-header h1,
.page-header h1 {
    color: #f4d03f;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.publish-header p {
    color: #c9a66b;
    font-size: 16px;
    margin-top: 10px;
}

.publish-messages,
.messages {
    margin-bottom: 20px;
}

.publish-form {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #5a3d2b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #5a3d2b;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #f4d03f;
    font-size: 20px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.publish-form .form-group {
    margin-bottom: 20px;
}

.publish-form label {
    display: block;
    color: #d4a574;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.publish-form .form-control,
.publish-form select,
.publish-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: #2a1810;
    border: 2px solid #5a3d2b;
    border-radius: 6px;
    color: #e8d4b8;
    font-size: 15px;
    transition: all 0.3s ease;
}

.publish-form .form-control:focus,
.publish-form select:focus,
.publish-form textarea:focus {
    outline: none;
    border-color: #d4a574;
    background: #3d2817;
}

.publish-form textarea {
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-edit {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    color: #1a1a1a;
}

.btn-delete {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
}

.btn-toggle-status {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #1a1a1a;
}

.publish-tips {
    background: rgba(244, 208, 63, 0.1);
    border: 2px solid #d4a574;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.publish-tips h4 {
    color: #f4d03f;
    font-size: 18px;
    margin-bottom: 15px;
}

.publish-tips ul {
    list-style: none;
    color: #c9a66b;
}

.publish-tips li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.publish-tips li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f4d03f;
}

/* 我的發佈頁面 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border-radius: 12px;
    border: 2px solid #5a3d2b;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #f4d03f;
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #c9a66b;
    font-size: 16px;
    margin-bottom: 30px;
}

.servers-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    color: #f4d03f;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    color: #c9a66b;
    font-size: 14px;
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.server-item {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.server-item:hover {
    border-color: #d4a574;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.server-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.server-item-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.server-item-title h3 {
    color: #f4d03f;
    font-size: 20px;
    margin: 0;
}

.game-badge {
    background: rgba(244, 208, 63, 0.2);
    color: #f4d03f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.status-active {
    background: rgba(139, 195, 74, 0.2);
    color: #8bc34a;
    border: 1px solid #8bc34a;
}

.status-pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

.server-item-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.info-item {
    font-size: 14px;
}

.info-item .label {
    color: #9a7b5a;
}

.info-item .value {
    color: #e8d4b8;
    font-weight: 500;
}

.server-item-description {
    color: #c9a66b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.server-item-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #5a3d2b;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .servers-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .server-item-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .publish-form {
        padding: 25px 20px;
    }
}

/* ========================================
   用戶菜單樣式
   ======================================== */
.user-menu {
    margin-left: 20px;
    flex-shrink: 0;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    color: #e8d4b8;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    border-color: #d4a574;
    background: linear-gradient(135deg, #4a3320 0%, #5a3d2b 100%);
}

.user-icon {
    font-size: 18px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #e8d4b8;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #5a3d2b;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(244, 208, 63, 0.1);
    color: #f4d03f;
}

.item-icon {
    font-size: 16px;
}

.dropdown-divider {
    height: 1px;
    background: #5a3d2b;
    margin: 5px 0;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    border: 2px solid #d4a574;
    color: #d4a574;
}

.btn-login:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: #f4d03f;
    color: #f4d03f;
}

.btn-register {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    border: 2px solid #d4a574;
    color: #1a1a1a;
}

.btn-register:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .user-menu {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .auth-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   私服詳情頁面樣式
   ======================================== */
.server-detail-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #2a1810;
}

.server-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-navigation {
    margin-bottom: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 8px;
    color: #e8d4b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: #d4a574;
    color: #f4d03f;
    transform: translateX(-5px);
}

.server-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.header-left h1 {
    color: #f4d03f;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.server-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.game-tag,
.featured-tag,
.status-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.game-tag {
    background: rgba(244, 208, 63, 0.2);
    color: #f4d03f;
    border: 1px solid #f4d03f;
}

.featured-tag {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-tag.online {
    background: rgba(139, 195, 74, 0.2);
    color: #8bc34a;
    border: 1px solid #8bc34a;
}

.status-tag.offline {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 208, 63, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #5a3d2b;
}

.view-count .icon {
    font-size: 20px;
}

.view-count .count {
    color: #f4d03f;
    font-size: 24px;
    font-weight: bold;
}

.view-count .label {
    color: #c9a66b;
    font-size: 14px;
}

.server-info-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 12px;
    padding: 25px;
}

.info-card h3 {
    color: #f4d03f;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #5a3d2b;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.info-item .label {
    color: #9a7b5a;
    font-size: 14px;
    min-width: 100px;
    flex-shrink: 0;
}

.info-item .value {
    color: #e8d4b8;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.info-item .value a {
    color: #d4a574;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item .value a:hover {
    color: #f4d03f;
}

.copyable {
    position: relative;
}

.btn-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: scale(1.2);
}

/* 鏈接複製樣式 */
.link-with-copy {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 100%;
}

.link-input {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    width: 100%;
    background: rgba(42, 24, 16, 0.5);
    border: 1px solid #5a3d2b;
    border-radius: 6px;
    padding: 8px 12px;
    color: #e8d4b8;
    font-size: 13px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-input:focus {
    outline: none;
    border-color: #d4a574;
    background: rgba(42, 24, 16, 0.8);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

.link-input:hover {
    border-color: #d4a574;
}

.btn-copy-link {
    padding: 8px 16px;
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-copy-link:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 208, 63, 0.4);
}

.btn-copy-link:active {
    transform: translateY(0);
}

.btn-visit {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    color: #d4a574 !important;
    border: 2px solid #5a3d2b;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.btn-visit:hover {
    background: linear-gradient(135deg, #4a3320 0%, #5a3d2b 100%);
    border-color: #d4a574;
    color: #f4d03f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

.btn-join-group {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    color: #1a1a1a !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-join-group:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4a574 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

.server-description-card {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.server-description-card h3 {
    color: #f4d03f;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #5a3d2b;
}

.description-content {
    color: #c9a66b;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.server-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #d4a574;
    color: #d4a574;
}

.btn-outline:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: #f4d03f;
    color: #f4d03f;
}

@media (max-width: 768px) {
    .server-detail-header {
        flex-direction: column;
        gap: 20px;
    }

    .header-left h1 {
        font-size: 24px;
    }

    .server-info-grid {
        grid-template-columns: 1fr;
    }

    .server-actions {
        flex-direction: column;
    }

    .server-actions .btn {
        width: 100%;
        text-align: center;
    }

    .link-with-copy {
        flex-wrap: wrap;
    }

    .link-input {
        width: 100%;
        min-width: 0;
    }

    .btn-copy-link,
    .btn-visit {
        flex: 1;
        min-width: 100px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-item .label {
        font-weight: 600;
    }

    .info-item .value {
        width: 100%;
    }
}

/* ===================================
   關於我們頁面樣式
   =================================== */
.about-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 頁面標題 */
.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: 48px;
    color: #f4d03f;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c9a66b, transparent);
    margin: 0 auto;
}

/* 內容區域 */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 通用區塊樣式 */
.about-section {
    background: linear-gradient(135deg, #3d2817 0%, #4a3320 100%);
    border: 2px solid #5a3d2b;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-section h2 {
    font-size: 32px;
    color: #f4d03f;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #e8d4b8;
    margin-bottom: 15px;
}

.section-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

/* 品牌介紹 */
.brand-intro {
    text-align: center;
}

.brand-intro h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.brand-intro .subtitle {
    font-size: 20px;
    color: #c9a66b;
    font-style: italic;
    margin-bottom: 30px;
}

.brand-intro .intro-text {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* 使命宣言 */
.mission-header {
    text-align: center;
    margin-bottom: 30px;
}

.mission-content p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
}

.mission-content .highlight {
    font-size: 20px;
    font-weight: 600;
    color: #f4d03f;
    background: rgba(244, 208, 63, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f4d03f;
}

/* 特色服務 */
.features h2 {
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #5a3d2b;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #c9a66b;
    box-shadow: 0 8px 16px rgba(201, 166, 107, 0.2);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    color: #f4d03f;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 16px;
    color: #d4c5b0;
    margin: 0;
}

/* 聯繫CTA */
.contact-cta {
    background: linear-gradient(135deg, #4a3320 0%, #5a3d2b 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content > p {
    font-size: 20px;
    color: #c9a66b;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #f4d03f 0%, #c9a66b 100%);
    color: #2d1810;
    border: none;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #f4d03f;
    border: 2px solid #f4d03f;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(244, 208, 63, 0.1);
    transform: translateY(-2px);
}

.cta-buttons .icon {
    font-size: 20px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 36px;
    }

    .about-section {
        padding: 25px;
    }

    .about-section h2 {
        font-size: 26px;
    }

    .about-section p {
        font-size: 16px;
    }

    .brand-intro h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

