/* Cookie Consent Banner */
#cookie-consent-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
}

#cookie-consent-overlay.show {
    display: block;
}

#cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    font-family: "微软雅黑", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

#cookie-consent-banner.show {
    display: block;
    animation: cookieSlideUp 0.35s ease;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 30px;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cookie-consent-title {
    font-size: 20px;
    font-weight: bold;
    color: #FF6C95;
    margin: 0;
}

.cookie-consent-title span {
    font-size: 16px;
    color: #888;
    font-weight: normal;
    margin-left: 10px;
}

.cookie-consent-intro {
    margin-bottom: 16px;
    color: #555;
}

.cookie-consent-info {
    background: #FFF5F8;
    border: 1px solid #FFD0D0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #444;
}

.cookie-consent-info p {
    margin: 4px 0;
}

.cookie-consent-info a {
    color: #FF6C95;
    text-decoration: none;
}

.cookie-consent-info a:hover {
    text-decoration: underline;
}

/* Custom settings panel */
#cookie-custom-panel {
    display: none;
    margin-bottom: 18px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

#cookie-custom-panel.show {
    display: block;
}

.cookie-category {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.cookie-category-desc {
    font-size: 12px;
    color: #888;
}

.cookie-category-toggle {
    flex-shrink: 0;
    padding-top: 2px;
}

.cookie-category-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FF6C95;
}

.cookie-category-toggle input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-required {
    font-size: 11px;
    color: #FF6C95;
    margin-left: 6px;
}

/* Buttons */
.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.4;
}

.cookie-btn-accept {
    background: #FF6C95;
    color: #fff;
    border-color: #FF6C95;
}

.cookie-btn-accept:hover {
    background: #e85a82;
    border-color: #e85a82;
}

.cookie-btn-reject {
    background: #fff;
    color: #666;
    border-color: #ccc;
}

.cookie-btn-reject:hover {
    border-color: #999;
    color: #333;
}

.cookie-btn-custom {
    background: #fff;
    color: #FF6C95;
    border-color: #FF6C95;
}

.cookie-btn-custom:hover {
    background: #FFF5F8;
}

.cookie-btn-save {
    background: #FF6C95;
    color: #fff;
    border-color: #FF6C95;
    display: none;
}

.cookie-btn-save.show {
    display: inline-block;
}

.cookie-btn-save:hover {
    background: #e85a82;
    border-color: #e85a82;
}

@media (max-width: 768px) {
    .cookie-consent-inner {
        padding: 18px 16px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        text-align: center;
    }
}
