/* ===== AI 社区通用弹窗与功能区美化 v1 ===== */
/* 浮动窗口容器 */
.tm_c, .fwin, .p_pop {
    background: linear-gradient(145deg, #0d1220 0%, #14102a 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), 0 0 80px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    overflow: hidden !important;
    color: #c8d6e5 !important;
}

/* 弹窗标题栏 */
.tm_c .flb, .fwin .flb {
    background: linear-gradient(90deg, rgba(0,212,255,0.12) 0%, rgba(168,85,247,0.12) 100%) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
    padding: 14px 20px !important;
}
.tm_c .flb em, .fwin .flb em {
    color: #e0ecff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(0,212,255,0.4) !important;
    font-style: normal !important;
}
/* 关闭按钮 */
.tm_c .flbc, .fwin .flbc {
    color: #7ce8ff !important;
    font-size: 13px !important;
    transition: all .2s !important;
}
.tm_c .flbc:hover, .fwin .flbc:hover {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(0,212,255,0.8) !important;
}

/* 弹窗内容区 */
.tm_c .c, .fwin .c {
    background: transparent !important;
    padding: 20px !important;
    color: #b8c8e0 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

/* ===== 表单元素美化 ===== */
/* 文本输入框 */
.tm_c input[type="text"], .tm_c input[type="password"], .tm_c input[type="number"],
.tm_c textarea, .fwin input[type="text"], .fwin textarea,
.p_pop input[type="text"], .p_pop textarea {
    background: rgba(0, 212, 255, 0.05) !important;
    border: 1px solid rgba(0, 212, 255, 0.25) !important;
    border-radius: 8px !important;
    color: #e0ecff !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all .25s !important;
}
.tm_c input[type="text"]:focus, .tm_c textarea:focus,
.fwin input[type="text"]:focus, .fwin textarea:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.25) !important;
    background: rgba(0, 212, 255, 0.08) !important;
}

/* 下拉选择框 */
.tm_c select, .fwin select, .p_pop select {
    background: rgba(0, 212, 255, 0.06) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 8px !important;
    color: #e0ecff !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all .25s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2300d4ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 30px !important;
}
.tm_c select:hover, .fwin select:hover {
    border-color: rgba(0, 212, 255, 0.6) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2) !important;
}
.tm_c select option, .fwin select option {
    background: #0d1220 !important;
    color: #c8d6e5 !important;
    padding: 8px !important;
}
.tm_c select option:checked, .fwin select option:checked {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
}

/* 单选按钮 */
.tm_c input[type="radio"], .fwin input[type="radio"], .p_pop input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid rgba(0, 212, 255, 0.4) !important;
    border-radius: 50% !important;
    background: rgba(0, 212, 255, 0.05) !important;
    cursor: pointer !important;
    position: relative !important;
    vertical-align: middle !important;
    transition: all .2s !important;
    margin-right: 6px !important;
}
.tm_c input[type="radio"]:checked, .fwin input[type="radio"]:checked {
    border-color: #00d4ff !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}
.tm_c input[type="radio"]:checked::after, .fwin input[type="radio"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00d4ff, #a855f7) !important;
}

/* 复选框 */
.tm_c input[type="checkbox"], .fwin input[type="checkbox"], .p_pop input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid rgba(0, 212, 255, 0.4) !important;
    border-radius: 4px !important;
    background: rgba(0, 212, 255, 0.05) !important;
    cursor: pointer !important;
    position: relative !important;
    vertical-align: middle !important;
    transition: all .2s !important;
    margin-right: 6px !important;
}
.tm_c input[type="checkbox"]:checked, .fwin input[type="checkbox"]:checked {
    border-color: #00d4ff !important;
    background: linear-gradient(135deg, #00d4ff, #a855f7) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}
.tm_c input[type="checkbox"]:checked::after, .fwin input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 1px !important;
    left: 4px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* 按钮 */
.tm_c button, .tm_c input[type="submit"], .tm_c input[type="button"],
.fwin button, .fwin input[type="submit"], .fwin input[type="button"],
.p_pop button, .p_pop input[type="submit"] {
    background: linear-gradient(90deg, #00d4ff, #4d7cfe, #a855f7) !important;
    background-size: 200% 100% !important;
    border: none !important;
    border-radius: 8px !important;
    color: #04121c !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 22px !important;
    cursor: pointer !important;
    transition: all .3s !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    letter-spacing: 1px !important;
}
.tm_c button:hover, .tm_c input[type="submit"]:hover,
.fwin button:hover, .fwin input[type="submit"]:hover {
    background-position: 100% 0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5), 0 0 50px rgba(168, 85, 247, 0.3) !important;
}
.tm_c button:active, .fwin button:active {
    transform: scale(0.97) !important;
}

/* 标签文字 */
.tm_c label, .fwin label {
    color: #a8b8d0 !important;
    cursor: pointer !important;
    transition: color .2s !important;
}
.tm_c label:hover, .fwin label:hover {
    color: #7ce8ff !important;
}

/* 段落间距 */
.tm_c p, .fwin p {
    margin-bottom: 12px !important;
}

/* 链接 */
.tm_c a, .fwin a {
    color: #7ce8ff !important;
    text-decoration: none !important;
    transition: all .2s !important;
}
.tm_c a:hover, .fwin a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0,212,255,0.6) !important;
}

