/* CSS Document */




/* ====== 主浮层 ====== */
#cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    padding: 20px;
    z-index: 1000;
    transition: all .3s ease;
	overflow: visible;
}
/* 桌面 */
@media (min-width: 768px) {
    #cookie-consent { width: 20vw; min-width: 300px; }
    .cookie-buttons { display: flex; justify-content: space-between; margin-top: 15px; }
}
/* 移动端 */
@media (max-width: 767px) {
    #cookie-consent { width: 33vw; min-width: 250px; }
    .cookie-buttons { display: flex; flex-direction: column; margin-top: 15px; }
    .cookie-buttons button { margin-bottom: 10px; }
}

/* ====== 收起状态：强制 30×30 正圆 ====== */
#cookie-consent.minimized {
    width: 30px;
    height: 30px;
    min-width: 0 !important;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#cookie-consent.minimized .cookie-content,
#cookie-consent.minimized .cookie-buttons { display: none; }

/* ====== 图片图标 ====== */
.cookie-icon {
    display: none;          /* 默认隐藏，收起时才出现 */
    width: 20px;            /* 图标实际可视大小 */
    height: 20px;
    object-fit: contain;    /* 保持比例 */
}
#cookie-consent.minimized .cookie-icon {
    display: block;         /* 收起时显示 */
}

/* ====== 按钮 ====== */
.cookie-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity .2s;
}
.cookie-btn.accept    { background: #4CAF50; color: #fff; }
.cookie-btn.necessary { background: #ff0000; color: #fff; }
.cookie-btn.policy    { background: #337ab7; color: #fff; }
.cookie-btn:hover { opacity: .9; }

/* ====== 隐私政策弹窗 ====== */
#privacy-policy {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    z-index: 1001;
    padding: 20px;
    overflow-y: auto;
}
#privacy-policy h2 { margin-bottom: 15px; color: #333; }
#privacy-policy p  { margin-bottom: 15px; line-height: 1.5; }
.policy-buttons { display: flex; justify-content: space-between; margin-top: 20px; }

/* ====== 遮罩 ====== */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
}

/* ====== 关闭按钮 ====== */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}
.close-btn:hover { color: #333; }

/* ===== 仅 Cookies 浮层 & 隐私政策弹窗 字号控制 ===== */
#cookie-consent,
#privacy-policy {
    font-size: 14px;          /* 基准 14 px */
    line-height: 1.6;
}
#cookie-consent .cookie-content p,
#privacy-policy p,
#privacy-policy li {
    font-size: 14px;          /* 正文 14 px */
}
#privacy-policy h2 {
    font-size: 18px;          /* 副标题 18 px */
}
#privacy-policy h3 {
    font-size: 16px;          /* 小标题 16 px */
}
/* 按钮保持原来 14 px，无需改动 */


/* ===== 浮在右上角的关闭按钮 ===== */
.close-main {
    position: absolute;
    top: -10px;          /* 向上移 10 px，圆心露在外面 */
    right: -10px;        /* 向右移 10 px */
    width: 30px;         /* 圆直径 */
    height: 30px;
    background: #e60012;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;     /* × 大小 */
    line-height: 30px;   /* 与高度相同，垂直居中 */
    text-align: center;
    cursor: pointer;
    user-select: none;
    z-index: 2001;       /* 浮在提示框之上 */

}
/* 收起后隐藏 */
#cookie-consent.minimized .close-main {
    display: none;
}

