/* ===== 基础样式 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 15px;
    margin: 0;
}

/* ===== 颜色变量 ===== */
:root {
    --new-feature: #27ae60;
    --improvement: #8818FD;
    --importance:  #FFA02C;
    --urgent:      #F53A3A;
    --tool-indicator: #718096;
    --border-color: #e0e0e0;
    --version-bg: #f8f9fa;
}

/* ===== 标题样式 ===== */
h1 {
    color: #2c3e50;
    font-size: 1.5em;
    padding-bottom: 10px;
    margin: 0 0 15px 0;
    border-bottom: 2px solid var(--border-color);
}

h2 {
    color: #2c3e50;
    font-size: 1.2em;
    margin: 20px 0 10px;
}

/* ===== 内容区块 ===== */
.content-block {
    background: var(--version-bg);
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== 版本区块 ===== */
.version-block {
    background: var(--version-bg);
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.version-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.version-badge {
    background: #4a5568;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

.version-date {
    color: #718096;
    font-size: 0.9em;
    position: relative;
    padding-left: 12px;
}

.version-date::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--improvement);
}

/* ===== 更新条目 ===== */
.update-item {
    margin: 15px 0;
    padding: 12px 0;
}

.update-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.update-type {
    flex-shrink: 0;
    padding: 0.25em 0.8em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.new-feature { 
    background: var(--new-feature); 
    color: white; 
}

.improvement { 
    background: var(--improvement); 
    color: white; 
}

.importance {
    background: var(--importance); 
    color: white; 
}

.urgent {
    background: var(--urgent); 
    color: white; 
}

.tool-location {
    display: block;
    color: var(--tool-indicator);
    font-size: 0.85em;
    margin: 8px 0 0 28px;
    padding: 6px 10px;
    background-color: #fff;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #e2e8f0;
}

/* ===== 问题条目 ===== */
.question-item {
    margin: 15px 0;
    padding: 12px 0;
}

.question-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.question-type {
    flex-shrink: 0;
    padding: 0.25em 0.8em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    background: var(--improvement);
    color: white;
}

/* ===== 列表样式 ===== */
ul, ol {
    padding-left: 28px;
    margin: 10px 0;
}

ul li, ol li {
    margin-bottom: 6px;
    line-height: 1.5;
}

ul li {
    list-style-type: disc;
}

ol li {
    list-style-type: decimal;
}

/* ===== 其他样式 ===== */
strong {
    color: #2c3e50;
    font-weight: 600;
}

p {
    margin: 10px 0;
}

.contact-info {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* ===== 轮播图样式 ===== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--improvement);
}

/* ===== 图片放大样式 ===== */
.image-container {
    position: relative;
    text-align: center;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.zoomable:hover {
    transform: scale(1.05);
}

.image-caption {
    font-size: 0.85em;
    color: var(--tool-indicator);
    margin-top: 5px;
}

.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* ===== 视频容器样式 ===== */
.video-container {
    max-width: 600px;
    margin: 20px auto;
}

.video-container video {
    width: 100%;
    border-radius: 8px;
}

/* 占位符图片样式 */
.gif-placeholder {
    cursor: pointer; /* 鼠标悬浮时显示手型 */
    width: 800px; /* 固定宽度为800px */
    height: 600px; /* 固定高度为600px */
    object-fit: contain; /* 保持图片比例，等比缩放 */
}
/* GIF图片样式 */
.gif-image {
    width: 800px; /* 与占位符宽度一致 */
    height: 600px; /* 与占位符高度一致 */
    object-fit: contain; /* 保持GIF比例，等比缩放 */
    cursor: pointer; /* 鼠标悬浮时显示手型 */
}
/* 全屏模式样式 */
.fullscreen {
    position: fixed; /* 固定定位，覆盖整个屏幕 */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
    width: 100vw; /* 宽度占满视口 */
    height: 100vh; /* 高度占满视口 */
    object-fit: contain; /* 保持比例居中显示 */
    z-index: 1000; /* 置于顶层 */
    background: rgba(0,0,0,0.9); /* 半透明黑色背景 */
}