/* 全局样式 - 增加质感 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "SimHei", sans-serif;
}

body {
    background: url('bag.jpg') center fixed;
    background-size: cover;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    line-height: 1.8;
    min-height: 100vh;
}

/* 导航栏 - 龙纹质感 */
.nav {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(30, 10, 0, 0.95));
    padding: 18px 0;
    text-align: center;
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.3);
    position: relative;
}

.nav::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 5px auto 0;
}

.nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* 公告区域布局补充样式 */
.announcement-container {
    /* 保持原有容器样式，通过内嵌样式控制主要布局 */
}

.announcement-content {
    /* 基础flex布局已通过内嵌样式实现，此处补充响应式适配 */
}
.nav a {
    font-weight: bold;
    font-size: 22px; /* 可根据需要调整字体大小 */
}
/* 响应式调整 - 在小屏幕下自动堆叠 */
@media (max-width: 768px) {
    .announcement-content {
        flex-direction: column;
        height: auto !important;
    }
    
    .announcement-image, .announcement-list {
        width: 100% !important;
        height: auto !important;
    }
    
    .announcement-image {
        padding: 15px;
        min-height: 200px;
    }
    
    .announcement-list {
        max-height: 300px;
    }
}

/* 导航栏选中状态 (Active) 样式 - 增强对比度 */
.nav a.active {
    color: #000; /* 深色文字 */
    background: linear-gradient(135deg, #ffd700, #ffc400); /* 明显背景 */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), inset 0 0 10px rgba(0, 0, 0, 0.6);
    transform: none; /* 移除悬停时的移动 */
    border: 1px solid #fff; 
}

.nav a::before {
    content: "●";
    font-size: 8px;
    color: #ffd700;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav a:hover::before, .nav a.active::before {
    opacity: 1;
}

/* 容器 - 古风边框+渐变 */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    background: linear-gradient(135deg, rgba(10, 5, 0, 0.85), rgba(30, 15, 5, 0.85));
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.container::before, .container::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid #ffd700;
    opacity: 0.5;
}

.container::before {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.container::after {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* 标题样式 - 古风装饰 */
h1, h2 {
    text-align: center;
    margin: 25px 0;
    color: #ffd700;
    position: relative;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

h1 {
    font-size: 32px;
    padding-bottom: 15px;
}

h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 10px auto 0;
}

h2 {
    font-size: 26px;
    padding-bottom: 10px;
}

h2::before, h2::after {
    content: "◆";
    color: #ffd700;
    opacity: 0.7;
    margin: 0 15px;
}

h3 {
    color: #ffd700;
    font-size: 20px;
    margin: 15px 0;
}

/* 表单样式 - 质感升级 */
.form-group {
    margin: 20px 0;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f0e6d2;
    font-size: 17px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 17px;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 - 渐变+hover动画 */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c71585, #ff69b4);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(200, 21, 133, 0.3);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #ff69b4, #ff85c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 21, 133, 0.5);
}

.btn.small {
    width: auto;
    padding: 10px 25px;
    font-size: 17px;
}

/* 提示信息 - 美化 */
.alert {
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.7), rgba(180, 0, 0, 0.7));
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.success {
    background: linear-gradient(135deg, rgba(0, 180, 0, 0.7), rgba(0, 120, 0, 0.7));
    border-color: rgba(0, 255, 0, 0.5);
}

/* 主页特色卡片 - 悬浮效果 */
.features {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, rgba(20, 10, 0, 0.7), rgba(40, 20, 5, 0.7));
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card::before {
    content: "⚜";
    color: #ffd700;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.3;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.feature-card h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.feature-card p {
    color: #f0e6d2;
    font-size: 16px;
    line-height: 1.7;
}

/* 下载页 - 按钮美化 */
.download-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(10, 5, 0, 0.6), rgba(30, 15, 0, 0.6));
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin: 20px 0;
}

.download-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #008000, #00a000);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    margin: 25px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 120, 0, 0.3);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #00a000, #00c000);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 120, 0, 0.5);
}

/* 充值页 - 支付方式卡片 */
.pay-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pay-card {
    width: 220px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(20, 10, 0, 0.7), rgba(40, 20, 5, 0.7));
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.pay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.pay-card img {
/* 保持宽度适应卡片（220px），但让高度自动按比例缩放 */
    width: 100%; /* 100% 是相对于父容器 .pay-card 的宽度 */
    height: auto;
    
    margin-bottom: 3px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.pay-card p {
    font-size: 15px;
    color: #f0e6d2;
    font-weight: bold;
}

/* 表格样式 - 古风质感 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

table th {
    background: linear-gradient(135deg, rgba(30, 15, 0, 0.9), rgba(50, 25, 10, 0.9));
    color: #ffd700;
    font-size: 17px;
    font-weight: bold;
    border-right: 1px solid rgba(255, 215, 0, 0.1);
}

table th:last-child {
    border-right: none;
}

table td {
    background: rgba(10, 5, 0, 0.6);
    color: #f0e6d2;
    font-size: 16px;
    border-right: 1px solid rgba(255, 215, 0, 0.1);
}

table td:last-child {
    border-right: none;
}

table tr:hover td {
    background: rgba(20, 10, 0, 0.7);
    color: #ffd700;
}

/* 链接样式 */
a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 文本样式 */
p {
    font-size: 17px;
    color: #f0e6d2;
    margin: 10px 0;
}

ul {
    margin-left: 30px;
    color: #f0e6d2;
    font-size: 17px;
}

ul li {
    margin: 10px 0;
    list-style-type: disc;
}


        /* 分页样式 - 保持与整体风格一致 */
        .pagination {
            margin: 30px 0;
            text-align: center;
        }
        .pagination a {
            display: inline-block;
            margin: 0 5px;
            padding: 6px 12px;
            color: #e0e0e0;
            text-decoration: none;
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 4px;
            background: rgba(10, 5, 0, 0.5);
            transition: all 0.3s;
        }
        .pagination a:hover, .pagination a.active {
            color: #ffd700;
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.1);
        }
        .pagination a.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        /* 公告标题高亮样式 */
        .announcement-title {
            font-size: 24px; /* 标题字体放大 */
            font-weight: 600;
            transition: all 0.3s ease;
        }
        .announcement-title:hover {
            color: #fff !important; /* hover时变白 */
            text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); /* 金色光晕效果 */
        }
   
    
    /* 通用警告容器样式 */
.alert {
    padding: 10px 15px;
    margin: 15px auto; /* 自动边距，让块级元素（如div）居中 */
    border-radius: 5px;
    text-align: center; /* 【关键】：使文本居中 */
    border: 1px solid transparent;
    max-width: 400px; /* 限制宽度，让居中效果更明显 */
}

/* 针对错误的警告样式 */
.alert.danger {
    color: #ffffff; /* 【关键】：设置红色文本 (可调整颜色代码) */
    background-color: rgba(255, 0, 0, 0.1);
    border-color: #ff4d4d;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 25px;
    }

    .nav a {
        margin: 0 10px;
        font-size: 16px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }

    .pay-methods {
        gap: 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }
}
