/* Under Index页面样式 */
.under-index-content {
    margin-top: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
}

.under-index-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

/* 标题样式 - 排除h1 */
.under-index-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #17a2b8;
    position: relative;
}

.under-index-container h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
}

.under-index-container h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #444;
    margin: 25px 0 15px 0;
    position: relative;
    padding-left: 20px;
}

.under-index-container h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
    border-radius: 2px;
}

/* 段落样式 */
.under-index-container p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 16px;
    text-align: justify;
}

/* 列表样式 */
.under-index-container ul,
.under-index-container ol {
    margin: 20px 0;
    padding-left: 30px;
}

.under-index-container li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    position: relative;
}

.under-index-container ul li {
    list-style: none;
}

.under-index-container ul li::before {
    content: '•';
    color: #17a2b8;
    font-weight: bold;
    position: absolute;
    left: -20px;
    font-size: 1.2rem;
}

.under-index-container ol li {
    list-style: none;
    counter-increment: list-counter;
}

.under-index-container ol {
    counter-reset: list-counter;
}

.under-index-container ol li::before {
    content: counter(list-counter) '.';
    color: #17a2b8;
    font-weight: bold;
    position: absolute;
    left: -25px;
}

/* 图片样式 */
.under-index-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 30px auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.under-index-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #17a2b8;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* a标签样式 */
.under-index-container a {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.under-index-container a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
    transition: width 0.3s ease;
}

.under-index-container a:hover::after {
    width: 100%;
}

.under-index-container a:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* 特殊链接样式 */
.under-index-container a.highlight-link {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.under-index-container a.highlight-link::after {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
}

/* 按钮样式的链接 */
.under-index-container a.btn-link {
    background: linear-gradient(45deg, #17a2b8, #9b42f5);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    transition: all 0.3s ease;
}

.under-index-container a.btn-link::after {
    display: none;
}

.under-index-container a.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    filter: brightness(1.1);
}

/* 外部链接图标 */
.under-index-container a[href^="http"]::before,
.under-index-container a[href^="https"]::before {
    content: '🔗';
    margin-right: 4px;
    font-size: 0.8em;
    opacity: 0.7;
}

/* 邮箱链接样式 */
.under-index-container a[href^="mailto:"]::before {
    content: '📧';
    margin-right: 4px;
    font-size: 0.8em;
}

/* 电话链接样式 */
.under-index-container a[href^="tel:"]::before {
    content: '📞';
    margin-right: 4px;
    font-size: 0.8em;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .under-index-content {
        padding: 20px 10px;
    }
    
    .under-index-container {
        padding: 25px 20px;
        margin: 0 5px;
    }
    
    .under-index-container h2 {
        font-size: 1.5rem;
        margin: 25px 0 15px 0;
    }
    
    .under-index-container h3 {
        font-size: 1.2rem;
        margin: 20px 0 12px 0;
        padding-left: 15px;
    }
    
    .under-index-container h3::before {
        width: 3px;
        height: 16px;
    }
    
    .under-index-container p,
    .under-index-container li {
        font-size: 0.95rem;
    }
    
    .under-index-container ul,
    .under-index-container ol {
        padding-left: 25px;
    }
    
    .under-index-image {
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .under-index-container a {
        font-weight: 600;
    }
    
    .under-index-container a:hover {
        transform: none; /* 移动端不需要悬停位移效果 */
    }
    
    .under-index-container a.btn-link {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .under-index-container {
        padding: 20px 15px;
    }
    
    .under-index-container h2 {
        font-size: 1.3rem;
    }
    
    .under-index-container h3 {
        font-size: 1.1rem;
        padding-left: 12px;
    }
    
    .under-index-container p,
    .under-index-container li {
        font-size: 0.9rem;
    }
    
    .under-index-container a[href^="http"]::before,
    .under-index-container a[href^="https"]::before,
    .under-index-container a[href^="mailto:"]::before,
    .under-index-container a[href^="tel:"]::before {
        display: none; /* 小屏幕隐藏图标 */
    }
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 标题锚点偏移，避免被固定头部遮挡 */
h2[id], h3[id] {
    scroll-margin-top: 80px;
}