/* 基础样式 */

/* 核心：强制初始隐藏，优先级最高 */
#crcn-notice {
    display: none;
}




#crcn-notice {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-sizing: border-box;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* 位置设置 */
#crcn-notice[data-position="top"] {
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#crcn-notice[data-position="bottom"] {
    bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* 容器 */
#crcn-notice .crcn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 文本样式 */
#crcn-notice .crcn-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

/* 隐私政策链接 */
#crcn-notice .crcn-privacy-link {
    color: inherit;
    text-decoration: underline;
    margin-left: 8px;
    white-space: nowrap;
}

/* 按钮容器 */
#crcn-notice .crcn-buttons {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
#crcn-notice .crcn-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px; /* 手机端触摸区域标准 */
    min-width: 100px;
}

/* 按钮交互效果 */
#crcn-notice .crcn-btn:active, .crcn-btn-active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 错误提示 */
#crcn-notice .crcn-error {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: #F43F5E;
    color: white;
    border-radius: 4px;
    z-index: 99999;
    font-size: 14px;
    animation: fade 2s ease;
}

@keyframes fade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 手机端适配（屏幕<768px） */
@media (max-width: 768px) {
    #crcn-notice .crcn-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }


    /* button 父级div 的样式 */
    #crcn-notice .crcn-buttons {
        width: 100%;
        flex-direction: row; /* 水平排列 */
        gap: 10px;
        /* 新增以下属性实现子元素居中 */
        display: flex; /* 明确声明为Flex容器（关键，之前可能遗漏） */
        justify-content: center; /* 水平方向居中对齐 */
        align-items: center; /* 垂直方向居中对齐（可选，根据需要） */
    }
    
    /* button 的样式 */
    #crcn-notice .crcn-btn {
        width: auto;
        padding: 14px 20px;
        margin: 5px;
        font-size: 15px;
        box-sizing: border-box;
        /* 无需额外设置居中，由父级Flex控制 */
    }




    #crcn-notice .crcn-text {
        font-size: 13px;
    }
}
