/* style.css - 修复版 */
body {
    font-family: -apple-system, "Microsoft YaHei", BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    /* 桌面端保持全屏，手机端自动高度 */
    height: 100vh;
    overflow: hidden; 
}
header {
    background-color: #002f6c;
    color: #fff;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
    z-index: 10;
}
header h1 { font-size: 22px; margin: 0; font-weight: 600; }
.container { 
    display: flex; 
    flex: 1; 
    overflow: hidden; /* 桌面端内部滚动 */
}
nav {
    width: 320px;
    background: #fff;
    border-right: 1px solid #dcdcdc;
    overflow-y: auto;
    flex-shrink: 0;
}
nav ul { list-style: none; padding: 0; margin: 0; }
nav li {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    line-height: 1.4;
}
nav li:hover { background-color: #f7f9fc; color: #002f6c; }
nav li.active {
    background-color: #eef4ff;
    color: #0052cc;
    font-weight: 600;
    border-left: 5px solid #0052cc;
}
nav li .icon { margin-right: 10px; font-size: 18px; width: 24px; text-align: center; }
.menu-label {
    padding: 20px 20px 5px;
    font-size: 12px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
}
.tag-required {
    background-color: #d93025;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: bold;
    text-transform: uppercase;
}
main { 
    flex: 1; 
    padding: 40px; 
    overflow-y: auto; /* 桌面端内容滚动 */
    background-color: #f0f2f5; 
}
.card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
h2 { margin-top: 0; color: #1a1a1a; font-size: 26px; margin-bottom: 5px; }
.sub-header {
    color: #666;
    margin-bottom: 25px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
    font-size: 14px;
}
video {
    width: 100%;
    height: auto;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}
.resources {
    background: #fff8e1;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn-policy {
    text-decoration: none;
    background-color: #d93025;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-policy:hover { background-color: #b01c11; }
.instructions h3 { font-size: 18px; color: #333; margin-bottom: 15px; font-weight: 600; }
ol { padding-left: 20px; color: #444; }
li.step { margin-bottom: 10px; line-height: 1.6; }
li.step a { color: #0052cc; text-decoration: none; font-weight: 500; }
footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px 20px;
    text-align: center;
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

/* 关键修复：手机端强制允许滚动 */
@media screen and (max-width: 768px) {
    body {
        height: auto !important;
        overflow-y: auto !important; /* 强制开启滚动 */
        display: block;
    }
    .container {
        flex-direction: column;
        overflow: visible !important;
        height: auto !important;
        display: block;
    }
    nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dcdcdc;
        height: auto;
        overflow-y: visible !important;
    }
    main {
        padding: 15px;
        overflow: visible !important;
        height: auto !important;
    }
    .card {
        padding: 20px;
        box-shadow: none;
    }
    .resources {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .btn-policy {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
/* 通用排版样式，用于 Policy 页面 */
p, li {
    line-height: 1.6;
    margin-bottom: 10px;
}
ul {
    padding-left: 20px;
}
/* --- Policy Page Formatting (文档页面排版) --- */
.policy-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #002f6c;
    border-left: 4px solid #d93025; /* 左侧红线装饰 */
    padding-left: 10px;
    font-size: 18px;
}
.policy-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}
.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.policy-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}
.btn-back {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px;
    text-align: center;
    background: #002f6c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}
.btn-back:hover {
    background: #001a3d;
}

