*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
    background-color: #020617;
    color: #e5e7eb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1120px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, #020617, #020617);
    border-bottom: 1px solid #1f2937;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.header-solid {
    background-color: rgba(2, 6, 23, 0.96);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    flex-direction:column;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 16px;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.7;
}

.main-nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.main-nav a {
    padding: 6px 14px;
    border-radius: 999px;
    opacity: 0.86;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    opacity: 1;
    background: rgba(31, 41, 55, 0.9);
    transform: translateY(-1px);
}

.main-nav a.active {
    background: #1d4ed8;
    color: #f9fafb;
    opacity: 1;
}

.nav-donate {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #f97316;
    background: rgba(15, 23, 42, 0.9);
    color: #fed7aa;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-donate:hover {
    background: #f97316;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
}

/* Hero */

/* Hero */

.hero {
    position: relative;
    min-height: 80vh; /* 比較高，看起來更大氣 */
    padding-top: 110px;
    padding-bottom: 90px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* 你的背景圖 */
    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* 讓背景偏向 Free Rodia 的強烈暗化 */
    filter: brightness(1.25) saturate(0.85);
}

/* 深色＋模糊的覆蓋層 */
.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        /* 上方霧化 */
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.50) 20%,
            rgba(0, 0, 0, 0.45) 40%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0.75) 100%
        );

    backdrop-filter: blur(3px); /* 霧化背景，使文字更清楚 */
    -webkit-backdrop-filter: blur(3px); /* Safari */
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.hero-main-title {
    font-family: 'Minecraft Ten', sans-serif; /* ← 原版 Minecraft 字體 */
    font-size: clamp(48px, 7vw, 88px);
    color: #ffffff;
    text-align: center;

    /* Minecraft 標題的黑色粗描邊 */
    text-shadow:
        -4px -4px 0 #000,
         4px -4px 0 #000,
        -4px  4px 0 #000,
         4px  4px 0 #000;
}



.hero-subtitle {
    margin-top: 8px;
    font-size: 18px;
    color: #93c5fd;
}

.hero-description {
    margin-top: 18px;
    font-size: 15px;
    opacity: 0.9;
}

.hero-status-row {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-online {
    color: #bbf7d0;
}

.status-number {
    color: #e5e7eb;
}

.hero-ip-row {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-ip-box {
    min-width: 260px;
    max-width: 360px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.hero-ip-label {
    opacity: 0.75;
}

.hero-ip-value {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    color: #e5e7eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-ip-btn {
    background: #2563eb;
    color: #f9fafb;
    border-color: #1d4ed8;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.hero-ip-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.7);
}

.hero-version {
    margin-top: 18px;
    font-size: 13px;
    opacity: 0.8;
}

/* Home main */

.home-main {
    background: radial-gradient(circle at top, #020617 0%, #020617 38%, #020617 100%);
    padding: 40px 0 64px;
}

.home-section {
    margin-top: 24px;
    padding: 24px 24px 26px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #020617, #020617 55%, #020617 100%);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.home-section + .home-section {
    margin-top: 32px;
}

.home-section-title {
    font-size: 22px;
    margin-bottom: 6px;
}

.home-section-intro {
    font-size: 14px;
    opacity: 0.84;
    max-width: 720px;
}

/* Cards */

.card-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-grid.four {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: #020617;
    border-radius: 18px;
    padding: 16px 16px 18px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.9);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    opacity: 0.9;
}

/* Bullet list inside card */

.bullet-list {
    list-style: none;
    margin-top: 10px;
}

.bullet-list li {
    position: relative;
    padding-left: 14px;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    color: #60a5fa;
}

/* Footer */

.site-footer {
    background: #020617;
    border-top: 1px solid #1f2937;
    padding: 22px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    margin-bottom: 4px;
}

.footer-text {
    font-size: 12px;
    opacity: 0.7;
}

.footer-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.footer-link {
    opacity: 0.85;
}

.footer-link:hover {
    opacity: 1;
}

/* Responsive */

@media (max-width: 840px) {
    .main-nav {
        display: none;
    }

    .nav-donate {
        font-size: 12px;
        padding: 5px 14px;
    }

    .hero {
        padding-top: 88px;
        padding-bottom: 60px;
    }

    .home-section {
        padding: 18px 16px 20px;
    }
}
