/*
Theme Name: MC Simple - 简约大气
Theme URI: https://mcserver.com
Author: MC Server
Author URI: https://mcserver.com
Description: 简约大气风格的Minecraft服务器官网主题，支持后台设置、玩家画廊、指令查询等功能
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mc-simple
Tags: minecraft, gaming, responsive
*/

/* =Reset
-------------------------------------------------------------- */
*, *:before, *:after {
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =Variables
-------------------------------------------------------------- */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --dark: #111827;
    --dark-secondary: #1f2937;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* =Base
-------------------------------------------------------------- */
body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

#page {
    padding-bottom: 200px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* =Layout
-------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =Scroll Background
-------------------------------------------------------------- */
.mc-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 图片背景 - 淡入淡出效果 */
.mc-bg-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

.mc-bg-container img.active {
    opacity: 0.5;
}

/* 单张图片直接显示 */
.mc-bg-container:not(.mc-bg-carousel) img {
    opacity: 0.5;
    position: static;
}

/* 视频背景 - 固定不滚动 */
.mc-bg-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.mc-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.98) 100%);
    z-index: -1;
}

.mc-bg-container.has-video + .mc-bg-overlay {
    background: linear-gradient(180deg, rgba(17,24,39,0.85) 0%, rgba(31,41,55,0.9) 100%);
}

.mc-bg-container.has-video + .mc-bg-overlay + * {
    color: #000000;
}

.mc-bg-container.has-video + .mc-bg-overlay + * a {
    color: var(--primary-light);
}

.mc-bg-container.has-video + .mc-bg-overlay + * .section-header h2,
.mc-bg-container.has-video + .mc-bg-overlay + * .hero h1 {
    color: #fff;
}

.mc-bg-container.has-video + .mc-bg-overlay + * .section-header p,
.mc-bg-container.has-video + .mc-bg-overlay + * .hero p {
    color: rgba(255,255,255,0.8);
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.main-navigation a {
    color: var(--gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =Buttons
-------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* =User Menu
-------------------------------------------------------------- */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
}

.user-menu-toggle:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.user-menu-toggle .user-name {
    font-weight: 600;
}

.user-menu-toggle .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.user-menu-toggle .header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.user-menu-toggle.active .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background: var(--gray-bg);
    color: var(--primary);
}

.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* =Login Modal
-------------------------------------------------------------- */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.login-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.login-modal-overlay.show .login-modal {
    transform: scale(1);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.login-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 600;
}

.login-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-close:hover {
    background: var(--gray-bg);
    color: var(--dark);
}

#login-form {
    padding: 1.5rem 2rem 2rem;
}

.login-field {
    margin-bottom: 1.25rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.login-field input[type="text"],
.login-field input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.login-field input[type="text"]:focus,
.login-field input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Captcha */
.captcha-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.captcha-row input[type="text"] {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.25rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 120px;
}

.captcha-row input[type="text"]::placeholder {
    font-size: 0.875rem;
    font-weight: normal;
    color: var(--gray-light);
    letter-spacing: normal;
}

#captcha-canvas {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--gray-bg);
    flex-shrink: 0;
}

.captcha-refresh {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-remember label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: normal;
    font-size: 0.875rem;
    color: var(--gray);
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
}

.login-links a {
    color: var(--gray);
    text-decoration: none;
}

.login-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.login-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: none;
}

.login-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.login-message.show {
    display: block;
}

/* =Toast Notification
-------------------------------------------------------------- */
.mc-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    padding: 0.65rem 1.4rem 0.65rem 1rem;
    font-size: 0.9rem;
    color: #065f46;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(16,185,129,0.12) inset;
    white-space: nowrap;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mc-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mc-toast .toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.mc-toast .toast-text {
    color: #1f2937;
    font-size: 0.9rem;
}

.mc-toast .toast-text strong {
    color: #10b981;
    font-weight: 600;
}

/* =Hero Section
-------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 1.5rem 80px;
}

/* Hero 区域整体布局 */
.hero-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

/* 主内容区域 */
.hero-section .hero-content {
    width: 100%;
    text-align: center;
}

