* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e88e5;
    --secondary-color: #43a047;
    --accent-color: #ff9800;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    padding: 0;
    padding-bottom: 30px;
    margin: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    body {
        padding-bottom: 25px;
    }
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: white;
    min-height: calc(100vh - 30px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .container {
        min-height: calc(100vh - 25px);
    }
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 12px;
    }
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
        margin-bottom: 2px;
    }
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

@media (max-width: 480px) {
    .subtitle {
        font-size: 12px;
    }
}

/* 导航标签 */
.tabs {
    display: flex !important;
    background: white;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 0;
    padding: 15px 10px;
    border: none;
    background: white;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px; /* 确保触摸目标足够大 */
    touch-action: manipulation; /* 优化触摸响应 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 8px;
        font-size: 13px;
        flex-shrink: 0;
        min-width: 100px;
        min-height: 44px; /* 确保触摸目标足够大 */
    }
    
    .ppt-action-btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .policy-action-btn {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 10px 6px;
        font-size: 12px;
        min-width: 90px;
        min-height: 44px; /* 确保触摸目标足够大 */
    }
    
    .ppt-action-btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .policy-action-btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tab-btn:active {
    background: #f5f5f5;
}

/* 内容区域 */
.content-section {
    display: none;
    padding: 15px;
    animation: fadeIn 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .content-section {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 10px;
    }
}

/* 第一页（媒体页面）优化，减少间距，适配视口 */
#media.content-section.active {
    padding: 4px; /* 减少padding，给视频更多空间 */
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    #media.content-section.active {
        padding: 2px; /* 进一步减少padding */
    }
}

@media (max-width: 480px) {
    #media.content-section.active {
        padding: 4px; /* 手机端减少padding */
        overflow-y: hidden; /* 手机端禁止滚动 */
    }
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 媒体容器 */
.media-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    padding-top: 16px;
}

/* 视频播放器 */
.video-item {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .video-item {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .video-item {
        margin-bottom: 15px;
        border-radius: 6px;
    }
}

.video-item video {
    width: 100%;
    height: auto;
    max-height: 60vh; /* 继续减小最大高度 */
    display: block;
    background: #000;
}

/* B站视频播放器 */
.bilibili-item {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

@media (max-width: 768px) {
    .bilibili-item {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .bilibili-item {
        margin-bottom: 15px;
        border-radius: 6px;
    }
}

.bilibili-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 继续减小高度 */
    overflow: hidden;
}

@media (max-width: 480px) {
    .bilibili-wrapper {
        padding-top: 56.25%; /* 手机端回到标准16:9比例 */
    }
}

.bilibili-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    display: block;
    visibility: visible;
    opacity: 1;
    /* 兼容性设置 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* 确保在所有浏览器中可见 */
    z-index: 1;
}

/* 多个B站视频标题与间距 */
.video-title,
.carousel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px 0;
    text-align: center;
}

