/* 手機版專屬樣式 - phone.css */

/* ========== 全局樣式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.phone-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft JhengHei", sans-serif;
    background: url('../images/background.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========== 頂部導航欄 ========== */
.phone-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.phone-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    gap: 10px;
}

.phone-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.phone-logo img {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.phone-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.phone-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.phone-online {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4a5568;
    padding: 6px 8px;
    background: #f7fafc;
    border-radius: 20px;
    white-space: nowrap;
}

.phone-online i {
    color: #48bb78;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.phone-user-btn,
.phone-login-btn {
    min-width: 68px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #5545b9 0%, #68428c 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.phone-user-btn:active,
.phone-login-btn:active {
    transform: scale(0.95);
}

.phone-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 12px 16px;
}

.phone-search i {
    color: #a0aec0;
    font-size: 16px;
}

.phone-search input {
    flex: 1;
    border: none;
    background: #f7fafc;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: background 0.2s;
}

.phone-search input:focus {
    background: #edf2f7;
}

/* ========== 主要內容區 ========== */
.phone-main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    max-width: 100vw;
    overflow-x: hidden;
}

.phone-intro {
    margin: 8px 16px 0;
    padding: 8px 10px;
    background: #fffaf0;
    border: 1px solid #d8bc7a;
    border-radius: 8px;
    color: #372b45;
}

.phone-intro h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.phone-intro p {
    font-size: 13px;
    line-height: 1.5;
    color: #514358;
}

.phone-intro + .phone-shortcuts {
    margin-top: 8px;
}

/* ========== Hero 橫幅 ========== */
.phone-hero {
    margin-bottom: 16px;
}

.home-hero-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.phone-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.home-hero-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 215, 0, 0.95);
    color: #2d3748;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ========== 即時數據 ========== */
.phone-stats {
    margin: 16px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.phone-stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.live-stats-pulse {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.live-stats-badge {
    font-size: 14px;
    font-weight: 700;
    color: #5545a4;
    letter-spacing: 0.5px;
}

.phone-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.phone-stat-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.phone-stat-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.phone-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    transition: transform 0.2s ease;
}

.phone-stat-label {
    font-size: 12px;
    color: #718096;
    text-align: center;
}

.phone-stat-regedit i {
    color: #667eea;
}

.phone-stat-character i {
    color: #f093fb;
}

.phone-stat-discord i {
    color: #5865f2;
}

.phone-stat-messages i {
    color: #48bb78;
}

/* 快捷區內全寬區塊（Hero、即時數據） */
.phone-shortcuts-full {
    width: 100%;
    flex: 0 0 100%;
}

.phone-shortcuts-full .phone-hero {
    margin-bottom: 0;
}

.phone-shortcuts-full .home-hero-media {
    border-radius: 12px;
}

.phone-shortcuts-full .phone-stats {
    margin: 0;
}

/* 即時數據：單排四欄 */
.phone-stats--row {
    padding: 12px;
}

.phone-stats--row .phone-stats-header {
    margin-bottom: 8px;
    gap: 8px;
}

.phone-stats--row .live-stats-badge {
    font-size: 12px;
}

.phone-stats--row .phone-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.phone-stats--row .phone-stat-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 2px;
    gap: 2px;
    border-radius: 10px;
    box-shadow: none;
    background: #f7fafc;
}

.phone-stats--row .phone-stat-item i {
    font-size: 13px;
    margin-bottom: 0;
}

.phone-stats--row .phone-stat-value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.phone-stats--row .phone-stat-label {
    font-size: 11px;
    line-height: 1.4;
    color: #526071;
    max-width: 100%;
}

/* ========== 快捷功能區 ========== */
.phone-shortcuts {
    margin: 16px;
    padding: 0;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
}

.phone-shortcuts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.phone-shortcut {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 64px;
}

/* 不同尺寸的快捷按鈕 */
.phone-shortcut-small {
    width: calc(33.33% - 7px);
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 12px 8px;
}

.phone-shortcut-small i {
    font-size: 20px;
}

.phone-shortcut-small .phone-shortcut-title {
    font-size: 13px;
}

.phone-shortcut-medium {
    width: calc(50% - 5px);
    min-height: 70px;
}

.phone-shortcut-large {
    width: 100%;
    min-height: 80px;
}

.phone-shortcut-feature {
    min-height: 92px;
    padding: 18px 20px;
}

.phone-shortcut-feature i {
    font-size: 32px;
}

.phone-shortcut-feature .phone-shortcut-title {
    font-size: 18px;
}

.phone-shortcut-feature .phone-shortcut-subtitle {
    font-size: 12px;
    letter-spacing: 0.06em;
}

