/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移除所有列表的默认marker */
ul, ol {
    list-style: none;
}

li {
    list-style: none;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #dac191;
    background-image: url('../images/bkg.jpg');
    background-repeat: repeat-y;
    background-position: center top;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    position: relative;
    height: 840px; /* PC端头部高度至少840px */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 填满整个头部区域 */
    object-position: center; /* 图片居中显示 */
    opacity: 1 !important; /* 确保头部背景图片始终可见 */
}

/* 桌面端显示 topbkg.jpg */
.desktop-bg {
    display: block;
}

.mobile-bg {
    display: none;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    /* 如果背景图本身有文字，可以隐藏或调整这些文字 */
    display: none; /* 隐藏覆盖文字，让背景图的文字显示 */
}

/* 如果背景图文字不够清晰，可以显示覆盖文字 */
.header-content.show-overlay {
    display: block;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

/* 头条和在线播放容器 */
.headline-play-container {
    max-width: 1200px;
    margin: -50px auto 100px auto;
    display: flex;
    position: relative;
    z-index: 3;
}

/* 标题新闻区块样式 */
.main-headline {
    display: flex;
    flex: 1;
    background: white;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid #d32f2f;
}

.headline-main-content {
    flex: 1;
    padding: 40px;
}

/* 在线播放区块样式 */
.online-play-section {
    flex-shrink: 0;
    min-width: 400px;
}

.play-section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0 10px 10px 0;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 20px;
    height: 100%;
}

.play-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    padding: 40px;
    border-radius: 15px;
    background-image: url('../images/online.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.play-text-link {
    text-decoration: none;
    color: #d32f2f;
    transition: color 0.3s;
    display: block;
    text-align: center;
}

.play-text-link:hover {
    color: #b71c1c;
    text-decoration: none;
}

.play-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.play-link:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.play-link:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.play-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.play-text {
    font-size: 1.6rem;
    font-weight: normal;
    position: relative;
    z-index: 2;
}

.headline-sidebar-label {
    background: #d32f2f;
    color: white;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 8px;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}


.headline-main-content h2 {
    color: #d32f2f;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: left;
}

.headline-main-content h2 a {
    color: #d32f2f;
    text-decoration: none;
    transition: color 0.3s;
}

.headline-main-content h2 a:hover {
    color: #b71c1c;
}

.headline-main-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

/* 栏目标题样式 */
.section-header {
    text-align: center;
    margin: 60px 0 20px 0;
}

