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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#main-container {
    width: 100%;
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 50px);
    padding-bottom: 50px;
}

/* 底部导航栏 */
#bottom-nav {
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10000;

}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    width: 33.33%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button i {
    font-size: 23px;
    margin-bottom: 4px;
}

.nav-button span {
    font-size: 14px;
}

.nav-active {
    color: #f04949;
}

/* 内容区域样式 */
.content-section {
    display: none;
    width: 100%;
    padding: 100px;
    padding-bottom: 200px;
    padding: 0;
    color: #fff;
}

.content-section.active {
    display: block;
}



/* 公告 */
.announcement {

    height: 250px;
    margin: 20% 5%;
    position: fixed;
    z-index: 999;
    padding: 20px;
    overflow: hidden;
}

.announcement_active {
    display: none;
}



.announcementButton {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    align-self: center;
    /* 按钮居中对齐 */
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.math-notebook {
    /* 背景色 */
    background-image: linear-gradient(to bottom, rgba(206, 206, 206, 0.408) 5%, transparent 5%);
    background-repeat: repeat;
    background-size: 10% 20px;

    border-radius: 8px;
    /* 边角圆润 */
}

/* 便利贴样式，用于书写文档 */
.stickyNotes {
    background-color: rgb(255, 255, 102);
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
    /* 轻微阴影 */
    transform: rotate(5deg);
    width: 90%;
    margin-left: 0 5%;
}

/* 钉子 */
.stickyNotes_nail {
    width: 20px;
    height: 20px;
    background-color: rgb(252, 89, 89);
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 40px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), inset -1px -1px 1px rgba(255, 255, 255, 1);
}

/* 钉子针 */
.stickyNotes_nail_zhen {
    width: 12px;
    height: 3px;
    background-color: rgb(0, 0, 0);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: rotate(60deg);
    z-index: -1;
}


#vidSheep-update-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

.vidSheep-update-area-display {
    display: none;
}

#vidSheep-update-button {
    background-color: rgb(185, 86, 86);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 80%;
    max-width: 300px;
}

#vidSheep-update-button:hover {
    transform: scale(1.05);
    background-color: rgb(205, 96, 96);
}

.vidSheep-update-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    text-align: center;
    color: rgb(255, 255, 255);
}

.vidSheep-update-time {
    font-size: 16px;
    margin-bottom: 25px;
    display: block;
    text-align: center;
    color: rgb(255, 255, 255);
}

.vidSheep-update-list {
    list-style-type: disc;
    margin: 15px 0;
    text-align: left;
    width: 90%;
    max-width: 500px;
}

.vidSheep-update-list li {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 16px;
    list-style-type: none;
    color: #ffffff;
}

.vidSheep-update-list li a {
    color: rgb(228, 110, 110);
    text-decoration: none;
    font-weight: bold;
}

.vidSheep-update-list li a:hover {
    text-decoration: underline;
}

.iframe-popup-active {
    z-index: 10000000;
    height: 43%;
    width: 92%;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    display: none;
}

.iframe-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 998;
    display: none;
}

.iframe-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f8f8;
    border-bottom: 15px solid #eaeaea;
}

.iframe-popup-current-episode {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.iframe-popup-close-button {
    background-color: #f04949;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.iframe-popup-close-button:hover {
    background-color: #e03939;
}

#iframe-popup-iframe {
    width: 100%;
    height: 50%;
    border: none;
    margin-top: 5%;
}

.iframe-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2%;

}

.iframe-popup-button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.iframe-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.public-popup-active {
    z-index: 997;
    height: 80%;
    width: 92%;
    margin-left: 4%;
    background-color: #f8f8f8;
    position: fixed;
    top: 7%;
    display: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;

}

/* 灰色遮罩层 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 997;
    display: none;
}

.popup-content {
    padding: 15px;
    height: calc(100% - 10px);
    /* 减去关闭按钮的高度和间距 */
    overflow-y: auto;
    position: relative;
}

.popup-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.popup-content .genre-list-span {
    display: block;
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.popup-content ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.popup-content li {
    list-style: none;
    background-color: #e9e9e9;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.popup-content li.selected {
    background-color: #ff5e62;
    color: white;
}

.close-popup {
    position: absolute;
    bottom: 15px;
    left: 35%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: linear-gradient(125deg, #ff5e62, #ff9966);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.close-popup:hover {
    transform: translateX(-50%) scale(0.9);

}

.public-popup-content {
    position: relative;
    height: 100%;
    padding-bottom: 60px;
    /* 为关闭按钮留出空间 */
}

.confirm-popup {
    position: absolute;
    bottom: 15px;
    left: 65%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: linear-gradient(125deg, #ff5e62, #ff9966);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.confirm-popup:hover {
    transform: translateX(-50%) scale(0.9);
}


#play-popup .play-popup-img {
    width: 40%;
    object-fit: cover;
    border-radius: 10px;
}

#play-popup span {
    position: absolute;
    width: 50%;
    margin-left: 4%;
    text-align: center;
    color: #666;
    font-size: 14px;
}

#play-popup .play-list {
    padding: 5% 5px;
}

