/* shops.css - 保持原布局，仅修改颜色风格和返回主页按钮位置 */

/* CSS变量定义 - 与首页保持一致 */
:root {
    --primary-color: #8b5cf6;
    --secondary-color: #a855f7;
    --accent-color: #c084fc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-color: #ffffff;
    --text-secondary: #e2e8f0;
    --background-color: #0f0f23;
    --surface-color: rgba(15, 15, 35, 0.95);
    --card-bg-color: rgba(30, 30, 60, 0.9);
    --glass-bg: rgba(15, 15, 35, 0.7);
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-blue: #06b6d4;
    --neon-orange: #f97316;
    --neon-red: #ef4444;
    --gradient-sexy: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
    --gradient-hot: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #8b5cf6 100%);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition-normal: 0.3s;
    --shadow-md: 0 10px 15px -3px rgba(139, 92, 246, 0.2);
    --shadow-neon: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动态背景系统 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, #0f0f23 70%);
}

.background-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    will-change: transform;
}

.shape1 {
    width: 600px;
    height: 600px;
    background: conic-gradient(from 0deg, #8b5cf6, #ec4899, #06b6d4, #a855f7, #8b5cf6);
    top: -200px;
    left: -200px;
    animation: elegantFloat 25s ease-in-out infinite;
}

.shape2 {
    width: 700px;
    height: 400px;
    background: linear-gradient(45deg, #a855f7, #ec4899, #06b6d4);
    bottom: -150px;
    right: -250px;
    border-radius: 60% 40% 60% 40%;
    animation: elegantFloat 30s ease-in-out infinite reverse;
}

.shape3 {
    width: 500px;
    height: 600px;
    background: radial-gradient(ellipse, #ec4899, #8b5cf6, #6366f1);
    top: 30%;
    left: 70%;
    border-radius: 70% 30% 70% 30%;
    animation: elegantFloat 22s ease-in-out infinite 3s;
}

.shape4 {
    width: 350px;
    height: 350px;
    background: conic-gradient(from 45deg, transparent, #8b5cf6, transparent);
    top: 60%;
    left: 20%;
    animation: elegantRotate 20s linear infinite;
}

.shape5 {
    width: 450px;
    height: 250px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    top: 10%;
    right: 30%;
    border-radius: 50%;
    animation: elegantPulse 18s ease-in-out infinite;
}

/* 动画定义 */
@keyframes elegantFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translate(60px, -40px) scale(1.1) rotate(90deg);
        border-radius: 60% 40% 70% 30%;
    }
    50% {
        transform: translate(-30px, 60px) scale(0.9) rotate(180deg);
        border-radius: 30% 70% 40% 60%;
    }
    75% {
        transform: translate(40px, 30px) scale(1.05) rotate(270deg);
        border-radius: 70% 30% 60% 40%;
    }
}

@keyframes elegantRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes elegantPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.main-title {
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-sexy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.foreigner-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--glass-bg);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(24px);
}

.count {
    color: var(--neon-purple);
    font-weight: 700;
}

.return-home-wrapper {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 9998;
}

.return-home {
    color: var(--neon-purple);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.return-home:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-section {
    margin-bottom: 20px;
    background: var(--glass-bg);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(24px);
}

.filter-details .detail-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-details .detail-group strong {
    color: var(--text-color);
    font-weight: 700;
}

.tag {
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-color);
    background: rgba(139, 92, 246, 0.1);
    transition: all var(--transition-normal);
}

.tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--neon-purple);
}

.tag.active {
    background: var(--gradient-sexy);
    color: white;
    border-color: var(--neon-purple);
}

.shop-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: var(--gradient-sexy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.shop-card {
    background: var(--glass-bg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius);
    padding: 15px;
    backdrop-filter: blur(24px);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.8s;
    z-index: 0;
}

.shop-card:hover::before {
    left: 100%;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
    border-color: var(--neon-purple);
}

.content-image {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.content h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--text-color);
    transition: all var(--transition-normal);
}

.shop-card:hover .content h3 {
    background: var(--gradient-sexy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--neon-pink);
    font-weight: 700;
}

