/* 全局变量 */
:root {
    --primary-color: #1a73e8;
    --hover-color: #1557b0;
    --disabled-color: #cccccc;
    --transition-time: 0.3s;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f4f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    transition: background var(--transition-time);
}

/* 新增热门标签样式 */
.hot-tags-container {
    margin: 1rem 0;
    width: 100%;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
    justify-content: center;
    align-items: center;
}

.hot-tag {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 0.9rem;
}

#optionSelectsContainer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 100%;
}

#searchButton {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(147deg, #b82dff, #f265ff);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.hot-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 新增/修改的CSS */
.filter-area {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
    /*align-items: center;*/
    /*transform: scale(1);*/
    /*transition: transform var(--transition-time), box-shadow var(--transition-time);*/
}

.search-header {
    display: grid;
    /*grid-template-columns: 1fr auto;*/
    gap: 1rem;
    align-items: end;
}

.search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
    background-color: white;
    color: #444;
}

#searchInput::placeholder {
    color: #aaa;
    transition: opacity 0.3s, transform 0.3s;
}

#searchInput:focus::placeholder {
    opacity: 0.6;
    transform: translateX(5px);
}

#searchInput:focus,
#searchInput:hover {
    border-color: #b82dff;
    box-shadow: 0 3px 8px rgba(184, 45, 255, 0.15);
    outline: none;
}

.search-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 20px auto;
    width: 95%;
}

.header {
    background: linear-gradient(147deg, #9b1ae8, #f265ff);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.header:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    animation: headerGlow 10s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes headerGlow {
    0%, 100% {
        transform: translate(-30%, -30%);
    }
    50% {
        transform: translate(30%, 30%);
    }
}

.header h2 {
    margin: 0;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-area:hover {
    /*transform: scale(1.01);*/
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.filter-area select,
.filter-area input {
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    transition: all var(--transition-time) ease;
    /*margin-left: 1rem;*/
    min-width: 100%;
}

.filter-area select:focus,
.filter-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

#searchButton:hover {
    background: linear-gradient(147deg, #9a1ae8, #e04fe6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 45, 255, 0.2);
}

/* 结果列表样式优化 */
.result-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 25px;
}

#resultList {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 资源列表项美化 */
.result-item {
    margin-bottom: 20px;
    list-style: none;
}

.resource-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 18px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.resource-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #b82dff, #f265ff);
    opacity: 0.7;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e6d8ff;
}

.result-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    padding-left: 10px;
    border-left: none;
}

.resource-info {
    display: block !important;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #e6d8ff;
}

.file-info, .source-info {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.file-info:before {
    content: '🕒';
    margin-right: 8px;
    font-size: 15px;
}

.source-info:before {
    content: '📂';
    margin-right: 8px;
    font-size: 15px;
}

.get-resource-btn {
    background: linear-gradient(135deg, #b82dff, #f265ff);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(184, 45, 255, 0.2);
    letter-spacing: 1px;
    text-align: center;
}

.get-resource-btn:hover {
    background: linear-gradient(135deg, #a821f0, #e552f5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 45, 255, 0.3);
}

/* 结果项右上角的图标指示符 */
#resultList li:after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: all 0.3s;
}

#resultList li:hover:after {
    opacity: 1;
    transform: translateX(5px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b82dff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.load-more-container {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

#loadMoreButton {
    background: linear-gradient(147deg, #9b1ae8, #f265ff);
    color: white;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-time) ease;
    display: none;
    position: relative;
    margin: 0 auto;
}

#loadMoreButton.loading {
    padding-left: 3.5rem;
    pointer-events: none;
    opacity: 0.8;
}

#loadMoreButton.loading:before {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: loadingSpin 0.8s linear infinite;
}

@keyframes loadingSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

#loadMoreButton:hover:not(:disabled) {
    background: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#loadMoreButton:disabled {
    background: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.no-more-data {
    text-align: center;
    color: #666;
    padding: 1.5rem;
    display: none;
}

.custom-alert {
    position: fixed;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4f;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity var(--transition-time);
    z-index: 1000;
}

/* 弹出面板样式 */
.modals-overlays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-time), visibility var(--transition-time);
}

.modals-overlays.active {
    opacity: 1;
    visibility: visible;
}

.modals {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
    transition: transform var(--transition-time);
}

.modals-overlays.active {
    transform: scale(1);
}

.modals textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: none;
    transition: border-color var(--transition-time), box-shadow var(--transition-time);
}

.modals textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

.modals-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.modals-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--transition-time);
}

.modals-buttons button.open-link {
    background: var(--primary-color);
    color: white;
    display: none;
}

.modals-buttons button.open-link:hover {
    background: var(--hover-color);
}

.modals-buttons button.copy-link {
    background: #4caf50;
    color: white;
    display: none;
}

