/* ==========================================
   详细页 专用样式 V2
   主色调：FF6600 | 背景色：FFFFFF / F5F5F5
   ========================================== */

/* 面包屑导航 */
.breadcrumb {
    background: #FFFFFF;
    padding: 18px 0;
    font-size: 13px;
    color: #AAAAAA;
    border-bottom: 1px solid #F0F0F0;
}
.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.breadcrumb a {
    color: #999999;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #FF6600;
}
.breadcrumb span {
    color: #333333;
    font-weight: 500;
}

/* 故事详情主体 */
.story-detail {
    padding: 50px 0 80px;
    background: #F5F5F5;
}
.story-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 故事头部 */
.detail-header {
    text-align: center;
    margin-bottom: 35px;
}
.detail-category {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    background: #FFF5EE;
    color: #FF6600;
}
.detail-header h1 {
    font-size: 38px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* 故事元信息 */
.detail-meta {
    display: flex;
    justify-content: center;
    gap: 28px;
    color: #AAAAAA;
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0;
}
.detail-meta::-webkit-scrollbar {
    display: none;
}
.detail-meta span {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 故事配图 - 优化版 */
.detail-cover {
    max-width: 880px;
    margin: 0 auto 45px auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.2);
    position: relative;
    background: #F0F0F0;
}

.cover-container {
    position: relative;
    width: 100%;
    background: #F0F0F0;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: cover;
}

.detail-cover:hover .cover-image {
    transform: scale(1.03);
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.detail-cover:hover .cover-overlay {
    opacity: 1;
}

.cover-icon {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    color: #FF6600;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
}

/* 故事正文内容区 */
.detail-content {
    max-width: 780px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 52px 56px;
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.detail-content .content-intro {
    font-size: 18px;
    color: #FF6600;
    border-left: 4px solid #FF6600;
    padding-left: 24px;
    margin-bottom: 36px;
    font-weight: 500;
}
.detail-content h2 {
    font-size: 26px;
    color: #333333;
    margin: 40px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F0F0F0;
    font-weight: 600;
}
.detail-content h3 {
    font-size: 20px;
    color: #FF6600;
    margin: 28px 0 12px;
    font-weight: 600;
}
.detail-content p {
    font-size: 16px;
    line-height: 1.9;
    color: #555555;
    margin-bottom: 22px;
}
.detail-content .content-quote {
    background: #F8F8F8;
    padding: 36px 32px;
    border-radius: 28px;
    margin: 36px 0;
    text-align: center;
}
.detail-content .quote-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 16px;
}
.detail-content .content-quote p {
    font-size: 18px;
    font-style: italic;
    color: #FF6600;
    margin-bottom: 12px;
}
.detail-content .quote-author {
    font-size: 14px;
    color: #AAAAAA;
}

/* 故事标签 */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 45px 0;
}
.detail-tags .tag {
    padding: 7px 18px;
    background: #F5F5F5;
    border-radius: 40px;
    font-size: 13px;
    color: #FF6600;
    transition: all 0.2s;
}
.detail-tags .tag:hover {
    background: #FFF5EE;
    transform: translateY(-1px);
}

/* ========== 纪念馆关联卡片 V2 ========== */
.memorial-link-section {
    max-width: 780px;
    margin: 45px auto;
}
.memorial-link-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 28px;
    display: flex;
    gap: 28px;
    align-items: center;
    border: 1px solid #F0F0F0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.memorial-link-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #FF6600;
}
.memorial-link-left {
    flex-shrink: 0;
}
.memorial-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #FF6600;
    box-shadow: 0 4px 12px rgba(255,102,0,0.2);
}
.memorial-avatar-placeholder {
    width: 100px;
    height: 100px;
    background: #FFF5EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 2px solid #FF6600;
}
.memorial-link-right {
    flex: 1;
}
.memorial-link-label {
    display: inline-block;
    background: #FFF5EE;
    color: #FF6600;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}
.memorial-link-right h3 {
    font-size: 22px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 600;
}
.memorial-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}
.stat-item {
    font-size: 13px;
    color: #888888;
}
.memorial-link-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-memorial {
    display: inline-block;
    padding: 10px 26px;
    background: #FF6600;
    color: white;
    text-decoration: none;
    border-radius: 48px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-memorial:hover {
    background: #E55C00;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}
.btn-memorial.secondary {
    background: #FFFFFF;
    color: #FF6600;
    border: 1.5px solid #FF6600;
}
.btn-memorial.secondary:hover {
    background: #FFF5EE;
    transform: translateY(-2px);
    box-shadow: none;
}
.no-memorial .memorial-link-card {
    background: #FFFFFF;
    border-color: #F0F0F0;
}
.memorial-link-icon {
    width: 70px;
    height: 70px;
    background: #FFF5EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.memorial-link-content {
    flex: 1;
}
.memorial-link-content h3 {
    font-size: 20px;
    color: #FF6600;
    margin-bottom: 10px;
}
.memorial-link-content p {
    color: #888888;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ========== 致敬区 V2 ========== */
.tribute-section {
    max-width: 780px;
    margin: 45px auto;
    text-align: center;
    background: #FFFFFF;
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.tribute-icon {
    font-size: 52px;
    margin-bottom: 18px;
}
.tribute-section h3 {
    font-size: 26px;
    color: #333333;
    margin-bottom: 12px;
    font-weight: 600;
}
.tribute-section p {
    color: #888888;
    font-size: 15px;
}
.btn-tribute {
    background: #FF6600;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin: 24px 0 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255,102,0,0.25);
}
.btn-tribute:hover {
    background: #E55C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,102,0,0.35);
}
.tribute-count {
    font-size: 14px;
    color: #AAAAAA;
}
.tribute-count span {
    color: #FF6600;
    font-weight: bold;
    font-size: 20px;
}

/* ========== 相关故事推荐 V2 ========== */
.related-stories {
    margin: 55px 0;
}
.related-stories h3 {
    font-size: 26px;
    color: #333333;
    margin-bottom: 28px;
    font-weight: 600;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.related-card {
    display: flex;
    gap: 18px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 18px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #F0F0F0;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -10px rgba(0,0,0,0.12);
    border-color: #FF6600;
}
.related-img {
    width: 90px;
    height: 90px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 20px;
    flex-shrink: 0;
}
.related-info {
    flex: 1;
}
.related-category {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 10px;
    background: #FFF5EE;
    color: #FF6600;
}
.related-info h4 {
    font-size: 16px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}
.related-info p {
    font-size: 13px;
    color: #999999;
    line-height: 1.5;
}
.has-memorial {
    display: inline-block;
    font-size: 10px;
    background: #FFF5EE;
    color: #FF6600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 8px;
}

/* ========== 评论区 V2 ========== */
.comment-section {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 44px;
    margin: 45px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.comment-section h3 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 28px;
    font-weight: 600;
}
.comment-form {
    margin-bottom: 36px;
}
.comment-form textarea {
    width: 100%;
    padding: 18px;
    border: 1.5px solid #F0F0F0;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
    background: #FCFCFC;
}
.comment-form textarea:focus {
    outline: none;
    border-color: #FF6600;
    background: #FFFFFF;
}
.btn-comment {
    background: #FF6600;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 48px;
    margin-top: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}
.btn-comment:hover {
    background: #E55C00;
    transform: translateY(-1px);
}
.comment-list {
    max-height: 520px;
    overflow-y: auto;
}
.comment-item {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #F0F0F0;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 50px;
    height: 50px;
    background: #FFF5EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.comment-content {
    flex: 1;
}
.comment-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
}
.comment-time {
    font-size: 12px;
    color: #BBBBBB;
    font-weight: normal;
    margin-left: 14px;
}
.comment-content p {
    color: #666666;
    line-height: 1.65;
    word-break: break-word;
    font-size: 14px;
}

/* 返回按钮 */
.back-link {
    text-align: center;
    margin-top: 48px;
}
.btn-back {
    display: inline-block;
    padding: 12px 32px;
    background: #FFFFFF;
    color: #FF6600;
    text-decoration: none;
    border-radius: 48px;
    transition: all 0.3s;
    border: 1.5px solid #FF6600;
    font-weight: 500;
}
.btn-back:hover {
    background: #FF6600;
    color: white;
    transform: translateY(-2px);
}

/* ========== 响应式适配（手机端） ========== */
@media (max-width: 768px) {
    .breadcrumb .container,
    .story-detail .container {
        padding: 0 16px;
    }
    
    .detail-header h1 {
        font-size: 28px;
    }
    
    .detail-meta {
        justify-content: flex-start;
        gap: 18px;
        padding: 8px 0;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .detail-content {
        padding: 28px 24px;
    }
    .detail-content h2 {
        font-size: 22px;
    }
    .detail-content h3 {
        font-size: 18px;
    }
    
    .memorial-link-card {
        flex-direction: column;
        text-align: center;
    }
    .memorial-link-buttons {
        justify-content: center;
    }
    .memorial-stats {
        justify-content: center;
    }
    
    .tribute-section {
        padding: 36px 24px;
    }
    .tribute-section h3 {
        font-size: 22px;
    }
    
    .comment-section {
        padding: 28px 24px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        border-radius: 20px;
        margin-bottom: 28px;
        box-shadow: 0 12px 24px -10px rgba(0,0,0,0.15);
    }
    
    .related-card {
        padding: 14px;
    }
    .related-img {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .detail-cover {
        border-radius: 16px;
    }
    .detail-content {
        padding: 22px 18px;
    }
    .memorial-link-card {
        padding: 20px;
    }
    .memorial-avatar {
        width: 80px;
        height: 80px;
    }
}

/* 加载动画 */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cover-image.loaded {
    animation: fadeInScale 0.5s ease-out;
}