.bilibili-video-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.bilibili-video-wrapper .bilibili-item {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .video-title,
    .carousel-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .bilibili-video-wrapper {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .video-title,
    .carousel-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .bilibili-video-wrapper {
        margin-bottom: 16px;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.close-btn:active {
    background: rgba(0, 0, 0, 0.8);
}

/* 图片轮播 */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

@media (max-width: 768px) {
    .carousel-container {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        margin-bottom: 4px;
        border-radius: 6px;
    }
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

.carousel-track {
    position: relative;
    width: 100%;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transform-origin: center center;
}

/* 全尺寸图片容器样式 */
.full-size-image-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.full-size-image-container img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* 图片缩放工具栏 */
.image-zoom-toolbar {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 25px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.zoom-toolbar-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-toolbar-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.zoom-level-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}


/* PPT页面缩放工具栏（已废弃，保留用于兼容） */
.ppt-zoom-toolbar {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 25px;
    z-index: 20;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: none; /* 隐藏每页的工具栏 */
}

.ppt-zoom-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.ppt-zoom-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.ppt-zoom-level {
    color: white;
    font-size: 13px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

/* 政策文件页面容器 */
.policy-pages-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 100px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.policy-page-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px;
    touch-action: pan-y;
}

.policy-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.policy-canvas {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    cursor: grab;
    display: block;
    background: white;
}

.policy-canvas:active {
    cursor: grabbing;
}



/* 图片全屏查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    touch-action: none;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: transform 0.1s ease-out;
}

.image-viewer-content img:active {
    cursor: grabbing;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.image-viewer-close:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.image-viewer-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 30px;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.viewer-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.viewer-btn:active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(0.9);
}

.viewer-zoom-level {
    color: white;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .image-zoom-toolbar {
        top: 10px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .zoom-toolbar-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .zoom-level-text {
        font-size: 12px;
        min-width: 40px;
    }
    
    .image-viewer-controls {
        bottom: 20px;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .viewer-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .viewer-zoom-level {
        font-size: 13px;
        min-width: 45px;
    }
}

/* iOS下载提示对话框 */
.ios-download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.ios-download-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ios-download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.ios-download-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ios-download-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ios-download-close:hover {
    background: #f0f0f0;
    color: #333;
}

.ios-download-close:active {
    transform: scale(0.9);
}

.ios-download-body {
    padding: 24px;
}

.ios-download-body p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #555;
    font-size: 15px;
}

.ios-download-body p:first-child {
    margin-bottom: 16px;
    color: #333;
    font-weight: 500;
}

.ios-download-body strong {
    color: #333;
    font-weight: 600;
}

.ios-download-body ol {
    margin: 12px 0 0 0;
    padding-left: 24px;
    line-height: 1.8;
    color: #555;
}

.ios-download-body ol li {
    margin-bottom: 8px;
    font-size: 14px;
}

.ios-download-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
}

.ios-download-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #007AFF;
    color: white;
}

.ios-download-btn:hover {
    background: #0056CC;
}

.ios-download-btn:active {
    transform: scale(0.98);
}

.ios-download-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.ios-download-btn-secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .ios-download-content {
        max-width: 100%;
        margin: 10px;
        border-radius: 12px;
    }
    
    .ios-download-header {
        padding: 16px 20px;
    }
    
    .ios-download-header h3 {
        font-size: 18px;
    }
    
    .ios-download-body {
        padding: 20px;
    }
    
    .ios-download-body p {
        font-size: 14px;
    }
    
    .ios-download-body ol li {
        font-size: 13px;
    }
    
    .ios-download-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .ios-download-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
}

.carousel-controls {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 5;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
    background: white;
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

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

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.carousel-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 5;
}

/* 媒体列表 */
.media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media-card {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    background: #f0f0f0;
}

.media-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-hover);
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.media-card .media-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 8px;
    font-size: 12px;
    text-align: center;
}

/* PPT展示区 */
.ppt-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* PPT工具栏 */
.ppt-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.toolbar-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.toolbar-btn:active {
    background: var(--primary-color);
    color: white;
    transform: scale(0.98);
}

.toolbar-btn-text {
    font-size: 14px;
}

@media (max-width: 480px) {
    .toolbar-btn-text {
        display: none;
    }
    
    .toolbar-btn {
        width: 45px;
        height: 45px;
        padding: 0;
    }
}

.toolbar-btn.download-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.toolbar-btn.download-btn:active {
    background: var(--secondary-color);
    color: white;
}

/* PPT工具栏按钮 - 纯文字样式 */
.ppt-toolbar-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ppt-toolbar-btn:active {
    background: var(--primary-color);
    color: white;
    transform: scale(0.98);
}

