/* ===========================
   天堂私服遊戲級首頁樣式
   Lineage Private Server Game-Style Homepage
   =========================== */

/* ===========================
   遊戲風格變數
   =========================== */
:root {
        /* 金屬質感色彩 */
        --lineage-gold: #d4a849;
        --lineage-gold-light: #f0d080;
        --lineage-gold-dark: #8b6914;
        --lineage-silver: #c0c0c0;
        --lineage-bronze: #cd7f32;

        /* 魔法藍光 */
        --magic-blue: #4fc3f7;
        --magic-blue-glow: rgba(79, 195, 247, 0.6);

        /* 暗黑背景 */
        --dark-obsidian: #0d1117;
        --dark-slate: #161b22;
        --dark-panel: rgba(22, 27, 34, 0.85);

        /* 邊框發光 */
        --border-glow: rgba(212, 168, 73, 0.4);
}

/* ===========================
   遊戲風格框體
   =========================== */
.game-frame {
        position: relative;
        background: var(--dark-panel);
        border: 2px solid var(--lineage-gold-dark);
        border-radius: 4px;
        box-shadow:
                inset 0 0 30px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(212, 168, 73, 0.15);
        overflow: hidden;
}

/* Hero 影片背景 */
.hero-video-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        object-fit: cover; /* 如果希望完整顯示影片不裁切，可改為 contain */
}

.hero-video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom,
                        rgba(13, 17, 23, 0.3) 0%,
                        rgba(13, 17, 23, 0.6) 50%,
                        rgba(13, 17, 23, 0.8) 100%);
        z-index: 1;
}

.welcome-banner .banner-content {
        position: relative;
        z-index: 10;
}

.welcome-banner .particle-layer {
        z-index: 5;
}

.welcome-banner .corner {
        z-index: 15;
}

.game-frame::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border: 1px solid rgba(212, 168, 73, 0.3);
        border-radius: 6px;
        pointer-events: none;
}

/* 角落裝飾 */
.game-frame .corner {
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid var(--lineage-gold);
}

.game-frame .corner-tl {
        top: -2px;
        left: -2px;
        border-right: none;
        border-bottom: none;
}

.game-frame .corner-tr {
        top: -2px;
        right: -2px;
        border-left: none;
        border-bottom: none;
}

.game-frame .corner-bl {
        bottom: -2px;
        left: -2px;
        border-right: none;
        border-top: none;
}

.game-frame .corner-br {
        bottom: -2px;
        right: -2px;
        border-left: none;
        border-top: none;
}

/* ===========================
   遊戲級標題
   =========================== */
.game-title {
        font-family: 'Times New Roman', serif;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 3px;
        background: linear-gradient(180deg,
                        var(--lineage-gold-light) 0%,
                        var(--lineage-gold) 40%,
                        var(--lineage-gold-dark) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.game-title::after {
        content: '';
        display: block;
        width: 60%;
        height: 2px;
        margin: 0.5rem auto 0;
        background: linear-gradient(90deg, transparent, var(--lineage-gold), transparent);
}

/* ===========================
   首頁雙欄版面
   =========================== */
.homepage-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
        padding: 1rem;
}

@media (max-width: 1024px) {
        .homepage-layout {
                grid-template-columns: 1fr;
        }
}

/* 主區塊 */
.main-zone {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
}

/* 側邊欄 */
.sidebar-zone {
        display: flex;
        flex-direction: column;
        gap: 1rem;
}

/* ===========================
   伺服器狀態面板
   =========================== */
.server-status-panel {
        padding: 1rem;
}

.server-status-panel .panel-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1rem;
        color: var(--lineage-gold);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(212, 168, 73, 0.3);
}

.server-status-panel .status-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #22c55e;
        box-shadow: 0 0 10px #22c55e;
        animation: pulse-status 2s infinite;
}

@keyframes pulse-status {

        0%,
        100% {
                opacity: 1;
                box-shadow: 0 0 10px #22c55e;
        }

        50% {
                opacity: 0.7;
                box-shadow: 0 0 20px #22c55e, 0 0 30px #22c55e;
        }
}

.server-status-panel .status-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
}

.server-status-panel .status-row:last-child {
        border-bottom: none;
}

.server-status-panel .status-label {
        color: rgba(255, 255, 255, 0.6);
}

.server-status-panel .status-value {
        color: var(--magic-blue);
        font-weight: 600;
}

