:root { --text-color: #323130; --card-bg: rgba(255, 255, 255, 0.85); --border-color: rgba(0, 0, 0, 0.1); --primary-color: #0078d4; --primary-hover: #106ebe; --secondary-bg: #e1dfdd; --secondary-hover: #d2d0ce; --font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif; } /* body { padding: 2rem; box-sizing: border-box; } h1, p { max-width: 800px; text-align: center; line-height: 1.6; } */ /* --- 主内容区域 --- */ .GCookie_MainContent { text-align: center; } .GCookie_MainContent h1 { font-size: 2.5rem; font-weight: 600; } .GCookie_MainContent p { font-size: 1.1rem; color: #605e5c; } /* 用于隐藏元素的 class */ .c-furry.GCookie_Hidden { opacity: 0; transform: scale(0.95); pointer-events: none; position: absolute; } /* --- 通用按钮样式 --- */ .GCookie_Btn { padding: 0.6rem 1.2rem; border: none; border-radius: 6px; font-size: 1rem; font-family: var(--font-family); cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease; } .GCookie_Btn:hover { transform: translateY(-2px); } .GCookie_Btn:active { transform: translateY(0); } .GCookie_BtnPrimary { background-color: var(--primary-color); color: white; } .GCookie_BtnPrimary:hover { background-color: var(--primary-hover); } .GCookie_BtnSecondary { background-color: var(--secondary-bg); color: var(--text-color); } .GCookie_BtnSecondary:hover { background-color: var(--secondary-hover); } /* --- Cookie 政策横幅 --- */ #GCookie_CookieBanner { position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border-color); padding: 1.5rem 2rem; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1); z-index: 1000; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; transform: translateY(100%); opacity: 0; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease; } #GCookie_CookieBanner.GCookie_Show { transform: translateY(0); opacity: 1; } #GCookie_CookieBanner .GCookie_BannerText { color: #000; flex-grow: 1; margin-right: 1rem; } #GCookie_CookieBanner .GCookie_BannerButtons { display: flex; gap: 0.8rem; flex-wrap: wrap; } /* --- Cookie 设置模态框 --- */ #GCookie_CookieSettingsModal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } #GCookie_CookieSettingsModal.GCookie_Show { opacity: 1; pointer-events: auto; } .GCookie_ModalContent { background-color: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 12px; padding: 2rem; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2); max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; transform: scale(0.9); transition: transform 0.3s ease; } #GCookie_CookieSettingsModal.GCookie_Show .GCookie_ModalContent { transform: scale(1); } .GCookie_ModalHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: #000; } .GCookie_ModalHeader h2 { margin: 0; font-size: 1.5rem; font-weight: 600; } .GCookie_ModalBody { color: #000; } .GCookie_CloseBtn { background: none; border: none; font-size: 1.5rem; color: #605e5c; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; border-radius: 4px; transition: background-color 0.2s; } .GCookie_CloseBtn:hover { background-color: var(--secondary-bg); } .GCookie_SettingItem { margin-bottom: 1.5rem; } .GCookie_SettingItem label { display: flex; align-items: center; cursor: pointer; font-size: 1rem; } /* 自定义开关样式 */ .GCookie_Switch { position: relative; display: inline-block; width: 50px; height: 24px; margin-left: 1rem; } .GCookie_Switch input { opacity: 0; width: 0; height: 0; } .GCookie_Slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .GCookie_Slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .GCookie_Slider { background-color: var(--primary-color); } input:checked + .GCookie_Slider:before { transform: translateX(26px); } .GCookie_ModalFooter { display: flex; justify-content: flex-end; margin-top: 2rem; }