/* style.css - 司机导航助手样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-top: 8%;
    transition: all 0.5s ease;
}

header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 30px 20px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.logo svg {
    width: 44px;
    height: 44px;
    margin-right: 15px;
    fill: #FFD43B;
    filter: drop-shadow(0 0 10px rgba(255, 212, 59, 0.3));
}

.logo h1 {
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 300;
    position: relative;
    z-index: 2;
}
        /* 悬浮刷新按钮样式 */
        .refresh-button {
            position: fixed;
            left: 20px;
            bottom: 60px;
            width: 60px;
            height: 60px;
            background: rgba(14, 165, 233, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .refresh-button:hover {
            background: rgba(14, 165, 233, 1);
            transform: scale(1.1) rotate(30deg);
        }
        
        .refresh-button:active {
            transform: scale(0.95) rotate(0deg);
        }
        
        .refresh-button svg {
            width: 30px;
            height: 30px;
            fill: white;
        }
.search-container {
    padding: 40px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 2;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #4a6491;
    transition: all 0.4s ease;
}

/* 表单样式优化 */
.search-box form {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 1.2rem;
    background: transparent;
    color: #2c3e50;
    width: 100%;
}

.search-box input::placeholder {
    color: #95a5a6;
}



       /* 搜索按钮样式优化 */
        #search-btn {
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        #search-btn:disabled {
            background-color: #ccc;
         
            cursor: not-allowed;
            opacity: 0.7;
        }
        
        /* 当按钮禁用时，悬停不产生效果 */
        #search-btn:disabled:hover {
            background-color: #ccc;
        }

.search-box button {
    background: linear-gradient(to right, #4a6491, #3a5481);
    color: white;
    border: none;
    padding: 0 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.search-box button:hover {
    background: linear-gradient(to right, #3a5481, #2a4471);
}

.search-box button svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: white;
}


       /* 分页样式 */
.pagination-container {
    margin: 8px auto;
    text-align: center;
}

.page.comflex2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pageInfo {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.page-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.page-btn.no {
    background-color: #f9f9f9;
    color: #999;
    border-color: #eee;
    cursor: not-allowed;
}

/* 隐藏页码和最后一页按钮 */
.page.comflex2 a:not(.page-btn),
.page.comflex2 span.current {
    display: none;
}

/* 结果计数样式 */
.result-count {
    margin: 15px 0;
    color: #333;
    font-size: 15px;
}

.result-count strong {
    color: #e53e3e;
    font-weight: bold;
}


.results-container {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.results-container.active {
    max-height: 100%;
    padding: 10px;
}

.result-count {
    padding: 20px;
    font-size: 1.1rem;
    color: #2c3e50;
    background: #f0f5ff;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    font-weight: 500;
}

/* 搜索结果项 - 清晰结构 */
.result-item {
    padding: 25px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    background: #fff;
    border-radius: 15px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.shop-name svg {
    width: 24px;
    height: 24px;
    fill: #4a6491;
    margin-right: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    margin: 12px 0;
    color: #555;
}

.info-row svg {
    width: 24px;
    height: 24px;
    fill: #4a6491;
    margin-right: 10px;
}

.info-row a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-row a:hover {
    color: #e74c3c;
}

.photo-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    border: none;
}

.photo-btn:hover {
    background: linear-gradient(to right, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.photo-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
    margin-right: 8px;
}

.map-preview {
    height: 200px;
    background: #e9ecef;
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.navigation-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    z-index: 10;
}

.navigation-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.5);
}

.navigation-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 10px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    display: none;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.no-results svg {
    width: 64px;
    height: 64px;
    fill: #bdc3c7;
    margin-bottom: 25px;
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.no-results p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

.footer {
    text-align: center;
    padding: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 20px;
    max-width: 800px;
}

.footer a {
    color: #FFD43B;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    text-decoration: underline;
}

/* 高德地图样式 */
.amap-style {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e9f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-image: 
        linear-gradient(90deg, rgba(200,220,255,0.3) 1px, transparent 1px),
        linear-gradient(rgba(200,220,255,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.amap-logo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #3a6dd0;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.amap-logo svg {
    width: 16px;
    height: 16px;
    fill: #3a6dd0;
    margin-right: 5px;
}

.road {
    width: 80%;
    height: 12px;
    background: #888;
    border-radius: 6px;
    position: relative;
    margin: 10px 0;
}

.road::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    transform: translateY(-50%);
}

.location-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e74c3c;
    z-index: 5;
}

.location-marker svg {
    width: 40px;
    height: 40px;
    fill: #e74c3c;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

/* 照片预览模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

 /* 返回顶部样式 */
        .scroll-buttons {
            position: fixed;
            left: 10px;
            top: 66%;
            transform: translateY(-50%);
            z-index: 999;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }
        
        .scroll-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #3385ff;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }
        
        .scroll-btn:hover {
            background: #2868cc;
            transform: scale(1.1);
        }
        
        .used-name {
            display: flex;
            align-items: center;
            margin: 5px 0;
            color: #666;
            font-size: 0.9em;
        }
        
        .phone-hint {
            margin-left: 8px;
            font-size: 0.8em;
            color: #888;
            background: #f5f5f5;
            padding: 2px 6px;
            border-radius: 3px;
        }


        /* 默认图片样式 - 当没有门头照片时显示 */
        .default-photo {
            width: 400px;
            height: 280px;
            background-color: #f0f0f0;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 16px;
            text-align: center;
            border: 1px dashed #ccc;
        }
        
        .default-photo svg {
            width: 48px;
            height: 48px;
            margin-bottom: 12px;
            color: #999;
        }
        
        /* 确保弹窗图片容器适当大小 */
        .modal-content {
            max-width: 90%;
            max-height: 80vh;
            margin: auto;
            position: relative;
        }
        
        .modal-content img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 8px;
        }
        
        
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

@media (max-width: 600px) {
    .search-container {
        padding: 30px 20px;
    }
    
    .search-box input {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    .search-box button {
        padding: 0 25px;
    }
    
    .logo h1 {
        font-size: 1.7rem;
    }
    
    .slogan {
        font-size: 1.05rem;
    }
    
    .shop-name {
        font-size: 1.3rem;
    }
    
    .navigation-btn {
        padding: 10px 12px;
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

 
.state-info {
    text-align: center;
    padding: 20px;
    color: #2c3e50;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}


        @media (max-width: 768px) {
            .refresh-button {
                left: 15px;
                bottom: 15px;
                width: 50px;
                height: 50px;
            }
            
            .refresh-button svg {
                width: 25px;
                height: 25px;
            }
            
        }
        
        @media (max-width: 480px) {
            .refresh-button {
                width: 45px;
                height: 45px;
            }
            
            .refresh-button svg {
                width: 22px;
                height: 22px;
            }

        }