.server-status-panel .status-value.online {
        color: #22c55e;
}

/* ===========================
   功能入口按鈕（替代 emoji 卡片）
   =========================== */
.action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
}

.action-btn {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: linear-gradient(135deg, rgba(30, 35, 45, 0.9), rgba(20, 25, 35, 0.9));
        border: 1px solid rgba(212, 168, 73, 0.3);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
}

.action-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(212, 168, 73, 0.1), transparent);
        transition: left 0.5s ease;
}

.action-btn:hover {
        border-color: var(--lineage-gold);
        transform: translateX(5px);
        box-shadow:
                0 0 20px rgba(212, 168, 73, 0.2),
                inset 0 0 20px rgba(212, 168, 73, 0.05);
}

.action-btn:hover::before {
        left: 100%;
}

.action-btn .btn-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--lineage-gold-dark), var(--lineage-gold));
        border-radius: 4px;
        font-size: 1.2rem;
        color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.action-btn .btn-text {
        flex: 1;
}

.action-btn .btn-text h4 {
        color: #fff;
        font-size: 1rem;
        margin-bottom: 0.25rem;
}

.action-btn .btn-text p {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.8rem;
        margin: 0;
}

.action-btn .btn-arrow {
        color: var(--lineage-gold);
        font-size: 1.25rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
}

.action-btn:hover .btn-arrow {
        opacity: 1;
        transform: translateX(0);
}

/* ===========================
   公告面板
   =========================== */
.announcement-panel {
        padding: 1.5rem;
}

.announcement-panel .panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(212, 168, 73, 0.3);
}

.announcement-panel .panel-header h3 {
        font-size: 1.1rem;
        color: var(--lineage-gold);
        display: flex;
        align-items: center;
        gap: 0.5rem;
}

.announcement-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
}

.announcement-item {
        display: flex;
        gap: 1rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-left: 3px solid var(--lineage-gold);
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: all 0.3s ease;
}

.announcement-item:hover {
        background: rgba(212, 168, 73, 0.1);
        transform: translateX(5px);
}

.announcement-item .date {
        flex-shrink: 0;
        text-align: center;
        padding: 0.5rem;
        background: rgba(212, 168, 73, 0.15);
        border-radius: 4px;
        min-width: 50px;
}

.announcement-item .date .day {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--lineage-gold);
        line-height: 1;
}

.announcement-item .date .month {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.5);
        text-transform: uppercase;
}

.announcement-item .content h4 {
        color: #fff;
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
}

.announcement-item .content p {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.8rem;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.announcement-item .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 2px;
        margin-top: 0.5rem;
        display: inline-block;
}

.announcement-item .tag.event {
        background: rgba(79, 195, 247, 0.2);
        color: var(--magic-blue);
}

.announcement-item .tag.update {
        background: rgba(34, 197, 94, 0.2);
        color: #22c55e;
}

.announcement-item .tag.important {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
}

/* ===========================
   快速連結
   =========================== */
.quick-links {
        padding: 1rem;
}

.quick-links .links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
}

.quick-link-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 0.5rem;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
}

.quick-link-item:hover {
        border-color: var(--lineage-gold);
        background: rgba(212, 168, 73, 0.1);
        transform: translateY(-3px);
}

.quick-link-item .link-icon {
        font-size: 1.5rem;
        color: var(--lineage-gold);
}

.quick-link-item span {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
}

/* ===========================
   歡迎橫幅
   =========================== */
.welcome-banner {
        position: relative;
        padding: 3rem 2rem;
        text-align: center;
        border-radius: 4px;
        overflow: hidden;
}

.welcome-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
                radial-gradient(ellipse at center, transparent 0%, rgba(13, 17, 23, 0.9) 100%);
        pointer-events: none;
}

.welcome-banner .banner-content {
        position: relative;
        z-index: 2;
}

.welcome-banner h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
}

.welcome-banner .subtitle {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 2rem;
}

.welcome-banner .cta-group {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
}

