:root {
    --brand-pink: #ec0048;
    --brand-blue: #97d6df;
    --brand-dark: #222;
    --text: #333;
    --bg: #f6f6f6;
    font-size: 16px;
    background-color: white;
}

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

@font-face {
    font-family: NexaEverllence-Regular;
    src: url('/static/fonts/NexaEverllence-Regular.ttf') format('truetype');
}

@font-face {
    font-family: NexaEverllence-Black;
        src: url('/static/fonts/NexaEverllence-Black.ttf') format('truetype');
    }

@font-face {
    font-family: 'NotoSansSC-Regular';
    src: url('/static/fonts/NotoSansSC-VF.ttf') format('truetype');
}

@font-face {
    font-family: 'NotoSansSC-Regular-Bold';
    src: url('/static/fonts/NotoSansSC-VF.ttf') format('truetype');
    font-style: bold;
}

body {
    min-width: 600px;   
    font-family: 'NexaEverllence-Regular', 'NotoSansSC-Regular', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

strong {
    font-family: 'NexaEverllence-Black', 'NotoSansSC-Regular-Bold';
}

a {
    color: inherit; /* 继承父元素的文本颜色 */
    text-decoration: inherit; /* 继承父元素的文本装饰 */
}

header {
    min-width: 600px;   
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.logo img{
    height: 40px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.topheader {
    min-width: 600px;   
    margin-top: 78px;
    position: fixed;
    width: 100%;
    z-index: 10;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-family: 'NexaEverllence-Black', 'NotoSansSC-Regular-Bold';
    font-size: 17px;
}

.nav-tabs li {
    flex: 1 1 1;
    text-align: center;
    background: var(--brand-pink);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1px;
    padding-right: 1px;
    border: 1px solid rgba(255, 255, 255, .3);
    font-weight: 590;
}

.nav-tabs li a {
    color: #fff;
}

/* 媒体查询 - 当屏幕宽度小于600px时 */
@media (max-width: 600px) {
    body {
        min-width: 600px; /* 强制容器宽度为600px */
        overflow-x: auto; /* 启用横向滚动 */
    }
}

@media (min-width: 240px) {
    .nav-tabs li {
        flex: 1 1 0;    
    }
}

main {
    min-height: 1000px;
    display: grid;
    grid-template-columns:1fr;
    gap: 1px;
    background: #fff;
}

.layout {
    display: flex;
    gap: 2px;
    align-items: start;
    margin-top: 195px;
    background: #fff;
}

.sidebar {
    display: grid;
    min-width: 200px;
    width:200px;
    gap: 1px;
    position: fixed;
}

button {
    font-family: 'NexaEverllence-Black', 'NotoSansSC-Regular-Bold';
    width: 100%;
    border: none;
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 590;
    color: #000;
    background: var(--brand-blue);
    cursor: pointer; 
    display: float;
}

button.active {
    background: var(--brand-pink);
    color: #fff;
}

button.active img{
    filter: invert(100%) brightness(100%);
}

.submenu {
    font-family: 'NexaEverllence-Black', 'NotoSansSC-Regular-Bold';
    display: grid;
    gap: 1px;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

ul {
    gap: 1px;   
}

.select{
    max-height: 500px;
}

.breadcrumb {
    font-family: 'NexaEverllence-Black','NotoSansSC-Regular-Bold';
    min-width: 600px;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--brand-pink);
    color: #fff;
    padding: .8rem 1rem;
    font-weight: 590;
}

.carousel{
    margin-top: 136px;
    min-width: 600px;
}

.detail{
    margin-top: 186px;
}

.article {
    margin-left: 201px;
    gap: 1px;
    background: #fff;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, .1);*/
    overflow: hidden;
}

.article img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.article-body {
    font-size: large;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.article-body h2 {
    font-size: 1.4rem;
    color: var(--brand-dark);
}

.article-body address {
    font-style: normal;
    color: #555;
}

.contact-block {
    display: grid;
    gap: .4rem;
}   

.cards {
    width: 100%;
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: 224px;
    margin-right: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 246px;
    
}

.card img {
    width: 246px;
    height: 326px;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    width: 246px;
}

@media (min-width: 100px) {
    .layout {
        grid-template-columns:200px 1fr;
    }

}

.videocards {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(440px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: 224px;
    margin-right: 24px;
}

.videocard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 440px;
    
}

.videocard-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    width: 440px;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    cursor: pointer;
    object-fit: cover;
}
.video-overlay {
    position: relative;
}

.carousel-container {
    width: 100%;
    margin: 10 auto;
    overflow: hidden;
    position: relative; /* 使指示器可以绝对定位 */
}
.carousel-image {
    width: 100%;
    height: 90%;
    object-fit: cover;
    display: block;
}
.indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px; /* 使用gap替代margin更现代 */
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: red; /* 纯白色实心点 */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* 添加微妙阴影确保在浅色背景上可见 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.indicator.active {
    background-color: transparent;
    border: 2px solid red; /* 纯白色边框空心点 */
    width: 12px;
    height: 12px;
    /* 活动状态使用更强阴影 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contactcards {
    width: 100%;
    display: grid;
    /*grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));*/
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;    
    margin-left: 94px;
    margin-right: 24px;
}

.contactcard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 380px;
}

.contactcards img {
    width: 246px;
}

#qrcode-float {
    position: fixed;
    bottom: 80px;
    left: 38px;
    width: 130px;
    height: 130px;
    background-color: white;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, .3);
}

#qrcode-float img {
    width: 130px;
    height: 130px;
}

#pdf-canvas {
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 100%;
}

.search-container{
    margin-top: 186px;
    margin-left: 50px;
    margin-right: 50px;

}

.search-form {
    width: 400px;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 25px;
    font-size: 16px;
    color: #333;
}

.search-input::placeholder {
    color: #aaa;
}

.search-button {
    border: none;
    background: white;
    padding: 0 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}