/* 分隔线 */
.tm_c .pipe, .fwin .pipe {
    color: rgba(0, 212, 255, 0.3) !important;
}

/* 弹出菜单 p_pop 通用 */
.p_pop {
    padding: 8px 0 !important;
}
.p_pop li {
    padding: 0 !important;
}
.p_pop li a {
    display: block !important;
    padding: 8px 18px !important;
    color: #b8c8e0 !important;
    transition: all .2s !important;
}
.p_pop li a:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #7ce8ff !important;
}

/* 单选/复选行布局 */
.tm_c ul.llst, .fwin ul.llst {
    list-style: none !important;
    padding: 0 !important;
}
.tm_c ul.llst li, .fwin ul.llst li {
    padding: 6px 0 !important;
}

/* 响应式 */
@media (max-width: 640px) {
    .tm_c, .fwin {
        border-radius: 10px !important;
    }
    .tm_c .c, .fwin .c {
        padding: 14px !important;
    }
}

/* ===== 修复浮动窗口白色背景和宽度 ===== */
/* 浮动窗口表格结构 */
.t_m, .fwin .t_m {
    border-collapse: collapse !important;
}
.t_m td {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
/* 内容区白色背景覆盖 */
#fwin_content_mods, td.m_c, .fwin td.m_c {
    background: linear-gradient(145deg, #0d1220 0%, #14102a 100%) !important;
}
/* 底部操作栏浅灰背景覆盖 */
.tm_c .o, .fwin .o, .pns, .tm_c .pns, .fwin .pns {
    background: rgba(0, 212, 255, 0.04) !important;
    border-top: 1px solid rgba(0, 212, 255, 0.15) !important;
    padding: 14px 20px !important;
    margin: 0 !important;
}
/* 关闭按钮灰色背景覆盖 */
.tm_c .flbc, .fwin .flbc {
    background: transparent !important;
}
/* 下拉按钮白色背景覆盖 */
.tm_c .dpbtn, .fwin .dpbtn {
    background: rgba(0, 212, 255, 0.06) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 6px !important;
    color: #7ce8ff !important;
}
.tm_c .dpbtn:hover, .fwin .dpbtn:hover {
    background: rgba(0, 212, 255, 0.12) !important;
}
/* 弹窗宽度增加 */
.tm_c, .fwin {
    min-width: 380px !important;
    max-width: 520px !important;
}
/* 浮动窗口外层 */
.fwin {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* 标题栏高度 */
.tm_c .flb, .fwin .flb {
    padding: 14px 20px !important;
}
/* 单选标签不换行 */
.tm_c label, .fwin label {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}
/* 表单行间距 */
.tm_c .c p, .fwin .c p {
    margin-bottom: 14px !important;
}
/* 有效期行布局 */
.tm_c .c p label, .fwin .c p label {
    margin-right: 10px !important;
}

/* ===== 底部操作栏按钮居中 ===== */
.tm_c .o, .fwin .o, .pns {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}
.tm_c .o label, .fwin .o label {
    margin: 0 !important;
}
.tm_c .o button, .tm_c .o input[type="submit"],
.fwin .o button, .fwin .o input[type="submit"] {
    margin: 0 !important;
}
