/* 配对页面特定样式 */

/* 粒子背景 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 宠心智配介绍区域 */
.paws-match-intro {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05) 0%, rgba(127, 176, 105, 0.05) 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(127, 176, 105, 0.2);
}

.paws-match-intro h3 {
    color: #2D5A27;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.paws-match-intro p {
    color: #4a5568;
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 分割线 */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(127, 176, 105, 0.5), transparent);
    margin: 2rem 0;
}

/* 智能配对图标 - 使用心形图标 */
.quiz-icon-container {
    position: relative;
}

.quiz-icon-container svg {
    width: 80px;
    height: 80px;
}

/* 猫猫形状按钮 */
.cat-button {
    position: relative;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 猫耳朵 - 左耳 */
.cat-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 16px solid #FF6B35;
    transform: rotate(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* 猫耳朵 - 右耳 */
.cat-button::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 16px solid #FF6B35;
    transform: rotate(20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

.cat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cat-button:hover::before {
    transform: rotate(-30deg) translateY(-2px);
}

.cat-button:hover::after {
    transform: rotate(30deg) translateY(-2px);
}

.cat-button:active {
    transform: scale(0.98);
}

/*!* 在按钮文字前添加猫猫emoji *!*/
/*.cat-button span::before {*/
/*    content: '🐱';*/
/*    display: inline-block;*/
/*    margin-right: 0.25rem;*/
/*    font-size: 1.2rem;*/
/*}*/

/* 横向筛选条件 */
.horizontal-filters {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2D5A27;
    margin-bottom: 0.5rem;
}

/* 自定义多选下拉框 */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 2.5rem;
}

.multiselect-trigger:hover {
    border-color: #7FB069;
    background: rgba(127, 176, 105, 0.05);
}

.multiselect-trigger.active {
    border-color: #7FB069;
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

.multiselect-text {
    flex: 1;
    font-size: 0.875rem;
    color: #4a5568;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multiselect-arrow {
    flex-shrink: 0;
    margin-left: 0.5rem;
    color: #6b7280;
    transition: transform 0.2s;
}

.custom-multiselect.active .multiselect-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 1000;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.custom-multiselect.active .multiselect-dropdown {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
    transition: background-color 0.2s;
}

.multiselect-option:hover {
    background: rgba(127, 176, 105, 0.1);
}

.multiselect-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    accent-color: #7FB069;
}

.multiselect-option span {
    flex: 1;
}

/* 助养计划 - 固定在右下角 */
.sponsorship-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    max-width: 300px;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .horizontal-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .sponsorship-fixed {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        left: auto;
        max-width: calc(100% - 2rem);
        min-width: auto;
    }
}

/* 在移动端隐藏固定助养计划方框 */
@media (max-width: 768px) {
    .sponsorship-fixed {
        display: none;
    }
}

@media (max-width: 640px) {
    .sponsorship-fixed {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .paws-match-intro h3 {
        font-size: 1.5rem;
    }
    
    .cat-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .horizontal-filters {
        padding: 1rem;
    }
    
    .custom-multiselect {
        /*z-index: 10;*/
    }
    
    .multiselect-dropdown {
        z-index: 1001;
    }
}

/* 问卷卡片动画 */
.quiz-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.quiz-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* 进度条动画 */
.progress-bar {
    transition: width 0.5s ease !important;
    min-width: 0% !important;
    max-width: 100% !important;
}

/* 结果卡片 */
.match-result-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.match-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.match-result-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.match-percentage {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Adoption flow */
.adoption-flow {
    background: #fffef8;
    border: 1px solid #f4e3c1;
    border-radius: 1.5rem;
    padding: 2rem;
}

.flow-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d5a27;
    margin-bottom: 1.5rem;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.flow-step {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #f4f4f4;
}

.flow-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FB069, #2D5A27);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.flow-step h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d5a27;
}

.flow-step p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.report-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 1rem;
    padding: 1.5rem;
}

.report-info h4 {
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.report-info p {
    color: #0f172a;
    font-size: 0.95rem;
}

/* Pet progress indicator */
.pet-progress-indicator {
    width: 100%;
}

.pet-progress-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pet-progress-line {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.pet-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7FB069, #FF9F1C);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.pet-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #7fb069;
    position: relative;
}

.pet-icon::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
}

.pet-icon.cat::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%237fb069' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l4 4 4-4 4 4 4-4v8a8 8 0 11-16 0z'/%3E%3C/svg%3E");
}

.pet-icon.dog::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23ff9f1c' viewBox='0 0 24 24'%3E%3Cpath d='M4 7a3 3 0 013-3h1l2 2h4l2-2h1a3 3 0 013 3v3h-2v2a6 6 0 11-12 0V10H4z'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
    .flow-steps {
        grid-template-columns: 1fr;
    }

    .horizontal-filters {
        padding: 0.75rem;
        gap: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }
    
    .custom-multiselect {
        /*z-index: 10;*/
    }
    
    .multiselect-dropdown {
        z-index: 1001;
    }

    .quiz-card {
        padding: 1.25rem;
    }

    .match-result-card img {
        height: 180px;
    }

    .sponsorship-fixed {
        display: none;
    }

    .pet-progress-track {
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .cat-button {
        width: 100%;
    }

    .filter-options {
        gap: 0.35rem;
    }

    .match-percentage {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .quiz-card {
        padding: 1rem;
    }
}

/* Footer 统计区域样式已移至 footer.css */