.modals-buttons button.copy-link:hover {
    background: #45a049;
}

.modals-buttons button.close-modals {
    background: #ff4d4f;
    color: white;
}

.modals-buttons button.modals:hover {
    background: #e04345;
}

.buttons {
    display: flex;
    gap: 60px;
    padding: 10px;
    flex-direction: column;
}

#listbuttons {
    background: #000000;
    color: white;
    padding: 0.3rem 3.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-time) cubic-bezier(0.81, -0.64, 0, 1.14);
}

/* 返回顶部按钮样式优化 */
#backToTopButton {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #b82dff, #f265ff);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(184, 45, 255, 0.3);
    display: none;
    z-index: 100;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 0.9;
}

#backToTopButton:before {
    content: '↑';
    font-size: 20px;
    font-weight: bold;
}

#backToTopButton:hover {
    background: linear-gradient(135deg, #a821f0, #e552f5);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(184, 45, 255, 0.4);
    opacity: 1;
}

/* 修复搜索框样式问题 */
.search-container {
    max-width: 1200px; /* 恢复为1200px宽度 */
    margin: 20px auto;
    width: 95%; /* 调整宽度比例 */
    box-sizing: border-box;
}

.search-box {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.search-input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    position: relative;
    box-sizing: border-box;
}

/* 确保响应式布局正常 */
@media (max-width: 768px) {
    .search-container,
    .marquee-bar,
    .footer-content {
        width: 95%;
    }
    
    #backToTopButton {
        right: 10px;
        bottom: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* 新增协议弹窗样式 */
.protocol-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.protocol-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    opacity: 0;
    animation: modalEntrance 0.5s ease forwards;
}

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

.protocol-text {
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.protocol-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.protocol-btn {
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.agree-btn {
    background: #1a73e8;
    color: white;
}

.agree-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

.disagree-btn {
    background: #ff4d4f;
    color: white;
}

.disagree-btn:hover {
    background: #e04345;
    transform: translateY(-2px);
}

#searchButton {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 1px;
}

#listbuttons:hover {
    transform: scale(1.05);
}

.modals {
    border-radius: 10px;
    /*padding: 25px;*/
}

.modals textarea {
    border-radius: 2px;
    /*padding: 15px;*/
}

.modals-buttons button {
    border-radius: 5px;
    padding: 8px 20px;
}

/* 新增下载入口样式 */
.download-bar {
    /*background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);*/
    background: linear-gradient(147deg, #9b1ae8, #f265ff);
    padding: 55px 2rem;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
    margin: 15px 0px 0px 0px;
}

.download-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-text {
    font-size: 1.1em;
    margin-right: 20px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.download-btn {
    padding: 10px 25px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.download-btn img {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
   .download-content {
        flex-direction: column;
        text-align: center;
    }

   .download-text {
        margin: 0 -70px 15px -70px;
    }

   .download-buttons {
        flex-direction: column;
        width: 80%;
    }

   .download-btn {
        justify-content: center;
    }

   .search-header {
        grid-template-columns: 1fr;
    }

   .search-controls {
        /*flex-direction: column;*/
        width: 100%;
    }

   .search-controls select {
        min-width: 100%;
    }

   .search-controls div {
        min-width: 100%;
    }

   .search-controls input {
        width: 100%;
    }
}

/* 滚动消息横幅样式 */
.marquee-bar {
    background: linear-gradient(90deg, #9b1ae8, #f265ff);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 10px auto;
    width: 95%;
    border-radius: 8px;
    box-sizing: border-box;
    height: 44px; /* 固定高度 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.marquee-text {
    white-space: nowrap;
    color: white;
    font-size: 15px;
    font-weight: 500;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: marquee-rtl 20s linear infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.4px;
}

/* 从右到左滚动的动画 - 平滑循环 */
@keyframes marquee-rtl {
    0% {
        transform: translate3d(100%, -50%, 0);
    }
    100% {
        transform: translate3d(-100%, -50%, 0);
    }
}

/* 鼠标悬停时暂停滚动 */
.marquee-bar:hover .marquee-text {
    animation-play-state: paused;
}

.i-text {
    margin: 15px 0px 0px 10px;
}

.full-screen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* 搜索类型选择器样式修复 */
.search-type-selector {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4l3 3 3-3' fill='none' stroke='%23b82dff' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
    background-size: 12px;
}

.search-type-selector:focus,
.search-type-selector:hover {
    border-color: #b82dff;
    box-shadow: 0 3px 8px rgba(184, 45, 255, 0.15);
    outline: none;
}

/* 资源详情样式 */
.resource-info {
    display: none;
}

/* 标签样式增强 */
.tag {
    padding: 8px 14px;
    margin: 6px;
    border-radius: 18px;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: 500;
    text-align: center;
}

.tag:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* 网站底部样式 - 默认隐藏 */
.footer {
    background: linear-gradient(135deg, #9b1ae8, #f265ff);
    color: white;
    padding: 25px 0;
    margin-top: 30px;
    display: none; /* 默认隐藏 */
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer.active {
    display: block; /* 激活时显示 */
    animation: slideUpFadeIn 0.4s ease-out;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resource-details {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.resource-details h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.resource-details h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

#resourceDetails {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    resize: none;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#resourceDetails:focus {
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.action-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons button:before {
    margin-right: 8px;
    font-size: 16px;
}

#openBtn {
    background-color: #4caf50;
    color: white;
}

#openBtn:before {
    content: '🔗';
}

#copyBtn {
    background-color: #2196f3;
    color: white;
}

#copyBtn:before {
    content: '📋';
}

#closeBtn {
    background-color: #f44336;
    color: white;
}

#closeBtn:before {
    content: '✖️';
}

.action-buttons button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 修复表单控件的class */
.form-control {
    box-sizing: border-box;
    width: 100%;
    display: block;
}

/* 资源列表样式 */
.result-item {
    margin-bottom: 20px;
    list-style: none;
}

.resource-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c7ae0;
    margin-bottom: 8px;
}

.resource-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.file-info, .source-info {
    margin-bottom: 4px;
}

.get-resource-btn {
    background-color: #2c7ae0;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 0;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.get-resource-btn:hover {
    background-color: #1c5fb0;
}

/* 资源弹窗样式 */
.resource-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.resource-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
}

.resource-modal-info {
    background-color: #f7f7f7;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    word-break: break-all;
    font-size: 14px;
}

.resource-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.resource-modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    min-width: 80px;
}

