:root {
    --primary-color: #1890ff;
    --hover-color: #40a9ff;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-color: #f5f5f5;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Mobile specific variables (can be overridden in media queries if needed) */
    --mobile-base-font-size: 16px;
    --mobile-line-height: 1.5;
    --mobile-touch-target-size: 44px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
    min-height: var(--mobile-touch-target-size);
    padding: 10px 20px; /* Base padding */
    border-radius: 20px; /* Base radius */
    font-size: 14px; /* Base font size */
    color: white; /* Default text color, can be overridden */
    text-decoration: none;
    transition: all 0.3s ease; /* Base transition */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Softer base shadow */
    -webkit-tap-highlight-color: transparent;
    position: relative; 
    overflow: hidden; 
}

.button:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); 
}

.button:active {
    transform: translateY(0px); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

.button--primary-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
    color: white; /* Ensure text color is white for gradient buttons */
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.3);
}
.button--primary-gradient:hover {
    background: linear-gradient(45deg, var(--hover-color), #69c0ff);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
    /* transform from .button:hover will apply */
}
.button--primary-gradient:active {
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    /* transform from .button:active will apply */
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-primary: #ffffff;
        --text-secondary: #aaaaaa;
    }
}

body {
    background: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--mobile-base-font-size); /* Base font size for mobile */
    line-height: var(--mobile-line-height); /* Base line height for mobile */
    color: var(--text-primary);
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
}

/* 图片列表样式 - Using Flex Column for mobile-first single column approach */
.image-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Adjusted gap for mobile */
    margin-bottom: 20px;
}

.image-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 0; /* Initial state for scroll animation */
    transform: translateY(20px); /* Initial state for scroll animation */
}

.image-item.visible { /* For scroll animation */
    opacity: 1;
    transform: translateY(0);
}

.image-item:hover { /* Desktop hover effect */
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0; /* Initial state for image load animation */
    transition: opacity 0.3s ease;
}

.image-item img.loaded {
    opacity: 1;
}

/* 加载状态样式 */
.loading-placeholder {
    width: 100%;
    height: 100%; /* Ensure placeholder takes space */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-animation 1.5s infinite; /* Renamed animation */
    position: absolute; 
    top: 0;
    left: 0;
}

@keyframes loading-animation { /* Renamed animation */
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-more {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

/* 浮窗样式 (float-card) */
.float-card {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 15px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 999;
    display: none; /* Initially hidden, controlled by JS */
}
.float-card.active {
    opacity: 1;
    transform: translateX(0);
}
.float-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.float-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}
.float-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}
.float-card-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.float-card-button { /* This will become .button .button--primary (or similar) in HTML */
    /* background: var(--primary-color); */ /* Covered by .button--primary-gradient */
    /* color: white; */ /* Covered by .button */
    /* border: none; */ /* Covered by .button */
    padding: 8px 16px; /* Specific padding */
    /* border-radius: 20px; */ /* Covered by .button */
    width: 100%; /* Specific width */
    /* cursor: pointer; */ /* Covered by .button */
    /* transition: all 0.3s; */ /* Covered by .button */
    /* min-height: var(--mobile-touch-target-size); */ /* Covered by .button */
    /* display: inline-flex; */ /* Covered by .button */
    /* align-items: center; */ /* Covered by .button */
    /* justify-content: center; */ /* Covered by .button */
}
/* .float-card-button:hover will be handled by .button:hover and .button--primary-gradient:hover */

.close-button { /* General close button, can be used by float-card and modals */
    position: absolute;
    top: 8px;
    right: 8px;
    width: var(--mobile-touch-target-size); 
    height: var(--mobile-touch-target-size); 
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; 
    background: transparent;
    border: none;
    color: var(--text-secondary);
}
.close-button:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* 底部悬浮栏样式优化 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 10px 15px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.bottom-bar.active {
    transform: translateY(0);
    opacity: 1;
    animation: slideUp-bottom-bar 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}
