/* 郑州大学化学学院教学成果展示网站 - 样式文件 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "宋体", Arial, sans-serif; font-size: 14px; color: #333; background: #f0f0f0; line-height: 1.6; }
a { color: #0055a5; text-decoration: none; }
a:hover { color: #c00; text-decoration: underline; }

/* 顶部Banner */
.header { background: linear-gradient(135deg, #003366 0%, #0055a5 100%); color: white; padding: 20px 15px; text-align: center; }
.header h1 { font-size: 22px; margin-bottom: 8px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.header h2 { font-size: 14px; font-weight: normal; opacity: 0.9; line-height: 1.4; }

/* 移动端菜单按钮 */
.menu-toggle { display: none; width: 100%; padding: 12px 15px; background: #002244; color: white; border: none; font-size: 16px; cursor: pointer; text-align: center; font-family: inherit; }
.menu-toggle:hover { background: #003366; }

/* 导航栏 */
.nav { background: #003366; height: auto; min-height: 42px; line-height: 42px; text-align: center; }
.nav ul { list-style: none; display: inline-block; }
.nav ul li { float: left; position: relative; }
.nav ul li > a { display: block; color: white; padding: 0 20px; font-size: 14px; font-weight: bold; }
.nav ul li > a:hover { background: #0055a5; text-decoration: none; }
.nav ul ul { display: none; position: absolute; top: 42px; left: 0; background: #003366; z-index: 1000; min-width: 180px; text-align: left; }
.nav ul li:hover > ul { display: block; }
.nav ul ul li { float: none; border-bottom: 1px solid #0055a5; }
.nav ul ul li a { padding: 10px 15px; text-align: left; font-size: 13px; }

/* 主容器 */
.container { width: 1100px; max-width: 100%; margin: 15px auto; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* 面包屑 */
.breadcrumb { padding: 10px 15px; background: #e8eef5; border-bottom: 1px solid #c0d0e0; font-size: 12px; }

/* 内容区 */
.content { display: flex; padding: 15px; }
.content-left { width: 220px; padding-right: 15px; border-right: 1px solid #ddd; flex-shrink: 0; }
.content-right { flex: 1; padding-left: 15px; min-width: 0; }

/* 左侧导航 */
.left-nav { border: 1px solid #c0d0e0; background: #f5f8fc; margin-bottom: 15px; }
.left-nav h3 { background: #003366; color: white; padding: 10px 12px; font-size: 14px; }
.left-nav ul { list-style: none; }
.left-nav ul li { border-bottom: 1px solid #e0e8f0; }
.left-nav ul li:last-child { border-bottom: none; }
.left-nav ul li a { display: block; padding: 8px 12px; color: #333; font-size: 13px; }
.left-nav ul li a:hover, .left-nav ul li.current a { background: #e0e8f0; color: #0055a5; text-decoration: none; }

/* 内容区块 */
.section { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px dashed #ddd; }
.section:last-child { border-bottom: none; }
.section h3 { font-size: 16px; color: #003366; padding-bottom: 8px; border-bottom: 2px solid #003366; margin-bottom: 12px; }
.section h4 { font-size: 14px; color: #0055a5; margin: 12px 0 8px; }
.section p { line-height: 1.8; text-indent: 2em; margin-bottom: 10px; text-align: justify; }
.section ul, .section ol { padding-left: 25px; line-height: 1.8; margin-bottom: 12px; }

/* 图片展示 */
.image-box { text-align: center; margin: 15px 0; padding: 10px; background: #f8f8f8; border: 1px solid #ddd; }
.image-box img { max-width: 100%; height: auto; border: 1px solid #ccc; padding: 5px; background: white; }
.image-box .caption { font-size: 12px; color: #666; margin-top: 8px; font-style: italic; }

/* 表格样式 */
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; table-layout: fixed; }
table th { background: #003366; color: white; padding: 8px 6px; text-align: center; border: 1px solid #002244; }
table td { padding: 6px; border: 1px solid #c0d0e0; text-align: center; word-wrap: break-word; }
table tr:nth-child(even) { background: #f5f8fc; }
table tr:hover { background: #e8eef5; }

/* 成果亮点 */
.highlight { background: #fffbe6; border: 1px solid #f0d060; padding: 12px; margin: 12px 0; border-radius: 4px; }
.highlight h4 { color: #c00; margin-bottom: 8px; }
.highlight p { text-indent: 0; margin-bottom: 8px; }
.highlight p:last-child { margin-bottom: 0; }

/* 底部 */
.footer { background: #003366; color: white; padding: 15px; text-align: center; font-size: 12px; }
.footer p { margin: 5px 0; }
.footer a { color: #a0c4e8; }

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

/* 平板设备 */
@media (max-width: 900px) {
    .container { width: 100%; margin: 10px 0; }
    .header { padding: 15px 10px; }
    .header h1 { font-size: 18px; }
    .header h2 { font-size: 12px; }
    .nav ul li > a { padding: 0 12px; font-size: 13px; }
    .content { flex-direction: column; padding: 10px; }
    .content-left { width: 100%; border-right: none; border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 10px; }
    .content-right { padding-left: 0; }
    .section h3 { font-size: 15px; }
}

/* 手机设备 */
@media (max-width: 600px) {
    .menu-toggle { 
        display: block; 
        position: sticky;
        top: 0;
        z-index: 1001;
    }
    
    .nav { height: auto; min-height: auto; }
    .nav ul { 
        display: none; 
        width: 100%; 
        text-align: left; 
        position: absolute;
        left: 0;
        right: 0;
        background: #003366;
        z-index: 1000;
    }
    .nav ul.active { display: block; }
    
    .nav ul li { 
        float: none; 
        border-bottom: 1px solid #002244;
        text-align: left;
    }
    .nav ul li > a { 
        padding: 14px 15px; 
        border-bottom: none;
    }
    
    /* 手机端子菜单 - 默认隐藏，点击父级展开*/
    .nav ul ul { 
        position: static; 
        display: none; 
        background: #002244;
    }
    .nav ul li.submenu-open > ul { display: block; }
    .nav ul ul li { border-bottom: 1px solid #003366; }
    .nav ul ul li a { 
        padding: 12px 15px 12px 35px; 
        font-size: 13px;
        display: block;
    }
    .nav ul ul li a::before {
        content: "├ ";
        color: #888;
    }
    
    /* 子菜单指示箭头 */
    .nav ul li.has-submenu > a::after {
        content: " ▼";
        font-size: 10px;
        color: #aaa;
    }
    
    .header { padding: 12px 10px; }
    .header h1 { font-size: 16px; }
    .header h2 { font-size: 11px; }
    
    .breadcrumb { font-size: 11px; padding: 8px 10px; }
    
    .container { margin: 5px 0; }
    .content { padding: 10px; }
    
    .content-left { display: none; }
    
    .section { margin-bottom: 20px; padding-bottom: 12px; }
    .section h3 { font-size: 14px; }
    .section h4 { font-size: 13px; }
    .section p { font-size: 13px; line-height: 1.7; }
    .section ul, .section ol { font-size: 13px; padding-left: 20px; }
    
    table { font-size: 12px; }
    table th, table td { padding: 5px 4px; }
    
    .image-box { padding: 8px; margin: 10px 0; }
    .image-box .caption { font-size: 11px; }
    
    .highlight { padding: 10px; }
    .highlight h4 { font-size: 13px; }
    .highlight p { font-size: 13px; }
    
    .footer { padding: 12px 10px; font-size: 11px; }
    
    .left-nav { display: none; }
    
    /* 触摸友好的最小尺寸 */
    a, button { min-height: 44px; }
    .nav ul li > a { min-height: 44px; line-height: 44px; }
}

/* 打印样式 */
@media print {
    .nav, .menu-toggle, .left-nav { display: none; }
    .content { display: block; }
    .content-left { display: none; }
    .container { box-shadow: none; margin: 0; }
    .section { page-break-inside: avoid; }
}