/* ===== RESET & 全局变量 - 浅粉 + 淡紫浪漫双配色 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调：浅粉色 (#f9acbc) + 适配淡紫色 (#c8a2e6) 搭配 */
    --pink-light: #f9acbc;        /* 温柔浅粉 */
    --pink-soft: #ffb7c5;         /* 柔粉 */
    --pink-deep: #f28b9c;         /* 稍深粉红 */
    --lavender: #d4b8f0;          /* 淡薰衣草紫 */
    --lavender-deep: #b77cd9;      /* 紫罗兰 */
    --accent-primary: #f5a3b5;    /* 主要按钮粉 */
    --accent-secondary: #c9a9f0;  /* 辅助淡紫 */
    --text-light: #fff5f7;         /* 暖白透粉 */
    --text-muted: #fde2e8;         /* 柔米色 */
    --bg-dark: #3a2a35;            /* 深粉褐背景 */
    --bg-card: rgba(60, 45, 52, 0.82);   /* 半透粉褐卡片 */
    --bg-darker: rgba(48, 36, 42, 0.92);
    --border-color: rgba(249, 172, 188, 0.55);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 30px -8px rgba(0, 0, 0, 0.4);
    --hover-transition: all 0.25s ease;
}

body {
    background-color: #2f2229;
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

/* ========= 背景图片 + 柔粉梦幻叠加层 ========= */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../pic/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(10px);
    transform: scale(1.02);
    z-index: -2;
}

/* 浅粉+淡紫渐变遮罩，浪漫氛围 */
.page-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 172, 188, 0.55) 0%, rgba(200, 162, 230, 0.55) 100%);
    pointer-events: none;
}

/* 内容容器 */
.wrapper {
    position: relative;
    z-index: 2;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== 头部样式（柔粉磨砂玻璃） ===== */
.site-header {
    background: rgba(70, 52, 62, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.minecraft-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.server-name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--pink-soft), var(--lavender), var(--pink-light));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--hover-transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--pink-soft);
    border-bottom-color: var(--pink-soft);
}

/* ===== 英雄区 ===== */
.hero {
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 2;
    min-width: 260px;
}

.badge {
    background: rgba(249, 172, 188, 0.25);
    color: var(--pink-soft);
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(249, 172, 188, 0.6);
    backdrop-filter: blur(4px);
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.server-info-card {
    background: var(--bg-card);
    padding: 1.2rem 1.5rem;
    border-radius: 28px;
    margin: 1.5rem 0;
    border-left: 5px solid var(--pink-light);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.ip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.ip-label {
    font-weight: 600;
    color: var(--text-light);
}

.server-ip {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--pink-soft);
    font-weight: 600;
    border: 1px solid rgba(249, 172, 188, 0.6);
}

.copy-btn {
    background: var(--pink-light);
    border: none;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--hover-transition);
    font-size: 0.8rem;
    color: #3a2a35;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.copy-btn:hover {
    background: var(--lavender-deep);
    transform: scale(0.96);
    color: white;
}

.version-row {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn {
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--hover-transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(105deg, var(--pink-light), var(--lavender));
    color: #3a2a35;
    box-shadow: 0 4px 12px rgba(249, 172, 188, 0.5);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(105deg, var(--pink-deep), var(--lavender-deep));
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 8px 18px rgba(183, 124, 217, 0.4);
}

/* 英雄区右侧统计卡片 */
.hero-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.stat-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 28px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    transition: var(--hover-transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--pink-light);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pink-soft);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 特色区域 ===== */
.features {
    padding: 4rem 0;
    background: rgba(55, 42, 48, 0.65);
    backdrop-filter: blur(6px);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-light);
}

.section-title h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--pink-light);
    margin: 10px auto 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: 28px;
    transition: var(--hover-transition);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--lavender);
    box-shadow: var(--shadow-lg);
    background: rgba(75, 55, 65, 0.9);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== 图片展示区域 ===== */
.gallery-section {
    padding: 4rem 0;
    background: rgba(48, 36, 42, 0.55);
    backdrop-filter: blur(6px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--lavender);
    background: rgba(75, 55, 65, 0.95);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    background: rgba(60, 45, 52, 0.9);
    border-top: 1px solid var(--border-color);
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* ===== 加入区域（粉紫梦幻） ===== */
.join-section {
    padding: 3.5rem 0;
    background: rgba(55, 42, 48, 0.6);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.join-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 36px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(249, 172, 188, 0.5);
}

.join-text h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.join-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--pink-soft);
}

/* ===== 页脚 ===== */
.site-footer {
    background: rgba(45, 34, 39, 0.96);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
}

.footer-note {
    font-size: 0.7rem;
    margin-top: 0.6rem;
    opacity: 0.8;
}

/* ===== 响应式 ===== */
@media (max-width: 850px) {
    .hero-content {
        flex-direction: column;
    }
    .hero-stats {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    .stat-card {
        flex: 1;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .join-container {
        flex-direction: column;
        text-align: center;
    }
    .server-name {
        font-size: 1.3rem;
    }
    .hero-text h2 {
        font-size: 2rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 550px) {
    .hero-stats {
        flex-wrap: wrap;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .ip-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== 二维码浮层（粉调） ===== */
.btn-with-qrcode {
    position: relative;
    display: inline-block;
}

.qrcode-popup {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(70, 52, 62, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(249, 172, 188, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 170px;
    text-align: center;
    pointer-events: none;
}

.btn-with-qrcode:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.qrcode-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: #ffeef2;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.qrcode-popup p {
    margin-top: 8px;
    font-size: 12px;
    color: var(--pink-soft);
    font-weight: 500;
}

@media (max-width: 550px) {
    .qrcode-img {
        width: 120px;
        height: 120px;
    }
    .qrcode-popup {
        min-width: 140px;
        padding: 8px;
    }
}

/* 自定义提示框样式 - 优雅的复制成功弹窗 */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #f9acbc, #d4b8f0);
    color: #3a2a35;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}