.section-title-img {
    width: 600px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

/* 焦点新闻区域 */
.focus-news {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0;
}

.focus-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.carousel {
    position: relative;
    height: 400px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-prev,
.carousel-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #d32f2f;
}

/* 新闻列表样式 */
.news-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.news-headline {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #f0f0f0;
}

.headline-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.headline-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.headline-content h2 a:hover {
    color: #d32f2f;
}

.headline-summary {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-time {
    color: #999;
    font-size: 0.8rem;
}

.news-items {
    list-style: none;
}

.news-items li {
    list-style: none;
}

.news-item {
    padding: 12px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #d32f2f;
}

.news-title {
    font-size: 1.1rem;
    line-height: 1.4;
    position: relative;
    padding-left: 25px;
}

.news-title::before {
    content: "•";
    color: #d32f2f;
    font-weight: bold;
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 各界反响样式 */
.reactions {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0;
}

.reactions-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.reaction-column {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    border: 1px dashed #f0f0f0;
}

.column-title {
    color: #d32f2f;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #d32f2f;
}

.main-news {
    margin-bottom: 25px;
}

.main-news-image-link {
    display: block;
    text-decoration: none;
}

.main-news-image-link:hover {
    text-decoration: none;
}

.main-news img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.main-news-content h4 {
    margin-bottom: 10px;
    line-height: 1.4;
}

.main-news-content h4 a {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.3s;
}

.main-news-content h4 a:hover {
    color: #d32f2f;
}

.main-news-content p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.reaction-column .news-list {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.reaction-column .news-list li {
    padding: 12px 0;
    position: relative;
    padding-left: 18px;
    list-style: none;
}

.reaction-column .news-list {
    list-style: none;
}

.reaction-column .news-list li:last-child {
    border-bottom: none;
}

.reaction-column .news-list li::before {
    content: "•";
    color: #d32f2f;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.reaction-column .news-list a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: block;
    line-height: 1.4;
    position: relative;
}

.reaction-column .news-list a::before {
    content: none !important;
    display: none !important;
}

/* 确保各界反响区域的链接不受其他样式影响 */
.reactions .news-list a::before {
    content: none !important;
    display: none !important;
}

.reactions .news-list li::before {
    content: "•" !important;
    color: #d32f2f !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1rem !important;
}

.reaction-column .news-list a:hover {
    color: #d32f2f;
}

/* 精彩切片样式 */
.highlights {
    margin-bottom: 30px;
    margin-top: 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.highlight-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.highlight-item:hover {
    transform: scale(1.05);
}

.highlight-image-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.highlight-image-link:hover {
    text-decoration: none;
}

.highlight-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.play-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.highlight-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.highlight-content {
    padding: 15px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.highlight-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.highlight-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.highlight-content h3 a:hover {
    color: #d32f2f;
    text-decoration: none;
}

.highlight-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

/* 抗战桂林样式 - 独立通栏背景 */
.guilin-fullwidth {
    position: relative;
    width: 100%;
    margin: 60px 0;
    background-image: url('../images/kzglbkg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.guilin-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px 20px;
}

.guilin {
    margin-bottom: 0;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0;
}

/* 上半部分：两列图片+新闻标题+描述 */
.guilin-top-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.guilin-news-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.guilin-news-image-link {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.guilin-news-image-link:hover {
    transform: scale(1.02);
}

.guilin-news-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.guilin-news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.guilin-news-text h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.guilin-news-text h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.guilin-news-text h3 a:hover {
    color: #d32f2f;
}

.guilin-news-text p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 下半部分：合并的文字新闻列表 */
.guilin-bottom-content {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    border: 1px dashed #f0f0f0;
}

.guilin-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.guilin-news-list li {
    padding: 12px 0;
    padding-left: 18px;
    border-bottom: none;
    position: relative;
}

.guilin-news-list li::before {
    content: "•";
    color: #d32f2f;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.guilin-news-list a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s;
    position: relative;
}

.guilin-news-list a::before {
    content: none !important;
    display: none !important;
}

.guilin-news-list a:hover {
    color: #d32f2f;
}

/* 红色阵地样式 - 在通栏背景中 */
.red-base {
    margin-bottom: 0;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.red-base-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.red-base-item {
    display: flex;
    flex-direction: column;
}

.red-base-image-link {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.red-base-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.red-base-image-link:hover img {
    transform: scale(1.05);
}

.red-base-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.red-base-image-link .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.red-base-image-link .play-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.red-base-content-text {
    padding: 15px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.red-base-content-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.red-base-content-text h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.red-base-content-text h3 a:hover {
    color: #d32f2f;
}

.red-base-content-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 页脚样式 */
.footer {
    background: none; /* 去掉背景色 */
    color: #8B4513; /* 深褐色字体 */
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    font-size: 1.1rem;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .header {
        height: auto; /* 移动端高度自适应 */
        min-height: 300px; /* 减少最小高度到300px */
    }
    
    /* 移动端显示 topbkg-m.jpg */
    .desktop-bg {
        display: none;
    }
    
    .mobile-bg {
        display: block;
        width: 100% !important; /* 移动端100%宽度显示 */
        height: auto; /* 高度自适应 */
        object-fit: contain; /* 完整显示图片 */
    }
    
    .main-content {
        margin: 10px 10px;
        padding: 0;
    }
    
    .section-header {
        margin: 30px 0 20px 0;
    }
    
    .focus-news,
    .reactions,
    .guilin {
        padding: 20px;
    }
    
    .reactions-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-news img {
        width: 100%;
        height: 180px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title-img {
        width: 100%;
        max-width: 400px;
        height: 60px;
    }
    
    .focus-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel {
        height: 250px;
    }
    
    .news-headline {
        /* 移动端新闻头条样式已简化，无需特殊处理 */
    }
    
    /* 移动端标题新闻区块 */
    .main-headline {
        margin: 20px 10px 30px 10px;
    }
    
    .headline-sidebar-label {
        min-width: 40px;
        padding: 15px 6px;
        font-size: 1rem;
    }
    
    .headline-play-container {
        flex-direction: column;
        margin: 20px auto 60px auto;
    }
    
    .main-headline {
        border-radius: 10px;
    }
    
    .play-section-wrapper {
        border-radius: 10px;
    }
    
    .headline-main-content {
        padding: 30px;
    }
    
    .headline-main-content h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .headline-main-content p {
        text-align: center;
    }
    
    .online-play-section {
        min-width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .play-section-wrapper {
        padding: 30px;
        gap: 15px;
    }
    
    .play-link {
        padding: 30px;
        min-height: 200px;
    }
    
    .play-icon {
        width: 40px;
        height: 40px;
    }
    
    .play-text {
        font-size: 1rem;
    }
    
    .guilin-top-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guilin-news-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .guilin-news-image-link {
        width: 100%;
        height: 200px;
    }
    
    .guilin-news-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .guilin-fullwidth {
        background-attachment: scroll;
    }
    
    .guilin-container {
        padding: 40px 15px 30px 15px;
    }
    
    .guilin {
        padding: 20px;
    }
    
    .red-base {
        padding: 20px;
        margin-top: 30px;
    }
    
    
    .reactions-content,
    .highlight-grid,
    .red-base-grid {
        grid-template-columns: 1fr;
    }
    
    .red-base-image-link .play-icon img {
        width: 35px;
        height: 35px;
    }
    
    .play-icon img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header {
        height: auto; /* 小屏幕设备高度自适应 */
        min-height: 250px; /* 小屏幕最小高度250px */
    }
    
    .section-header {
        margin: 20px 0 15px 0;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .carousel {
        height: 200px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .section-title-img {
        height: 50px;
    }
}
