@charset "utf-8";

/* 使用自定义字体 */
/*@font-face {*/
/*    font-family: "DIY font";*/
/*    src: url("https://cdn.jsdelivr.net/gh/xiaoyanu/file-test@2021.11.24/more/HarmonyOS_Sans_SC_Medium.subset.woff2");*/
/*}*/

* {
    font-family: "Arial", sans-serif; /* Fallback to Arial if DIY font is not loaded */
    transition: all 0.2s;
}

body {
    background-image: url('https://myhkw.cn/open/img/bing?key=6dbba6667cb54f2a8ac2e271665ffd15');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

@keyframes softGradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    position: relative;
}

.status-bar {
    display: inline-block;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #444444;
    padding: 7px;
    font-size: 14px;
    width: 300px;
    margin-bottom: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.time {
    justify-content: center;
    font-weight: bold;

    flex: 1;
    text-align: left;
}

.right-content {
    font-weight: bold;
    text-align: right;
    justify-content: flex-end;
}

.icons-container {
    display: flex;
    align-items: center;
}

.signal-icons {
    width: 30px;
    height: 17px;
    background-image: url('images/signal-icons.png');
    background-size: cover;
}

.battery-icons {
    width: 34px;
    height: 17px;
    background-image: url('images/battery-icons.png');
    background-size: cover;
    right: 0px;
}

.tag {
    margin: 5px;
    display: inline-block;
    padding: 8px 11px;

    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #403080;
}

/* 通用的毛玻璃样式 */
.big-card {
    width: 300px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px) saturate(150%) contrast(60%) brightness(120%);
    background-clip: padding-box;
    border-radius: 10px;

    margin-bottom: 10px;
}

.container {
    display: flex;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    padding: 1.5px;
    border-radius: 50%;
    background-color: lightgray;
}

.text-container {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

.text-container p {
    margin: 1px 0;
    /* 减小了上下文字的间距 */
}

/* 小卡片样式 */
.small-card {
    width: 300px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px) saturate(150%) contrast(60%) brightness(120%);
    background-clip: padding-box;

    border-radius: 8px;
}

.small-cards-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.small-card.music-player {
    text-align: center;
}

.video-container {
    max-width: 280px;  /* 小于卡片宽度300px */
    margin: 0 auto;
}

.video-player video {
    width: 100%;
    height: auto;
    max-height: 157.5px;  /* 保持16:9比例 */
    border-radius: 8px;
    object-fit: contain;
}

.additional-card {
    margin-top: 10px;
}

.introduce {
    margin: 0;
}

.BOTTOM {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
}

/*按钮*/
.glass-button {
    width: 45.75%;
    margin: 5px;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(180, 200, 230, 0.2);
    backdrop-filter: blur(10px);
    color: #403080;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 6px rgba(50, 50, 100, 0.1);
}

.glass-button:hover {
    background: rgba(200, 220, 240, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(50, 50, 100, 0.15);
}

/* 增大字体以保持卡片视觉大小 */
.big-card h2,
.big-card p,
.small-card h3,
.small-card p {
    font-size: 14px;
}

/* 弹窗动画 */
.success-popup {
    opacity: 0;
    animation: slideDown 0.5s ease forwards;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.album-art {
    display: block;
    margin: 0 auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
}

.song-title {
    margin: 3px;
    text-align: center;
    font-size: 15px;
}

.artist-name {
    margin: 0 auto;
    text-align: center;
    font-size: 3px;
    color: #444444;
}

.controls {
    margin: 0px;
    margin-top: 20px;
}

.progress-bar-container {
    margin: 20px 0;
}

.progress-bar {
    width: 70%;
    height: 4px;
    background-color: #ddd;
    border-radius: 6px;
    position: relative;
    margin: 3px auto;
}

.progress {
    height: 100%;
    background-color: #5DC6FF;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    margin: 0 auto;
}

.time-display {
    font-size: 14px;
    color: #888;
}

/* 播放器样式 */
.control-btn {
    background-color: rgba(255, 255, 255, 0.1);
    /* 半透明的背景 */
    backdrop-filter: blur(10px) saturate(150%) contrast(60%) brightness(120%);
    border-radius: 50%;
    /* 圆形按钮 */
    width: 40px;
    /* 按钮宽度 */
    height: 40px;
    /* 按钮高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    box-shadow: none;
    margin-top: -12px;
    transition: transform 0.3s ease;
    /* 过渡效果 */
}

.control-btn:hover {
    transform: scale(1.1);
    /* 放大按钮 */
}

.fas,
.material-icons {
    font-size: 15px;
    /* 图标大小 */
    color: #fff;
    /* 图标颜色 */
}

.controls {
    display: flex;
    gap: 10px;
    /* 按钮之间的间距 */
    justify-content: center;
}

.control-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    /* 激活状态的背景颜色 */
}

/* 歌曲封面旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.album-art {
    display: block;
    margin: 0 auto;
    width: 110px;
    border-radius: 50%;
    object-fit: cover;
    /* 初始不旋转 */
    animation: none;
}

.popup {
   position: fixed;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);
   background: rgba(255, 255, 255, 0.9);
   border-radius: 10px;
   padding: 15px;
   z-index: 1000;
   width: 280px;
   max-height: 400px; /* 设置最大高度 */
   overflow-y: auto; /* 添加垂直滚动条 */
}

.video-list {
   height: 300px;
   overflow-y: auto;
   margin-bottom: 10px;
}

.video-item {
   padding: 8px;
   cursor: pointer;
   border-bottom: 1px solid #eee;
   word-break: break-all;
}

.video-item:last-child {
   border-bottom: none;
}

.popup button {
    margin-top: 8px;
    background-color: #87CEEB;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.popup button:hover {
    background-color: #4682B4;
}

.popup img {
    margin-top: 0 auto;
    /* 为图片添加顶部边距，与歌曲信息隔开 */
    width: 80px;
    height: 80px;
}

.fullscreen-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container:hover .fullscreen-btn {
    opacity: 1;
}

/* 修改视频容器样式使其支持定位 */
.video-container {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 30px; /* 增加字体大小 */
    color: black; /* 更改为黑色以便更显眼 */
    z-index: 1001; /* 确保关闭按钮在内容之上 */
    background: none; /* 移除背景 */
    border: none; /* 移除边框 */
}

.project-info p:not(:last-child)::after {
    content: '';
    display: block;
    margin: 10px 0;
    border-top: 1px solid #ccc;
}

.popup-content {
    max-height: calc(100% - 40px); /* 留出空间给关闭按钮 */
    overflow-y: auto;
}

    .footer {
      height: 40px;
      background-color: #fff;
      text-align: center;
      line-height: 40px;
      font-size: 14px;
      color: #fff; /* 白字隐藏 */
    }

    .footer a {
      color: #fff; /* 链接白色，不可见但可点击 */
      text-decoration: none;
    }

      .footer {
        position: static;
      }
    }