/* CSS重置 */
* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
}

body {
    background: #f5f5f5;
    font-family: 'HarmonyOS-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #333;
    overflow-x: hidden;
}

@font-face {
    font-family: 'HarmonyOS';
    src: url('/font-family/HarmonyOS_Sans_SC_Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'HarmonyOS-light';
    src: url('/font-family/HarmonyOS_Sans_SC_Light.ttf') format('truetype');
}

@font-face {
    font-family: 'HarmonyOS-Bold';
    src: url('/font-family/HarmonyOS_Sans_SC_Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'HarmonyOS-Regular';
    src: url('/font-family/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
}

/* 媒体内容容器 */
.media-container {
    margin-top: 3vw;
    overflow: hidden;
}

/* 媒体网格布局 */
.media-grid {
    display: flex;
    gap: calc(40 / 1920 * 100vw);
    width: calc(1200 / 1920 * 100vw);
    margin: 0 auto;
    padding-top: calc(100 / 1920 * 100vw);
    padding-bottom: calc(120 / 1920 * 100vw);
    flex-wrap: wrap;
}

/* 媒体项目 */
.media-item {
    background: white;
    border-radius: calc(20 / 1920 * 100vw);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: calc(514 / 1920 * 100vw);
    width: calc(580 / 1920 * 100vw);
    cursor: pointer;
    position: relative;
}

.media-item:hover {
    /* 悬浮卡片上移 */
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 媒体图片区域 */
.media-image {
    position: relative;
    height: calc(327 / 1920 * 100vw);
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 悬浮图片放大 */
.media-item:hover .media-image img {
    /* transform: scale(1.05); */
}

.play-icon {
    position: absolute;
    width: calc(60 / 1920 * 100vw);
    top: calc(134 / 1920 * 100vw);
    left: calc(260 / 1920 * 100vw);
}

/* 媒体内容区域 */
.media-content {
    padding: calc(40 / 1920 * 100vw);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-title {
    font-family: 'HarmonyOS';
    font-size: calc(18 / 1920 * 100vw);
    font-weight: 700;
    color: #222;
    margin-bottom: calc(20 / 1920 * 100vw);
    line-height: calc(21.1 / 1920 * 100vw);
    font-family: 'HarmonyOS-Bold';
    text-align: left;
}

.media-description {
    font-family: 'HarmonyOS-Light';
    font-size: calc(16 / 1920 * 100vw);
    color: #383838;
    line-height: calc(24 / 1920 * 100vw);
    text-align: justify;
    font-weight: 300;
    text-indent: 2em;
    /* 2个字符的缩进 */
}

#bottom {
    position: relative;
}