﻿ * {
            margin: 0;
            padding: 0;
        }
        body {
            background-image: url('one.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            height: 100vh;
            color: white;
            font-family: Arial, sans-serif;
        }
        .nav {
            background-color: rgba(0, 0, 0, 0.7);
            padding: 20px;
            text-align: center;
        }
        .nav a {
            color: white;
            text-decoration: none;
            margin: 0 20px;
            font-size: 18px;
            padding: 10px 20px;
            display: inline-block;
        }
        .nav a:hover {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
        }
        .content {
            padding: 100px 50px;
            text-align: center;
        }
        h1 {
            font-size: 60px;
            margin-bottom:
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
/* ===== 新增代码：解决内容超出背景图问题 ===== */

/* 1. 让body可以随内容延伸 */
body {
    height: auto; /* 覆盖原来的height: 100vh */
    min-height: 100vh; /* 保证至少占满一屏 */
}

/* 2. 添加背景固定效果，让图片始终覆盖 */
body {
    background-attachment: fixed; /* 背景固定，内容滚动时背景不动 */
}

/* 3. 为内容区域添加半透明背景，提高可读性 */
.content {
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    border-radius: 10px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 30px 50px !important; /* 覆盖原有padding，但保持数值 */
    backdrop-filter: blur(5px); /* 毛玻璃效果（可选） */
    -webkit-backdrop-filter: blur(5px);
}

/* 4. 如果表格或其他内容也需要背景 */
table, .table-container {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
    color: white;
}

    /* 5. 确保表格内的文字可见 */
    table td, table th {
        padding: 10px;
        border-color: rgba(255, 255, 255, 0.3);
    }

/* 6. 链接按钮样式（保持原有.a类） */
.a {
    display: inline-block;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 30px;
    margin: 20px auto;
    color: white;
    background-color: #FF6B35;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .a:hover {
        background-color: #FF852B;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    }

/* 7. 响应式设计 - 小屏幕适配 */
@media (max-width: 768px) {
    .content {
        padding: 20px !important;
        margin: 15px;
    }

    h1 {
        font-size: 40px;
    }

    .nav a {
        display: block;
        margin: 5px 0;
    }
}

/* 8. 美化滚动条（可选） */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #FF852B;
    }

/* 9. 确保所有文字在深色背景上清晰 */
p, li, .text-content {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

/* 10. 修复h1中的语法错误（原代码中margin-bottom后面没写值） */
h1 {
    margin-bottom: 20px; /* 添加缺失的margin-bottom值 */
}