/* 1. 全局变量 */
:root {
    /* 颜色 */
    --primary: #045cb7;
    --primary-hover: #0468d7;
    --danger: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #fff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    
    /* 透明度颜色 */
    --white-10: rgba(255, 255, 255, 0.1);
    --white-90: rgba(255, 255, 255, 0.9);
    
    /* 动画 */
    --trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
    
    /* 阴影 */
    --shadow: 0 8px 25px rgba(4, 92, 183, 0.15);
    
    /* 间距 */
    --gap-sm: 8px;
    --gap: 16px;
    --gap-lg: 24px;
    
    /* 圆角 */
    --radius: 12px;
}

/* 2. 通用样式 */
.flex {
    display: flex;
    align-items: center;
}

.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.gap { gap: var(--gap); }
.center { text-align: center; }

/* 3. 布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* 4. 搜索区域 */
.search-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 40px 20px 100px;
    margin-bottom: -80px;
    position: relative;
}

.search-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: var(--gap);
    display: flex;
    gap: var(--gap);
    box-shadow: var(--shadow);
}

.search-form {
    display: contents;
}
/* 5. 列表样式 */
.list-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: var(--gap-lg);
    transition: var(--trans);
    border: 1px solid var(--border);
}

.list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 6. 按钮样式 */
.btn {
    height: 42px;
    padding: 0 24px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--trans);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* 7. 响应式布局 */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .flex-mobile { flex-direction: column; }
    .w-full-mobile { width: 100%; }
    .grid-4 { grid-template-columns: 1fr; }
}

/* 8. 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeIn var(--trans); }

/* 9. 工具类 */
.hidden { display: none; }
.opacity-0 { opacity: 0; }
.opacity-1 { opacity: 1; }

/* 1. 在文件开头添加全局变量和通用过渡 */
:root {
    /* 颜色系统 */
    --primary-color: #045cb7;
    --primary-hover: #0468d7;
    --primary-light: #f0f7ff;
    --danger-color: #ef4444;
    --danger-light: #fef2f2;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* 背景颜色 */
    --bg-primary: #fff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* 边框颜色 */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* 动画 */
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* 阴影 */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 25px rgba(4, 92, 183, 0.15);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.1);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* 字体大小 */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    
    /* 层级 */
    --z-modal: 1000;
    --z-overlay: 999;
    --z-dropdown: 100;
    --z-header: 50;
    --z-base: 1;
    
    /* 动画时间 */
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.4s;
    
    /* 新增透明度颜色 */
    --white-15: rgba(255, 255, 255, 0.15);
    --white-20: rgba(255, 255, 255, 0.2);
    --black-50: rgba(0, 0, 0, 0.5);
    --primary-10: rgba(4, 92, 183, 0.1);
    --danger-10: rgba(239, 68, 68, 0.1);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #045cb7 0%, #057ade 100%);
    --gradient-white: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.9));
    
    /* 添加新的变量 */
    /* 布局 */
    --header-height: 80px;
    --container-width: 1200px;
    --thumb-width: 200px;
    --thumb-height: 140px;
    
    /* 动画曲线 */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 滤镜 */
    --blur-sm: blur(4px);
    --blur-md: blur(8px);
    
    /* 堆叠顺序 */
    --z-negative: -1;
    --z-elevate: 2;
    --z-sticky: 100;
    --z-drawer: 200;
    --z-popover: 400;
    --z-maximum: 999;
}

/* 2. 统一常用的过渡效果 */
.search-input,
.search-btn,
.expand-search-btn,
.collect-btn,
.negotiate-btn,
.list-item,
.stat-item,
.category-tag,
.price-tag,
.page-item {
    transition: var(--transition-normal);
}

