/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
body {
    background-color: #f5f5f7;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    /* 新增牛马背景图（可选，不影响主横幅） */
    /*background-image: url("../images/niuma-bg.jpg");*/
    /*background-repeat: no-repeat;*/
    /*background-position: center bottom;*/
    /*background-attachment: fixed;*/
    /*background-size: 300px auto;*/
    /*background-blend-mode: soft-light;*/
}
/* 新增：背景图透明度控制 */
/* 本地背景图 + 靠上对齐 + 高透明度 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/niuma-bg.jpg"); /* 本地图片路径 */
    background-repeat: no-repeat;
    background-position: center top; /* 关键：靠上对齐（原是center bottom） */
    background-attachment: fixed;
    background-size: 400px auto; /* 放大图片更明显 */
    opacity: 0.07; /* 高透明度，视觉更突出 */
    z-index: -1;/* 不遮挡页面内容 */
    pointer-events: none; /* 新增：关键修复，让背景图不拦截点击 */
}
a {
    text-decoration: none;
    color: #0078d4;
}
button {
    cursor: pointer;
    border: none;
    outline: none;
    background-color: #0078d4;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}
button:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
}
button:active {
    transform: translateY(0);
}
input, textarea {
    outline: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border 0.3s ease;
}
input:focus, textarea:focus {
    border-color: #0078d4;
}
ul, li {
    list-style: none;
}
.tips {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}
.btn {
    padding: 10px 20px;
    font-size: 14px;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 4px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}
@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
}

/* 纯牛马横幅样式（核心新增） */
.niuma-banner {
    width: 100%;
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.niuma-banner img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .niuma-banner img {
        max-width: 100%;
    }
}

/* 老板来了伪装层 */
.disguise-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: none;
    padding: 20px;
    overflow: auto;
}
.disguise-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.excel-header {
    background-color: #f2f2f2;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}
.excel-btns i {
    margin: 0 4px;
    cursor: pointer;
}
.excel-nav {
    padding: 8px 16px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    color: #333;
}
.excel-table {
    width: 100%;
    border-collapse: collapse;
}
.excel-tr {
    display: flex;
}
.excel-td {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.excel-th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.code-page {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* 头部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.header h1 {
    font-size: 24px;
    color: #0078d4;
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .header h1 {
        font-size: 20px;
    }
}

/* 牛马状态中心 */
.status-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.status-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.status-card h3 {
    font-size: 16px;
    color: #0078d4;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.countdown-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.countdown-item .label {
    font-size: 14px;
    color: #666;
}
.countdown-item .time {
    font-size: 18px;
    font-weight: bold;
    color: #e63946;
}
.identity-box {
    text-align: center;
    margin-bottom: 16px;
}
.identity-tag {
    display: inline-block;
    padding: 8px 24px;
    background-color: #ffd166;
    color: #333;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.identity-desc {
    font-size: 14px;
    color: #666;
}
.power-bar-box {
    width: 100%;
    height: 24px;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}
.power-bar {
    height: 100%;
    background: linear-gradient(90deg, #00c853, #76ff03);
    border-radius: 12px;
    width: 100%;
    transition: width 0.5s ease;
}
.power-num {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #333;
    font-weight: bold;
}
.power-btns {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}
@media (max-width: 992px) {
    .status-section {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .status-section {
        grid-template-columns: 1fr;
    }
}

/* 牛马打工续命站 */
.service-section {
    margin-bottom: 30px;
}
.service-section h2, .fun-section h2 {
    font-size: 20px;
    color: #0078d4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    border-left: 4px solid #0078d4;
}
.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 16px;
    color: #0078d4;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.disguise-type {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tool-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tool-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tool-item label {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tool-item textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}
.fishing-tips {
    font-size: 12px;
    color: #0078d4;
    margin-left: 8px;
}

/* 牛马吐槽乐园 */
.fun-section {
    margin-bottom: 30px;
}
.fun-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.fun-card h3 {
    font-size: 16px;
    color: #0078d4;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.complain-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.complain-input textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}
.complain-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}
.complain-item {
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #ffd166;
}
.complain-op {
    margin-top: 8px;
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666;
}
.complain-op span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.meme-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.meme-item {
    text-align: center;
}
.meme-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}
.meme-item p {
    font-size: 14px;
    color: #666;
}
#loadMoreMeme {
    display: block;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .meme-list {
        grid-template-columns: 1fr;
    }
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    margin-bottom: 100px; /* 给底部背景图留空间 */
}
.shortcut-tips {
    margin-top: 8px;
    color: #e63946;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}
::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}