/* 关键：将页脚推到底部 
.copyright-wrap {
    margin-top: 130px; 这是将页脚推到底部的核心代码 
}*/

/* 反馈按钮样式 */
.feedback-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.feedback-button:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 反馈弹窗样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.feedback-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.feedback-header h3 {
    margin: 0;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-button:hover {
    color: #333;
}

.feedback-options {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.feedback-option {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.feedback-option.selected {
    background: #007bff;
    color: white;
}

#feedbackContent {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-family: inherit;
}

#emailInput {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.submit-feedback {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.submit-feedback:hover {
    background: #0069d9;
}

/* 反馈成功样式 */
.feedback-success {
    text-align: center;
    padding: 20px;
}

.feedback-success .success-icon {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.feedback-success h3 {
    color: #333;
    margin-bottom: 10px;
}

/* 无结果提示样式 */
#noResults {
    display: none; /* 默认隐藏 */
    padding: 20px;
    text-align: center;
}

/* 加载动画样式 */
.search-loading {
    text-align: center;
    padding: 40px 0;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示样式 */
.error-message {
    color: red;
    margin-top: 20px;
}

/* 按钮状态 */
.submit-feedback[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .feedback-box {
        width: 95% !important;
        max-width: none !important;
    }
    
    #feedbackButton {
        right: 10px !important;
        bottom: 10px !important;
        padding: 8px 12px !important;
    }
    .drama-card {
        margin-bottom: 3px;
        padding: 8px 10px;
    }
    .drama-grid {
        gap: 6px 8px;
    }
}

#app {
	display: flex;
    flex-direction: column;
    width: 100%;
}

/* 新增到你的CSS文件中 */
.main-content-container {
        flex: 1; /* 搜索结果区域占据剩余空间 */
            padding-bottom: 20px;


}
/* 添加这个类确保内容容器不会无限扩展 */
.index-page {
    padding: 1px 0; /* 减少整体上下间距 */

}

/* 内容包裹容器 */
.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 160px); /* 减去头部高度 */
}

/* 搜索结果容器 */
.container {
     max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* 搜索框样式 - 确保搜索框高度正常 */
.form-wrap {
    padding: 0 20px;
}
.search-form {
    display: flex;
    height: 44px; /* 固定搜索框高度 */
}
.input {
    flex: 1;
    height: 100%;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-button {
    width: 44px;
    height: 100%;
    background: #06a7ff url('https://img.alicdn.com/tfs/TB1N.5EbvpYBeNjy1XdXXXXyVXa-44-44.png') no-repeat center;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}


/* 内容流布局 */
.content-flow-container {
    display: flex;
    flex-direction: column;
    
}

.search-content-area {
    flex: 1; /* 填充剩余空间 */
    padding-bottom: 20px; 

}

/* 热门推荐控制 */
.hot-wrap.hide-on-search {
    display: none;
}

/* 调整热门推荐底部间距 */
.hot-wrap {
    margin: 15px auto; /* 上边距从30px减为15px */
    padding: 15px 20px; /* 内边距缩小 */
}

/* 搜索结果样式 */
.search-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

@media (min-width: 768px) {
   .search-item {
        width: calc(50% - 15px);
    }
}

@media (min-width: 1024px) {
   .search-item {
        width: calc(33.33% - 15px);
    }
    
    .search-results.single-result .search-item {
        width: 600px;
        max-width: 90%;
        margin: 0 auto;
    }
}
.search-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.search-item img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
}
.search-content .title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
.search-content .link {
    color: #007bff;
    font-size: 13px;
    word-break: break-all;
}





/* 随机短剧推荐样式 - 紧凑3×3布局 */
.random-drama {
    max-width: 800px;
    margin: 10px auto;
    padding: 0px;
}

.drama-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.drama-card {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    height: 100%;
}

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

.drama-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.drama-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.drama-source {
    font-size: 12px;
    color: #666;
}

.drama-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.drama-episodes {
    font-size: 12px;
    color: #ff6b00;
    font-weight: bold;
    margin-top: 3px; /* 原5px改为3px */

}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b00;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #d9534f;
}

.error-message button {
    margin-top: 10px;
    padding: 8px 15px;
    background: #5bc0de;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}









/* 紧凑布局增强 */
.compact-section {
    transition: all 0.3s ease;
}

.compact-section h3 {
    margin-bottom: 12px; /* 标题与内容间距缩小 */
    font-size: 18px; /* 适当缩小标题 */
}

/* 网格布局微调 */
.drama-grid {
    gap: 8px 10px; /* 水平10px 垂直8px */
}

.drama-card {
    padding: 8px; /* 卡片内边距缩小 */
}


/* 移除可能产生额外间距的样式 */
.container, 
.search-results, 
.search-form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 表单元素间距调整 */
.search-form .input {
    margin-bottom: 5px;
}