/* 状态卡片 - 横向排列 */
.hero-status-top {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* IP + 计时条同行 */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Hero 标题渐变动画 */
@keyframes hero-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title-gradient {
    background: linear-gradient(
        120deg,
        #ffffff  0%,
        #93c5fd 18%,
        #818cf8 36%,
        #34d399 54%,
        #67e8f9 72%,
        #a78bfa 90%,
        #ffffff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-gradient-shift 6s ease infinite;
    filter: drop-shadow(0 2px 16px rgba(99,102,241,0.22));
}

/* 服务器正计时 —— 轻量文字风格，置于 H1 下方 */
.server-uptime-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.server-uptime-bar i {
    color: rgba(74, 222, 128, 0.85);
    font-size: 0.8rem;
    animation: pulse-green 2.5s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.uptime-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    margin-right: 0.1rem;
}

.uptime-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    font-variant-numeric: tabular-nums;
}

.uptime-unit {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 1.5ch;
    text-align: right;
    font-family: var(--font-mono);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.uptime-counter em {
    font-style: normal;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.3rem;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* =Server Status
-------------------------------------------------------------- */
.server-status-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px;
    flex: 1;
    max-width: 160px;
}

.server-status-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.server-status-card .status-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.server-status-card .status-icon.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.server-status-card .status-icon.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.server-status-card .status-info .label {
    font-size: 0.75rem;
    color: var(--gray);
}

.server-status-card .status-info .value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--success);
}

.server-status-card .status-info .value.offline {
    color: var(--danger);
}

/* =QQ Group Card - 和 server-status-card 保持一致
-------------------------------------------------------------- */
.qq-group-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px;
    flex: 1;
    max-width: 160px;
}

.qq-group-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.qq-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(24, 144, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
    font-size: 1.25rem;
}

.qq-card-info {
    text-align: left;
}

.qq-card-label {
    font-size: 0.75rem;
    color: var(--gray);
}

