/* 1. 页面基础设定 */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background-image: url('../images/TianJinTou/page_overall_background.webp'); 
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    font-family: 'Noto Serif SC', 'Source Han Serif SC', serif;
}

/* 2. 导航栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; 
    padding: 0 60px;
    width: 100%;
    box-sizing: border-box;
}

.branding {
    width: 320px; 
    height: 100%;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: #5C5446;
    font-size: 1.05em;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: #5C5446;
}

/* 3. 主体内容布局 */
.content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; 
    height: calc(100vh - 60px); 
    gap: 80px;
    padding: 0 50px;
    box-sizing: border-box;
}

/* 4. 图片区域：整体下移 */
.carousel-section {
    flex: 0 0 auto;
    margin-top: 40px; 
    position: relative;
}

.carousel-wrapper {
    width: 600px;
    height: 480px; 
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
}

.carousel-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel-wrapper img.active {
    display: block;
}

/* 小白点内嵌样式 */
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* 5. 文字区域精调 */
.text-section {
    flex: 1;
    max-width: 580px; 
}

.text-section h1 {
    font-size: 40px;  /* 标题大小：40 */
    color: #60403a;
    margin-top: 15px; 
    margin-bottom: 10px;
    font-weight: 700;
}

.article-body {
    font-size: 16px;  /* 正文大小：14 */
    color: #444;
    line-height: 1.5;
    text-align: justify;
}

.article-body p {
    margin-top: 0;
    margin-bottom: 1em;
    /* 新增：首行缩进两字符 */
    text-indent: 2em; 
}

/* 核心修改 2：第三段列表化排版 */
.article-footer .intro {
    margin-bottom: 0.5em;
}

.article-footer .list-item {
    margin-bottom: 0.8em;
    padding-left: 2em;   /* 整体缩进，与前两段的首行缩进对齐 */
    text-indent: 0;      /* 列表项取消 text-indent，改用整体缩进更整齐 */
    line-height: 1.6;
}

/* 重点：针对最后两行进行深度避让 */
.article-footer .list-item:nth-last-child(2),
.article-footer .list-item:last-child {
    padding-right: 40px; /* 加大数值，彻底躲开右下角圆图 */
}
/* 当屏幕宽度小于 1000px 时执行 */
@media (max-width: 1000px) {
    .content-wrapper {
        flex-direction: column; /* 左右排列变上下排列 */
        height: auto;           /* 取消高度限制，允许向下滚动 */
        padding: 20px;
        gap: 30px;
    }

    .carousel-wrapper, .text-section {
        width: 100%;            /* 宽度占满 */
        max-width: 100%;
    }
    
    .carousel-wrapper {
        height: 300px;          /* 缩小图片高度 */
    }
}