* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #fff;
    overflow-x: hidden;
}

body.third-page {
    overflow-y: hidden;
}

.page {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-page .header {
    justify-content: flex-start;
}

.home-page .title-image {
    margin-top: 2.4rem;
    margin-bottom: 1.2rem;
}

.title-image {
    width: 80%;
    max-width: 400px;
    margin-bottom: 20px;
}

.subtitle {
    color: #fff;
    font-size: 0.18rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.enter-btn {
    cursor: pointer;
    width: 4.45rem;
    max-width: 5rem;
}

.enter-btn:hover {
    transform: translateY(-0.02rem);
}

.second-page .title-image {
    margin-top: 1.0rem;
    margin-bottom:0.54rem;
    margin-left: 1.0rem;
    margin-right: 1.0rem;
    width: calc(100% - 2.0rem);
    object-fit: contain;
}

body.third-page .title-image {
    margin-top: 1.0rem;
    margin-bottom: 0.54rem;
    margin-left: 1.0rem;
    margin-right: 1.0rem;
    width: calc(100% - 2.0rem);
    object-fit: contain;
}

.category-list {
    padding: 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    align-items: stretch;
    justify-content: flex-start;
}

.category-list a {
    text-decoration: none;
}

.category-item {
    background-image: url('/statics/txjc/ejbg.png');
    background-size: cover;
    background-position: center;
    color: #970000;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    text-align: center;
    font-size: 0.38rem;
    cursor: pointer;
    box-shadow: 0 0.04rem 0.08rem rgba(0, 0, 0, 0.2);
}

.category-item:hover {
    transform: translateY(-0.04rem);
    box-shadow: 0 0.08rem 0.16rem rgba(0, 0, 0, 0.3);
}

.content-container {
    margin: 0.4rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0.3rem;
    padding: 0.4rem;
    box-shadow: 0 0.08rem 0.16rem rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 4rem);
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body.third-page .content-container {
    position: absolute;
    top: 4rem;
    /* bottom: 3.0rem; */
    left: 0.24rem;
    /* right: 0.24rem; */
    background-image: url('/statics/txjc/sjibg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0 0.32rem  0.32rem  0.32rem;
    border-radius: 0.3rem;
    width: 94%;
    height: 56vh;
    /* overflow-y: auto; */
    display: flex;
    flex-flow: column;
}

.category-title {
    text-align: center;
    font-size: 0.56rem;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 0.4rem;
    padding: 0.3rem;
    background-color: #FFE4B5;
    border-radius: 0.2rem;
}

body.third-page .category-title {
    font-size: 0.4rem;
    font-weight: bold;
    color: #971612;
    background-color: transparent;
    /* padding: 0 0 0.1rem 0; */
    /* margin-top: 0.16rem; */
    text-align: center;
    height: 16%;
    padding: unset;
    /* line-height: 1rem; */
    margin-bottom: unset;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.content-page {
    overflow-y: hidden;
}

body.content-page .title-image {
    margin-top: 1.0rem;
    margin-bottom: 0.54rem;
    margin-left: 1.0rem;
    margin-right: 1.0rem;
    width: calc(100% - 2rem);
    object-fit: contain;
}

body.content-page .content-container {
    position: absolute;
    top: 4.4rem;
    bottom: 3.0rem;
    left: 0.24rem;
    right: 0.24rem;
    background-image: url('/statics/txjc/mybg.png');
    background-size: 99% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0.32rem;
    overflow-y: auto;
    overflow-x: hidden;
}





body.content-page .back-btn,
body.content-page .home-btn {
    color: #FFDCB2;
}

body.content-page .back-btn:hover,
body.content-page .home-btn:hover {
    background-color: transparent;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 0.30rem;
}

.work-item {
    padding: 0.10rem;
    border-bottom: 0.02rem solid #ddd;
    cursor: pointer;
}

.work-item:hover {
    background-color: #f5f5f5;
}

.work-item .author {
    font-size: 0.36rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 0.1rem;
}

.work-item .work-title {
    font-size: 0.32rem;
    color: #666;
}

body.third-page .work-list {
    background: transparent;
    overflow-y: auto;
    flex: 1;
}

body.third-page .work-item {
    background: transparent;
    border-bottom: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

body.third-page .work-item:hover {
    background: transparent;
}

body.third-page .work-item .author {
    color: #FFE2BF;
    display: inline-block;
    font-size: 0.32rem;
    font-weight: normal;
    margin-bottom: 0;
    vertical-align: middle;

    flex-shrink: 0;
    margin-right: 0.5em;
}

body.third-page .work-item .work-title {
    color: #FFE2BF;
    display: inline-block;
    font-size: 0.32rem;
    font-weight: normal;
    margin-bottom: 0;
    vertical-align: middle;
}

.work-info {
    text-align: center;
    margin-bottom: 0.4rem;
}

.work-info .author {
    font-size: 0.48rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 0.2rem;
}

.work-info .work-title {
    font-size: 0.4rem;
    color: #666;
    display: block;
}

.work-image {
    margin-bottom: 0.4rem;
    text-align: center;
}

.work-img {
    width: 100%;
    max-width: 8rem;
    border-radius: 0.2rem;
    box-shadow: 0 0.08rem 0.16rem rgba(0, 0, 0, 0.2);
}

.work-description {
    font-size: 0.32rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

body.content-page .content-container .work-title {
    font-size: 0.35rem;
    text-align: center;
    color: #FDD9AC;
    line-height: 1.6;
}

body.content-page .content-container .work-description {
    font-size: 0.32rem;
    line-height: 1.6;
    color: #FDD9AC;
    text-align: justify;
    word-wrap: break-word;
}

.footer {
    position: fixed;
    bottom: 7%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0.4rem;
    background-color: transparent;
    box-shadow: none;
}

.back-btn, .home-btn {
    background-color: transparent;
    border: none;
    color: #8B0000;
    font-size: 0.28rem;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    border-radius: 0.1rem;
}

.back-btn:hover, .home-btn:hover {
    background-color: #f5f5f5;
}

body.third-page .back-btn,
body.third-page .home-btn {
    color: #FFDCB2;
}

body.third-page .back-btn:hover,
body.third-page .home-btn:hover {
    background-color: transparent;
}