/* 工具栏样式 */
.play-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(248, 248, 248, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 工具栏按钮通用样式 */
.play-toolbar-button {
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.play-toolbar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}



.play-toolbar-button-collect {
    background: linear-gradient(135deg, #ff5e62, #ff9966);
}

.play-toolbar-button-follow {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}



.play-toolbar-button-search {
    background: linear-gradient(135deg, #ff5e62, #ff9966);
}

.play-toolbar-button-reverse {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

/* 输入框样式 */
.play-toolbar-input {
    flex-grow: 1;
    margin: 5px;
    width: 20%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.play-toolbar-input:focus {
    border-color: #ff9966;
    box-shadow: 0 0 5px rgba(255, 153, 102, 0.5);
}

.play-list li a {
    text-decoration: none;
    color: #333;
}

/* 添加描述文本的最大高度限制和溢出处理 */
#play-popup span {
    max-height: 30%;
    /* 设置最大高度 */
    overflow-y: auto;
    /* 添加垂直滚动条 */
    overflow-x: hidden;
    /* 水平方向隐藏溢出 */
    padding-right: 5px;
    /* 为滚动条留出空间 */
}


.popup-content li.selectedClick {
    background-color: #ff5e62;
    color: white;
}


.modify-wallpaper-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
}

.modify-wallpaper-item {
    width: 48%;
    margin-bottom: 25px;
    /* 增加底部间距，防止遮挡 */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    /* 改为自适应高度 */
}

.modify-wallpaper-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    /* 增加图片与按钮间距 */
}

.wallpaper-select-btn {
    width: 90%;
    padding: 8px 0;
    background-color: #ff5e62;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    margin: auto;
    transition: all 0.3s ease;
    position: relative;
    /* 确保按钮在正确的层级 */
    z-index: 2;
    /* 提高按钮的层级，防止被遮挡 */
}

.wallpaper-selected {
    border: 2px solid #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
}

.wallpaper-select-btn.selected {
    background-color: #4CAF50;
}

#default-source ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

#default-source li {
    display: inline-block;
    margin: 8px;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#default-source li:hover {
    background-color: #e0e0e0;
}

#default-source li.selected {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#about {
    padding: 20px;
    text-align: center;
}

#about h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.app-name {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #ff5e62;
    margin-bottom: 5px;
}

.app-version {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.update-title {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 15px 0 10px;
    text-decoration: underline;
}

#about ul {
    list-style: none;
    padding: 0;

    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

#about li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-item {
    display: block;
    text-align: left;
    padding: 5px 0;
    color: #444;
}

.disclaimer {
    display: block;
    font-size: 14px;
    color: #ff5e62;
    background: rgba(255, 94, 98, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 15px auto;
    width: 90%;
    line-height: 1.5;
}

.contact-link {
    display: block;
    margin: 10px 0;
    font-size: 15px;
    color: #555;
}

.contact-link a {
    color: #1a73e8;
    text-decoration: none;
}

.contact-link a:hover {
    text-decoration: underline;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    border-radius: 10px;
}

.search-input {
    width: 70%;
    padding: 12px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}



.search-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.recent-search {
    margin: 15px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recent-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #eb6259;
}

.recent-search-title {
    font-weight: bold;
}

.clear-history {
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    border-radius: 15px;
    padding: 3px 7px;
    border: none;
}

.clear-AI {
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(125deg, #ff5e62, #ff9966);
    border-radius: 15px;
    padding: 3px 7px;
    border: none;
    margin-left: 15%;
}

.refresh-history {
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(125deg, #ff5e62, #ff9966);
    border-radius: 15px;
    padding: 3px 7px;
    border: none;

}


.recent-keywords {
    max-height: 80px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-item {
    background-color: #f4d69c;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 12px;
    color: #333;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s;
}

.keyword-item:hover {
    background-color: #e0e0e0;
}

.media-grid,
.media-grid-list,
.media-grid-collect-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;

}

.media-card,
.media-card-list,
.media-card-collect-list {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 2px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.media-card-list:hover {
    transform: translateY(-7px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.media-card-collect-list:hover {
    transform: translateY(-7px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.media-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.media-title {
    padding: 2px 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #333;
}

.source-select {
    width: 40%;
    padding: 8px;
    margin: 1px 30%;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #ebebebf4;
    color: #5d5d5d;
    font-size: 14px;
    background-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);

}

.no-results {
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    width: 80%;
    margin-left: 10%;
    padding: 20px 10px;
    background: linear-gradient(2deg, #ff9966, #ff5e62);
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    margin-top: 20px;
    margin-bottom: 20px;
    display: none;
}

.media-delete-button,
.collect-delete-button {
    position: absolute;
    top: 1px;
    right: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0 0 2px 0;

}


.media-display-delete {
    display: none;
}

.clear-history-list {
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    border-radius: 15px;
    padding: 3px 7px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.clear-history-list:hover {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.my-collect-list {
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    border-radius: 15px;
    padding: 3px 7px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.my-collect-list:hover {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-results-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin-left: 5%;
    padding: 20px 0;
}

.search-results-list-title {
    font-weight: bold;
    font-size: 30px;
    color: #eb6259;
    margin-left: 31%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
}

.buttons-container-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 0 20px 0;
}

.buttons-container-list button {
    font-size: 14px;
    margin-right: 4%;
}

.search-collect-list {
    display: none;
}

.search-results-list {
    display: block;
}

.discover-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    margin: 15px 5%;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.discover-item:active {
    transform: scale(0.98);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.discover-icon {
    margin-right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff9966, #ff5e62);
    border-radius: 50%;
    color: white;
}

.discover-icon i {
    font-size: 20px;
}

.discover-title {
    flex-grow: 1;
}

.discover-title span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.discover-arrow {
    color: #999;
    font-size: 18px;
}
