:root {
    --primary-color: #21bffb;    /* 主色（前往访问按钮） */
    --secondary-color: #fa6b42;  /* 辅助色（点击下载按钮） */
    --bg-color: #f5f7fa;         /* 背景色 */
    --text-dark: #000000;        /* 深色文字 */
    --text-light: #ffffff;       /* 浅色文字 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 通用阴影 */
    --radius: 12px;              /* 通用圆角 */
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    min-height: 100vh;
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.background{
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.background__image {
    height: 40vh;
    width: 100%;
    object-fit: fill; /* 避免拉伸 */
}

.background__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 90%; /* 限制内容宽度 */
}

.title {
    color: var(--text-light);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    color: var(--text-light);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.card{
    width: 90%;
    max-height: 1200px;
    min-height: 50vh;
    margin: 20px auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px; /* 卡片内边距 */
    overflow: auto;
}

/* 列表容器（关键：响应式布局） */
.list-container {
    width: 100%;
}

.list-title{
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

/* 列表样式（通用） */
.list {
    display: flex;
    gap: 20px; /* 卡片间距 */
    list-style: none;
    justify-content: space-around;
}

.list-item {
    background-color: #f5f7fa; /* 卡片背景 */
    border-radius: var(--radius); /* 卡片圆角 */
    padding: 20px; /* 卡片内边距 */
    max-width: 500px; /* 列表项最宽不超过 300px */
    min-width: 200px; /* 列表项最窄不小于 200px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.list-cont-div, .list-cont-div-content{
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch; /* 图片与内容顶部对齐 */
}

.list-cont-div-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0; /* 防止图片被压缩 */
}

.list-cont-div-content {
    flex: 1;
}

.list-cont-div-content label {
    display: block;
    line-height: 1.4;
}

.list-cont-div-content label:first-child {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* 小屏1.2rem，大屏1.8rem */
    font-weight: 500;
    color: var(--text-dark);
}

.list-cont-div-content label:last-child {
    font-size: clamp(0.8rem, 3vw, 1.2rem); /* 小屏0.8rem，大屏1.2rem */
    color: #7f8c8d;
}

.btn-nor{
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;

}

.list-cont-div-goto{
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.list-cont-div-goto:hover {
    background-color: rgba(33, 191, 251, 0.5);
}

.list-cont-div-down{
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.list-cont-div-down:hover{
    background-color: rgba(250,107,66,0.5);
}

.list-cont-div-down:hover {
    background-color: rgba(250, 107, 66, 0.2);
}

.default-hidden{
    display: none;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    background: #f8f9fa; /* 浅灰色背景 */
    border-top: 1px solid #eee; /* 顶部细线分隔 */
}

.copyright p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) and (orientation: portrait)  {
    .card{
        width: 95%;
        padding: 15px;
    }

    .list {
        flex-wrap: wrap;
        grid-template-columns: 1fr; /* 手机端单列显示 */
        gap: 15px; /* 缩小间距 */
    }

    .list-item {
        padding: 15px;
        background: white;
        width: 100%;
    }

    .list-cont-div {
        flex-direction: row;
        align-items: center;
        text-align: center;
    }

    .list-cont-div-logo {
        max-width: 80px;
        max-height: 80px;
    }

    .list-cont-div > div > label:nth-child(2){
        display: none;
    }

    .default-hidden{
        display: block;
    }

    .btn-nor {
        width: 50%;
        text-align: center;
    }

    .list-cont-div-content a{
        position: relative;
        left: 50%;
    }
}