/* 主要 CTA 按鈕 */
.btn-primary-game {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1a1a1a;
        background: linear-gradient(180deg,
                        var(--lineage-gold-light) 0%,
                        var(--lineage-gold) 50%,
                        var(--lineage-gold-dark) 100%);
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
        box-shadow:
                0 4px 15px rgba(212, 168, 73, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary-game::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease;
}

.btn-primary-game:hover {
        transform: translateY(-2px);
        box-shadow:
                0 6px 25px rgba(212, 168, 73, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary-game:hover::before {
        left: 150%;
}

/* 次要按鈕 */
.btn-secondary-game {
        padding: 1rem 2rem;
        font-size: 1rem;
        color: var(--lineage-gold);
        background: transparent;
        border: 1px solid var(--lineage-gold);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
}

.btn-secondary-game:hover {
        background: rgba(212, 168, 73, 0.1);
        box-shadow: 0 0 20px rgba(212, 168, 73, 0.2);
}

/* ===========================
   SVG 圖示（替代 Emoji）
   =========================== */
.icon-calendar {
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-dice {
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18zm0-9C6.67 9 6 8.33 6 7.5S6.67 6 7.5 6 9 6.67 9 7.5 8.33 9 7.5 9zm4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm0-9c-.83 0-1.5-.67-1.5-1.5S15.67 6 16.5 6s1.5.67 1.5 1.5S17.33 9 16.5 9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-event {
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-megaphone {
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M18 11v2h4v-2h-4zm-2 6.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61zM20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4zM4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9H4zm11.5 3c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-gamepad {
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4-3c-.83 0-1.5-.67-1.5-1.5S18.67 9 19.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===========================
   響應式調整
   =========================== */
@media (max-width: 768px) {
        .welcome-banner h1 {
                font-size: 1.75rem;
        }

        .quick-links .links-grid {
                grid-template-columns: repeat(4, 1fr);
        }

        .quick-link-item {
                padding: 0.75rem 0.25rem;
        }

        .quick-link-item span {
                font-size: 0.7rem;
        }
}

/* ===========================
   頁尾
   =========================== */
.game-footer {
        margin-top: 2rem;
        padding: 2rem 1rem;
        background: rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(212, 168, 73, 0.3);
        text-align: center;
}

.game-footer .footer-brand {
        font-size: 1.25rem;
        color: var(--lineage-gold);
        margin-bottom: 0.5rem;
}

.game-footer .footer-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
}

.game-footer .footer-links a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
}

.game-footer .footer-links a:hover {
        color: var(--lineage-gold);
}

.game-footer .footer-copyright {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.8rem;
}

.game-footer .footer-disclaimer {
        color: rgba(255, 255, 255, 0.3);
        font-size: 0.7rem;
        margin-top: 0.5rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
}

/* ===========================
   遊戲風格導航列
   =========================== */
.navbar {
        background: linear-gradient(180deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
        border-bottom: 2px solid var(--lineage-gold-dark);
        box-shadow:
                0 4px 20px rgba(0, 0, 0, 0.5),
                inset 0 -1px 0 rgba(212, 168, 73, 0.2);
}

.nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1rem;
}

.navbar::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,
                        transparent 0%,
                        var(--lineage-gold) 20%,
                        var(--lineage-gold-light) 50%,
                        var(--lineage-gold) 80%,
                        transparent 100%);
        opacity: 0.5;
}

.nav-brand {
        text-decoration: none !important;
        display: flex;
        align-items: center;
        white-space: nowrap !important;
}

.nav-brand:hover {
        text-decoration: none !important;
}

.nav-brand .brand-text {
        font-family: 'Times New Roman', serif;
        font-size: 1.4rem;
        font-weight: bold;
        background: linear-gradient(180deg,
                        var(--lineage-gold-light) 0%,
                        var(--lineage-gold) 50%,
                        var(--lineage-gold-dark) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.nav-brand .game-title {
        font-family: 'Times New Roman', serif;
        font-size: 2rem;
        font-weight: bold;
        white-space: nowrap !important;
        background: linear-gradient(180deg,
                        #fff 0%,
                        var(--lineage-gold) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
}

.nav-item {
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
        position: relative;
}

.nav-item::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--lineage-gold);
        transition: all 0.3s ease;
        transform: translateX(-50%);
}

.nav-item:hover {
        color: var(--lineage-gold);
        background: rgba(212, 168, 73, 0.1);
}

.nav-item:hover::before {
        width: 80%;
}

.nav-item.active {
        color: var(--lineage-gold);
        background: rgba(212, 168, 73, 0.15);
}

.nav-item.active::before {
        width: 80%;
}

/* 導航列登入按鈕 */
.nav-user .btn-primary {
        background: linear-gradient(180deg,
                        var(--lineage-gold-light) 0%,
                        var(--lineage-gold) 50%,
                        var(--lineage-gold-dark) 100%);
        color: #1a1a1a;
        font-weight: 600;
        border: none;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
        box-shadow:
                0 2px 8px rgba(212, 168, 73, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-user .btn-primary:hover {
        box-shadow:
                0 4px 15px rgba(212, 168, 73, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-user .btn-outline {
        border-color: var(--lineage-gold-dark);
        color: var(--lineage-gold);
}

.nav-user .btn-outline:hover {
        background: rgba(212, 168, 73, 0.1);
        border-color: var(--lineage-gold);
}

.nav-user .btn-admin {
        background: linear-gradient(135deg, #c9302c 0%, #8b0000 100%);
        border: 1px solid #ff4444;
        color: #fff;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        transition: all 0.3s ease;
}

.nav-user .btn-admin:hover {
        background: linear-gradient(135deg, #d9534f 0%, #a00000 100%);
        border-color: #ff6666;
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

/* ===========================
   論壇預覽區樣式
   =========================== */
.forum-preview {
        display: flex;
        flex-direction: column;
        padding: 1.25rem;
        min-height: 350px;
}

.forum-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(212, 168, 73, 0.3);
}

.forum-header h3 {
        color: var(--lineage-gold);
        font-size: 1.1rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
}

.forum-header .view-all-link {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.3s ease;
}

.forum-header .view-all-link:hover {
        color: var(--lineage-gold);
}

/* 論壇分類標籤 */
.forum-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
}

.forum-category-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
}

.forum-category-tab:hover,
.forum-category-tab.active {
        color: var(--lineage-gold);
        border-color: var(--lineage-gold);
        background: rgba(212, 168, 73, 0.1);
}

.forum-category-tab .cat-icon {
        margin-right: 0.25rem;
}

.forum-category-tab .post-count {
        margin-left: 0.3rem;
        font-size: 0.7rem;
        opacity: 0.6;
}

/* 論壇帖子列表 */
.forum-posts {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
}

.forum-post-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.25);
        border-left: 3px solid transparent;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: all 0.25s ease;
}

.forum-post-item:hover {
        background: rgba(212, 168, 73, 0.08);
        border-left-color: var(--lineage-gold);
        transform: translateX(3px);
}

.forum-post-item.pinned {
        border-left-color: var(--magic-blue);
        background: rgba(79, 195, 247, 0.05);
}

.forum-post-item.pinned:hover {
        border-left-color: var(--magic-blue);
        background: rgba(79, 195, 247, 0.1);
}

.forum-post-item .post-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
        width: 28px;
        text-align: center;
}

.forum-post-item .post-content {
        flex: 1;
        min-width: 0;
}

.forum-post-item .post-title {
        color: #fff;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.forum-post-item .post-title .pin-badge {
        display: inline-block;
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
        background: var(--magic-blue);
        color: #fff;
        border-radius: 2px;
        margin-right: 0.4rem;
        vertical-align: middle;
}

.forum-post-item .post-summary {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.forum-post-item .post-meta {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.35rem;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.4);
}

.forum-post-item .post-meta .category-name {
        color: var(--lineage-gold);
}

.forum-post-item .view-count {
        display: flex;
        align-items: center;
        gap: 0.2rem;
}

/* 載入中狀態 */
.loading-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100px;
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.9rem;
}

/* 無資料狀態 */
.empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 120px;
        color: rgba(255, 255, 255, 0.4);
        text-align: center;
}

.empty-state .empty-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        opacity: 0.5;
}

.empty-state p {
        font-size: 0.85rem;
        margin: 0;
}

/* ===========================
   下載按鈕樣式 (替代 Grid Item)
   =========================== */
.download-btn-wrapper {
        padding: 0 !important;
        overflow: hidden;
        background: none !important;
        border: none !important;
        display: block !important;
}

.download-btn-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        transition: all 0.3s ease;
        border: 1px solid rgba(212, 168, 73, 0.3);
}

.download-btn-wrapper:hover .download-btn-img {
        transform: scale(1.05);
        border-color: var(--lineage-gold);
        box-shadow: 0 0 15px rgba(212, 168, 73, 0.5);
}

.big-action-btn {
        display: block;
        transition: all 0.3s ease;
}

.big-action-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.2);
}