.shop-info, .shop-rating, .shop-type, .shop-category, .shop-pr, .shop-foreigner {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: all var(--transition-normal);
}

.shop-card:hover .shop-info,
.shop-card:hover .shop-rating,
.shop-card:hover .shop-type,
.shop-card:hover .shop-category,
.shop-card:hover .shop-pr,
.shop-card:hover .shop-foreigner {
    color: var(--text-color);
}

.shop-info i, .shop-rating i, .shop-type i, .shop-category i, .shop-foreigner i {
    margin-right: 5px;
    width: 16px;
}

.shop-info i { color: var(--neon-purple); }
.shop-rating i { color: #ffc107; }
.shop-type i { color: var(--neon-pink); }
.shop-category i { color: var(--neon-blue); }
.shop-foreigner i { color: var(--neon-orange); }

.shop-pr strong {
    color: var(--neon-purple);
}

.image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    transition: all 0.6s ease;
    filter: brightness(0.9);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
    color: white;
    gap: 8px;
    backdrop-filter: blur(2px);
    border-radius: var(--border-radius);
}

.shop-card:hover .image-overlay {
    opacity: 1;
}

.shop-card:hover .image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.image-overlay i {
    font-size: 24px;
    color: var(--neon-purple);
}

.image-overlay span {
    font-size: 13px;
    font-weight: 600;
}

.stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-sexy);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    transform: rotate(12deg);
    z-index: 2;
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.stamp-text {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.price-call-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.price-tag {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: bold;
}

.price-tag span {
    color: var(--neon-purple);
    font-weight: 700;
}

.customer-button {
    background: var(--gradient-sexy);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.customer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.customer-button:hover::before {
    left: 100%;
}

.customer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.4);
}

.customer-button i {
    margin-right: 5px;
    font-size: 14px;
}

.pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pagination button {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.pagination button:not(:disabled):hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

.pagination button:disabled {
    background: rgba(15, 15, 35, 0.3);
    border-color: rgba(139, 92, 246, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination span {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 10px;
    font-weight: 600;
}

.no-shops {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 20px 0;
    padding: 40px;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(24px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }

    .header-row {
        gap: 10px;
    }

    .foreigner-note {
        font-size: 0.9rem;
    }

    .return-home-wrapper {
        top: 10px;
        right: 10px;
    }

    .return-home {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .shop-section h2 {
        font-size: 1.5rem;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-card {
        padding: 12px;
    }

    .content h3 {
        font-size: 1.1rem;
    }

    .shop-info, .shop-rating, .shop-type, .shop-category, .shop-pr, .shop-foreigner {
        font-size: 0.85rem;
    }

    .tag {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .call-button, .price-tag {
        font-size: 0.85rem;
    }

    .pagination button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .pagination span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .foreigner-note {
        font-size: 0.85rem;
    }

    .return-home-wrapper {
        top: 10px;
        right: 10px;
    }

    .return-home {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .filter-details .detail-group {
        gap: 8px;
    }

    .tag {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .shop-section h2 {
        font-size: 1.3rem;
    }

    .shop-card {
        padding: 10px;
    }

    .content h3 {
        font-size: 1rem;
    }

    .shop-info, .shop-rating, .shop-type, .shop-category, .shop-pr, .shop-foreigner {
        font-size: 0.8rem;
    }

    .call-button, .price-tag {
        font-size: 0.8rem;
    }

    .pagination button {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .pagination span {
        font-size: 0.85rem;
    }
}

#floating-logo {
    position: absolute;
    top: 50px;
    left: 300px;
    z-index: 9999;
    transition: all 0.3s ease;
}

#floating-logo img {
    width: 250px;
    height: auto;
    transition: all 0.3s ease;
}

/* 向下滚动时缩小 logo + 下移 */
#floating-logo.shrinked {
    top: 120px;
}

#floating-logo.shrinked img {
    width: 100px;
}

/* 移动端重新设定位置 */
@media (max-width: 768px) {
    #floating-logo {
        left: 80px;
        top: 0px;
    }

    #floating-logo img {
        width: 200px;
    }

    #floating-logo.shrinked {
        top: 90px;
    }

    #floating-logo.shrinked img {
        width: 80px;
    }
}