:root {
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/* 顶部导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-weight: 600;
    color: var(--text-color);
}

/* 修改后的右上角下拉菜单样式 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* 导航链接和下拉菜单之间的间距 */
}
.nav-links {
    display: flex;
    gap: 15px;
}
.nav-links a {
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: var(--text-color);
    text-decoration: none;
}
.nav-links a:hover {
    background-color: var(--light-gray);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
}

.dropdown-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* 主要内容区域 */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
}
		
.note {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}

/* 引用块样式 */
blockquote {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

blockquote p {
    margin: 0;
    font-style: italic;
}

/* 代码块样式 */
.code-block {
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* 分割线样式 */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 30px 0;
}

/* 超链接样式1 */
a.links1 {
    color: DimGrey;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1px;
}

a.links1:hover {
    color: var(--links-color);
    border-bottom-color: var(--links-color);
}

/* 超链接样式2 */
a.links2 {
    color: DimGrey;
    text-decoration: none;
    transition: color 0.2s;
}

a.links2:hover {
    color: var(--links-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
.navbar {
    flex-direction: column;
    padding: 10px 15px;
    align-items: flex-start;
}
	
.logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}
	
.nav-right {
    width: 100%;
    justify-content: space-between;
    margin: 0;
    gap: 0;
}
    
.nav-links {
    gap: 10px;
    flex-wrap: wrap;
}
	
.nav-links a {
    font-size: 0.9rem;
    padding: 6px 8px;
}
	
.dropdown {
    margin-top: 0;
}
    
.dropdown-toggle {
    padding: 6px 8px;
    font-size: 0.9rem;
}
    
    h1 {
font-size: 1.8rem;
    }
    
    h3 {
font-size: 1.3rem;
    }
}
		
/* 页脚样式 */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #f0f0f0;
}

/* 按钮容器 */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

/* 基础按钮样式 */
.style-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.style-button[ctag="qcl"]:hover {
    background-color: #7ed6fe;
    color: white;
    border-color: #7ed6fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 214, 254, 0.3);
}

.style-button[ctag="qcyx"]:hover {
    background-color: #ff6354;
    color: white;
    border-color: #ff6354;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 84, 0.3);
}

/* 响应式图片 */
.responsive-image {
    /* 基础响应式 */
    width: 100%;
    height: auto;
    max-width: 100%;
    
    /* 设置合理的尺寸限制 */
    min-width: 200px;  /* 最小宽度，避免过小图片拉伸模糊 */
    max-width: 800px;  /* 最大宽度，避免过大图片占据整个屏幕 */
    
    /* 设置高度限制 */
    min-height: 150px; /* 最小高度 */
    max-height: 500px; /* 最大高度 */
    
    /* 视觉效果 */
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    
    /* 性能优化 */
    display: block;
    object-fit: contain; /* 保持比例，完整显示图片 */
    
    /* 过渡效果 */
    transition: all 0.3s ease;
}

/* 图片容器 */
.image-wrapper {
    margin: 25px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* 居中对齐 */
}

/* 图片标题 */
.image-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    max-width: 800px; /* 标题也限制最大宽度 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .responsive-image {
        max-width: 100%; /* 移动端可以占满宽度 */
        max-height: 400px; /* 移动端高度稍小 */
    }
}

@media (max-width: 480px) {
    .responsive-image {
        max-height: 300px; /* 小屏幕进一步限制高度 */
        min-width: 150px;  /* 小屏幕最小宽度稍小 */
    }
}