.copy-btn {
    background-color: #2c7ae0;
    color: white;
}

.copy-link-btn {
    background-color: #4caf50;
    color: white;
}

.close-btn {
    background-color: #f44336;
    color: white;
}

.resource-modal-btn:hover {
    opacity: 0.9;
}

/* 移除按钮和输入框的默认聚焦边框 */
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: none !important;
    box-shadow: none;
}

/* 确保各类按钮在点击时没有边框 */
#searchButton:focus,
.get-resource-btn:focus,
.resource-modal-btn:focus,
.action-buttons button:focus,
#loadMoreButton:focus,
#backToTopButton:focus,
.protocol-btn:focus,
.download-btn:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(184, 45, 255, 0.3);
}

/* 确保标签在点击时没有边框 */
.tag:focus {
    outline: none;
}

/* 保持输入框和选择框点击后的美观效果 */
#searchInput:focus,
.search-type-selector:focus {
    outline: none;
    border-color: #b82dff;
    box-shadow: 0 3px 8px rgba(184, 45, 255, 0.15);
}

/* 资源加载中的样式 */
.resource-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.resource-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2c7ae0;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.resource-loading .loading-text {
    font-size: 16px;
    color: #555;
    text-align: center;
}

/* 资源结果样式 */
.success-message {
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.error-message {
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
}

.file-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    word-break: break-all;
}

.share-link {
    font-size: 14px;
    color: #2c7ae0;
    word-break: break-all;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

/* 按钮样式优化 */
.resource-modal-btn.open-btn {
    background-color: #28a745;
}

.resource-modal-btn.open-btn:hover {
    background-color: #218838;
}

.resource-modal-btn.copy-link-btn {
    background-color: #2c7ae0;
}

.resource-modal-btn.copy-link-btn:hover {
    background-color: #1c5eb0;
}

.resource-modal-btn.close-btn {
    background-color: #6c757d;
}

.resource-modal-btn.close-btn:hover {
    background-color: #5a6268;
}

/* 手动获取按钮样式 */
.resource-modal-btn.manual-btn {
    background-color: #ff9800;
}

.resource-modal-btn.manual-btn:hover {
    background-color: #e68a00;
}

.manual-url-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 15px;
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #ddd;
}

/* 免责声明样式 */
.disclaimer-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.disclaimer-icon {
    font-size: 24px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-style: normal; /* 防止斜体 */
}

.disclaimer-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: white;
    letter-spacing: 1px;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.disclaimer-text p {
    margin: 10px 0;
}

.disclaimer-text .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.copyright-notice {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.contact-email {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #fff;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .disclaimer-container {
        padding: 15px;
    }
    
    .disclaimer-text {
        font-size: 13px;
    }
    
    .disclaimer-header h3 {
        font-size: 18px;
    }
}

/* 链接有效期提示语样式 */
.expiry-notice {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
    display: flex;
    align-items: center;
    animation: pulse 2s infinite;
}

.expiry-icon {
    margin-right: 8px;
    font-size: 16px;
    font-style: normal;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}