/* 3. 合并相同的媒体查询 */
@media (max-width: 1200px) {
    .advanced-search-modal { width: 95%; }
    .modal-content { padding: var(--spacing-md) var(--spacing-lg); }
    .search-options { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .website-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .item-main { flex-direction: column; }
    .website-thumb { 
        width: 100%;
        height: 200px;
    }
    .website-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    .search-options { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .modal-content { padding: var(--spacing-md); }
}

@media (max-width: 768px) {
    .search-box,
    .website-footer,
    .website-actions { flex-direction: column; }
    
    .search-input,
    .search-btn,
    .expand-search-btn,
    .price-tag,
    .action-buttons { width: 100%; }
    
    .divider { display: none; }
    
    .modal-overlay { padding: var(--spacing-md); }
    .advanced-search-modal {
        width: 100%;
        max-height: 90vh;
    }
    
    .modal-header { padding: var(--spacing-md); }
    .modal-content { padding: var(--spacing-md); }
    .search-options { 
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .panel-actions {
        padding: var(--spacing-md);
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: calc(50% - var(--spacing-xs));
    }
    
    .panel-actions .search-btn {
        flex: 100%;
        order: -1;
    }
    
    .list-item { padding: var(--spacing-md); }
}

@media (max-width: 480px) {
    .modal-overlay { padding: 0; }
    .advanced-search-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .modal-header,
    .modal-content,
    .panel-actions { padding: var(--spacing-sm); }
    
    .search-options { gap: var(--spacing-sm); }
    .option-group { padding: var(--spacing-sm); }
    
    .action-btn {
        width: 100%;
        min-width: 100%;
        height: 40px;
    }
    
    .website-stats { grid-template-columns: 1fr; }
    .website-title { font-size: var(--font-size-lg); }
    .stat-item { padding: var(--spacing-sm); }
}

/* 4. 删除重复的动画定义，只保留一个 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(var(--spacing-md));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. 统一使用CSS变量 */
.search-btn,
.negotiate-btn {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.search-btn:hover,
.negotiate-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

/* 6. 优化阴影定义 */
.list-item:hover,
.collect-btn:hover,
.negotiate-btn:hover {
    box-shadow: var(--shadow-md);
}

/* 7. 统一圆角值 */
.search-box,
.list-item,
.advanced-search-modal {
    border-radius: var(--radius-md);
}

/* 主内容区域 */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 60px);
    background: #f8fafc;
}

/* 搜索区域 */
.search-section {
    background: var(--gradient-primary);
    padding: 40px 20px 100px;
    position: relative;
    overflow: visible;
    margin-bottom: -80px;
}

.search-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.search-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 搜索头部 */
.search-header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.header-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white-90);
    margin-bottom: 15px;
    display: inline-block;
    padding: 8px 20px;
    background: var(--white-10);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-20);
}

.search-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px;
    background: var(--gradient-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-desc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.header-desc i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* 搜索框组件优化 */
.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 0 20px;
    height: 56px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus-within {
    background: #fff;
    box-shadow: 0 4px 20px rgba(4, 92, 183, 0.1);
    transform: translateY(-1px);
}

.search-input i {
    font-size: 22px;
    color: #64748b;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.search-input:focus-within i {
    color: #045cb7;
}

.search-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
}

.search-input input::placeholder {
    color: #94a3b8;
    font-weight: normal;
}

/* 搜索按钮 */
.search-btn {
    height: 56px;
    padding: 0 32px;
    background: #045cb7;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.search-btn:hover::before {
    transform: translateX(100%);
}

.search-btn:hover {
    background: #0468d7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 92, 183, 0.25);
}

.search-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.search-btn:hover i {
    transform: translateX(3px);
}

/* 分隔线 */
.divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
    margin: 0 4px;
}

