/* ==================== 全局样式 ==================== */

/* 背景图片全覆盖 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('../images/beij.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ==================== 布局样式 ==================== */

/* 容器宽度优化 */
.blog-area .container {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 响应式容器 */
@media (max-width: 768px) {
    .blog-area .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==================== 顶部横幅样式 ==================== */

.cta-area {
    background: transparent;
    padding: 100px 0 60px 0;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.section-title.white-title {
    text-align: center;
}

.section-title h2 {
    font-size: 64px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title h2 span {
    color: #ffd700;
}

.section-title p {
    font-size: 18px;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.95);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-weight: 400;
}

/* ==================== 按钮组样式 ==================== */

.button-group {
    margin-bottom: 30px;
    text-align: center;
}

.button-group a {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px 10px 10px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.button-group a:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ==================== 滚动公告样式 ==================== */

#scrolling-text-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
}

#scrolling-text {
    display: inline-block;
    animation: scrollText 25s linear infinite;
    color: white;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@keyframes scrollText {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ==================== API卡片样式 ==================== */

/* 卡片间距优化 */
.blog-area .row {
    margin-left: -10px;
    margin-right: -10px;
}
 
.blog-area .col-lg-4,
.blog-area .col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
}

.blog-post-item {
    margin-bottom: 20px !important;
}

/* 图片容器优化 */
.blog-post-thumb {
    width: 100%;
    height: 280px !important;
    overflow: hidden;
    position: relative;
    background: #f5f7fa;
}

.blog-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.blog-post-thumb:hover img {
    transform: scale(1.05);
}

/* 响应式图片容器 */
@media (max-width: 768px) {
    .blog-post-thumb {
        height: 220px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .blog-post-thumb {
        height: 260px !important;
    }
}

@media (min-width: 1920px) {
    .blog-post-thumb {
        height: 320px !important;
    }
}

/* ==================== 更新日志样式 ==================== */

.log-section {
    text-align: center;
}

.log-section h2 {
    color: rgba(255,255,255,0.95);
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.log {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.log p {
    color: rgba(200,200,200,0.95);
    font-size: 14px;
    line-height: 2;
    margin-bottom: 12px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log p strong {
    color: rgba(255,255,255,0.95);
}

/* ==================== 页脚样式 ==================== */

footer {
    background: transparent;
    color: rgba(220,220,220,0.9);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    font-size: 14px;
    line-height: 2;
    margin: 0;
    color: rgba(200,200,200,0.95);
}

footer a {
    color: rgba(220,220,220,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

footer img {
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ==================== 其他样式 ==================== */

/* 隐藏错误定位的图片 */
img[src*="previewengine.zoho.com.cn"]:not(.imgapi),
img:not(.imgapi):not([src^="https://t.alcy.cc/"]):not([src^="/images/"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}