@keyframes slideUp-bottom-bar { 
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.bar-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; 
}
.bar-avatar {
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    margin-right: 10px; 
    border: 2px solid var(--primary-color);
    padding: 2px;
    animation: avatar-pulse-animation 2s infinite; 
    box-shadow: 0 2px 12px rgba(24, 144, 255, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.bar-avatar:hover {
    transform: scale(1.05);
}
.bar-info {
    flex: 1;
    min-width: 0; 
}
.bar-title {
    font-size: 16px; 
    font-weight: 600;
    color: var(--text-primary); 
    margin-bottom: 4px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-desc {
    font-size: 12px; 
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.online-dot {
    width: 8px;
    height: 8px;
    background: #52c41a;
    border-radius: 50%;
    margin-right: 6px; 
    position: relative;
    box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.2);
    flex-shrink: 0;
}
.online-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #52c41a;
    border-radius: 50%;
    animation: ripple-animation 1.5s infinite; 
}
.bar-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bar-button { /* Will be .button .button--primary-gradient .bar-button-specifics in HTML */
    /* Specifics for bar-button */
    letter-spacing: 0.5px;
    animation: buttonPulse-animation 2s infinite; 
    transform-origin: center bottom;
    min-height: calc(var(--mobile-touch-target-size) - 4px); /* Adjusted for padding, different from base .button */
    line-height: 1.2; /* Ensure text fits */
    white-space: nowrap;
    /* padding, border-radius, font-size are same as .button base, so can be inherited */
    /* background, color, border, font-weight, cursor, box-shadow, transition from .button & .button--primary-gradient */
}
.bar-button:hover { /* Specific hover for bar-button if it overrides .button--primary-gradient:hover */
    animation-play-state: paused;
    /* transform and box-shadow from .button--primary-gradient:hover */
    /* background from .button--primary-gradient:hover */
}
/* .bar-button:active will be inherited */

.bar-button::after { /* Ripple effect container */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.bar-button.animate::after { /* JS triggers .animate class for ripple */
    animation: ripple-effect-animation 0.6s ease-out; 
}
.bar-button::before { /* Shine effect */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine-animation 3s infinite linear; 
}
.bar-button:hover::before {
    animation: shine-animation 1.5s infinite; 
}

.bar-qrcode-cta {
    display: flex;
    align-items: center;
    margin-left: 10px; 
    padding-left: 10px; 
    border-left: 1px solid #eee;
    cursor: pointer;
}
.bar-qrcode-image {
    width: 36px; 
    height: 36px; 
    margin-right: 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.bar-qrcode-text {
    font-size: 10px; 
    color: var(--text-secondary);
    line-height: 1.3; 
}

.bottom-bar__close { /* Specific styling for bottom bar's close button */
    position: absolute;
    top: -28px; 
    right: 15px; 
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
/* Common properties from a general close button concept */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8; /* Default opacity, can be adjusted */
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
    
}
.bottom-bar__close:hover { /* Overrides general .close-button hover if needed */
    background: rgba(0, 0, 0, 0.8);
opacity: 1;
    transform: rotate(90deg); /* Keep rotation */
}

/* Animations from style.css */
@keyframes ripple-effect-animation { /* Renamed from ripple */
    0% { transform: scale(0, 0) translate(-50%); opacity: 0.5; }
    100% { transform: scale(40, 40) translate(-50%); opacity: 0; }
}
@keyframes shine-animation { /* Renamed from shine */
    0% { left: -100%; } 
    100% { left: 100%; } 
}
@keyframes avatar-pulse-animation { /* Renamed from avatar-pulse */
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes ripple-animation { /* Renamed from ripple (online-dot) */
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}
@keyframes buttonPulse-animation { /* Renamed from buttonPulse */
    0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 4px 16px rgba(24, 144, 255, 0.3); }
    50% { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 24px rgba(24, 144, 255, 0.5); }
}

/* 导航点容器样式优化 */
.nav-points {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: all 0.3s ease;
}
.nav-points:hover { /* Desktop hover effect */
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px 8px;
}
.nav-point {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin: 6px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.nav-points:hover .nav-point { /* Desktop hover effect */
    width: 8px;
    height: 8px;
    background: #e0e0e0;
}
.nav-point:hover,
.nav-point.active {
    background: var(--primary-color);
    transform: scale(1.3);
}
.nav-point-label { /* Desktop hover label */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.nav-point:hover .nav-point-label { /* Desktop hover effect */
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}
@keyframes pulsePoint-animation { /* Renamed animation */
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.nav-point.pulse {
    animation: pulsePoint-animation 1s infinite; 
}

/* 弹窗样式优化 (General Modal) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 15px; 
}
.modal-content {
    padding: 20px; 
    width: 90%;
    max-width: 400px;
    background: #fff; 
    border-radius: 12px; 
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 90vh; 
    overflow-y: auto; 
}
.modal.show {
    opacity: 1;
    display: flex;
}
.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Specific styles for #myModal content */
#myModal .modal-content {
    min-height: auto; 
    padding: 30px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; 
}
.loading-container { /* Used in #myModal */
    margin: 20px auto;
    position: relative;
    width: 60px; 
    height: 60px; 
}
.pulse-circle { /* Used in #myModal */
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse-circle-animation 1.5s cubic-bezier(0.24, 0, 0.38, 1) infinite; 
}
.pulse-circle:nth-child(2) { animation-delay: 0.5s; }
.pulse-circle:nth-child(3) { animation-delay: 1s; }

.matching-icon { /* Used in #myModal */
    width: 70px; 
    height: 70px; 
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px; 
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.3);
}
.matching-icon::before { /* Glow effect */
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.6;
    z-index: -1;
    animation: glowPulse-animation 2s infinite; 
    left: 0; top: 0;
}
.matching-icon i { /* Assuming FontAwesome or similar */
    color: #fff;
    font-size: 28px; 
    animation: iconBounce-animation 2s ease-in-out infinite; 
}
.matching-text-container { /* Used in #myModal */
    text-align: center;
    animation: fadeIn-animation 0.5s ease-out; 
}
.matching-title { /* Used in #myModal */
    font-size: 18px; 
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px; 
}
.matching-subtitle { /* Used in #myModal */
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px; 
}
.matching-progress { /* Used in #myModal */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.progress-dot { /* Used in #myModal */
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: progressDot-animation 1.5s infinite; 
}
.progress-dot:nth-child(2) { animation-delay: 0.2s; }
.progress-dot:nth-child(3) { animation-delay: 0.4s; }

/* Animations from #myModal section */
@keyframes pulse-circle-animation { 
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; } 
    100% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes iconBounce-animation { 
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes fadeIn-animation { 
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes progressDot-animation { 
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
@keyframes glowPulse-animation { 
    0% { opacity: 0.4; transform: scale(1.1); }
    50% { opacity: 0.6; transform: scale(1.2); }
    100% { opacity: 0.4; transform: scale(1.1); }
}

#myModal .modal-content p { /* Text inside #myModal */
    font-size: 16px; 
    color: var(--text-primary);
    margin: 15px 0; 
    font-weight: 500;
}
#myModal .modal-content button#modalCloseButton { /* Button inside #myModal */
    /* background, color, border, font-weight, cursor, transition, box-shadow, min-height from .button & .button--primary-gradient */
    padding: 10px 28px; /* Adjusted padding */
    /* border-radius: 20px; */ /* Same as .button */
    font-size: 15px; /* Adjusted font size */
}
/* Hover/active states inherited from .button & .button--primary-gradient */


.qrcode-container { /* Used in #myModal for QR code display */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.qrcode-container.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.qrcode-tip { /* Used in #myModal */
    font-size: 14px; 
    color: var(--text-primary);
    margin-bottom: 15px; 
    line-height: 1.6;
    max-width: 280px;
}
.qrcode-container img { /* QR image in #myModal */
    width: 200px; 
    height: 200px; 
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; 
    transition: transform 0.3s ease;
    border: 1px solid rgba(24, 144, 255, 0.1);
}
.retry-link { /* Used in #myModal */
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
}
.retry-link:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-1px);
}
.retry-link:active { transform: translateY(1px); }

.save-qrcode { /* General save QR button, if used */
    /* background, color, border, font-weight, cursor, transition, box-shadow, position, overflow, min-height from .button & .button--primary-gradient */
    padding: 12px 32px;
    border-radius: 24px; /* Specific */
    font-size: 16px; /* Specific */
    letter-spacing: 0.5px; /* Specific */
}
/* Add :hover, :active, ::before, ::after similar to .bar-button if this is a standalone button */



/* QR Code Zoom Modal Styles (#qrCodeZoomModal) */
#qrCodeZoomModal .modal-content {
    max-width: 320px;
    min-height: auto;
    padding: 20px;
    text-align: center;
}
.zoomed-qrcode { /* Image in #qrCodeZoomModal */
    width: 250px;
    height: 250px;
    margin: 10px auto 15px;
    display: block;
    border: 1px solid #eee;
    border-radius: 8px;
}
.zoomed-qrcode-text { /* Text in #qrCodeZoomModal */
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.qrCodeZoomModal__close { /* Close button for #qrCodeZoomModal, uses .close-button general style */
    /* top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #888; */
    /* These can be specific if .close-button is not enough */
}

/* CTA A/B Test Variant Examples */
.bottom-bar.cta-variant-green {
    background: linear-gradient(to right, #4CAF50, #81C784);
    border-top: 1px solid #388E3C;
}
.bottom-bar.cta-variant-green .bar-title {
    color: #1B5E20; 
}
.bottom-bar.cta-variant-green .bar-button { /* This would be .button.button--primary-gradient.bar-button.cta-variant-green-button */
    background: linear-gradient(45deg, #388E3C, #66BB6A);
    box-shadow: 0 4px 16px rgba(56, 142, 60, 0.4);
}
.bottom-bar.cta-variant-green .bar-button:hover {
    background: linear-gradient(45deg, #43A047, #81C784);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.5);
}
.bottom-bar.cta-variant-green .bar-avatar { border-color: #66BB6A; }
.bottom-bar.cta-variant-green .bar-qrcode-cta { border-left-color: #a5d6a7; }
.bottom-bar.cta-variant-green .bar-qrcode-text { color: #2e7d32; }

.bottom-bar.cta-variant-blue {
    background: linear-gradient(to right, #2196F3, #64B5F6);
    border-top: 1px solid #1976D2;
}
.bottom-bar.cta-variant-blue .bar-title {
    color: #0D47A1; 
}
.bottom-bar.cta-variant-blue .bar-button { /* This would be .button.button--primary-gradient.bar-button.cta-variant-blue-button */
    background: linear-gradient(45deg, #1976D2, #42A5F5);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.4);
}
.bottom-bar.cta-variant-blue .bar-button:hover {
    background: linear-gradient(45deg, #1E88E5, #64B5F6);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.5);
}
.bottom-bar.cta-variant-blue .bar-avatar { border-color: #42A5F5; }
.bottom-bar.cta-variant-blue .bar-qrcode-cta { border-left-color: #90caf9; }
.bottom-bar.cta-variant-blue .bar-qrcode-text { color: #1565c0; }


/* Animations from animations.css */
/* .hover-float block was here, now removed */

.ripple-effect-generic { /* Generic ripple, can be applied to buttons/links */
  position: relative;
  overflow: hidden;
}
.ripple-effect-generic:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}
.ripple-effect-generic:active:after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* Animation from styles.css (float for icons) */
@keyframes float-icon-animation { /* Renamed from float */
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); } 
    100% { transform: translateY(0px); }
}
.icon-floatable { /* Apply this class to icons that should float */
    animation: float-icon-animation 3s ease-in-out infinite;
}


/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px; 
    }
    .image-list {
        
        gap: 15px;
    }
    .float-card { 
        width: 90%;
        left: 5%;
        right: 5%;
        bottom: 80px; 
    }
    .nav-points { 
        
        
        padding: 6px 4px;
        right: 5px;
    }
    .nav-points:hover { 
        
    }
    .nav-point {
        width: 5px; height: 5px; margin: 5px 0;
    }
    .nav-point:hover .nav-point-label { 
        display: none;
    }

    /* Bottom bar adjustments for very small screens */
    .bottom-bar {
        padding: 10px;
    }
    .bar-avatar {
        width: 36px; height: 36px; margin-right: 8px;
    }
    .bar-title { font-size: 14px; }
    .bar-desc { font-size: 11px; }
    .online-dot { width: 6px; height: 6px; margin-right: 5px; }
    .bar-button { padding: 8px 15px; font-size: 13px; } /* Will need to be .button.bar-button */
    .bar-qrcode-image { width: 32px; height: 32px; }
    .bar-qrcode-text { font-size: 9px; }
}

@media (max-width: 480px) {
    body {
        font-size: calc(var(--mobile-base-font-size) - 1px); 
    }
    .container {
        padding: 10px;
    }
    .image-list {
        gap: 10px;
    }
    .bottom-bar {
        padding: 8px 10px; 
    }
    .bar-content {
        
    }
    .bar-desc .separator,
    .bar-desc .extended-text { 
        display: none;
    }
    .bar-desc .main-text { 
        
    }
    .bar-button { /* Will need to be .button.bar-button */
        padding: 8px 12px;
        font-size: 12px;
    }
    .bar-qrcode-cta {
        margin-left: 8px; padding-left: 8px;
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        min-width: 50px; 
    }
    .bar-qrcode-image { width: 28px; height: 28px; margin-right: 0; } 
    .bar-qrcode-text { display: block; font-size: 11px; line-height: 1.2; margin-top: 2px; text-align: center; } 

    .nav-points { display: none; } 

    #myModal .modal-content,
    #qrCodeZoomModal .modal-content {
        padding: 15px;
        max-width: calc(100% - 20px); 
    }
    .matching-icon { width: 60px; height: 60px; }
    .matching-icon i { font-size: 24px; }
    .matching-title { font-size: 16px; }
    .matching-subtitle { font-size: 13px; }
    #myModal .modal-content p { font-size: 14px; }
    #myModal .modal-content button#modalCloseButton { padding: 8px 20px; font-size: 14px; } /* Will be .button */
    .qrcode-container img { width: 180px; height: 180px; }
    .zoomed-qrcode { width: 100%; max-width: 220px; height: auto; }
    .zoomed-qrcode-text { font-size: 14px; }
}

/* Touch target and font readability specific adjustments */
/* These general button styles are now largely covered by the .button class above */
/* button, .button-like-element, input[type="button"], input[type="submit"] {
    min-height: var(--mobile-touch-target-size);
    min-width: var(--mobile-touch-target-size);
    padding: 10px 15px; 
    font-size: inherit; 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent; 
} */
/* For icon-only buttons, ensure the container itself is large enough */
.icon-button { /* This can be a modifier like .button--icon-only */
    width: var(--mobile-touch-target-size);
    height: var(--mobile-touch-target-size);
    padding: 0; /* Remove padding if icon fills it */
    /* Ensure it inherits/includes .button base styles if used as <button class="button icon-button"> */
}
.icon-button > i, .icon-button > svg { 
    font-size: calc(var(--mobile-touch-target-size) * 0.5); 
}

/* Ensure sufficient line height for readability */
p, li, span, div { 
    line-height: var(--mobile-line-height);
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3; 
    margin-bottom: 0.5em; 
}

/* Reduced motion preferences */
@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;
  }
  .icon-floatable { animation: none; }
  /* Disable other specific animations if they are too distracting */
}