.cookie-notice {
    position: fixed;
    left: 0px;
    bottom: 0px;
    z-index: 9999;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 24px;
    display: none;
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-container {
    width: 100%;
    position: relative;
}

.cookie-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
}
.cookie-close:hover {
    color: #000;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cookie-header i {
    font-size: 22px;
    color: #4a6fa5;
}

.cookie-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.cookie-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
/* Privacy Policy 链接样式 */
.cookie-privacy-link {
    color: var(--secondary-hover-color);
    text-decoration: none;
    font-weight: 500;
}
.cookie-privacy-link:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 8px;
    border-radius: 5px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.accept-btn {
    background: #4a6fa5;
    color: white;
}
.accept-btn:hover {
    background: #3a5a8c;
}

.reject-btn {
    background: #f1f3f5;
    color: #495057;
}
.reject-btn:hover {
    background: #e9ecef;
}

.setting-btn {
    background: transparent;
    color: #4a6fa5;
    border: 1px solid #4a6fa5;
}
.setting-btn:hover {
    background: #f5f7fb;
}

/* ======================
   Cookie 设置面板
======================= */
.cookie-settings {
    position: fixed;
    left: 0px;
    bottom:0px;
    z-index: 10000;
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.settings-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 4px;
}
.settings-close:hover {
    color: #000;
}

.settings-desc {
    font-size: 13px;
    color: #777;
    margin: 0 0 18px 0;
}

.cookie-option-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 4px;
}

.cookie-option input {
    margin-top: 4px;
    accent-color: #4a6fa5;
}

.option-text {
    flex: 1;
}
.option-text strong {
    display: block;
    font-size: 14px;
    color: #222;
    margin-bottom: 3px;
}
.option-text span {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn {
    padding: 10px 20px;
    border-radius: 6px;
    background: #f1f3f5;
    color: #495057;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.cancel-btn:hover {
    background: #e9ecef;
}

.save-btn {
    padding: 10px 20px;
    border-radius: 6px;
    background: #4a6fa5;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.save-btn:hover {
    background: #3a5a8c;
}