/* 全局样式 */
:root {
    --mc-green: #5cb85c;
    --mc-dark-green: #4cae4c;
    --mc-dirt: #795548;
    --mc-stone: #757575;
    --mc-obsidian: #212121;
    --mc-diamond: #00bcd4;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --accent-color: #ffca28; /* Gold */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: url('../assets/images/bkground.png') fixed center/cover no-repeat;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.pixel-font, h1, h2, h3, h4, h5, h6 {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.pixel-font {
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--mc-diamond);
    text-shadow: 3px 3px 0px #000;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--mc-diamond), transparent);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.active::after {
    width: 80%;
}

/* 按钮样式 */
.mc-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--mc-green), #3d8b3d);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.mc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(92, 184, 92, 0.6);
    background: linear-gradient(135deg, #3d8b3d, var(--mc-green));
}

.mc-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(92, 184, 92, 0.4);
}

.mc-btn.small {
    padding: 8px 20px;
    font-size: 0.7rem;
}

.mc-btn.outline {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.mc-btn.outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--mc-diamond);
    box-shadow: 0 0 20px rgba(0,188,212,0.4);
    transform: translateY(-3px);
    text-shadow: 0 0 8px var(--mc-diamond);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 2px solid var(--mc-stone);
    transition: padding 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--mc-diamond);
    text-shadow: 2px 2px 0 #000;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--mc-diamond);
}

/* Auth Button Style */
#auth-nav-item {
    margin-left: 20px;
}

.nav-auth-btn {
    background: linear-gradient(45deg, var(--mc-diamond), #008ba3);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
    background: linear-gradient(45deg, #008ba3, var(--mc-diamond));
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(18, 18, 18, 0.98);
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border: 2px solid var(--mc-stone);
    border-top: 2px solid var(--mc-diamond); /* 顶部高亮 */
    border-radius: 0 0 4px 4px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 0;
    margin-top: 15px; /* 增加一点间距 */
}

/* 连接桥，防止鼠标移出消失 */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-content a::after {
    display: none; /* 移除默认的下划线动画 */
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--mc-diamond);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.3s ease forwards;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mc-diamond);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../assets/images/bkground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 4px 4px 0 #000;
}

/* 互动文字特效 */
.poetic-title {
    margin-bottom: 30px;
}

.poetic-title h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.5s ease;
}

.poetic-title h1.first-line {
    transform: translateX(6vw);
}

.poetic-title h1.second-line {
    transform: translateX(-6vw);
}

.interactive-text span {
    display: inline-block;
    margin: 0 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.interactive-text span:hover {
    transform: scale(1.4) translateY(-10px);
    color: var(--mc-diamond);
    text-shadow: 0 0 10px var(--mc-diamond), 0 0 20px var(--mc-diamond), 4px 4px 0 #000;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-weight: bold;
    display: none; /* 隐藏旧的副标题样式，虽然HTML中已删除 */
}

.hero-content .description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 特色部分 */
.features-section {
    background-color: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: url('../assets/images/sign.png') no-repeat center/cover;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 4px solid #000;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #000;
}

.icon-box {
    font-size: 3rem;
    color: #000;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #000;
}

.feature-card p {
    color: #000;
}

/* 服务器介绍 */
.servers-section {
    background-color: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.server-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #333;
    group: server-card;
}

.server-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.server-card.survival .card-bg {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('../assets/images/server3-1.jpg');
}

.server-card.skyblock .card-bg {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('../assets/images/server2-1.jpg');
}

.server-card:hover .card-bg {
    transform: scale(1.1);
}

.server-card .card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.server-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
}

.server-card p {
    margin-bottom: 25px;
    max-width: 80%;
}

/* 团队介绍 */
.staff-section {
    background-color: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 50px 0;
}

.staff-banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../assets/images/bkg.jpg') no-repeat center/cover;
    padding: 40px 60px; /* 缩小高度，增加左右padding */
    border-radius: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 2px solid #444;
    position: relative;
    width: 95%; /* 继续增加宽度 */
    max-width: 1400px;
}

.staff-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200%;
    height: 120%;
    background: url('../assets/images/people.png') no-repeat right bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.staff-banner .mc-btn {
    position: relative;
    z-index: 2;
    margin-left: auto;
    margin-right: 20px;
}

.staff-text h2 {
    margin-bottom: 15px;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.staff-text p {
    position: relative;
    z-index: 2;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* 社区部分 */
.community-section {
    background-color: rgba(0, 0, 0, 0.5);
}

.groups-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.group-box {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    border: 2px solid #333;
    transition: all 0.3s;
}

.group-box:hover {
    border-color: var(--mc-diamond);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.group-box i {
    font-size: 3rem;
    color: #12b7f5; /* QQ Blue */
    margin-bottom: 15px;
}

.group-number {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0 20px;
    color: var(--text-light);
}

.join-link {
    color: var(--mc-diamond);
    font-weight: bold;
    text-decoration: underline;
}

/* 公会弹幕部分 */
.guilds-section {
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 100px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.danmaku-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    z-index: -1; /* 放在背景层 */
    pointer-events: none; /* 不影响点击 */
}

.guild-action {
    position: relative;
    z-index: 1;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
    text-shadow: 1px 1px 0 #000;
    user-select: none;
    will-change: transform;
    z-index: -1;
}

/* 博主推荐部分 */
.bloggers-section {
    background-color: rgba(0, 0, 0, 0.5); /* 统一背景遮罩 */
    padding: 80px 0;
}

.bloggers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blogger-card {
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.blogger-card:hover {
    transform: translateY(-10px);
    border-color: var(--mc-diamond);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.blogger-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--mc-diamond);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

.blogger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogger-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.blogger-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Footer */
.business-footer {
    background-color: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 4px solid var(--mc-diamond);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--mc-diamond);
    margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--mc-diamond);
}

.footer-contact p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* 动画类 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    filter: blur(4px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* 标题动画 */
.section-title {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .poetic-title h1.first-line,
    .poetic-title h1.second-line {
        transform: translateX(0);
    }

    .interactive-text span {
        margin: 0 5px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .staff-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .staff-banner::after {
        width: 100%;
        height: 100%;
        opacity: 0.2;
        background-size: contain;
        background-position: center bottom;
    }

    .staff-banner .mc-btn {
        margin: 0;
        width: 100%;
        max-width: 200px;
    }

    .features-grid,
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .poetic-title h1 {
        font-size: 2rem;
    }
}

/* Modal Styles (Global) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--mc-green);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
    width: 90%;
}

.modal-overlay.active .success-modal {
    transform: scale(1);
}

.success-icon {
    font-size: 4rem;
    color: var(--mc-green);
    margin-bottom: 20px;
}

.success-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.success-modal p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.close-modal-btn {
    background: transparent;
    border: 2px solid var(--text-gray);
    color: var(--text-light);
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ͼƬģ̬����ʽ */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--mc-diamond);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 95%;
    }
    .close {
        top: 15px;
        right: 25px;
        font-size: 40px;
    }
}

