/* 主色：#9E3528（赤陶红）、#285F37（森林绿）*/
/* 辅助色：#C8A882（暖金色）、深浅变体 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background: #F8F6F2;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #2C2C2C;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #FEFCF8;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(158, 53, 40, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid #E8E4DF;
}

.container:hover {
    box-shadow: 0 15px 50px rgba(158, 53, 40, 0.1);
}

/* 页眉设计 - 采用纯色背景配金色装饰线 */
.header {
    background: #9E3528;
    color: #FEFCF8;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(200, 168, 130, 0.08) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.header:hover::before {
    transform: translateX(100%);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C8A882, #E8D4B8, #C8A882);
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    color: #E8D4B8;
}

.content {
    padding: 50px;
}

/* 信息卡片 - 采用白色背景配红色左边框 */
.info-box {
    background: #FFFFFF;
    border-left: 6px solid #9E3528;
    padding: 30px;
    margin-bottom: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(158, 53, 40, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #C8A882;
    opacity: 0.3;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(158, 53, 40, 0.08);
    border-left-width: 8px;
}

.info-box h3 {
    color: #9E3528;
    margin-bottom: 18px;
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.info-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #C8A882;
}

.info-box a {
    color: #285F37;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.info-box a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9E3528;
    transition: width 0.3s ease;
}

.info-box a:hover {
    color: #9E3528;
}

.info-box a:hover::after {
    width: 100%;
}

.info-box p {
    color: #5A5A5A;
    margin-bottom: 10px;
    line-height: 1.7;
}

.info-box strong {
    color: #2C2C2C;
    font-weight: 600;
}

/* 网站结构树 */
.sitemap-tree {
    margin-top: 50px;
}

.sitemap-tree h2 {
    color: #9E3528;
    margin-bottom: 35px;
    font-size: 2em;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.sitemap-tree h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: #C8A882;
    border-radius: 2px;
}

.tree-item {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* 主栏目 - 白色背景配红色左边框 */
.tree-item.main {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 22px 25px;
    border-left: 6px solid #9E3528;
    border-top: 1px solid #E8E4DF;
    border-right: 1px solid #E8E4DF;
    border-bottom: 1px solid #E8E4DF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(158, 53, 40, 0.03);
}

.tree-item.main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #C8A882;
    opacity: 0.4;
}

.tree-item.main:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(158, 53, 40, 0.08);
    border-left-color: #B84A3C;
}

/* 子栏目 - 浅灰背景配绿色左边框 */
.tree-item.sub {
    margin-left: 45px;
    background: #F8F6F2;
    border-radius: 10px;
    padding: 14px 22px;
    border-left: 4px solid #285F37;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.tree-item.sub::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 50%;
    width: 45px;
    height: 2px;
    background: #C8A882;
    transform: translateY(-50%);
    opacity: 0.6;
}

.tree-item.sub:hover {
    background: #F0EDE7;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(40, 95, 55, 0.08);
    border-left-color: #3A7A4A;
}

.tree-item a {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.tree-item.main a {
    color: #9E3528;
    font-size: 1.2em;
    font-weight: 600;
}

.tree-item.main a:hover {
    color: #7A2A1F;
    transform: translateX(3px);
}

.tree-item.sub a {
    color: #285F37;
    font-size: 1.05em;
}

.tree-item.sub a:hover {
    color: #1F4A2A;
    transform: translateX(2px);
}

.tree-item .desc {
    color: #5A5A5A;
    font-size: 0.95em;
    margin-top: 10px;
    line-height: 1.6;
}

/* 统计卡片 - 采用分层设计 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.stat-card {
    background: #FFFFFF;
    color: #2C2C2C;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(158, 53, 40, 0.08);
    border: 1px solid #E8E4DF;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #9E3528;
    transition: height 0.3s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #C8A882;
    opacity: 0.5;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(158, 53, 40, 0.12);
}

.stat-card:hover::before {
    height: 10px;
    background: #B84A3C;
}

.stat-card .number {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    color: #9E3528;
    text-shadow: none;
}

.stat-card > div:last-child {
    font-size: 1.1em;
    font-weight: 400;
    position: relative;
    z-index: 1;
    color: #5A5A5A;
}

/* 联系信息区域 */
.contact-info {
    background: #F8F6F2;
    border-radius: 15px;
    padding: 35px;
    margin-top: 50px;
    border: 1px solid #E8E4DF;
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9E3528, #C8A882, #285F37);
    border-radius: 15px 15px 0 0;
}

.contact-info:hover {
    background: #F5F2ED;
    box-shadow: 0 8px 25px rgba(158, 53, 40, 0.06);
}

.contact-info h3 {
    color: #9E3528;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #C8A882;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 18px;
    background: #FFFFFF;
    border-radius: 10px;
    border-left: 4px solid #285F37;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(40, 95, 55, 0.08);
    border-left-color: #3A7A4A;
    border-left-width: 6px;
}

.contact-item strong {
    color: #9E3528;
    margin-right: 15px;
    font-weight: 600;
    min-width: 90px;
    font-size: 0.95em;
}

.contact-item span {
    color: #5A5A5A;
    font-weight: 400;
}

/* 页脚设计 */
.footer {
    background: #2C2C2C;
    color: #E8D4B8;
    padding: 40px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #9E3528;
}

.footer p {
    margin-bottom: 10px;
    font-weight: 300;
    color: #E8D4B8;
}

.footer p:last-child {
    margin-top: 20px;
    font-size: 0.95em;
    opacity: 0.8;
    color: #C8A882;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 40px 30px;
    }
    
    .header h1 {
        font-size: 2.2em;
        letter-spacing: 1px;
    }
    
    .content {
        padding: 35px 30px;
    }
    
    .tree-item.sub {
        margin-left: 30px;
    }
    
    .tree-item.sub::before {
        left: -34px;
        width: 30px;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .stat-card .number {
        font-size: 2.2em;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .content {
        padding: 25px 20px;
    }
    
    .tree-item.main {
        padding: 18px 20px;
    }
    
    .tree-item.sub {
        margin-left: 20px;
        padding: 12px 18px;
    }
    
    .tree-item.sub::before {
        left: -24px;
        width: 20px;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-item strong {
        min-width: auto;
    }
}

/* 特殊交互效果 */
.tree-item.main:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(158, 53, 40, 0.1);
}

.tree-item.sub:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(40, 95, 55, 0.1);
}

/* 禁用链接样式优化 */
.tree-item span[style*="#999"],
.tree-item span[style*="#666"] {
    color: #8A8A8A !important;
    cursor: not-allowed;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.tree-item:hover span[style*="#999"],
.tree-item:hover span[style*="#666"] {
    opacity: 0.4;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F6F2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #C8A882;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9E3528;
}

/* 选择文本样式 */
::selection {
    background: rgba(158, 53, 40, 0.15);
    color: #9E3528;
}

::-moz-selection {
    background: rgba(158, 53, 40, 0.15);
    color: #9E3528;
}
