/* 基础样式 - 适用于所有设备 */
body {
    background-color: #f5f5f5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 头部样式 - 定位到最顶部 */
#privacy-protocol-header {
    top: 0 !important;
    position: fixed !important;
    z-index: 1000 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 同时确保通用类也生效 */
.mui-bar-nav {
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 内容区域调整 - 确保与头部位置匹配并下移20px */
.mui-content {
    padding-top: 54px !important;
}

/* 使用更具体的选择器覆盖MUI默认样式 */
.mui-bar-nav~.mui-content {
    padding-top: 54px !important;
}

/* 容器样式 */
.protocols-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 100px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1, h2, h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
}

h1 {
    font-size: 24px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

h2 {
    font-size: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    border-left: 4px solid #007aff;
}

h3 {
    font-size: 18px;
}

/* 文本样式 */
p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

/* 列表样式 */
ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: 14px;
}

/* 版权信息 */
.copyright {
    font-size: 12px;
    color: #999;
    text-align: center;
    display: block;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* 底部按钮 */
.bottom-buttons {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.bottom-buttons a {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-agree {
    background-color: #007aff;
    color: white;
    border: 1px solid #007aff;
}

.btn-agree:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-disagree {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-disagree:hover {
    background-color: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端样式 */
    .protocols-container {
        padding: 15px;
        margin: 10px;
        border-radius: 4px;
        min-height: calc(100vh - 120px);
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
        padding: 8px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    p, li {
        font-size: 13px;
    }
    
    .bottom-buttons a {
        padding: 10px 25px;
        font-size: 14px;
        margin: 0 5px;
    }
    
    /* 移动端优化：增加行高提高可读性 */
    p, li {
        line-height: 1.8;
    }
    
    /* 移动端优化：调整内容区域内边距 */
    .mui-content {
        padding-top: 54px !important;
    }
}

@media (max-width: 480px) {
    /* 小屏移动端样式 */
    .protocols-container {
        padding: 10px;
        margin: 5px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    h3 {
        font-size: 15px;
    }
    
    p, li {
        font-size: 12px;
    }
    
    .bottom-buttons a {
        padding: 8px 20px;
        font-size: 13px;
        margin: 0 3px;
    }
    
    /* 小屏移动端优化：按钮垂直排列 */
    .bottom-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .bottom-buttons a {
        width: 80%;
        margin: 5px 0;
    }
}

@media (min-width: 1200px) {
    /* 大屏PC样式 */
    .protocols-container {
        padding: 40px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p, li {
        font-size: 15px;
    }
}

/* 打印样式 */
@media print {
    body {
        background-color: white;
    }
    
    .protocols-container {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    
    .bottom-buttons {
        display: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .protocols-container {
        background-color: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    h1, h2, h3 {
        color: #e0e0e0;
    }
    
    h2 {
        background-color: #3d3d3d;
        border-left-color: #007aff;
    }
    
    .copyright {
        color: #999;
        border-top-color: #4d4d4d;
    }
}