/* Cookie Consent 相关页面样式 */

/* 页面整体样式 */
.cookie-policy-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.cookie-policy-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.cookie-policy-header {
    background: var(--global--color-primary);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.cookie-policy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cookie-policy-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cookie-policy-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.cookie-policy-content {
    padding: 40px 30px;
}

/* 章节样式 */
.cookie-policy-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--global--color-primary);
    transition: all 0.3s ease;
}

.cookie-policy-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-policy-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.cookie-policy-section h3::before {
    content: '';
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--global--color-primary), #764ba2);
    margin-right: 15px;
    border-radius: 2px;
}

.cookie-policy-section h5 {
    color: #34495e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 25px;
}

.cookie-policy-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.cookie-policy-section ul {
    padding-left: 20px;
}

.cookie-policy-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
}

.cookie-policy-section li::before {
    content: '•';
    color: var(--global--color-primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Cookie设置页面特殊样式 */
.cookie-settings-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cookie-setting-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cookie-setting-item:hover {
    border-color: var(--global--color-primary);
    box-shadow: 0 3px 10px rgba(var(--global--color-primary-rgb, 102, 126, 234), 0.1);
}

.cookie-setting-item h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-setting-item p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 开关样式 */
.form-check.form-switch {
    padding-left: 0;
}

.form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-top: 0;
    background-color: #e9ecef;
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--global--color-primary);
    border-color: var(--global--color-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--global--color-primary-rgb, 102, 126, 234), 0.25);
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 10px;
}

/* 按钮样式 */
.cookie-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: var(--global--color-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--global--color-primary-rgb, 102, 126, 234), 0.4);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    color: white;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* 卡片样式 */
.cookie-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cookie-card .card-body {
    padding: 30px;
}

/* 分隔线样式 */
.cookie-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--global--color-primary), transparent);
    margin: 30px 0;
    border: none;
}

/* 联系信息样式 */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

.contact-info h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-info p {
    color: #6c757d;
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--global--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--global--color-primary);
    opacity: 0.8;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cookie-policy-header {
        padding: 30px 20px;
    }
    
    .cookie-policy-header h1 {
        font-size: 2rem;
    }
    
    .cookie-policy-content {
        padding: 30px 20px;
    }
    
    .cookie-policy-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .cookie-setting-item {
        padding: 20px;
    }
    
    .cookie-btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .cookie-policy-header h1 {
        font-size: 1.8rem;
    }
    
    .cookie-policy-section h3 {
        font-size: 1.3rem;
    }
    
    .cookie-policy-section h5 {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-policy-section {
    animation: fadeInUp 0.6s ease-out;
}

.cookie-policy-section:nth-child(2) {
    animation-delay: 0.1s;
}

.cookie-policy-section:nth-child(3) {
    animation-delay: 0.2s;
}

.cookie-policy-section:nth-child(4) {
    animation-delay: 0.3s;
}

/* 图标样式 */
.cookie-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--global--color-primary) 0%, #764ba2 100%);
    border-radius: 50%;
    position: relative;
}

.cookie-icon::before {
    content: '🍪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

/* 成功消息样式 */
.cookie-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #155724;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.cookie-success-message::before {
    content: '✓';
    background: #28a745;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* 加载状态样式 */
.cookie-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--global--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
