/* css/policy.css - 政策和条款页面样式 */

.policy-page {
    padding: 40px 0;
    background-color: #f9f9f9;
    min-height: calc(100vh - 200px);
}

.policy-page .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.policy-page .page-header h1 {
    color: #4361ee;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.policy-page .page-header .lead {
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.policy-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4361ee;
    font-weight: 600;
}

.policy-section h3 {
    color: #4361ee;
    font-size: 1.3rem;
    margin: 20px 0 15px;
    font-weight: 500;
}

.policy-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.policy-section strong {
    color: #333;
    font-weight: 600;
}

.policy-section em {
    color: #666;
    font-style: italic;
}

.policy-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.policy-section li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.policy-section li:before {
    content: "•";
    color: #4361ee;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.policy-section li strong {
    color: #333;
}

.policy-footer {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
    border-left: 4px solid #4361ee;
}

.policy-footer p {
    color: #555;
    margin-bottom: 10px;
}

.policy-footer strong {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .policy-page {
        padding: 20px 0;
    }
    
    .policy-page .page-header h1 {
        font-size: 2rem;
    }
    
    .policy-page .page-header .lead {
        font-size: 1.1rem;
    }
    
    .policy-content {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .policy-section h2 {
        font-size: 1.4rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .policy-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .policy-content {
        padding: 20px 15px;
    }
    
    .policy-page .page-header h1 {
        font-size: 1.8rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .policy-footer {
        padding: 20px 15px;
    }
}

/* 打印样式 */
@media print {
    .policy-page {
        background: white;
        padding: 0;
    }
    
    .policy-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .policy-footer {
        page-break-inside: avoid;
    }
    
    .floating-footer,
    .main-footer {
        display: none;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .policy-page {
        background-color: #1a1a1a;
    }
    
    .policy-content {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .policy-page .page-header h1 {
        color: #667eea;
    }
    
    .policy-section h2 {
        color: #e0e0e0;
        border-bottom-color: #667eea;
    }
    
    .policy-section p,
    .policy-section li {
        color: #ccc;
    }
    
    .policy-section strong {
        color: #e0e0e0;
    }
    
    .policy-section li:before {
        color: #667eea;
    }
    
    .policy-footer {
        background: #333;
        border-left-color: #667eea;
    }
    
    .policy-footer p,
    .policy-footer strong {
        color: #bbb;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .policy-content {
        border: 2px solid #000;
    }
    
    .policy-section h2 {
        border-bottom: 3px solid #000;
    }
    
    .policy-footer {
        border-left: 4px solid #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .policy-content {
        transition: none;
    }
}

/* 添加一些交互效果 */
.policy-section h2:hover {
    color: #3a56d4;
}

.policy-section li:hover {
    color: #333;
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #4361ee;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3a56d4;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}
/* 关闭按钮样式 */
.policy-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.policy-close-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.policy-close-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.policy-close-btn:active {
    transform: translateY(0);
}

.policy-close-btn.secondary {
    background: #6c757d;
}

.policy-close-btn.secondary:hover {
    background: #5a6268;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .policy-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .policy-close-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .policy-actions {
        border-top-color: #444;
    }
    
    .policy-close-btn {
        background: #667eea;
    }
    
    .policy-close-btn:hover {
        background: #5a6fd8;
    }
    
    .policy-close-btn.secondary {
        background: #495057;
    }
    
    .policy-close-btn.secondary:hover {
        background: #343a40;
    }
}
/* 固定底部关闭按钮 */
.fixed-bottom-close {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(67, 97, 238, 0.95);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fixed-bottom-close:hover {
    background: rgba(58, 86, 212, 0.95);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* 确保按钮不会在移动端遮挡内容 */
@media (max-width: 768px) {
    .fixed-bottom-close {
        bottom: 80px; /* 避免和浮动导航冲突 */
        width: 90%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 在打印时隐藏 */
@media print {
    .fixed-bottom-close,
    .policy-actions {
        display: none !important;
    }
}