/* ============================================
   邹先华直播台词搜索引擎 - 墨绿高级感设计
   主色：墨绿 #206D5D
   辅色：浅灰 #BBBEC5
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #206D5D 0%, #1a5a4d 50%, #154a3f 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

/* ============================================
   搜索卡片头部
   ============================================ */

.search-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.search-header {
    background: linear-gradient(135deg, #206D5D 0%, #2a8571 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.search-header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.search-header p {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 300;
}

/* ============================================
   搜索框区域
   ============================================ */

.search-body {
    padding: 40px 30px;
}

.search-box {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(32, 109, 93, 0.15);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 8px 30px rgba(32, 109, 93, 0.25);
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #f0f2f5;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    outline: none;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: #ffffff;
    border-color: #206D5D;
}

.search-box button {
    padding: 18px 35px;
    background: linear-gradient(135deg, #206D5D 0%, #2a8571 100%);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, #1a5a4d 0%, #206D5D 100%);
    transform: scale(1.02);
}

/* ============================================
   提示信息
   ============================================ */

.search-tips {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

.search-tips .highlight {
    background: #206D5D;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.brand-info {
    background: linear-gradient(135deg, rgba(32, 109, 93, 0.05) 0%, rgba(42, 133, 113, 0.05) 100%);
    border: 1px dashed #BBBEC5;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #206D5D;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   搜索结果区域
   ============================================ */

.results-section {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.results-section.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.results-count {
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #495057;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid #206D5D;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: #2a8571;
}

.result-title {
    font-size: 0.85rem;
    color: #206D5D;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.result-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 10px;
}

.result-time {
    font-size: 0.8rem;
    color: #BBBEC5;
    font-family: 'SF Mono', Monaco, monospace;
}

.result-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #BBBEC5;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.result-item:hover .result-arrow {
    color: #206D5D;
    right: 15px;
}

/* ============================================
   关键词高亮
   ============================================ */

.highlight {
    background: linear-gradient(135deg, #206D5D 0%, #2a8571 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* ============================================
   分页控件
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #BBBEC5;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #206D5D;
    color: white;
    border-color: #206D5D;
}

.page-btn.active {
    background: linear-gradient(135deg, #206D5D 0%, #2a8571 100%);
    color: white;
    border-color: #206D5D;
}

.page-dots {
    color: #BBBEC5;
    padding: 0 5px;
}

/* ============================================
   加载动画
   ============================================ */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #BBBEC5;
    border-top-color: #206D5D;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   无结果提示
   ============================================ */

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 10px;
}

/* ============================================
   页脚
   ============================================ */

.footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* ============================================
   响应式适配
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 40px 15px 30px;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    .search-body {
        padding: 30px 20px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-box input {
        border-radius: 12px 12px 0 0;
        border-right: 2px solid #f0f2f5;
        border-bottom: none;
    }
    
    .search-box button {
        border-radius: 0 0 12px 12px;
    }
    
    .result-item {
        padding: 15px;
    }
    
    .result-arrow {
        display: none;
    }
}
