/* 隐私政策和Cookie设置样式 */


/* 容器样式 */
.privacy-container,
.cookie-settings-container {
    max-width: 1200px;
    margin: 8px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
.privacy-header,
.cookie-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.privacy-header h1,
.cookie-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.last-updated {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 内容区域 */
.privacy-content {
    line-height: 1.8;
    color: #444;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.privacy-section h3 {
    color: #34495e;
    font-size: 20px;
    margin: 25px 0 15px;
}

.privacy-section h4 {
    color: #7f8c8d;
    font-size: 18px;
    margin: 20px 0 10px;
}

.privacy-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.privacy-section li {
    margin-bottom: 8px;
}

/* Cookie表格样式 */
.cookie-summary {
    margin: 25px 0;
    overflow-x: auto;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-table thead {
    background: #2c3e50;
    color: white;
}

.cookie-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.cookie-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.cookie-table tbody tr:hover {
    background-color: #f8f9fa;
}

.cookie-table tbody tr:last-child {
    border-bottom: none;
}

.cookie-table td {
    padding: 12px 15px;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.cookie-type.necessary {
    background-color: #dc3545;
    color: white;
}

.cookie-type.preferences {
    background-color: #17a2b8;
    color: white;
}

.cookie-type.analytics {
    background-color: #28a745;
    color: white;
}

.cookie-type.third-party {
    background-color: #6c757d;
    color: white;
}

.cookie-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

/* 当前状态样式 */
.current-status {
    margin-bottom: 30px;
}

.current-status h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.status-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
}

.status-card p {
    margin-bottom: 10px;
    font-size: 16px;
}

.status-accepted {
    color: #28a745;
    font-weight: bold;
}

.status-rejected {
    color: #dc3545;
    font-weight: bold;
}

/* Cookie设置表单 */
.cookie-settings-form {
    margin-bottom: 40px;
}

.category-setting {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.category-setting:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-header h4 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 18px;
}

.category-header input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.category-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.category-status.always-on {
    background: #6c757d;
    color: white;
}

.category-status.optional {
    background: #17a2b8;
    color: white;
}

.category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-list {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.cookie-list h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
}

.cookie-list ul {
    margin: 0;
    padding-left: 20px;
}

.cookie-list li {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-list small {
    color: #6c757d;
}

/* 操作按钮区域 */
.cookie-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: center;
}

.accept-all,
.save-settings,
.reject-all {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-actions .btn {
    width: 100%;
    max-width: 200px;
    margin-bottom: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
}

.help-text {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

/* 高级操作 */
.advanced-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.advanced-actions .btn {
    padding: 8px 16px;
}

/* 用户偏好设置 */
.user-preferences {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.user-preferences h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.preference-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
}

.preference-item h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
}

.preference-item .form-control {
    margin-bottom: 10px;
}

.preference-item .btn {
    width: 100%;
}

.reading-settings .form-group {
    margin-bottom: 15px;
}

.reading-settings label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

/* Cookie信息区域 */
.cookie-info {
    margin-top: 40px;
    padding: 25px;
    background: #e9ecef;
    border-radius: 8px;
}

.cookie-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.info-content {
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 15px;
}

.info-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.info-content li {
    margin-bottom: 8px;
}

/* 底部操作按钮 */
.privacy-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.privacy-actions .btn {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 16px;
}

/* 模态框样式 */
#cookieConsentModal .modal-content {
    border-radius: 8px;
    border: none;
}

#cookieConsentModal .modal-header {
    background: #2c3e50;
    color: white;
    border-radius: 8px 8px 0 0;
    border: none;
}

#cookieConsentModal .modal-title {
    font-weight: bold;
}

#cookieConsentModal .modal-body {
    padding: 30px;
    text-align: center;
}

#cookieConsentModal .modal-body p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #333;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-actions .btn {
    min-width: 120px;
    padding: 10px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    
    .privacy-header h1,
    .cookie-header h1 {
        font-size: 24px;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
    }
    
    .cookie-actions {
        grid-template-columns: 1fr;
    }
    
    .preferences-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .privacy-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .privacy-section h2 {
        font-size: 20px;
    }
    
    .privacy-section h3 {
        font-size: 18px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-status {
        margin-top: 10px;
    }
    
    .advanced-actions {
        flex-direction: column;
    }
    
    .advanced-actions .btn {
        width: 100%;
    }
}


/* 打印样式 */
@media print {
    .privacy-actions,
    .cookie-actions,
    .advanced-actions,
    .user-preferences .btn,
    #cookieConsentModal {
        display: none !important;
    }
    
    .privacy-container,
    .cookie-settings-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .category-setting {
        break-inside: avoid;
    }
}