/* News Detail Mobile Styles (< 768px) */
:root {
    --bg-light: #fdfcfb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-gold: var(--color-accent, #c8a97e);
    --border-color: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: clip;
}

/* Hero Section */
/* FIX: section.article-hero (0,1,1) = same specificity as base.css, wins by source order */
section.article-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
    padding: 100px 0 50px !important;
    color: white;
    position: relative;
    height: auto !important;
    min-height: 380px !important;
    max-height: none !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    overflow: visible !important;
}

section.article-hero .container {
    margin: 0 20px;
    width: auto;
    max-width: none;
    height: auto !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
}

/* Sticky Back Button - Matches Event Detail Mobile */
.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    pointer-events: auto;
}

.sticky-nav-container {
    position: -webkit-sticky;
    position: sticky;
    top: 56px; /* 手机导航栏高度 */
    z-index: 100;
    pointer-events: none;
    margin-bottom: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    background: transparent;
}

.sticky-nav-container.sticky-active {
    position: -webkit-sticky;
    position: sticky;
}

.back-link-btn:hover {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transform: translateX(-3px);
}

section.article-hero .article-category {
    display: inline-block;
    background: rgba(200, 169, 126, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px !important;
    border: 1px solid rgba(200, 169, 126, 0.5);
    color: #f0e6d8;
    font-weight: 600;
}

section.article-hero h1 {
    font-size: 1.6rem;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-weight: 700;
    color: white;
    line-height: 1.35;
}

section.article-hero .article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #cbd5e1;
    text-align: center;
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Content */
.article-container {
    background: white;
    margin: 0 auto;
    max-width: 100%;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.article-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.article-body h2 {
    font-size: 1.5rem;
    color: var(--color-primary, #1a2744);
    margin: 40px 0 20px;
    font-weight: 700;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-gold);
    margin: 30px 0;
    padding: 15px 20px;
    background: #f8fafc;
    font-style: italic;
    font-size: 1.1rem;
    color: #475569;
}

.article-source {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Related News */
.related-section {
    padding: 60px 0;
    margin: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.related-grid::-webkit-scrollbar {
    display: none;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    flex: 0 0 85%;
    scroll-snap-align: center;
}

.related-image {
    height: 180px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 20px;
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 15px;
}

.read-link {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
}