.ppt-toolbar-download {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.ppt-toolbar-download:active {
    background: var(--secondary-color);
    color: white;
}

/* PPT操作按钮（在下方） */
.ppt-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.ppt-action-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px; /* 确保触摸目标足够大 */
    touch-action: manipulation; /* 优化触摸响应 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.ppt-action-btn:active {
    background: var(--primary-color);
    color: white;
    transform: scale(0.98);
}

.ppt-action-download {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.ppt-action-download:active {
    background: var(--secondary-color);
    color: white;
}

@media (max-width: 480px) {
    .ppt-toolbar-btn,
    .ppt-action-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* PPT下载按钮区域 */
.ppt-download-section {
    margin-bottom: 15px;
    text-align: center;
}

.download-btn-large {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2e7d32 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.download-btn-large:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-icon {
    font-size: 20px;
}

.zoom-level {
    min-width: 60px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* PPT预览卡片 */
.ppt-preview-card {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 40px 20px;
    box-shadow: var(--shadow);
    text-align: center;
    color: white;
}

.ppt-preview-content {
    max-width: 400px;
    margin: 0 auto;
}

.ppt-preview-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.ppt-preview-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.ppt-preview-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.ppt-view-btn {
    width: 100%;
    padding: 18px 30px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.ppt-view-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.view-icon {
    font-size: 20px;
}

.arrow-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.ppt-view-btn:active .arrow-icon {
    transform: translateX(5px);
}

.ppt-download-preview-btn {
    width: 100%;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ppt-download-preview-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.98);
}

/* PPT查看器包装器 */
.ppt-viewer-wrapper {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 0 0 12px 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.ppt-viewer-wrapper.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ppt-viewer {
    width: 100%;
    background: #f5f5f5;
    display: block;
    overflow: visible;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.pdf-pages-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 100px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* PPT页面导航栏 */
.ppt-page-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ppt-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.ppt-nav-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.ppt-nav-info {
    color: white;
    font-size: 14px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .ppt-page-nav {
        bottom: 15px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .ppt-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .ppt-nav-info {
        font-size: 13px;
        min-width: 50px;
    }
}

.ppt-slide {
    width: 100%;
    display: none;
    padding: 0;
}

.ppt-slide.active {
    display: block;
}

.ppt-slide img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* PDF容器 */
.pdf-container {
    position: relative;
    width: 100%;
    min-height: 60vh;
    border-radius: 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #f5f5f5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* PDF Canvas容器 - 类似图片轮播 */
.pdf-canvas-container {
    overflow: hidden !important;
    background: #000;
    position: relative;
}

.pdf-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdf-canvas {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    cursor: grab;
    display: block;
    background: white;
}

.pdf-canvas:active {
    cursor: grabbing;
}

/* PDF iframe优化 - 等比例缩放 */
.ppt-slide iframe {
    width: 100%;
    min-height: 60vh;
    border: none;
    border-radius: 8px;
    background: white;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

/* iPad和移动端PDF优化 - 自适应屏幕，完整显示 */
@media (max-width: 1024px) and (min-width: 769px) {
    /* iPad专用样式 */
    .pdf-container {
        min-height: 70vh;
        padding: 20px;
    }
    
    .pdf-pages-container {
        padding: 20px 0 100px 0;
    }
    
    .ppt-viewer {
        min-height: 70vh;
        max-height: 80vh;
    }
}

@media (max-width: 768px) {
    .pdf-container {
        padding-top: 56.25% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 0;
        background: #000;
        overflow: hidden;
    }
    
    .pdf-canvas-container {
        padding-top: 56.25% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .ppt-slide iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 100%;
        transform: none !important;
        object-fit: contain;
    }
    
    .pdf-canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
    
    .pdf-pages-container {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .pdf-page-container {
        touch-action: pan-y !important;
    }
    
    /* 移动端提示更明显 */
    .mobile-hint {
        background: #fff3cd;
        border-left: 4px solid #ff9800;
        color: #856404;
        font-weight: 500;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .mobile-hint p {
        margin: 0;
        line-height: 1.6;
        font-size: 14px;
    }
    
    .mobile-hint strong {
        display: block;
        margin-bottom: 5px;
        font-size: 15px;
    }
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    padding: 20px;
}

/* PDF查看器提示（在PDF容器内） */
.pdf-viewer-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    pointer-events: none;
    z-index: 10;
}

.pdf-viewer-hint p {
    color: white;
    font-size: 13px;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pdf-viewer-hint {
        padding: 12px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    }
    
    .pdf-viewer-hint p {
        font-size: 12px;
    }
}

/* iPad PDF优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .ppt-viewer {
        min-height: 70vh;
        max-height: 80vh;
        padding: 20px;
    }
    
    .ppt-slide {
        padding: 0;
    }
    
    .ppt-slide img {
        width: 100%;
        max-width: 100%;
    }
    
    .ppt-toolbar {
        padding: 15px;
        gap: 12px;
    }
    
    .ppt-toolbar-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .pdf-pages-container {
        padding: 20px 0 120px 0;
    }
}

/* 移动端PDF优化 */
@media (max-width: 768px) {
    .ppt-viewer {
        min-height: 65vh;
        max-height: 75vh;
        padding: 0;
    }
    
    .ppt-slide {
        padding: 0;
    }
    
    .ppt-slide img {
        width: 100%;
        max-width: 100%;
    }
    
    .ppt-toolbar {
        padding: 12px 10px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .ppt-toolbar-btn {
        flex: 1;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 移动端提示 */
.mobile-hint {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #1976d2;
    display: none;
}

.mobile-hint.show {
    display: block;
}

@media (max-width: 768px) {
    .mobile-hint.show {
        display: block;
    }
}

.ppt-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.ppt-placeholder code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.ppt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    gap: 10px;
}

.ppt-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 80px;
}

.ppt-btn:active {
    background: var(--primary-color);
    color: white;
    transform: scale(0.98);
}

.ppt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ppt-counter {
    font-size: 15px;
    color: #666;
    font-weight: 600;
    padding: 0 15px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .ppt-controls {
        padding: 12px;
    }
    
    .ppt-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 70px;
    }
    
    .ppt-counter {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* 政策文件区 */
.policy-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.policy-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.policy-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.policy-item:active {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

/* 政策文件预览 */
.policy-preview {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    animation: slideDown 0.3s ease;
}

.policy-preview-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #525252;
}


@media (max-width: 768px) {
    .policy-preview-wrapper {
        height: 60vh;
        min-height: 400px;
        max-height: 65vh;
        background: #000;
        overflow: hidden;
    }
    
    .policy-preview-iframe {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .policy-preview-hint {
        font-size: 13px;
        padding: 12px;
        background: rgba(0, 0, 0, 0.8);
    }
}

.policy-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.policy-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    pointer-events: none;
}

.policy-preview-hint {
    color: white;
    font-size: 12px;
    text-align: center;
    margin: 0;
}

.policy-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.policy-action-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    min-height: 44px; /* 确保触摸目标足够大 */
    touch-action: manipulation; /* 优化触摸响应 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.policy-action-btn.view-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.policy-action-btn.view-btn:active {
    background: var(--primary-color);
    color: white;
}

.policy-action-btn.download-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.policy-action-btn.download-btn:active {
    background: var(--secondary-color);
    color: white;
}

.policy-action-btn.preview-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.policy-action-btn.preview-btn:active,
.policy-action-btn.preview-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 移动端政策预览优化 */
@media (max-width: 768px) {
    .policy-preview-wrapper {
        height: 300px;
    }
    
    .policy-preview-hint {
        font-size: 11px;
        padding: 10px;
    }
    
    .policy-item {
        padding: 15px;
    }
    
    .policy-action-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .policy-preview-wrapper {
        height: 250px;
    }
    
    .policy-action-btn span:not(:first-child) {
        display: none;
    }
    
    .policy-action-btn {
        min-width: 44px; /* 确保触摸目标足够大 */
        min-height: 44px;
        padding: 10px;
    }
    
    .ppt-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

.policy-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.policy-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.policy-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 15px;
}

.policy-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.policy-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.policy-placeholder code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* 页脚备案信息 */
.footer {
    width: 100%;
    text-align: center;
    padding: 20px 20px;
    background: white;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-text {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .footer {
        padding: 12px 15px;
    }
    
    .footer-text {
        font-size: 11px;
    }
}

/* 返回顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:active {
    transform: scale(0.9);
    background: #1565c0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .media-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {

    .tab-btn {
        font-size: 12px;
        padding: 10px 4px;
    }

    .content-section {
        padding: 12px;
    }

    .media-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面加载遮罩 */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
}

.loading-subtext {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    color: white;
}

@media (max-width: 768px) {
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-subtext {
        font-size: 13px;
    }
}

/* 全局响应式优化 - 确保所有设备都能正常使用和下载 */
@media (max-width: 480px) {
    /* 确保所有按钮都有足够的触摸区域（至少44x44px） */
    button, .btn, a[role="button"], input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* 确保下载按钮在小屏幕上清晰可见 */
    .download-btn-large {
        font-size: 15px;
        padding: 14px 18px;
        min-height: 48px;
    }
    
    /* PPT操作按钮优化 */
    .ppt-action-btn {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* 政策操作按钮优化 */
    .policy-action-btn {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* 滚动到顶部按钮优化 */
    .scroll-top {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
}

/* 超小屏幕优化（小于360px，如iPhone SE等） */
@media (max-width: 360px) {
    .header {
        padding: 12px 10px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .tab-btn {
        font-size: 11px;
        padding: 10px 4px;
        min-width: 75px;
        min-height: 44px;
    }
    
    .content-section {
        padding: 8px;
    }
    
    #media.content-section.active {
        padding: 8px;
    }
    
    button, .btn {
        font-size: 13px;
        padding: 10px 14px;
        min-height: 44px;
    }
    
    .ppt-action-btn, .policy-action-btn {
        font-size: 12px;
        padding: 10px 10px;
        min-height: 44px;
    }
    
    .bilibili-item, .video-item {
        margin-bottom: 12px;
    }
    
    .carousel-container {
        margin-bottom: 4px;
    }
}

/* 极小屏幕优化（小于320px，如部分老旧Android设备） */
@media (max-width: 320px) {
    .header {
        padding: 10px 8px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .subtitle {
        font-size: 10px;
    }
    
    .tab-btn {
        font-size: 10px;
        padding: 8px 3px;
        min-width: 70px;
        min-height: 44px;
    }
    
    .content-section {
        padding: 6px;
    }
    
    #media.content-section.active {
        padding: 6px;
    }
    
    button, .btn {
        font-size: 12px;
        padding: 8px 12px;
        min-height: 44px;
    }
    
    .ppt-action-btn, .policy-action-btn {
        font-size: 11px;
        padding: 8px 8px;
        min-height: 44px;
    }
    
    body {
        padding-bottom: 20px;
    }
    
    .container {
        min-height: calc(100vh - 20px);
    }
}