.big-action-btn img {
        border: 1px solid rgba(212, 168, 73, 0.3) !important;
}

.big-action-btn:hover img {
        border-color: var(--lineage-gold) !important;
        box-shadow: 0 0 20px rgba(212, 168, 73, 0.6) !important;
}

/* ===========================
   排行榜樣式
   =========================== */
.ranking-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
}

.ranking-item {
        display: flex;
        align-items: center;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 4px;
        border: 1px solid transparent;
        transition: all 0.2s;
}

.ranking-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(212, 168, 73, 0.3);
}

.rank-badge {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #333;
        color: #fff;
        border-radius: 50%;
        font-size: 0.8rem;
        font-weight: bold;
        margin-right: 0.75rem;
}

.ranking-item.top-1 .rank-badge {
        background: linear-gradient(135deg, #FFD700, #FDB931);
        color: #000;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.ranking-item.top-2 .rank-badge {
        background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
        color: #000;
}

.ranking-item.top-3 .rank-badge {
        background: linear-gradient(135deg, #CD7F32, #A0522D);
        color: #fff;
}

.rank-info {
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
}

.rank-name {
        color: #fff;
        font-weight: 500;
}

.rank-level {
        color: var(--lineage-gold);
        font-weight: bold;
        font-size: 0.9rem;
}

.rank-class {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
        margin-right: 0.5rem;
}

/* ===========================
   增強手機響應式設計
   =========================== */
@media (max-width: 768px) {

        /* 導航列優化 */
        .navbar {
                flex-direction: column;
                padding: 0.75rem 1rem;
                gap: 0.5rem;
        }

        .nav-brand {
                width: 100%;
                justify-content: center;
                margin-bottom: 0.25rem;
        }

        .nav-menu {
                width: 100%;
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 0.25rem;
                padding-bottom: 0.5rem;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
        }

        .nav-menu::-webkit-scrollbar {
                display: none;
        }

        .nav-item {
                flex-shrink: 0;
                padding: 0.4rem 0.7rem;
                font-size: 0.85rem;
        }

        .nav-user {
                width: 100%;
                justify-content: center;
        }

        /* 首頁版面 */
        .homepage-layout {
                grid-template-columns: 1fr;
                padding: 0.75rem;
                gap: 1rem;
        }

        .sidebar-zone {
                order: -1;
        }

        /* 歡迎橫幅 */
        .welcome-banner {
                padding: 2rem 1rem;
        }

        .welcome-banner h1,
        .welcome-banner .game-title {
                font-size: 1.5rem !important;
        }

        .welcome-banner .subtitle {
                font-size: 0.9rem;
                margin-bottom: 1.5rem;
        }

        .welcome-banner .cta-group {
                flex-direction: column;
                gap: 0.75rem;
        }

        .btn-primary-game,
        .btn-secondary-game {
                width: 100%;
                padding: 0.8rem 1.5rem;
        }

        /* 伺服器狀態面板 */
        .server-status-panel {
                padding: 0.75rem;
        }

        /* 快速連結按鈕 */
        .quick-links-panel {
                padding: 0.5rem !important;
        }

        .big-action-btn img {
                width: 100% !important;
        }

        /* 論壇預覽區 */
        .forum-preview {
                min-height: auto;
                padding: 1rem;
        }

        /* 頁尾 */
        .game-footer {
                padding: 1.5rem 1rem;
        }

        .game-footer .footer-links {
                flex-direction: column;
                gap: 0.75rem;
        }

        .game-footer .footer-links a {
                display: block;
                padding: 0.5rem;
        }

        /* 遊戲區 */
        .games-container {
                padding: 1rem !important;
        }

        .games-grid {
                grid-template-columns: 1fr !important;
        }

        .page-header h1 {
                font-size: 1.5rem !important;
        }
}

/* 小型手機額外調整 */
@media (max-width: 480px) {
        .nav-brand .brand-text {
                font-size: 1.1rem;
        }

        .nav-item {
                padding: 0.35rem 0.5rem;
                font-size: 0.8rem;
        }

        .welcome-banner h1,
        .welcome-banner .game-title {
                font-size: 1.3rem !important;
                letter-spacing: 1px;
        }

        .server-status-panel .panel-title {
                font-size: 0.9rem;
        }

        .server-status-panel .status-row {
                font-size: 0.8rem;
        }
}