/* 基础样式重置与防盗基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* 基础防盗取样式 - 禁止选择文本 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

body {
    color: #fff;
    background-color: #1a1a1a;
    line-height: 1.6;
}

/* 防盗水印样式 */
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 100 100'%3E%3Ctext x='50' y='50' font-family='Arial' font-size='10' fill='rgba(0,0,0,0.05)' text-anchor='middle' transform='rotate(-45, 50, 50)'%3ECNXY新月云服务器%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* 禁止打印 */
@media print {
    body {
        display: none !important;
    }
}

/* 背景图片样式 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    /* 防止图片被拖拽或右键保存 */
    pointer-events: none;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航菜单样式 */
#menu-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#menu-box.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 10px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
}

.menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #d42860; /* 姨妈粉logo背景 */
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 防止logo图片被拖拽 */
    pointer-events: none;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-item-list {
    display: flex;
    gap: 25px;
}

.menu-item-list a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item-list a.active,
.menu-item-list a:hover {
    background-color: rgba(212, 40, 96, 0.2); /* 姨妈粉透明背景 */
}

/* 横幅区域样式 */
#banner {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.join-buttom {
    max-width: 800px;
}

.join-item h2 {
    font-size: 48px;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(212, 40, 96, 0.3); /* 姨妈粉阴影 */
}

.join-item p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #f8d0db; /* 浅淡姨妈粉 */
}

.join-buttom-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #d42860; /* 姨妈粉主按钮 */
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #b31f50; /* 深一点的姨妈粉 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 40, 96, 0.3); /* 姨妈粉阴影 */
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 加入Q群按钮优化样式 */
.join-qq-group {
    margin: 30px 0;
}

.qq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d42860, #b31f50);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(212, 40, 96, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.qq-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.qq-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(212, 40, 96, 0.4);
    background: linear-gradient(135deg, #e0306a, #c02558);
}

.qq-button:hover::before {
    left: 100%;
}

.qq-button i {
    font-size: 1.4rem;
}

.qq-button .qq-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* 悬浮提示样式 */
.qq-tooltip {
    position: relative;
    display: inline-block;
}

.qq-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    pointer-events: none;
    border: 1px solid rgba(212, 40, 96, 0.3);
}

.qq-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.qq-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 特色区域样式 */
.features-section {
    padding: 100px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: #fff;
}

.section-desc {
    font-size: 18px;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    color: #f8d0db; /* 浅淡姨妈粉 */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: rgba(212, 40, 96, 0.05); /* 姨妈粉透明背景 */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #d42860; /* 姨妈粉图标 */
}

.feature-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #f8b5c5; /* 亮粉色标题 */
}

.feature-desc {
    color: #f0e6e9; /* 浅灰粉色文字 */
}

/* 玩家评价样式 */
.testimonials {
    padding: 100px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(212, 40, 96, 0.05); /* 姨妈粉透明背景 */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 5px 15px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
}

.testimonial-text {
    color: #f0e6e9; /* 浅灰粉色文字 */
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #d42860; /* 姨妈粉头像背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(212, 40, 96, 0.4); /* 姨妈粉阴影 */
}

.author-name {
    font-weight: bold;
    color: #f8b5c5; /* 亮粉色名字 */
}

.author-role {
    color: #f0e6e9; /* 浅灰粉色角色 */
    font-size: 0.9rem;
}

/* 内容区域样式 */
#item-box {
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

.item-page-box {
    max-width: 1200px;
    margin: 0 auto 60px;
    background-color: rgba(212, 40, 96, 0.05); /* 姨妈粉透明背景 */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
}

.item-page h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #fff;
}

.online-indicator {
    color: #d42860; /* 姨妈粉在线指示 */
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(212, 40, 96, 0.1);
    border-radius: 20px;
}

.item-font {
    line-height: 1.8;
    font-size: 16px;
    color: #f0e6e9; /* 浅灰粉色文字 */
}

.item-font img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    border: 3px solid rgba(212, 40, 96, 0.3); /* 姨妈粉边框 */
    box-shadow: 0 4px 12px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
    /* 防止图片被拖拽或右键保存 */
    pointer-events: none;
}

.item-font h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #d42860; /* 姨妈粉标题 */
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 40, 96, 0.3); /* 姨妈粉下划线 */
}

.item-font a {
    color: #d42860; /* 姨妈粉链接 */
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 2px;
}

.item-font a:hover {
    color: #fff;
    background-color: rgba(212, 40, 96, 0.4); /* 姨妈粉背景 */
}

/* 服务器配置样式 */
.server-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.spec-item {
    background-color: rgba(212, 40, 96, 0.05); /* 姨妈粉透明背景 */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
}

.spec-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #d42860; /* 姨妈粉图标 */
}

.spec-item h4 {
    color: #f8b5c5; /* 亮粉色标题 */
    margin-bottom: 10px;
}

