/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000000;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 容器布局 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
h1, h2, h3, h4 {
    margin-bottom: 5px;
    color: #ffffff;
}

h1 {
    font-size: 2rem;
    text-align: left; /* 移除居中，保持左对齐 */
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

/* 头部样式 */
header {
    background-color: #000000;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header img {
    max-width: 100%;
    height: auto;
}

/* 按钮基础样式 */
.btn {
    padding: 10px 20px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    cursor: pointer; 
    transition: all 0.3s ease;
    pointer-events: auto; 
}

/* 优化 .btn-primary 按钮 */
.btn-primary {
    background-color: #0056b3; /* 更深的蓝色背景 */
    color: white; /* 文字颜色保持白色 */
}

.btn-primary:hover {
    background-color: #004085; /* 更深的蓝色用于 hover */
}

/* 优化 .btn-success 按钮 */
.btn-success {
    background-color: #218838; /* 更深的绿色背景 */
    color: white; /* 文字颜色保持白色 */
}

.btn-success:hover {
    background-color: #1e7e34; /* 更深的绿色用于 hover */
}

/* .btn-lg 样式 */
.btn-lg {
    padding: 15px 30px;
    font-size: 1.25rem; /* 大按钮字体更大 */
}

/* 主要内容区域 */
section {
    padding: 60px 0;
}

section.bg-primary {
    background-color: #007bff;
    color: white;
    padding: 30px 0;
}

section.bg-primary h2 {
    font-size: 2rem;
}

/* 自适应布局 */
@media (max-width: 767px) {
    header .d-flex {
        flex-direction: column;
        text-align: center;
    }

    header .btn {
        width: 100%;
        margin: 5px 0;
    }

    section h1 {
        font-size: 1.5rem;
        text-align: left; 
    }

    section p {
        font-size: 1rem;
        text-align: left; 
    }

    section .img-fluid {
        width: 100%;
        height: auto;
    }

    /* 移动端优化，减少边距 */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    section.bg-primary {
        padding: 20px 0;
    }

    section.bg-primary h2 {
        font-size: 1.5rem;
    }
}
.bg-primary .btn-success {
    padding: 8px 25px;  /* 调整按钮的内边距 */
    font-size: 1.25rem;   /* 调整按钮的字体大小 */
}

/* 增加 section 的上下留白 */
section.container.py-5 {
    padding-top: 60px; /* 上留白 */
    padding-bottom: 60px; /* 下留白 */
}
section.bg-primary {
    margin-top: -12px;  /* 将 section 向上移动 */
    padding: 30px 0;    /* 保持原有的 padding */
}

/* 桌面端 */
@media (min-width: 768px) {
    .d-flex {
        display: flex;
        justify-content: center; 
        align-items: center; 
        text-align: center; 
    }

    section .d-flex img {
        margin-bottom: 20px; 
    }

    section .d-flex .ms-3 {
        display: flex;
        flex-direction: column; 
        gap: 10px; 
        justify-content: center; 
    }

    section .d-flex .ms-3 a {
        padding: 10px 30px;
        border-radius: 30px;
        font-size: 1rem;
        transition: background-color 0.3s ease;
        pointer-events: auto;
        cursor: pointer; 
    }

    section h1 {
        font-size: 2.5rem;
        text-align: left; 
    }

    section p {
        font-size: 1.2rem;
        text-align: left; 
    }
}

/* 按钮样式 */
.btn-primary, .btn-success {
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #004085; 
}

.btn-success:hover {
    background-color: #1e7e34; 
}

/* 页脚 */

/* 隐藏链接的默认行为 */
a[rel="nofollow noopener noreferrer"] {
    pointer-events: none;
    cursor: not-allowed;
}

/* 修复：允许带有 rel="nofollow noopener noreferrer" 的按钮可以点击 */
a.btn[rel="nofollow noopener noreferrer"] {
    pointer-events: auto; 
    cursor: pointer;
}

/* 隐私政策和条款区域 */
section#politica-privacidade, section#termos-condicoes {
    background-color: #000000; 
    color: #ffffff;
    padding: 40px 20px; 
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd; 
    margin: 20px 0;
}

section#politica-privacidade h2, section#termos-condicoes h2 {
    color: #28a745; 
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center; 
}

section#politica-privacidade p, section#termos-condicoes p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify; 
    max-width: 800px; 
    margin: 0 auto; 
}

/* 手机端适配 */
@media (max-width: 767px) {
    section#politica-privacidade, section#termos-condicoes {
        padding: 20px 10px; 
    }

    section#politica-privacidade h2, section#termos-condicoes h2 {
        font-size: 1.5rem; 
    }

    section#politica-privacidade p, section#termos-condicoes p {
        font-size: 0.9rem; 
        text-align: left; 
    }
}

/* 电脑端适配 */
@media (min-width: 768px) {
    section#politica-privacidade, section#termos-condicoes {
        padding: 60px 0;
        max-width: 1000px;  
        margin: 0 auto;     
    }

    section#politica-privacidade h2, section#termos-condicoes h2 {
        font-size: 2.5rem; 
    }

    section#politica-privacidade p, section#termos-condicoes p {
        font-size: 1.1rem; 
    }
}

/* 解决 "Junte-se aos vencedores!" 和 "CADASTRE-SE" 按钮居中 */
.bg-primary h2, .text-center {
    text-align: center;
}

section .btn-success {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* col-12 col-lg-6里面的按钮 */
.col-12 .btn {
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1rem;
}

/* Acessos区块的按钮样式 */
section .d-flex .btn-primary {
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1rem;
}

/* 针对 CADASTRE-SE, Login, Registrar-se 按钮添加额外样式 */
section a.btn {
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1rem;
    display: inline-block; 
    pointer-events: auto;
    cursor: pointer; 
}

section a.btn-lg {
    padding: 15px 30px;
    font-size: 1.25rem; 
    cursor: pointer; 
}

/* 主要内容区域 */
section {
    padding: 5px 0;
}

/* 自适应布局 */
@media (max-width: 767px) {
    /* 移动端上，图片和按钮居中显示 */
    .d-flex {
        flex-direction: column;  
        text-align: center;  
    }

    .d-flex img {
        margin-bottom: 20px;  
    }

    .d-flex .ms-3 {
        display: flex;
        flex-direction: column;  
        gap: 10px;  
    }
}

/* 桌面端 */
@media (min-width: 768px) {
    .d-flex {
        display: flex;  
        justify-content: center;  
        align-items: center;  
        gap: 20px;  
    }

    .d-flex img {
        order: 0;  
    }

    .d-flex .ms-3 {
        display: flex;
        flex-direction: column;  
        justify-content: center;  
        gap: 10px;  
    }

    .d-flex .ms-3 a {
        padding: 10px 30px;
        border-radius: 30px;
        font-size: 1rem;
        transition: background-color 0.3s ease;
        pointer-events: auto;
        cursor: pointer; 
    }
}