html { background-color: #d4f0d6; }
body { margin: 0; padding: 0; width: 100%; min-height: 100vh; font-family: 'Noto Sans TC', sans-serif; background: linear-gradient(135deg, #d4f0d6 0%, #fffbe0 100%); color: #3d5a40; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.video-bg { position: fixed; top: -5vh; left: -5vw; width: 110vw; height: 110vh; object-fit: cover; object-position: center center; z-index: 0; opacity: 0.7; pointer-events: none; }
.clover-bg { position: fixed; top: -10vh; left: 0; width: 100vw; height: 120vh; pointer-events: none; z-index: 1; overflow: hidden; }
.clover { position: absolute; bottom: -50px; font-size: 24px; opacity: 0.6; animation: floatUp 15s infinite linear; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 0.6; } 100% { transform: translateY(-130vh) rotate(360deg); opacity: 0; } }
.music-toggle, .menu-toggle { position: fixed; top: 20px; width: 45px; height: 45px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; z-index: 1000; display: flex; align-items: center; justify-content: center; color: #1f4528; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.music-toggle { left: 20px; font-size: 18px; }
.menu-toggle { right: 20px; font-size: 20px; transform: translateZ(0); -webkit-transform: translateZ(0); }
.mobile-nav { position: fixed; top: 0; right: -100%; width: 260px; height: 100vh; height: 100dvh; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); z-index: 999; display: flex; flex-direction: column; padding: 70px 20px; box-sizing: border-box; transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.mobile-nav.active { right: 0; }
.mobile-nav a, .mobile-nav button { display: block; width: 100%; padding: 14px; margin-bottom: 12px; background: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; color: #2b5c38; text-decoration: none; text-align: left; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.page-container { position: relative; z-index: 10; display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 15px; box-sizing: border-box; }
.page-container.active { display: flex; }
.glass-box { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(2px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 20px; padding: 30px 40px; text-align: center; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); max-width: 800px; width: 100%; box-sizing: border-box; }
.logo-container { position: relative; display: inline-block; margin-bottom: 5px; animation: logoEnter 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, logoFloatGold 4s ease-in-out 1s infinite; }
.site-logo { max-width: 320px; width: 100%; height: auto; display: block; }
@keyframes logoFloatGold { 0% { transform: translateY(0); filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.4)); } 50% { transform: translateY(-8px); filter: drop-shadow(0 15px 25px rgba(255, 230, 80, 0.7)); } 100% { transform: translateY(0); filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.4)); } }
@keyframes logoEnter { 0% { transform: scale(0.8) translateY(-20px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.logo-shine-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-mask-image: url('logo.png'); -webkit-mask-size: 100% 100%; mask-image: url('logo.png'); mask-size: 100% 100%; pointer-events: none; z-index: 2; }
.logo-shine-layer::before { content: ''; position: absolute; top: 0; left: -100%; width: 70%; height: 100%; background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.6) 30%, rgba(255, 235, 100, 1) 50%, rgba(255, 255, 255, 0.6) 70%, transparent 100%); transform: skewX(-25deg); animation: goldSweep 3s infinite; }
@keyframes goldSweep { 0% { left: -100%; } 25% { left: 200%; } 100% { left: 200%; } }
.server-tags-container { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 15px auto 30px auto; max-width: 95%; }
.server-tags-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.server-tag { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(235, 248, 241, 0.7) 100%); border: 1px solid rgba(95, 168, 139, 0.6); color: #2b5c38; font-size: 13px; font-weight: 900; letter-spacing: 0.5px; padding: 6px 14px; border-radius: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.04), inset 0 1px 2px rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: default; backdrop-filter: blur(4px); }
.server-tag:hover { transform: translateY(-3px) scale(1.05); background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(220, 245, 230, 0.9) 100%); border-color: #5fa88b; box-shadow: 0 6px 15px rgba(95, 168, 139, 0.2); color: #1f4528; }
.server-tag i { color: #5fa88b; font-size: 12px; transition: 0.3s; }
.server-tag:hover i { color: #f39c12; transform: rotate(15deg) scale(1.2); }
.card-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; max-width: 680px; margin: 0 auto; }
.feature-card { background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; padding: 0; text-decoration: none; color: #1f4528; display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; overflow: hidden; cursor: pointer; width: 205px; height: 135px; box-sizing: border-box; border-bottom: none; }
.card-content-wrapper { position: relative; z-index: 2; padding: 15px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-card:hover .card-content-wrapper { transform: translateX(-12px) scale(0.95); }
.feature-card .card-mascot { position: absolute; right: -15px; bottom: -35px; width: 85px; height: auto; z-index: 1; opacity: 0.25; pointer-events: none; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-card:hover .card-mascot { bottom: -5px; right: -5px; opacity: 0.95; transform: scale(1.1) rotate(-6deg); }
.feature-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgb(255 255 255 / 60%) 100%); transform: rotate(45deg) translate(-100%, -100%); transition: 0.6s ease-out; pointer-events: none; z-index: 3; }
.feature-card:hover::before { transform: rotate(45deg) translate(100%, 100%); }
.feature-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.9); box-shadow: 0 12px 25px rgba(168, 230, 207, 0.4), 0 0 15px rgba(255,255,255,0.5); }
.card-icon { font-size: 32px; color: #5fa88b; margin-bottom: 10px; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-card:hover .card-icon { transform: scale(1.1) rotate(5deg); color: #2b5c38; }
.card-title { font-size: 17px; font-weight: 900; margin-bottom: 4px; letter-spacing: 1px; }
.card-desc { font-size: 12px; color: #4a7556; font-weight: bold; opacity: 0.85; }
.marquee-container { margin-top: 25px; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 15px; padding: 12px 20px; width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.03); text-align: left; box-sizing: border-box; }
.marquee-header { font-size: 14px; color: #2b5c38; font-weight: bold; margin-bottom: 8px; border-bottom: 1px dashed #7ab599; padding-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.marquee-header i { color: #e74c3c;}
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.marquee-viewport { height: 60px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%); }
.marquee-track { display: flex; flex-direction: column; animation: scrollVertical 10s linear infinite; }
.marquee-viewport:hover .marquee-track { animation-play-state: paused; cursor: pointer; }
.marquee-item { padding: 5px 0; font-size: 14px; color: #3b5c43; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.marquee-id { color: #5fa88b; font-weight: 900; }
.marquee-time { font-size: 12px; opacity: 0.7; }
@keyframes scrollVertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.back-btn { margin-bottom: 15px; background: rgba(255,255,255,0.6); border: 2px solid #5fa88b; padding: 6px 16px; border-radius: 20px; cursor: pointer; color: #1f4528; font-weight: bold; display: inline-flex; align-items: center; gap: 6px; transition: 0.3s; font-size: 14px; }
.back-btn:hover { background: #5fa88b; color: white; }
.search-container { display: flex; justify-content: center; margin-bottom: 15px; width: 100%; }
.search-box { position: relative; width: 100%; max-width: 350px; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #5fa88b; }
.search-box input { width: 100%; padding: 10px 15px 10px 40px; border-radius: 25px; border: 2px solid rgba(122, 181, 153, 0.4); background: rgba(255, 255, 255, 0.75); color: #1f4528; font-family: inherit; font-size: 14px; font-weight: bold; box-sizing: border-box; outline: none; transition: all 0.3s; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); }
.search-box input:focus { border-color: #5fa88b; background: rgba(255, 255, 255, 0.95); box-shadow: 0 0 10px rgba(95, 168, 139, 0.2); }
.search-box input::placeholder { color: #7ab599; font-weight: normal; }
.filter-group { display: flex; justify-content: center; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.filter-btn { background: rgba(255, 255, 255, 0.6); border: 1.5px solid #7ab599; border-radius: 20px; padding: 5px 14px; cursor: pointer; font-weight: bold; color: #3b5c43; transition: all 0.3s ease; font-size: 14px; outline: none; }
.filter-btn:hover { background: rgba(122, 181, 153, 0.3); }
.filter-btn.active { background: #5fa88b; color: white; border-color: #5fa88b; box-shadow: 0 4px 10px rgba(95, 168, 139, 0.3); }
.timeline-scroll-wrapper { max-height: 55vh; overflow-y: auto; padding-right: 15px; margin-top: 10px; scroll-behavior: smooth; }
.timeline-scroll-wrapper::-webkit-scrollbar { width: 6px; }
.timeline-scroll-wrapper::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.3); border-radius: 10px; }
.timeline-scroll-wrapper::-webkit-scrollbar-thumb { background: rgba(168, 230, 207, 0.8); border-radius: 10px; }
.timeline { position: relative; max-width: 600px; margin: 0 auto; text-align: left; }
.timeline::after { content: ''; position: absolute; width: 3px; background-color: #7ab599; top: 0; bottom: 0; left: 16px; border-radius: 2px; z-index: 0; } 
.timeline-item { padding: 5px 0 25px 40px; position: relative; animation: fadeIn 0.4s ease-out; z-index: 1; }
.timeline-item:hover, .timeline-item:focus-within { z-index: 10; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.timeline-item::after { content: '☘️'; position: absolute; width: 24px; height: 24px; left: 5px; top: 10px; font-size: 14px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 2; }
.timeline-content { background: rgba(255, 255, 255, 0.75); padding: 15px; border-radius: 12px; text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease; position: relative; z-index: 3; }
.timeline-content:hover { transform: translateX(5px); }
.date-container { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.status-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; color: white; font-weight: bold; }
.status-ongoing { background: #52c41a; } .status-ended { background: #bfbfbf; } .status-preparing { background: #1890ff; }
.timeline-date { font-size: 13px; color: #4a7556; font-weight: bold; }
.timeline-title-text { font-size: 18px; color: #1f4528; margin: 0 0 8px 0; font-weight: 900; }
.timeline-desc-wrapper { margin-bottom: 5px; }
.timeline-desc-wrapper.collapsed .timeline-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.timeline-desc { font-size: 14px; color: #3b5c43; line-height: 1.5; margin: 0; white-space: pre-line; }
.read-more-btn { background: transparent; border: none; padding: 0; margin-top: 5px; color: #5fa88b; font-size: 13px; font-weight: bold; cursor: pointer; display: inline-block; transition: color 0.3s; }
.read-more-btn:hover { color: #f39c12; }
.timeline-inline-link { color: #f39c12; font-weight: bold; text-decoration: underline; transition: color 0.3s; }
.timeline-inline-link:hover { color: #d35400; }
.timeline-link { color: #1f4528; text-decoration: none; border-bottom: 2px dashed #7ab599; transition: 0.3s; font-weight: bold; }
.timeline-link:hover { color: #5fa88b; border-bottom-style: solid; background: rgba(95, 168, 139, 0.1); }
.reward-container { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px dashed rgba(95, 168, 139, 0.4); }
.reward-wrapper { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 55px; position: relative; z-index: 1; }
.reward-wrapper:hover { z-index: 999; }
.reward-item { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); border: 2px solid #7ab599; box-shadow: 0 2px 6px rgba(0,0,0,0.08); cursor: pointer; transition: all 0.3s ease; z-index: 1; }
.reward-item:hover, .reward-item.active { transform: translateY(-2px); border-color: #f39c12; box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3); z-index: 999; }
.reward-icon { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.reward-name { font-size: 11px; color: #3b5c43; font-weight: bold; text-align: center; line-height: 1.2; word-break: break-word; }

/* ✨ 修復：讓說明框靠左對齊，拉寬最大寬度，並增加呼吸感留白 */
.reward-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(43, 92, 56, 0.98); color: white; font-size: 12px; font-weight: normal; padding: 10px 14px; border-radius: 8px; white-space: pre-wrap; width: max-content; max-width: 240px; text-align: left; line-height: 1.6; letter-spacing: 0.5px; pointer-events: none; opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 1000; }
.reward-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 5px; border-style: solid; border-color: rgba(43, 92, 56, 0.98) transparent transparent transparent; }
.reward-item:hover .reward-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.reward-item.active .reward-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media screen and (max-width: 768px) {
    .glass-box { padding: 25px 15px; width: 95%; }
    .site-logo { max-width: 240px; }
    .server-tags-container { gap: 8px; margin: 10px auto 20px auto; max-width: 100%; }
    .server-tags-row { gap: 6px; }
    .server-tag { font-size: 11px; padding: 4px 8px; }
    .server-tag i { font-size: 10px; }
    .clover { font-size: 18px; }
    .card-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 100%; }
    .feature-card { width: 100%; height: 110px; flex-direction: column; }
    .feature-card:nth-child(5) { grid-column: span 2; height: 80px; flex-direction: row; }
    .feature-card:nth-child(5) .card-icon { margin-bottom: 0; margin-right: 15px; font-size: 28px; }
    .card-content-wrapper { padding: 10px; }
    .card-icon { font-size: 26px; margin-bottom: 8px; }
    .card-title { font-size: 14px; margin-bottom: 2px; }
    .card-desc { font-size: 11px; }
    .feature-card:hover .card-content-wrapper { transform: translateX(-6px) scale(0.95); }
    .feature-card:nth-child(5):hover .card-content-wrapper { transform: translateX(0) scale(0.98); }
    .feature-card .card-mascot { right: -5px; bottom: -25px; width: 60px; opacity: 0.4; }
    .feature-card:hover .card-mascot { bottom: -5px; right: -2px; opacity: 0.9; }
    .feature-card:nth-child(5) .card-mascot { width: 55px; right: 5px; bottom: -20px; }
    .feature-card:nth-child(5):hover .card-mascot { bottom: 0; }
    .marquee-container { margin-top: 15px; padding: 10px 15px; }
    .marquee-viewport { height: 50px; }
    .marquee-item { font-size: 12px; }
    .music-toggle { top: 20px; left: 15px; width: 40px; height: 40px; font-size: 16px; }
}