/* === 基础样式重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #0A1128;
    color: #F5F5F5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section__title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #FFA500;
    text-shadow: 2px 2px 0 #000;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* === 按钮样式 === */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.button--primary {
    background-color: #FFA500;
    color: #0A1128;
}

.button--primary:hover {
    background-color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3);
}

.button--secondary {
    background-color: transparent;
    color: #FFA500;
    border: 2px solid #FFA500;
}

.button--secondary:hover {
    background-color: rgba(255, 165, 0, 0.1);
    transform: translateY(-2px);
}

/* === 导航栏 === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #FFA500;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: #F5F5F5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: #FFA500;
}

.nav__link.active-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFA500;
}

.nav__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background-color: #4CAF50;
}

.status-dot.offline {
    background-color: #f44336;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: #F5F5F5;
    margin: 2px 0;
    transition: 0.3s;
}

/* === 首页英雄区 === */
.home {
    background: linear-gradient(135deg, #0A1128 0%, #1A237E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/stars-bg.png');
    animation: stars 60s linear infinite;
}

@keyframes stars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.home__container {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.home__title {
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    color: #FFA500;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 #000;
}

.home__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #F5F5F5;
}

.home__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 300px;
}

.info-label {
    font-weight: bold;
    margin-right: 0.5rem;
    color: #FFA500;
}

.info-value {
    font-family: 'Courier New', monospace;
}

.copy-btn {
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.copy-btn:hover {
    color: #FFA500;
}

.copy-btn::after {
    content: '点击复制';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-btn:hover::after {
    opacity: 1;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home__image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === 关于我们 === */
.about__content {
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: 3rem;
}

.about__text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    color: #FFA500;
    margin-bottom: 0.5rem;
}

/* === 服务器特色 === */
.features__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #FFA500;
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.1);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #FFA500;
    margin-bottom: 1rem;
}

/* === 玩家作品 === */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-item__overlay {
    transform: translateY(0);
}

/* === 加入我们 === */
.join {
    background: linear-gradient(135deg, #1A237E 0%, #0A1128 100%);
}

.join__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #FFA500;
    color: #0A1128;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    font-family: 'Press Start 2P', cursive;
}

.step h3 {
    color: #FFA500;
    margin-bottom: 1rem;
}

.join__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === 更新日志 === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #FFA500;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 1;
    padding: 0 2rem;
    text-align: right;
    font-weight: bold;
    color: #FFA500;
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: left;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: 100%;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(255, 165, 0, 0.2) transparent transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: 100%;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(255, 165, 0, 0.2);
}

.timeline-content h3 {
    color: #FFA500;
    margin-bottom: 0.5rem;
}

/* === 页脚 === */
.footer {
    background: #050A1F;
    padding: 2rem 0;
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: #FFA500;
}

.footer p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* === 提示框 === */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
        color: #fff;

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* === 响应式设计 === */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 4rem;
        right: -100%;
        width: 80%;
        height: calc(100vh - 4rem);
        background: #0A1128;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: right 0.3s;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .home__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home__title {
        font-size: 2rem;
    }

    .home__subtitle {
        font-size: 1.2rem;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-date {
        flex: 0 0 100px;
        text-align: left !important;
        padding: 0 1rem 0 0;
    }

    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent rgba(255, 165, 0, 0.2) transparent transparent !important;
    }
}