/* 中国风青白配色 */
body { font-family: "Microsoft YaHei","PingFang SC",sans-serif; background: #f8fbfc; color: #333; }
a { color: #a2d0d8; text-decoration: none; }
a:hover { color: #d15c5c; }
.btn, button[type="submit"] { background: #d15c5c; color: #fff; border: none; padding: 6px 16px; border-radius: 4px; cursor: pointer; }
.btn:hover, button[type="submit"]:hover { background: #b34a4a; }
input, textarea, select { border: 1px solid #a2d0d8; border-radius: 4px; padding: 6px; box-sizing: border-box; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #ddd; padding: 6px 10px; }
th { background: #f0f6f8; }

/* ===== 独立页面内容区 ===== */
.page-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    border: 1px solid #a2d0d8;
    margin: 24px 0 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 400px;
    line-height: 1.8;
}
.page-content h1 {
    color: #c9a86c;
    border-bottom: 2px solid #a2d0d8;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.page-content h2 { color: #c9a86c; margin-top: 30px; }
.page-content .back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #a2d0d8;
    text-decoration: none;
}
.page-content .back-link:hover { color: #d15c5c; }

/* ===== 独立页面内容区 ===== */
.page-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    border: 1px solid #a2d0d8;
    margin: 24px 0 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 400px;
    line-height: 1.8;
}
.page-content h1 {
    color: #c9a86c;
    border-bottom: 2px solid #a2d0d8;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.page-content h2 { color: #c9a86c; margin-top: 30px; }
.page-content .back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #a2d0d8;
    text-decoration: none;
}
.page-content .back-link:hover { color: #d15c5c; }
/* ===== 版本日志 ===== */
.changelog-item {
    border-left: 3px solid #c9a86c;
    padding-left: 20px;
    margin: 24px 0;
}
.changelog-item .version {
    color: #c9a86c;
    font-weight: bold;
    font-size: 18px;
}
.changelog-item .date {
    color: #6b7b80;
    font-size: 14px;
    margin-left: 12px;
}
.changelog-item ul { margin: 8px 0 0 20px; }
.changelog-item ul li { margin: 4px 0; }


/* ===== 广告容器自适应 ===== */
.ad-container {
    width: 100%;
    overflow: hidden;
}
.ad-container img {
    max-width: 100%;
    height: auto;
    display: block;
}
.ad-container iframe {
    max-width: 100%;
    min-height: 90px;
}
@media (max-width: 768px) {
    .ad-container iframe {
        min-height: 60px;
    }
}
/* ===== 广告强制限制 ===== */
.ad-content {
    max-width: 100% !important;
    overflow: hidden !important;
}
.ad-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}
.ad-content iframe {
    max-width: 100% !important;
}
/* 卡片和通栏广告限制高度 */
.card-item.ad-card .ad-content,
.banner-5 .ad-content {
    max-height: 120px !important;
    overflow: hidden !important;
}
.card-item.ad-card .ad-content img,
.banner-5 .ad-content img {
    max-height: 120px !important;
    object-fit: contain !important;
    width: auto !important;
}
@media (max-width: 768px) {
    .card-item.ad-card .ad-content,
    .banner-5 .ad-content {
        max-height: 80px !important;
    }
    .card-item.ad-card .ad-content img,
    .banner-5 .ad-content img {
        max-height: 80px !important;
    }
}
@media (max-width: 480px) {
    .card-item.ad-card .ad-content,
    .banner-5 .ad-content {
        max-height: 60px !important;
    }
    .card-item.ad-card .ad-content img,
    .banner-5 .ad-content img {
        max-height: 60px !important;
    }
}

/* ===== 底栏广告 - 横幅样式 ===== */
.footer .ad-content {
    max-width: 100%;
    overflow: hidden;
    margin: 8px auto 0;
}
.footer .ad-content img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
.footer .ad-content iframe {
    max-width: 100%;
    max-height: 80px;
    border: none;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .footer .ad-content img {
        max-height: 60px;
    }
}
@media (max-width: 480px) {
    .footer .ad-content img {
        max-height: 50px;
    }
}