/**
 * 博客 - 天文摄影比赛作品展示样式
 * 用于展示天文摄影比赛的获奖作品
 * 使用项目定义的 CSS 变量保持样式统一
 */

/* ============================
   比赛介绍区域
   ============================ */
.contest-intro {
    background-color: #fff3e0;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    text-align: center;
}

.contest-intro img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.contest-intro p {
    color: var(--thm-p);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contest-intro .highlight-text {
    background: linear-gradient(135deg, #ed3e20 13%, #f35516 88%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================
   分隔线
   ============================ */
.contest-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.contest-divider::before,
.contest-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #faa75a, transparent);
    max-width: 150px;
}

.contest-divider .divider-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ============================
   奖项区域
   ============================ */
.award-section {
    margin: 2rem 0;
}

/* 奖项标题 - 大奖项（星辰澎湃奖等） */
.award-header-grand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ed3e20 13%, #f35516 88%);
    padding: 0.5rem 1.5rem;
    margin: 1.5rem auto;
    border-radius: 4px;
    position: relative;
}

.award-header-grand::before,
.award-header-grand::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 33px;
    height: 4px;
    background: #ffe1bf;
    opacity: 0.7;
}

.award-header-grand::before {
    left: 20px;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.award-header-grand::after {
    right: 20px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.award-header-grand .award-title {
    color: #fff3e0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.3rem;
    margin: 0;
}

/* 奖项标题 - 等级奖项（一等奖、二等奖等） */
.award-header-tier {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
}

.award-header-tier .tier-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.award-header-tier .tier-title {
    background: linear-gradient(135deg, #ed3e20 13%, #f35516 88%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    margin: 0;
    padding: 0.5rem 1rem;
}

.award-header-tier .tier-line {
    flex: 1;
    height: 1px;
    background: #f9c183;
}

/* ============================
   摄影作品卡片
   ============================ */
.photo-card {
    background-image: url('https://statics.xiumi.us/mat/i/fvId/80e9f3ed25b5e51a9e69f6a87ca83698_sz-52777.gif');
    background-repeat: repeat;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.photo-card-inner {
    max-width: 95%;
    margin: 0 auto;
    background: linear-gradient(135deg, #e84428 13%, #ff682c 88%);
    padding: 0.5rem;
    border-radius: 8px;
}

.photo-card-inner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.photo-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.photo-title-row .photo-name {
    color: #fff3e0;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.photo-title-row .photo-author {
    color: #fff3e0;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

.photo-info {
    background: #fff3e0;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 0 0 8px 8px;
}

.photo-info p {
    color: #3e3e3e;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.25rem 0;
}

.photo-info .photo-equipment {
    font-family: 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
}

/* ============================
   底部装饰
   ============================ */
.contest-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.contest-footer p {
    color: var(--thm-p);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.5rem 0;
}

.contest-footer .notice-text {
    padding: 0 1.5rem;
}

.contest-footer .highlight-date {
    background: linear-gradient(135deg, #ed3e20 13%, #f35516 88%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ============================
   结束标记
   ============================ */
.contest-end {
    text-align: center;
    padding: 2rem 0;
}

.contest-end .end-text {
    display: inline-block;
    border-bottom: 2px solid #faa75a;
    padding: 0 1rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.contest-end .end-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ed3e20 13%, #f35516 88%);
    border-radius: 50%;
}

.contest-end .end-text em strong {
    background: linear-gradient(135deg, #ed3e20 13%, #f35516 88%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-style: normal;
}

.contest-end .end-slogan {
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    margin: 0.25rem 0;
    background: linear-gradient(135deg, #ed3e20 13%, #f35516 88%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================
   响应式设计
   ============================ */
@media (max-width: 768px) {
    .contest-intro {
        padding: 1.5rem 1rem;
    }

    .award-header-grand .award-title {
        font-size: 1.1rem;
        letter-spacing: 0.2rem;
    }

    .award-header-tier .tier-icon {
        width: 35px;
        height: 35px;
    }

    .award-header-tier .tier-title {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .photo-title-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .photo-title-row .photo-name,
    .photo-title-row .photo-author {
        text-align: center;
        width: 100%;
    }

    .photo-info {
        padding: 0.75rem 1rem;
    }

    .photo-info p {
        font-size: 0.9rem;
    }
}

/* ============================
   兼容性处理
   ============================ */
/* 清理从秀米导入的空白 SVG */
.photo-card svg,
.award-section svg {
    display: none;
}

/* 清理空的内联样式 */
.photo-card [style*="box-sizing: border-box"] {
    box-sizing: border-box;
}
