/* style.css - 修复自适应问题 */

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #e53e3e;
    --light-color: #f7fafc;
    --dark-color: #2d3748;
    --gray-color: #a0aec0;
    --border-radius: 8px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
}

html, body {
    overflow-x: hidden; /* 防止水平滚动 */
    width: 100%;
    max-width: 100%;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="100" height="100"/></svg>');
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
}

/* 导航 */
.page-nav {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    overflow: hidden;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.8rem 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.nav-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.nav-link {
    padding: 0.5rem 1.2rem;
    margin: 0 0.5rem;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    white-space: nowrap;
    border-radius: 30px;
    transition: var(--transition);
    font-size: 0.95rem;
    flex-shrink: 0; /* 防止导航链接被压缩 */
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--accent-color);
    color: white;
}

/* 主要内容区域 */
.main-content {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
}

.section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    transition: var(--transition);
    scroll-margin-top: 80px;
    width: 100%;
    overflow: hidden; /* 防止内容溢出 */
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 第一部分：文字情况说明 */
.text-section {
    line-height: 1.8;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.text-section p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.text-section h3 {
    color: var(--primary-color);
    margin: 1.8rem 0 1rem;
    font-size: 1.4rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.text-section li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-section li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 第二部分：视频模块 */
.video-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: block;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-color);
    padding: 0.8rem 1.2rem;
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    width: 100%;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    align-self: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.video-description {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 第三部分：聊天记录图片模块 */
.chat-section {
    margin-top: 1rem;
    width: 100%;
}

.chat-intro {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.chat-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.chat-image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 400px;
    position: relative;
    width: 100%;
}

.chat-image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.chat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
}

.chat-image-container:hover .chat-image {
    transform: scale(1.05);
}

.chat-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chat-image-container:hover .chat-caption {
    transform: translateY(0);
    opacity: 1;
}

/* 第四部分：闹事视频模块 - 改为全部列出 */
.incident-videos {
    margin-top: 1rem;
    width: 100%;
}

.incident-intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.video-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.video-item {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    width: 100%;
}

.video-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.video-item-header {
    padding: 1.2rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.video-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.video-item-title i {
    font-size: 1.1rem;
}

.video-item-duration {
    font-size: 0.9rem;
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
}

.video-item-content {
    padding: 1.5rem;
    width: 100%;
}

.video-item-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #4a5568;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 第五部分：再次重申声明 */
.statement-section {
    background-color: #f8f9fa;
    border-left: 6px solid var(--primary-color);
    padding: 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 1.5rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.statement-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.statement-title i {
    margin-right: 10px;
}

.statement-content {
    font-size: 1.1rem;
    line-height: 1.8;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.statement-emphasis {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 1rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 灯箱效果 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    width: 100%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    color: var(--accent-color);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* 页脚 */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 强制所有媒体元素响应式 */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* 防止长URL或长单词溢出 */
* {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* 确保所有表格也响应式 */
table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 2rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .chat-images {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .chat-image-container {
        height: 350px;
    }
    
    .video-list {
        gap: 2rem;
    }
    
    .text-section p {
        font-size: 1rem;
    }
}

/* 平板竖屏和小屏设备 (600px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
        width: 100%;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section {
        padding: 1.5rem;
        border-radius: 6px;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .nav-container {
        justify-content: flex-start;
        padding: 0.6rem 0;
    }
    
    .nav-link {
        padding: 0.4rem 0.9rem;
        margin: 0 0.3rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 2rem 0;
        gap: 2rem;
        width: 100%;
    }
    
    .text-section p {
        font-size: 1rem;
    }
    
    .chat-images {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .chat-image-container {
        height: 280px;
    }
    
    .video-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0.6rem 1rem;
    }
    
    .control-group {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .video-title {
        order: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .video-controls > div:last-child {
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    .video-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 1rem;
    }
    
    .video-item-title {
        font-size: 1.1rem;
    }
    
    .video-item-content {
        padding: 1.2rem;
    }
    
    .statement-section {
        padding: 1.5rem;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        position: fixed;
        top: auto;
        bottom: 20px;
    }
    
    .lightbox-prev {
        left: 20px;
        right: auto;
    }
    
    .lightbox-next {
        right: 20px;
        left: auto;
    }
}

/* 手机设备 (480px - 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 10px;
        width: 100%;
    }
    
    header {
        padding: 1.2rem 0;
    }
    
    h1 {
        font-size: 1.6rem;
        padding: 0 8px;
    }
    
    .subtitle {
        font-size: 0.95rem;
        padding: 0 8px;
    }
    
    .section {
        padding: 1.2rem;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.35rem 0.7rem;
        margin: 0 0.2rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        gap: 1.5rem;
    }
    
    .text-section h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem;
    }
    
    .text-section p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .chat-images {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .chat-image-container {
        height: 250px;
    }
    
    .video-list {
        gap: 1.5rem;
    }
    
    .statement-section {
        padding: 1.2rem;
    }
    
    .statement-title {
        font-size: 1.3rem;
    }
    
    .statement-content {
        font-size: 1rem;
    }
    
    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
}

/* 小屏手机设备 (< 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
        padding: 0 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .text-section h3 {
        font-size: 1.1rem;
    }
    
    .text-section p {
        font-size: 0.9rem;
    }
    
    .chat-image-container {
        height: 220px;
    }
    
    .video-item-header {
        padding: 0.8rem;
    }
    
    .video-item-title {
        font-size: 1rem;
    }
    
    .video-item-content {
        padding: 1rem;
    }
    
    .video-controls {
        padding: 0.5rem 0.8rem;
    }
    
    .control-btn {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 1.8rem;
    }
    
    /* 确保所有内容在小屏幕上不溢出 */
    .section, .text-section, .video-container, .chat-images, .video-list {
        max-width: 100vw;
        overflow: hidden;
    }
}

/* 超小屏设备 (< 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .section {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .text-section p {
        font-size: 0.85rem;
    }
    
    .chat-image-container {
        height: 200px;
    }
    
    .video-controls {
        padding: 0.4rem 0.6rem;
    }
    
    .control-btn {
        font-size: 0.9rem;
        padding: 0.15rem 0.4rem;
    }
}

.tab-content{
        padding-bottom: 20px;
    border-bottom: solid 2px black;
    padding-top: 20px;
}
.tab-header{
    display: none;
}

.main-content p{
        line-height: 1.5;
    padding: 2px 0;
}
#section2,#section3,#section4{
    display: none;
}