/*加载图标库*/
@import url('../../fontawesome-free-6.0.0-web/css/all.min.css');
/*加载背景*/
@import url('resource-detail-page-bg.css');

:root {
            --primary: #FFA500;
            --secondary: #4CAF50;
            --dark: #1A1A1A;
            --light: #F5F5F5;
            --accent: #9C27B0;
            --card-bg: #2A2A2A;
            --border-color: #444;
}
		body {
            font-size: 20px;
            margin: 0px; 
			padding:0px;
            color: var(--light);
        }
		/*标题栏*/
		.titlebar{
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            padding: 14px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            border-bottom: 1px solid var(--border-color);
		}
        .left-buttons {
            display: flex;
        }
        
        .titlebar button {
            background: transparent;
            color: var(--light);
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
			margin-right:6px;
        }
        .titlebar button:hover {
            background: rgba(255, 165, 0, 0.1);
            color: var(--primary);
        }
		/*网站标题*/
		.titlebar .title {
			white-space: nowrap; /* 禁止换行 */
			/*word-break: break-word;强制拆分单词换行*/
			overflow: hidden; /* 隐藏超出文本 */
			text-overflow: ellipsis;/*超出显示省略号*/
			
			margin:0px;
            font-size: 1.2rem;
            color: var(--primary);
        }
	#content {
			word-wrap: break-word;
			margin-left: auto;
			margin-right: auto;
			max-width: 94%; /* 添加最大宽度 */
			width: 100%; /* 确保宽度自适应 */
    }
	/*主标题*/
	.main-title-container{
            background: var(--card-bg);
            border-radius: 8px;
            margin-top: 30px;
            padding: 2rem;
            margin-bottom: 2rem;
            border-left: 4px solid var(--primary);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}
	.main-title{
            font-size: 2.5rem;
            color: var(--primary);
            margin: 0px;
	}
	.main-title-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
	}
	.main-title-bottom-timestamp{
        color: rgba(245, 245, 245, 0.8);
        font-size: 1.0rem;
		margin:0px;
		padding:0px;
		white-space: nowrap;      /* 强制不换行 */
		overflow: hidden;         /* 隐藏溢出内容 */
		text-overflow: ellipsis;  /* 显示省略号 */
	}
	.main-title-bottom-right {
		margin:0px;
		padding:0px;
		display: flex;
	}
	.main-title-bottom-buttons{
		white-space: nowrap;      /* 强制不换行 */
		overflow: hidden;         /* 隐藏溢出内容 */
		
        background: rgba(76, 175, 80, 0.15);
        border: none;
        color: var(--secondary);
        border: 1px solid rgba(76, 175, 80, 0.3);
        padding: 5px;
		margin-left:10px;
        border-radius: 8px;
        cursor: pointer;
	}
	.main-title-bottom-buttons:hover {
            background: rgba(76, 175, 80, 0.25);
            transform: translateY(-2px);
    }
    /* 章节标题 */
    .card-title {
            color: var(--secondary);
            font-size: 1.6rem;
			margin:0px;
			padding:0px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            font-weight: 600;
        }
        
    .card {
            background: var(--card-bg);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
    }
	
	/*markdown内容*/
	.markdown {
            /*background-color: #1e1e24;*/
            padding: 10px;
			padding-top:0px;
			margin-bottom:10px;
			margin-top:0px;
    }

    .markdown img{
			max-width:100%;
    }
	
    .markdown h3 {
            color: var(--primary);
    }
    .markdown a{
			color: #4CAF50;
            text-decoration: none;
            transition: all 0.3s ease;
    }
	
    .markdown a:hover{
			color: #66BB6A;
            text-decoration: underline;
    }
	
    .markdown pre{
			overflow-x:auto;
			background-color: #1e2a38;
    }
	
	.direct-download-code {
		color: #4CAF50;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .direct-download-code:hover {
		color: #66BB6A;
        text-decoration: underline;
    }
    .imgcard {
            background: var(--card-bg);
            border-radius: 8px;
            margin-bottom: 20px;
			padding:10px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
    }
    .image-container {
		padding: 0px;
		margin: 0 auto;
        display: flex;/*创建弹性布局*/
        flex-direction: row; /* 默认值，横向排列 column是纵向排列*/
        align-items: center;/*内容垂直居中*/
        width: 98%; 
		max-height:90vh;
        overflow-y: auto;
        overflow-x: auto;/*里面元素水平超出了自动加滚动条*/
    }
    /*容器里面图片属性*/
    .image-container img{
        /*
        在css里横向排列图片，只定义默认高度不定义默认宽度就是对的。会根据高度比例自动设置宽度。
        反而是定义了默认宽度页面载入时图片大小会变窄而没有滚动条。得刷新一下页面才会有滚动条和设定的宽度
        */
        max-height: 86vh;
		margin:0px;
		padding:0px;
        margin-right: 10px;
    }
	/*下载帮助区域*/
        .help-section {
			
            background: var(--card-bg);
            border-radius: 8px;
            border: 1px solid var(--border-color);
			
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .help-section h3 {
            color: var(--primary);
			margin:0px;
        }
        
        .help-link {
            display: inline-block;
            background: rgba(156, 39, 176, 0.1);
            color: var(--accent);
            padding: 10px 18px;
            margin-right: 12px;
            margin-bottom: 12px;
            border-radius: 8px;
            text-decoration: none;
            border: 1px solid rgba(156, 39, 176, 0.3);
            transition: all 0.3s ease;
        }
        
        .help-link:hover {
            background: rgba(156, 39, 176, 0.2);
            color: white;
        }
		/*表格颜色*/
		table {
            background-color: rgba(70,70,70,0.8);
		}
		/*表格交替行颜色*/
		table tr:nth-child(even) {
            background-color: rgba(40,40,40,1);
        }
        
        table tr:nth-child(odd) {
            background-color: rgba(60,60,60,1);
        }
		td {
			/*如果有表格内容，强制任意位置换行，防止水平扩大页面，以适应手机页面*/
			word-break: break-all;
		} 
/*页脚*/

footer {
	
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    margin-top: 40px;
	
    text-align: center;
    color: rgba(245, 245, 245, 0.6);
    border-top: 1px solid var(--border-color);
}
@media (max-width: 768px) {
    .main-title {
                text-align: center;
    }
    .main-title-bottom {
                flex-direction: column;
                text-align: center;
    }
	.main-title-bottom-buttons{
				margin-top:10px;
				margin-left:10px;
				margin-right:10px;
	}
}