.phone-shortcut-wide {
    width: calc(66.66% - 3.5px);
}

.phone-shortcut::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.phone-shortcut:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.phone-shortcut i {
    font-size: 24px;
    flex-shrink: 0;
}

.phone-shortcut-content {
    flex: 1;
    min-width: 0;
}

.phone-shortcut-title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
    font-weight: 600;
}

.phone-shortcut-subtitle {
    font-size: 12px;
    opacity: 1;
    font-weight: 400;
}

/* 顏色變體 */
.phone-shortcut-blue {
    background: linear-gradient(135deg, #5545b9 0%, #68428c 100%);
    color: white;
}

.phone-shortcut-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #3f2345;
}

.phone-shortcut-gold {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #49311c;
}

.phone-shortcut-teal {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #153c56;
}

.phone-shortcut-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #124a38;
}

.phone-shortcut-purple {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #472644;
}

.phone-shortcut-discord {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: white;
}

.phone-shortcut-red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.phone-shortcut-cyan {
    background: linear-gradient(135deg, #076f9d 0%, #174fc5 100%);
    color: white;
}

.phone-shortcut-pink {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.phone-shortcut-lime {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d3748;
}

.phone-shortcut-indigo {
    background: linear-gradient(135deg, #5542bf 0%, #4834a3 100%);
    color: white;
}

/* 註冊為主要動作，遊玩指南保留清楚的次要層級。 */
.phone-start-primary,
.phone-start-secondary {
    min-height: 44px;
    padding: 8px;
    gap: 6px;
    text-align: left;
}

.phone-start-primary {
    background: linear-gradient(135deg, #5545b9, #68428c);
    color: #fff;
}

.phone-start-secondary {
    background: #fffaf0;
    color: #4c3672;
    border: 1px solid #9173b0;
    box-shadow: 0 2px 6px rgba(61, 41, 87, 0.1);
}

.phone-start-primary .phone-shortcut-title,
.phone-start-secondary .phone-shortcut-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0;
    white-space: nowrap;
}

.phone-start-primary i,
.phone-start-secondary i {
    font-size: 16px;
}

.phone-stats-status {
    margin-top: 10px;
    color: #526071;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.phone-stats[data-state="loading"] .live-stats-pulse,
.phone-stats[data-state="error"] .live-stats-pulse,
.phone-online[data-state="loading"] i,
.phone-online[data-state="error"] i {
    color: #6b7280;
    background-color: #6b7280;
    animation: none;
}

.phone-online i {
    background-color: transparent !important;
}

.phone-stats[data-state="stale"] .live-stats-pulse,
.phone-stats[data-state="partial"] .live-stats-pulse {
    background-color: #9a651b;
    animation: none;
}

.phone-online[data-state="stale"] i {
    color: #9a651b;
    animation: none;
}

.phone-stats[data-state="error"] .phone-stats-status,
.phone-stats[data-state="stale"] .phone-stats-status,
.phone-stats[data-state="partial"] .phone-stats-status {
    color: #815117;
}

.phone-body a:focus-visible,
.phone-body button:focus-visible {
    outline: 3px solid #322050;
    outline-offset: 3px;
}

@media (max-width: 359px) {
    .phone-header-top {
        padding-right: 12px;
        padding-left: 12px;
        gap: 6px;
    }

    .phone-logo img {
        max-width: 76px;
        height: auto;
    }

    .phone-header-actions {
        gap: 6px;
    }

    .phone-online {
        font-size: 11px;
        padding: 6px;
    }


    .phone-stats--row .phone-stat-value {
        font-size: 14px;
    }

    .phone-main .home-frame {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phone-body *,
    .phone-body *::before,
    .phone-body *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ========== Discord 頻道 ========== */
.discord-section {
    margin: 0 16px 12px 16px;
}

.home-frame {
    background: #fffbf0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home-frame--cream {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
}

.home-frame--gold {
    background: #FFB72D;
    box-shadow: 0 18px 44px rgba(20, 48, 85, 0.14);
}

/* ========== 入谷贈禮 ========== */
.award-section {
    margin: 0 16px 20px 16px;
}

.award-section .home-panel-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 16px;
}

.award-section .home-panel-head-text {
    margin-bottom: 0;
}

.award-section .home-kicker {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #2D1F17;
    color: #FFF8E7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.award-section .home-panel-title {
    font-size: 22px;
    font-weight: 800;
    color: #2A2A2A;
    line-height: 1.3;
}

.award-section .home-panel-desc {
    color: #47371f;
}

.home-btn--play {
    background: linear-gradient(180deg, #854116, #71330c);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(232, 93, 4, 0.35);
    width: 100%;
    justify-content: center;
}

.home-btn--play:active {
    transform: scale(0.98);
}

.award-divider {
    margin-bottom: 12px;
    text-align: center;
}

.award-divider-img {
    max-height: 45px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.award-content {
    margin-bottom: 0;
}

.award-content-img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.home-frame-inner {
    width: 100%;
}

.phone-panel-head {
    margin-bottom: 20px;
}

.phone-panel-head-text {
    margin-bottom: 16px;
}

.home-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.home-panel-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.home-panel-desc {
    font-size: 14px;
    color: #526071;
    line-height: 1.6;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    min-height: 44px;
    line-height: 1.5;
    font-family: inherit;
}

.home-btn--discord {
    background: linear-gradient(135deg, #4b51bd 0%, #515da9 100%);
    color: white;
}

.home-btn--discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.discord-widget-wrap {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background: #2f3136;
}

/* ========== 廣告輪播區 ========== */
.phone-banner {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.phone-banner-slide {
    position: relative;
    min-height: 180px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.phone-banner-slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.phone-banner-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.phone-banner-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.phone-banner-text p {
    font-size: 13px;
    opacity: 0.9;
}

/* ========== 底部導航欄 ========== */
.phone-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 6px env(safe-area-inset-right, 0px) calc(6px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.phone-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 8px;
    text-decoration: none;
    color: #586273;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
}

.phone-nav-item i {
    font-size: 20px;
}

.phone-nav-item span {
    font-size: 12px;
    line-height: 1.4;
}

.phone-nav-item.active {
    color: #5545b9;
    font-weight: 700;
}

/* ========== 桌面版切換 ========== */
.phone-desktop-switch {
    text-align: center;
    padding: 0 16px 8px;
    margin: 0 16px 12px;
}

.phone-desktop-switch a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(45, 31, 23, 0.92);
    color: #fff8e7;
    text-decoration: none;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(45, 31, 23, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, transform 0.2s;
}

.phone-desktop-switch a:active {
    background: rgba(26, 18, 13, 0.96);
    transform: scale(0.98);
}

/* ========== 工具函數 ========== */
.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

/* 響應式調整 */
@media (min-width: 768px) {
    .phone-main {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ========== 動畫 ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-shortcut,
.phone-banner,
.phone-announcements {
    animation: slideUp 0.5s ease-out;
}

/* ========== 下載指南 Modal ========== */
.download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.download-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.download-guide-modal {
    background: linear-gradient(165deg, #8B7355 0%, #6B5644 100%);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(-30px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid #E5B842;
    overflow: hidden;
}

.download-modal-overlay.show .download-guide-modal {
    transform: scale(1) translateY(0);
}

.download-guide-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(229, 184, 66, 0.35);
}

.download-guide-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-guide-title i {
    color: #E5B842;
}

.download-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.download-modal-close:hover,
.download-modal-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.download-guide-content {
    padding: 2rem;
    color: white;
    max-height: 70vh;
    overflow-y: auto;
}

.download-guide-info {
    text-align: center;
    margin-bottom: 2rem;
}

.download-guide-info p {
    margin: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.download-guide-info strong {
    color: #E5B842;
    font-weight: 700;
}

.download-guide-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-action-item {
    text-align: center;
}

.download-action-item h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.download-action-btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-action-btn:hover,
.download-action-btn:active {
    transform: scale(1.05);
}

.download-btn-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.download-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

/* 手機版響應式調整 */
@media (max-width: 768px) {
    .download-guide-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .download-guide-header {
        padding: 1rem 1.5rem;
    }
    
    .download-guide-title {
        font-size: 1.3rem;
    }
    
    .download-guide-content {
        padding: 1.5rem;
    }
    
    .download-guide-info p {
        font-size: 0.95rem;
    }
}

/* ========== 本服理念 Modal ========== */
.philosophy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
    box-sizing: border-box;
}

.philosophy-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.philosophy-modal {
    background: linear-gradient(165deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.philosophy-modal-overlay.show .philosophy-modal {
    transform: scale(1) translateY(0);
}

.philosophy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.philosophy-modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.philosophy-modal-title i {
    color: #ffd6e8;
}

.philosophy-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.philosophy-modal-content {
    padding: 16px 18px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.philosophy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.philosophy-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.philosophy-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.philosophy-item--reject .philosophy-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.philosophy-item--accept .philosophy-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.philosophy-item p {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.65;
}

.philosophy-footer {
    margin-top: 18px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.philosophy-footer p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}

.philosophy-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #5865f2;
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.philosophy-discord-btn:active {
    transform: scale(0.98);
}
