/* ===== 全局重置 & 基础 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Han Sans CN", "思源黑体", sans-serif;
}

/* ===== 原有 ID 样式 ===== */
#idacg { padding: 10px; }
#iibto { padding: 10px; }
#irwkn {
    background-image: none;
    padding: 0;
    background-color: rgb(255, 255, 255);
}
#ifwvt,
#ijzi3,
#i49v3 {
    font-family: "Source Han Sans CN", "思源黑体";
    font-size: 16px;
    font-weight: 700;
    color: #313131;
    margin: 10px;
}
#ieoqt { color: #313131; }
#ib0vc {
    margin: 20px 0 0 0;
    font-size: 16px;
    line-height: 200%;
}
#ixv03 { padding: 50px 0; }
#ii312 {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}
#iwcs3 {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

/* ===== 通用布局类 ===== */
.gjs-row {
    display: table;
    padding: 10px;
    width: 100%;
}

.gjs-cell {
    display: table-cell;
    height: 75px;
    vertical-align: top;
}

.c904 { padding: 10px; }
.c1413 { color: #ff0000; }
.c36879 {
    font-size: 29px;
    font-weight: 800;
    color: #313131;
    padding: 50px 10px 70px 10px;
}
.c708 {
    font-size: 29px;
    font-weight: 800;
    color: #313131;
    padding: 50px 10px 0px 10px;
}
.c744 {
    font-size: 22px;
    padding: 0px 10px 70px 10px;
}
.c702 {
    margin: 0;
    padding: 0 0 0 50px;
}
.c3045 { width: 30%; }
.c3054 { width: 70%; }
.c7983 { color: #ff0000; }
.c9685 { font-size: 22px; }
.c13983 { color: rgb(108, 117, 125); font-weight: 700; }
.c15993 { padding: 10px; }
.c30545 { text-align: center; }
.c38592 {
    color: rgb(16, 25, 59);
    font-size: 14px;
    text-align: center;
}
.c38593 {
    color:#ffffff;
    font-size: 14px;
    text-align: center;
}

.c55418 {
    background-color: rgb(255, 255, 255);
}

/* ===== 导航链接 ===== */
.nav-link-custom {
    display: block;
    font-family: "Source Han Sans CN", "思源黑体";
    font-size: 16px;
    font-weight: 700;
    color: #313131;
    margin: 10px 10px 10px 10px;
    text-decoration: none;
    transition: color 0.25s ease;
    cursor: pointer;
}
.nav-link-custom:hover,
.nav-link-custom:active {
    color: #ff0000 !important;
}
.nav-link-custom.active {
    color: #ff0000 !important;
}

/* ===== 历程时间线 ===== */
.timeline-item {
    margin-bottom: 1.2em;
    line-height: 1.8;
}
.timeline-item p {
    margin: 0.4em 0;
}
.timeline-item .year-red {
    color: #ff0000;
    font-weight: 800;
    font-size: 1.15em;
    margin-right: 0.2em;
}

/* ===== 响应式布局 ===== */
@media (max-width: 768px) {
    .gjs-cell {
        width: 100% !important;
        display: block !important;
        height: auto !important;
        padding: 10px 5px;
    }
    .c3045,
    .c3054 {
        width: 100% !important;
    }
    .c3054 {
        padding-left: 5px !important;
    }
    .c708,
    .c36879 {
        font-size: 24px;
        padding: 20px 10px 20px 10px;
    }
    .c744 {
        font-size: 18px;
        padding: 0px 10px 30px 10px;
    }
    .nav-link-custom {
        font-size: 15px;
        margin: 8px 5px;
    }
    .c15993 {
        font-size: 15px;
        line-height: 1.8;
    }
    .c38592 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .c708,
    .c36879 {
        font-size: 20px;
    }
    .c744 {
        font-size: 16px;
    }
    .nav-link-custom {
        font-size: 14px;
    }
}

/* ===== 首页专用样式（仅针对 .home-hero，不影响其他页面） ===== */

.home-hero {
    width: 100vw;
    height: 100vh;
    background-image: url('001.jpg');   /* 图片路径根据需要修改 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8%;                     /* 电脑端左右留白 */
    position: relative;
    z-index: 0;
}

.brand-title {
    font-family: "Source Han Sans CN", "思源黑体", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.2em;
    line-height: 1.2;
}

.brand-sub {
    font-family: "Source Han Sans CN", "思源黑体", sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
}

/* 首页导航 — 竖直排列 */
.home-nav {
    display: flex;
    flex-direction: column;            /* 竖直 */
    align-items: flex-start;           /* 左对齐 */
    gap: 1.2rem;
    font-family: "Source Han Sans CN", "思源黑体", sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.home-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.home-nav a:hover {
    color: #ff0000;
    border-bottom-color: #ff0000;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .home-hero {
        padding: 0 5%;                /* 手机端较小边距 */
        align-items: flex-start;      /* 保持左对齐，菜单竖直 */
    }
    .brand-title {
        font-size: 2.4rem;
    }
    .brand-sub {
        font-size: 1.2rem;
        margin-bottom: 1.8rem;
    }
    .home-nav {
        font-size: 1.0rem;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.8rem;
    }
    .brand-sub {
        font-size: 1.0rem;
    }
    .home-nav {
        font-size: 0.9rem;
        gap: 0.6rem;
    }
}

/* 首页版权固定在底部 */
.home-footer {
    position: absolute;
    bottom: 5%;              /* 离底部 5% 视口高度，留出呼吸空间 */
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    display: block;          /* 覆盖 table 布局 */
}

/* ===== 历程页面图片网格（一行最多3张，电脑横排，手机竖排） ===== */
.timeline-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;                /* 图片间距 */
    margin-top: 10px;
    justify-content: flex-start;
}

.timeline-images img {
    width: 100%;
    max-width: 300px;          /* 固定宽度 300px */
    height: auto;
    aspect-ratio: 300 / 185;   /* 固定比例 300x185 */
    object-fit: cover;         /* 裁剪保持比例，不拉伸 */
    border-radius: 4px;
    display: block;
    background-color: #f0f0f0; /* 占位背景，图片加载前显示 */
}

/* 手机端：每行一张，宽度自适应 */
@media (max-width: 768px) {
    .timeline-images {
        flex-direction: column;   /* 竖排 */
        align-items: stretch;     /* 让图片撑满容器宽度 */
    }
    .timeline-images img {
        max-width: 100%;          /* 手机宽度小于300时自动缩放 */
    }
}