@charset "utf-8";
/* CSS Document */

#cookie-consent-banner {
            position: fixed;
            bottom: 0;
            left: 20px;
            right: auto;
            width: min(620px, calc(100% - 380px));
            max-width: none;
            margin: 0;
            padding: 14px 16px;
            z-index: 100000000;
            opacity: 0;
            border: 1px solid #dfe2df;
            border-radius: 3px 3px 0 0;
            background: #ffffff;
            box-shadow: 0 16px 42px rgba(31, 35, 37, 0.2);
            transform: translateY(calc(100% + 48px));
            transition: transform 0.35s ease, opacity 0.35s ease;
        }

        #cookie-consent-banner.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .cookie-content {
            display: flex;
            flex-direction: row;
            gap: 16px;
            align-items: center;
        }

        .cookie-message {
            min-width: 0;
            flex: 1;
            font-size: 13px;
            line-height: 1.45;
            color: #333;
        }

        .cookie-message a {
            color: #aa2735;
            text-decoration: none;
            font-weight: 500;
        }

        .cookie-message a:hover {
            text-decoration: underline;
        }

        .cookie-message a:focus-visible,
        .cookie-btn:focus-visible,
        .close-modal:focus-visible {
            outline: 3px solid rgba(170, 39, 53, 0.3);
            outline-offset: 3px;
        }

        .cookie-buttons {
            display: flex;
            gap: 10px;
            flex: 0 0 auto;
            flex-wrap: nowrap;
        }

        .cookie-btn {
            min-width: 142px;
            padding: 8px 14px;
            border: 1px solid transparent;
            border-radius: 3px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 36px;
        }

        .btn-accept {
            border-color: #bf2429;
            background-color: #bf2429;
            color: white;
            flex: 1;
        }

        .btn-accept:hover {
            border-color: #991c21;
            background-color: #991c21;
        }

        .btn-reject {
            border-color: #a9b3ba;
            background-color: #ffffff;
            color: #17232d;
            flex: 1;
        }

        .btn-reject:hover {
            border-color: #7f8b94;
            background-color: #f0f1ef;
        }

        /* 隐私政策弹窗样式 */
        .privacy-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 100000001;
            align-items: center;
            justify-content: center;
        }

        .privacy-modal.active {
            display: flex;
        }

        .privacy-content {
            background: #ffffff;
            border-radius: 12px;
            width: 90%;
            max-width: 750px;
            max-height: 70vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
        }

        .privacy-header {
            padding:15px 20px 10px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .privacy-title {
            margin: 0;
            font-size: 18px;
            color: #333;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #999;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-modal:hover {
            color: #333;
        }

        .privacy-body {
            padding: 20px;
            color: #555;
            flex: 1;
        }

        .privacy-body h3 {
            color: #333;
            margin-top: 1.5em;
            margin-bottom: 0.8em;
        }

        .privacy-body p {
            margin-bottom: 1em;
        }

        .privacy-body ul {
            padding-left: 20px;
            margin-bottom: 1em;
        }

        .privacy-body li {
            margin-bottom: 0.5em;
        }
		
		@media (min-width: 768px) and (max-width: 1239px) {
            #cookie-consent-banner {
                width: min(760px, calc(100% - 40px));
                bottom: env(safe-area-inset-bottom);
            }
        }

        /* 响应式设计 */
        @media (max-width: 767px) {
            #cookie-consent-banner {
                left: 50%;
                right: auto;
                width: calc(100% - 24px);
                bottom: calc(62px + env(safe-area-inset-bottom));
                padding: 12px;
                border-radius: 3px 3px 0 0;
                transform: translate(-50%, calc(100% + 48px));
            }

            #cookie-consent-banner.visible {
                transform: translate(-50%, 0);
            }

            .cookie-message {
                font-size: 12px;
                line-height: 1.4;
            }

            .cookie-message br {
                display: none;
            }

            .cookie-btn {
                min-height: 34px;
                padding: 7px 8px;
                font-size: 12px;
            }

            .privacy-content {
                width: 95%;
                max-height: 90vh;
            }

            .privacy-header {
                padding: 15px;
            }

            .privacy-body {
                padding: 15px;
				font-size:13px;
				height:50%;
				max-height:360px;
            }

            .privacy-title {
                font-size: 16px;
            }
        }

        @media (max-width: 640px) {
            .cookie-content {
                flex-direction: column;
                gap: 10px;
                align-items: stretch;
            }

            .cookie-buttons {
                width: 100%;
            }

            .cookie-btn {
                min-width: 0;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            #cookie-consent-banner {
                transition: none;
            }
        }