/* 筛选按钮 */
.expand-search-btn {
    height: 56px;
    padding: 0 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.expand-search-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.expand-search-btn:hover {
    color: #045cb7;
    border-color: #045cb7;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 92, 183, 0.1);
}

.expand-search-btn:hover i {
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .search-input {
        min-width: 100%;
        height: 52px;
    }
    
    .search-btn,
    .expand-search-btn {
        width: 100%;
        height: 52px;
        justify-content: center;
    }
    
    .divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .search-box {
        padding: 10px;
    }
    
    .search-input,
    .search-btn,
    .expand-search-btn {
        height: 48px;
    }
    
    .search-input {
        padding: 0 16px;
    }
    
    .search-btn,
    .expand-search-btn {
        font-size: 15px;
        padding: 0 20px;
    }
}

/* 热门标签 */
.hot-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hot-tags span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.hot-tags a {
    display: inline-block;
    padding: 6px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hot-tags a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 搜索标签 */
.search-tags {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tag-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.tag-item {
    display: inline-flex;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 高级搜索面板 */
.advanced-search-panel {
    position: relative;
    z-index: 4;
    background: #fff;
    border-radius: 16px;
    margin: 15px auto;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    visibility: hidden;
    pointer-events: none;
}

.advanced-search-panel.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.search-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.option-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.option-group:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.option-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item input {
    display: none;
}

.option-item span {
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

.option-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.option-item.active {
    background: #045cb7;
    border-color: #045cb7;
    box-shadow: 0 4px 12px rgba(4, 92, 183, 0.15);
}

.option-item.active span {
    color: #fff;
}

/* 价格区间输入框组 */
.price-range {
    width: 100%;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-inputs input {
    flex: 1;
    min-width: 120px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
}

.price-inputs input:focus {
    border-color: #045cb7;
    box-shadow: 0 0 0 2px rgba(4, 92, 183, 0.1);
}

.price-inputs span {
    color: #64748b;
    padding: 0 5px;
}

.price-confirm {
    height: 40px;
    padding: 0 20px;
    background: #045cb7;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.price-confirm:hover {
    background: #0468d7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 92, 183, 0.2);
}

/* 列表区域 */
.website-list-section {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: -80px auto 0;
    padding: 0 20px;
    transition: all 0.3s ease;
}

/* 当高级搜索面板打开时，列表区域下移 */
.advanced-search-active .website-list-section {
    margin-top: 20px;
    transition: margin-top 0.3s ease;
}

/* 排序工具栏 */
.sort-toolbar {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-options {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-item {
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.sort-item:hover {
    color: #045cb7;
    background: #f8fafc;
}

.sort-item.active {
    color: #045cb7;
    font-weight: 500;
    background: #f1f5f9;
}

.sort-item i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.sort-item:hover i {
    transform: translateY(-1px);
}

/* 网站列表容器 */
.website-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

/* 列表项样式优化 */
.list-item {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
}

.list-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: rgba(4, 92, 183, 0.1);
}

.list-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #045cb7;
    transition: height 0.3s ease;
}

.list-item:hover::after {
    height: 100%;
}

/* 列表项主体布局 */
.item-main {
    display: flex;
    gap: 24px;
}

/* 网站缩略图优化 */
.website-thumb {
    width: 200px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: none; /* 默认隐藏 */
}

.website-thumb.has-image {
    display: block; /* 有图片时显示 */
}

.website-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-item:hover .website-thumb img {
    transform: scale(1.05);
}

.website-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list-item:hover .website-thumb::before {
    opacity: 1;
}

/* 网站内容区 */
.website-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 网站标题和分类 */
.website-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.website-title,.website-title a {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.category-tag {
    display: inline-flex;
    padding: 6px 16px;
    background: #f0f7ff;
    border-radius: 8px;
    color: #045cb7;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* 网站数据统计 */
.website-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 5px;
}

.stat-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #045cb7, #0468d7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    position: relative;
    display: inline-block;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-value::after {
    transform: scaleX(1);
}

/* 底部操作区 */
.website-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* 更新时间 */
.update-time {
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 操作区域 */
.website-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 价格标签优化 */
.price-tag {
    padding: 10px 20px;
    background: #fef2f2;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.price-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(239, 68, 68, 0.1) 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.price-tag:hover::before {
    transform: translateX(0);
}

.price-value {
    font-size: 22px;
    font-weight: 600;
    color: #ef4444;
    display: block;
}

.price-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* 按钮组 */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 收藏按钮 */
.collect-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.collect-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
}

.collect-btn:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.collect-btn:hover,.collect-btn.active {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
    transform: translateY(-2px);
}

/* 议价按钮 */
.negotiate-btn {
    height: 42px;
    padding: 0 24px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #045cb7;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.negotiate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
}

.negotiate-btn:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.negotiate-btn:hover {
    background: #0468d7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 92, 183, 0.2);
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .website-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .item-main {
        flex-direction: column;
    }
    
    .website-thumb {
        width: 100%;
        height: 200px;
    }
    
    .website-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .list-item {
        padding: var(--spacing-md);
    }
    
    .website-footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .website-actions {
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }
    
    .action-buttons {
        width: 100%;
    }
    
    .collect-btn,
    .negotiate-btn {
        flex: 1;
    }
    
    .price-tag {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .website-stats {
        grid-template-columns: 1fr;
    }
    
    .website-title {
        font-size: var(--font-size-lg);
    }
    
    .stat-item {
        padding: var(--spacing-sm);
    }
}

/* 动画效果 */
.list-item {
    animation: none; /* 移除之前的动画 */
}

.list-item.animate-in {
    animation: fadeInUp 0.6s var(--ease-out-expo) backwards;
}

/* 响应式优化 */
@media (hover: hover) {
    .list-item:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .stat-item:hover {
        transform: translateY(-2px) scale(1.02);
    }
}

/* 滚动条样式 */
.option-content::-webkit-scrollbar {
    width: 4px;
}

.option-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.option-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.option-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 高级搜索模态窗口底部按钮组 */
.modal-footer {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* 按钮基础样式 */
.modal-footer .btn {
    min-width: 120px;
    height: 44px;
    padding: 0 var(--spacing-lg);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

/* 搜索按钮 */
.modal-footer .btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
}

.modal-footer .btn-search:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-10);
}

/* 重置按钮 */
.modal-footer .btn-reset {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.modal-footer .btn-reset:hover {
    background: var(--bg-light);
    border-color: var(--text);
}

/* 关闭按钮 */
.modal-footer .btn-close {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.modal-footer .btn-close:hover {
    background: var(--bg-light);
    color: var(--text);
    border-color: var(--text);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .modal-footer {
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .modal-footer .btn-search {
        order: 1;
    }
    
    .modal-footer .btn-reset {
        order: 2;
    }
    
    .modal-footer .btn-close {
        order: 3;
    }
}

/* 修改模态窗口动画相关样式 */
.modal-overlay {
    position: fixed;
    inset: 0; /* 简写替代 top/right/bottom/left */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    display: grid;
    place-items: center;
    padding: var(--spacing-lg);
    transition: all 0.4s var(--ease-out-expo);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.advanced-search-modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.modal-overlay.active .advanced-search-modal {
    transform: scale(1);
    opacity: 1;
}

/* 模态窗口头部 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-header h3 i {
    color: var(--primary);
    font-size: 24px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-light);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text);
    transform: rotate(90deg);
}

/* 搜索选项内容区 */
.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-xl);
}

.search-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* 选项组样式优化 */
.option-group {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.option-group:hover {
    background: var(--bg);
    box-shadow: 
        0 4px 20px -4px rgba(0, 0, 0, 0.1),
        0 0 0 1px var(--primary-10);
}

.option-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.option-title i {
    color: var(--primary);
    font-size: 20px;
}

/* 选项内容样式 */
.option-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.option-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.option-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.option-item span {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    transition: color 0.3s var(--ease);
}

.option-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.option-item.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-10);
}

.option-item.active span {
    color: var(--bg);
}

/* 优化滚动条样式 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 优化响应式布局 */
@supports (backdrop-filter: blur(4px)) {
    .search-box,
    .modal-overlay {
        backdrop-filter: blur(4px);
    }
}

/* 2. 优化动画效果 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(var(--spacing-xl));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 3. 添加动画类 */
.animate-slide-in {
    animation: slideInRight 0.6s var(--ease-out-expo) backwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s var(--ease-in-out) backwards;
}

/* 4. 优化hover效果 */
.hover-elevate {
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-in-out);
}

.hover-elevate:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 5. 添加加载状态动画 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg,
        var(--bg-secondary) 25%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 6. 优化图片加载 */
.website-thumb img {
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-in-out),
                transform var(--duration-normal) var(--ease-out-expo);
}

.website-thumb img.loaded {
    opacity: 1;
}

/* 7. 添加无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 8. 优化深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --bg-tertiary: #333333;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-light: #404040;
    }
}

/* 分页样式优化 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
}
.pagination a{
    text-decoration: none;
}

.page-item {
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--trans);
    padding: 0 var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.page-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.page-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.page-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg);
    font-weight: 500;
    box-shadow: 0 4px 12px var(--primary-10);
}

/* 省略号样式 */
.page-item.dots {
    border: none;
    padding: 0 4px;
    cursor: default;
    background: transparent;
}

.page-item.dots:hover {
    transform: none;
    color: var(--text-light);
}

/* 上一页/下一页按钮 */
.page-item i {
    font-size: var(--font-size-md);
    transition: transform 0.3s var(--ease);
}

.page-item:hover i {
    transform: translateX(2px);
}

.page-item[title="上一页"]:hover i {
    transform: translateX(-2px);
}

/* 禁用状态 */
.page-item:disabled,
.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pagination {
        gap: var(--spacing-xs);
    }
    
    .page-item {
        min-width: 36px;
        height: 36px;
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-item {
        min-width: 32px;
        height: 32px;
    }
    
    /* 在小屏幕上隐藏部分页码 */
    .page-item:not(.active):not([title]):not(.dots) {
        display: none;
    }
} 