/* ===== 自定义样式 ===== */

/* 全局样式 */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 52px; /* 为固定导航栏留出空间 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 阴影效果 */
.shadow {
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 英雄区域 */
.hero-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*background-color: rgba(240,242,245,.9);*/
    /*color: white;*/
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.p-lr-1 {
    padding: 0 1rem;
}

/* 页面头部样式 */
.page-header {
    padding: 1rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: white;
}

.page-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 图片卡片样式 */
.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.gallery-card .card-image {
    position: relative;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

/* 文章卡片样式 */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-card .card-image {
    height: 200px;
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

/* 自定义现代aspect-ratio类 */
.has-aspect-ratio-1by1 {
    aspect-ratio: 1 / 1;
}

.has-aspect-ratio-4by3 {
    aspect-ratio: 4 / 3;
}

.has-aspect-ratio-16by9 {
    aspect-ratio: 16 / 9;
}

/* 标签样式增强 */
.tag:not(.is-delete) {
    transition: all 0.2s ease;
}

.tag:not(.is-delete):hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 媒体对象样式增强 */
.tags {
    padding: 1rem;
}

.media {
    border-bottom: 1px solid #f5f5f5;
    padding: 1rem 1rem;
    margin: 0 !important;
}

.media:last-child {
    border-bottom: none;
}

/* 按钮样式增强 */
.button {
    transition: all 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

/* 输入框样式增强 */
.input:focus, .textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.125em rgba(102, 126, 234, 0.25);
}

/* 统计卡片样式 */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.footer-ys{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .2rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 图片懒加载样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 0.7;
    filter: grayscale(100%);
}

/* 搜索框样式 */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-container .field {
    margin-bottom: 0;
}

.search-container .control.has-icons-left .icon.is-left {
    color: #667eea;
}

/* 页脚样式增强 */
.footer {
    background: #f3f3f3;
    color: #383838;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer .title {
    color: #383838;
}

.footer .social-links a {
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #777777 !important;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer .columns {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer .column {
        margin-bottom: 2rem;
    }

    .gallery-card img {
        height: 200px;
    }

    .article-card .card-image {
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0.5rem;
    }

    .gallery-card img {
        height: 180px;
    }

    .article-card .card-image {
        height: 120px;
    }
}

.pt-0 {
    padding-top: 0 !important;
}