.qq-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.qq-card-arrow {
    color: #d1d5db;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* =IP Box
-------------------------------------------------------------- */
.ip-box {
    display: inline-flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ip-box input {
    padding: 0.75rem 1.25rem;
    border: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary);
    background: transparent;
    width: 250px;
}

.ip-box input:focus {
    outline: none;
}

.ip-box .copy-btn {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.ip-box .copy-btn:hover {
    background: var(--primary-dark);
}

/* =Section
-------------------------------------------------------------- */
.section {
    padding: 5rem 0;
}


.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header .line {
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* =Features Grid
-------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 滚动入场动画 */
.feature-card,
.changelog-item,
.download-card,
.gallery-item,
.command-card {

}
.feature-card:hover { transform: translateY(-4px); }
.aos-visible { opacity: 1 !important; transform: translateY(0) !important; }

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* =Changelog
-------------------------------------------------------------- */
.changelog-list {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.changelog-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-item:hover {
    background: var(--gray-bg);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.changelog-version {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.changelog-date {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.changelog-item ul {
    padding-left: 1.25rem;
    color: var(--gray);
}

.changelog-item li {
    margin-bottom: 0.375rem;
}

/* =Game Modes Tabs
-------------------------------------------------------------- */
.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.game-tab {
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--gray);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.game-tab:hover,
.game-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.game-content {
    display: none;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.game-content.active {
    display: block;
}

.game-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.game-content p {
    color: var(--gray);
    line-height: 1.8;
}

/* =Gallery
-------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.gallery-filter {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--gray);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter:hover,
.gallery-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.gallery-item .gallery-info {
    padding: 1rem;
}

.gallery-item .gallery-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-item .gallery-author {
    font-size: 0.875rem;
    color: var(--gray);
}

/* =Commands
-------------------------------------------------------------- */
.command-search {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    transition: var(--transition);
}

.command-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.command-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.command-table table {
    width: 100%;
    border-collapse: collapse;
}

.command-table th {
    background: var(--gray-bg);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}

.command-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.command-table tr:last-child td {
    border-bottom: none;
}

.command-table tr:hover {
    background: var(--gray-bg);
}

.command-table code {
    background: var(--gray-bg);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary);
}

.permission-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.permission-all {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.permission-vip {
    background: rgba(245, 158, 10, 0.1);
    color: var(--warning);
}

.permission-op {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.copy-btn-small {
    padding: 0.375rem 0.75rem;
    background: var(--gray-bg);
    border: none;
    border-radius: var(--radius);
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn-small:hover {
    background: var(--primary);
    color: var(--white);
}

/* =Rules
-------------------------------------------------------------- */
.rules-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.rules-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.rules-box h3 {
    color: var(--primary);
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
}

.rules-box h3:first-child {
    margin-top: 0;
}

.rules-box ul {
    padding-left: 1.25rem;
    color: var(--gray);
}

.rules-box li {
    margin-bottom: 0.5rem;
}

/* =Downloads
-------------------------------------------------------------- */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.download-card .download-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-card .download-info {
    flex: 1;
}

.download-card .download-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.download-card .download-info p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.download-card .download-info .version {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

/* =Leaderboard
-------------------------------------------------------------- */
.leaderboard-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leaderboard-header {
    background: var(--gray-bg);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-header h3 {
    font-size: 1.125rem;
    margin: 0;
}

.leaderboard-list {
    padding: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: var(--gray-bg);
}

.leaderboard-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
}

.leaderboard-rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.leaderboard-rank.rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #fff;
}

.leaderboard-rank.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.leaderboard-rank.rank-other {
    background: var(--gray-bg);
    color: var(--gray);
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.leaderboard-player img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gray-bg);
}

.leaderboard-player .player-name {
    font-weight: 500;
}

.leaderboard-player .player-level {
    font-size: 0.75rem;
    color: var(--gray);
}

.leaderboard-score {
    color: var(--primary);
    font-weight: 600;
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background: var(--white);
    padding: 1.5rem 0 1rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* =WordPress Specific
-------------------------------------------------------------- */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

/* =Responsive
-------------------------------------------------------------- */

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航菜单 */
.main-navigation.mobile-open {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: block !important;
    padding: 80px 1.5rem 2rem;
    overflow-y: auto;
}

.main-navigation.mobile-open.active {
    right: 0;
}

.main-navigation.mobile-open #primary-menu {
    flex-direction: column;
    gap: 0.5rem;
}

.main-navigation.mobile-open #primary-menu li {
    width: 100%;
}

.main-navigation.mobile-open #primary-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--dark);
}

.main-navigation.mobile-open #primary-menu a:hover {
    background: var(--gray-bg);
    color: var(--primary);
}

.main-navigation.mobile-open .nav-dynmap {
    margin-top: 1rem;
    display: block;
    padding: 0.75rem 1rem;
    background: var(--gray-bg);
    border-radius: var(--radius);
    text-align: center;
}

/* 遮罩层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端认证菜单（默认隐藏） */
.mobile-auth-menu {
    display: none;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-auth-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--dark);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.mobile-auth-item:hover {
    background: var(--gray-bg);
    color: var(--primary);
}

.mobile-auth-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.mobile-login-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-login-btn:hover {
    background: var(--primary-dark);
}

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .main-navigation.mobile-open .mobile-auth-menu {
        display: block;
    }

    /* Hero 区域 */
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-status-top {
        gap: 0.5rem;
    }

    .ip-box {
        padding: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .footer-content {
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    /* Header适配 */
    .site-header {
        padding: 0 1rem;
    }
    
    .site-branding .site-title {
        font-size: 1.5rem;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .user-menu .user-menu-toggle {
        padding: 0.4rem 0.75rem;
    }
}

/* 手机设备 (< 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .main-navigation.mobile-open .mobile-auth-menu {
        display: block;
    }

    /* Hero 区域 */
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-status-top {
        gap: 0.5rem;
    }

    .hero-status-top .server-status-card {
        padding: 0.6rem 0.875rem;
    }

    .hero-status-top .server-status-card .status-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .hero-status-top .server-status-card .status-info .value {
        font-size: 1rem;
    }

    .server-uptime-bar {
        font-size: 0.8rem;
        padding: 0;
        gap: 0.35rem;
        justify-content: center;
    }

    .uptime-unit {
        font-size: 0.875rem;
    }

    .qq-group-card {
        padding: 0.6rem 0.875rem;
        gap: 0.5rem;
    }

    .qq-card-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .qq-card-value {
        font-size: 0.9rem;
    }

    .ip-box {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        padding: 1rem;
    }

    .ip-box input {
        width: 100%;
        text-align: center;
    }

    .ip-box .copy-btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .command-table {
        overflow-x: auto;
    }

    .command-table table {
        min-width: 600px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* 通用组件适配 */
    .container,
    .section-container {
        padding: 0 1rem;
    }
    
    /* 按钮触摸优化 */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    /* 表单元素优化 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 卡片间距优化 */
    .card,
    .feature-card,
    .gallery-item,
    .download-item {
        margin-bottom: 1rem;
    }
    
    /* Header移动端优化 */
    .site-header {
        padding: 0 0.75rem;
        height: 60px;
    }
    
    .site-branding .site-title {
        font-size: 1.25rem;
    }
    
    .site-branding .site-description {
        display: none;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .login-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .user-menu .user-menu-toggle {
        padding: 0.3rem 0.5rem;
    }
    
    .header-user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu-dropdown {
        right: 0.5rem;
        min-width: 160px;
    }
}

/* =Admin Settings Page
-------------------------------------------------------------- */
.mc-admin-wrap {
    max-width: 100%;
    margin: 20px 20px 0 0;
}

.mc-admin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.mc-admin-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mc-admin-field {
    margin-bottom: 1.5rem;
}

.mc-admin-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.mc-admin-field input[type="text"],
.mc-admin-field input[type="url"],
.mc-admin-field input[type="number"],
.mc-admin-field textarea,
.mc-admin-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.mc-admin-field textarea {
    min-height: 100px;
}

.mc-admin-field .description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.mc-admin-field input[type="checkbox"] {
    margin-right: 8px;
}

.mc-admin-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.mc-admin-btn:hover {
    background: #1d4ed8;
}