.spec-item p {
    color: #f0e6e9; /* 浅灰粉色文字 */
    margin: 0;
}

/* 下载区域样式 */
#download {
    margin-top: 40px;
}

.download-section {
    text-align: center;
}

.download-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.download-section p {
    color: #f8d0db; /* 浅淡姨妈粉 */
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.download-buttons .btn {
    width: 80%;
    max-width: 300px;
}

/* 详情页专用样式 */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(212, 40, 96, 0.3); /* 姨妈粉阴影 */
    color: #fff;
}

.page-header p {
    font-size: 1.2rem;
    color: #f8d0db; /* 浅淡姨妈粉 */
    max-width: 700px;
    margin: 0 auto;
}

#main-content {
    padding: 20px 0 80px;
}

.detail-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
    border: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
}

.detail-header {
    padding: 30px;
    border-bottom: 1px solid rgba(212, 40, 96, 0.2); /* 姨妈粉边框 */
}

.detail-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.detail-content {
    padding: 30px;
}

.detail-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 3px solid rgba(212, 40, 96, 0.3); /* 姨妈粉边框 */
    box-shadow: 0 4px 12px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
    /* 防止图片被拖拽或右键保存 */
    pointer-events: none;
}

.detail-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(212, 40, 96, 0.1); /* 姨妈粉虚线分隔 */
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d42860; /* 姨妈粉标题 */
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 40, 96, 0.3); /* 姨妈粉下划线 */
}

.detail-section h3 i {
    color: #d42860; /* 姨妈粉图标 */
}

.detail-section p {
    margin-bottom: 15px;
    color: #f0e6e9; /* 浅灰粉色文字 */
    line-height: 1.8;
}

.detail-section p strong {
    color: #f8b5c5; /* 亮粉强调文字 */
}

.detail-section a {
    color: #d42860; /* 姨妈粉链接 */
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 2px;
}

.detail-section a:hover {
    color: #fff;
    background-color: rgba(212, 40, 96, 0.4); /* 姨妈粉背景 */
    text-decoration: none;
}

/* 服务器类型卡片样式 */
.server-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.server-type-card {
    background-color: rgba(212, 40, 96, 0.05); /* 姨妈粉透明背景 */
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
}

.server-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 40, 96, 0.2); /* 姨妈粉阴影 */
    border-color: rgba(212, 40, 96, 0.3); /* 姨妈粉边框 */
}

.server-type-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f8b5c5; /* 亮粉色标题 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-type-card h4 i {
    color: #d42860; /* 姨妈粉图标 */
}

.server-type-card p {
    color: #f0e6e9; /* 浅灰粉色文字 */
}

/* 加入步骤样式 */
.join-steps {
    list-style: none;
    margin-top: 20px;
}

.join-steps li {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.join-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background-color: rgba(212, 40, 96, 0.3); /* 姨妈粉步骤线 */
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #d42860; /* 姨妈粉步骤数字 */
    color: white;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 40, 96, 0.4); /* 姨妈粉阴影 */
}

.step-content {
    padding-top: 5px;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #f8b5c5; /* 亮粉色标题 */
}

.step-content p {
    color: #f0e6e9; /* 浅灰粉色文字 */
}

/* 活动样式 */
.events {
    margin-top: 20px;
}

.event-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
    transition: all 0.3s ease;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-date {
    min-width: 120px;
    background-color: rgba(212, 40, 96, 0.2); /* 姨妈粉事件日期背景 */
    color: #ffffff; /* 白色文字 */
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin-right: 20px;
    border: 1px solid rgba(212, 40, 96, 0.3); /* 姨妈粉边框 */
}

.event-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #f8b5c5; /* 亮粉色标题 */
}

.event-content p {
    color: #f0e6e9; /* 浅灰粉色文字 */
    margin: 0;
}

.join-now-btn {
    margin-top: 10px;
}

/* 页脚样式 */
#footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: #aaa;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 40px;
    border-top: 1px solid rgba(212, 40, 96, 0.1); /* 姨妈粉边框 */
}

#footer a {
    color: #d42860; /* 姨妈粉页脚链接 */
    text-decoration: none;
    transition: all 0.3s ease;
}

#footer a:hover {
    text-decoration: underline;
    color: #f8b5c5;
}

#counter {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #f0e6e9; /* 浅灰粉色文字 */
}

/* 响应式样式 */
@media (max-width: 768px) {
    .menu-item-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        display: none;
    }

    .menu-item-list.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .join-item h2 {
        font-size: 36px;
    }
    
    .join-buttom-actions {
        flex-direction: column;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .server-types, .server-specs {
        grid-template-columns: 1fr;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* 手机端Q群按钮适配 */
    .qq-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .detail-header h2 {
        font-size: 1.6rem;
    }
    
    .detail-section h3 {
        font-size: 1.4rem;
    }
}