* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* ========== 右上角导航 ========== */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.top-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.top-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========== 子页面容器 ========== */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    min-height: 100vh;
}

.page-container h1 {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========== 内容卡片 ========== */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.content-card h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.content-card p {
    color: #666;
    line-height: 1.6;
}

.content-card.recommended {
    border: 3px solid #07C160;
    background: rgba(7, 193, 96, 0.1);
}

/* ========== 卡片网格布局 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* ========== 游戏特色卡片 ========== */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h2 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== 恐龙卡片V2 ========== */
.dino-card-v2 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dino-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dino-img-wrap {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dino-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dino-card-v2:hover .dino-img-wrap img {
    transform: scale(1.1);
}

.dino-content {
    padding: 20px;
}

.dino-content h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.dino-name-en {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-style: italic;
}

.dino-content > p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tag-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 0;
    background: linear-gradient(135deg, #12B7F5, #0D99D6);
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
}

.tag.red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.tag.green {
    background: linear-gradient(135deg, #07C160, #06AD56);
}

.tag.blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ========== 配置需求卡片 ========== */
.requirements-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.req-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.req-card:hover {
    transform: translateY(-5px);
}

.req-card.recommended {
    border: 3px solid #07C160;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1), rgba(255,255,255,0.95));
}

.req-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #07C160, #06AD56);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.req-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.req-icon {
    font-size: 2rem;
}

.req-header h2 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
}

.req-card .spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.req-card .spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.req-card .spec-list li:last-child {
    border-bottom: none;
}

.spec-label {
    color: #888;
    font-size: 0.9rem;
}

.spec-value {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.tips-card {
    background: linear-gradient(135deg, #fff9e6, #fff);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px dashed #eee;
}

.tips-list li:last-child {
    border-bottom: none;
}

/* 配置列表 */
.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.spec-list li:last-child {
    border-bottom: none;
}

/* ========== 恐龙卡片样式 ========== */
.dino-card {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.dino-card:hover {
    transform: translateY(-5px);
}

.dino-image {
    width: 200px;
    min-height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background: #ddd;
}

.dino-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dino-card:hover .dino-image img {
    transform: scale(1.1);
}

.dino-info {
    padding: 20px;
    flex: 1;
}

.dino-info h2 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.dino-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 返回按钮 */
.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 居中容器 */
.center-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.center-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.center-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

/* 加入按钮样式 */
.join-btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 200px;
    text-align: center;
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 移动端点击效果 */
.join-btn:active {
    transform: scale(0.95);
}

/* QQ 按钮 */
.qq-btn {
    background: linear-gradient(135deg, #12B7F5, #0D99D6);
}

.qq-btn:hover {
    background: linear-gradient(135deg, #0D99D6, #0A7FB3);
}

/* 微信按钮 */
.wechat-btn {
    background: linear-gradient(135deg, #07C160, #06AD56);
}

.wechat-btn:hover {
    background: linear-gradient(135deg, #06AD56, #059A4C);
}

/* 群号提示 */
.group-info {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
}

/* ========== 移动端适配 ========== */
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll; /* 移动端滚动背景更流畅 */
    }

    /* 导航栏移动端 */
    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px;
        justify-content: center;
        background: rgba(0, 0, 0, 0.7);
        gap: 5px;
    }

    .top-nav a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* 子页面移动端 */
    .page-container {
        padding: 70px 15px 30px;
    }

    .page-container h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .content-card {
        padding: 20px;
    }

    /* 卡片网格移动端 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .feature-card h2 {
        font-size: 1.1rem;
    }

    /* 恐龙卡片移动端 */
    .dino-card {
        flex-direction: column;
    }

    .dino-image {
        width: 100%;
        height: 180px;
    }

    .dino-info {
        padding: 15px;
    }

    .dino-info h2 {
        font-size: 1.1rem;
    }

    .dino-img-wrap {
        height: 160px;
    }

    /* 配置需求移动端 */
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .req-card {
        padding: 20px;
    }

    .content-card h2 {
        font-size: 1.2rem;
    }

    .center-container {
        padding: 80px 15px 30px;
    }

    .center-container h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .center-container p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .join-btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 375px) {
    .center-container h1 {
        font-size: 1.4rem;
    }

    .center-container p {
        font-size: 0.9rem;
    }

    .join-btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}