/* 基础文字层 */
.ad-text-content { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; position: relative; z-index: 2; }

/* 1字大字报 */
.one-char-box { font-size: 42px; line-height: 48px; font-weight: bold; text-align: center; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; box-sizing: border-box; overflow: hidden; transform: translateZ(0); }

/* 2字横排 */
.two-char-box { font-size: 22px; line-height: 48px; letter-spacing: -0.5px; white-space: nowrap; text-align: center; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; }

/* 4字田字格 - 完美排版 */
.tian-grid-box { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; /* 整体垂直居中 */
    align-items: center; 
    height: 100%; 
    width: 100%; 
    line-height: 22px; 
    font-size: 23px; 
    font-weight: bold; 
    gap: 2px; /* 两行字之间的间距 */
}
.tian-grid-box span { 
    display: flex; 
    justify-content: center; /* 让每一行里面的字居中 */
    gap: 4px; /* 两个字之间的间距 */
    white-space: nowrap; 
    height: 22px; 
    width: 100%;
}

/* 3字横排 */
.three-horizontal-box { font-size: 15px; line-height: 48px; font-weight: bold; white-space: nowrap !important; word-break: keep-all; text-align: center; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; letter-spacing: -0.5px; }

/* 3字竖排 */
.three-vertical-box { font-size: 16px; line-height: 16px; font-weight: bold; text-align: center; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; margin: 0; padding: 0; letter-spacing: 0; }

/* 3字斜排统一标准 */
.three-diagonal-box { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; font-size: 17px; font-weight: bold; white-space: nowrap; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg) scale(1.05); letter-spacing: -1px; -webkit-text-stroke: 0.2px currentColor; }

/* 动画定义 */
@keyframes text-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes text-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.text-effect-blink { animation: text-blink 1s linear infinite !important; }

/* 通用图片上传预览框 */
.upload-preview-img { max-height: 80px; max-width: 200px; border-radius: 6px; display: none; border: 1px solid #444; margin-top: 10px; }

/* 通用后台预览容器（48x48 真实复刻） */
.preview-box-container { display: inline-grid; gap: 1px; background: #222; padding: 2px; border-radius: 6px; position: relative; vertical-align: middle; }
.preview-box-cell { width: 48px; height: 48px; position: relative; overflow: hidden; border-radius: 2px; }

/* 后台通用卡片容器 */
.admin-card { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.admin-card h2 { font-size: 18px; color: #333; margin-bottom: 15px; border-left: 4px solid #00d68f; padding-left: 10px; }

/* 后台通用状态标签 */
.badge-success { background: #e6fcf5; color: #00d68f; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.badge-danger { background: #fff0f0; color: #ff4d4f; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.badge-warning { background: #fffbe6; color: #faad14; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.badge-info { background: #e6f7ff; color: #1890ff; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }

body { border-top: none !important; }
/* 👇 通用清爽表单样式（全站输入框、下拉框、文本域） */
.form-control, input[type="text"], input[type="number"], input[type="date"], textarea, select {
    background-color: #1a1a1c !important; /* 提亮一点，跟背景 #0d0d0d 形成对比 */
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

/* 聚焦时的发光效果 */
.form-control:focus, input:focus, textarea:focus, select:focus {
    background-color: #202022 !important; /* 聚焦时再亮一点 */
    border-color: #ffb400 !important; /* 边框变成醒目的金色 */
    box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.15) !important; /* 加上金色外发光 */
    outline: none !important;
}

/* 文本域单独优化 */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
/* 通用暗黑卡片：高透发光版 */
.container, .ad-card, .card {
    background-color: #1a1a1c !important; /* 底色再次提亮，彻底脱离纯黑背景 */
    border: 1px solid #444 !important; /* 边框加亮，勾勒清晰轮廓 */
    /* 👇 核心：加大白色光晕，加上顶部的内发光，模拟玻璃反光 */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 
                0 10px 50px rgba(0, 0, 0, 0.8), 
                0 0 30px rgba(255, 255, 255, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important; 
    /* 加上一点微妙的模糊背景，让字更清晰 */
    backdrop-filter: blur(10px); 
}