
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%),
        url('../images/backgrounds/DNA.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    padding-left: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* Ask Your Question 按钮样式 */
.ask-question-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.ask-question-btn:hover {
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4) !important;
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

/* 语言切换按钮 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 15px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

.lang-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    margin-top: 80px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb span {
    color: #7f8c8d;
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: #2c3e50;
    font-weight: 600;
}

/* 主要内容 */
.main-content {
    margin-top: 0;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 疾病卡片 */
.disease-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.disease-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.disease-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.disease-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.disease-card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 维度卡片 */
.dimensions-grid {
    display: grid;
     grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.dimension-card {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.5) 0%, rgba(9, 132, 227, 0.5) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dimension-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.7) 0%, rgba(9, 132, 227, 0.7) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 主题列表 */
.topics-list {
    margin-top: 2rem;
}

.topic-item {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.topic-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.topic-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.topic-item a:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* 主题内容 */
.topic-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.topic-content h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.topic-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 网站介绍样式 */
.website-intro {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
    border-left: 4px solid #3498db;
    padding: 1.2rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    font-style: italic;
    color: #2c3e50;
}

.website-intro p {
    margin: 0;
    font-size: 1.05em;
}

/* 文内引用样式 */
.inline-citation {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.inline-citation:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 关键要点样式 */
.key-points-section {
    background: transparent;  /* 移除绿色背景 */
    border: none;  /* 移除绿色边框 */
    border-radius: 0;  /* 移除圆角 */
    padding: 1rem 0;  /* 减少内边距 */
    margin: 2rem 0;
    box-shadow: none;  /* 移除阴影 */
}

.key-points-title {
    color: #e74c3c;  /* 改为红色 */
    font-size: 1.3em;
    margin-bottom: 1rem;
    text-align: left;  /* 改为左对齐 */
    font-weight: bold;
    text-transform: none;  /* 取消大写转换 */
    letter-spacing: normal;  /* 取消字母间距 */
}

.key-points-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;  /* 减少行间距，设为正常间距 */
}

.key-point-item {
    background: transparent;  /* 移除白色背景 */
    padding: 0.5rem 0;  /* 减少内边距 */
    border-radius: 0;  /* 移除圆角 */
    border-left: none;  /* 移除左边框 */
    font-weight: bold;  /* 改为加粗 */
    color: #000000;  /* 改为黑色 */
    box-shadow: none;  /* 移除阴影 */
    transition: none;  /* 移除过渡效果 */
}

.key-point-item:hover {
    transform: none;  /* 移除悬停效果 */
    box-shadow: none;
}
/* 参考文献区域 */
.references-section {
    margin-top: 3rem;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.content-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    margin: 2rem 0 1.5rem 0;
    border-radius: 1px;
}

.references-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: bold;
}

.references-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reference-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.reference-item:hover {
    background: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ref-number {
    background: #e74c3c;
    color: white;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.ref-separator {
    color: #7f8c8d;
    font-weight: bold;
    flex-shrink: 0;
}

.ref-title {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    flex: 1;
    line-height: 1.4;
}

.ref-title:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 返回按钮 */
.back-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.back-button:hover {
    background: #2980b9;
}

/* 页脚 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .disease-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ref-number {
        align-self: flex-start;
    }
}
