/* ===== Home Page Styles - RRE.com Inspired ===== */

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 60px;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Microsoft YaHei UI", "Source Han Sans CN", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
}

.hero-title-line:first-child {
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-title-line:last-child {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin: 0 0 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.hero-search-btn:hover {
    color: var(--accent-cyan);
}

.hero-search-btn svg {
    width: 20px;
    height: 20px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.section-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--accent-teal);
}

/* Categories Section */
.categories-section {
    padding: 80px 24px;
    background-color: var(--bg-card);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    display: block;
    padding: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
}

.category-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.category-card-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.category-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.category-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.category-card-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Featured Section */
.featured-section {
    padding: 80px 24px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.featured-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.featured-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.featured-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: 80px 24px;
    background-color: var(--bg-body);
}

.stats-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.stat-bar-label {
    width: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    flex-shrink: 0;
}

.stat-bar-track {
    flex: 1 1 auto;
    height: 28px;
    background-color: var(--bg-input);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-width: 0;
    width: auto;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 14px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: barShimmer 2.5s ease-in-out infinite;
}

@keyframes barShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-bar-count {
    display: none !important;
}

.stat-bar-fill {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
}

#stats-chart .stat-bar-fill::before,
#stats-chart .stat-bar-fill::after {
    content: none !important;
}

/* Showcase Section */
.showcase-section {
    padding: 80px 24px;
}

.showcase-3d-scene {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-3d-track {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-3d-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.showcase-section .showcase-3d-card {
    width: 160px;
    padding: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform-style: flat;
    cursor: default;
}

.showcase-section .showcase-3d-card::before {
    display: none;
}

.showcase-section .showcase-3d-card:hover {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: none;
}

.showcase-3d-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.showcase-3d-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.showcase-3d-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.showcase-3d-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #6366F1, #EC4899);
    border-radius: 50%;
    margin-top: 20px;
    box-shadow: 0 0 0 4px var(--bg-card),
                0 0 15px rgba(99, 102, 241, 0.4);
    position: relative;
    z-index: 5;
}

.showcase-3d-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(-200px);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(139, 92, 246, 0.08) 40%, 
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

/* Header - Home Page */
[data-page="home"] .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-header) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    height: 72px;
    padding: 0 24px;
    min-width: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo img,
.nav-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-search-btn,
.nav-fav-btn,
.nav-theme-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-search-btn:hover,
.nav-fav-btn:hover,
.nav-theme-btn:hover {
    color: var(--text-primary);
}

.nav-search-btn svg,
.nav-fav-btn svg,
.nav-theme-btn svg {
    width: 20px;
    height: 20px;
}

.fav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    background-color: var(--accent-danger);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Footer */
.footer {
    padding: 48px 24px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.footer-brand svg {
    width: 32px;
    height: 32px;
}

.footer-brand-text {
    font-size: 18px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* Intro Animation */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-overlay.hide {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.intro-content {
    text-align: center;
}

.intro-logo {
    margin-bottom: 32px;
}

.intro-logo img,
.intro-logo svg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    animation: logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.35));
}

.logo-firefly-1 {
    animation: firefly-blink 2s ease-in-out infinite;
    animation-delay: 0s;
}

.logo-firefly-2 {
    animation: firefly-blink 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.logo-firefly-3 {
    animation: firefly-blink 1.8s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes firefly-blink {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.intro-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 64px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.intro-title-char {
    opacity: 0;
    animation: intro-char-in 0.6s ease forwards;
    -webkit-text-fill-color: initial;
}

.intro-title .intro-title-char:first-child {
    animation-delay: 0.3s;
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5A87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
    background-clip: text;
}

.intro-title .intro-title-char:last-child {
    animation-delay: 0.6s;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
    background-clip: text;
}

@keyframes intro-char-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 40px;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: intro-text-in 0.6s ease 1s forwards;
}

@keyframes intro-text-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.intro-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: intro-text-in 0.6s ease 1s forwards;
}

.intro-progress-track {
    position: relative;
    width: 240px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.intro-progress-fill {
    position: absolute;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    border-radius: 2px;
    will-change: width;
}

.intro-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    border-radius: 2px;
    animation: progressGlow 1.5s ease-in-out infinite;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
}

@keyframes progressGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.intro-progress-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Modals */
.search-modal,
.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-modal.active,
.search-modal.open,
.favorites-modal.active,
.favorites-modal.open {
    display: flex;
}

.search-modal-overlay,
.favorites-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal-content,
.favorites-modal-content {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(40px) scale(0.92);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.search-modal.animate-in .search-modal-overlay,
.favorites-modal.animate-in .favorites-modal-overlay {
    opacity: 1;
}

.search-modal.animate-in .search-modal-content,
.favorites-modal.animate-in .favorites-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.search-modal.closing .search-modal-overlay,
.favorites-modal.closing .favorites-modal-overlay {
    opacity: 0;
}

.search-modal.closing .search-modal-content,
.favorites-modal.closing .favorites-modal-content {
    transform: translateY(-20px) scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.search-modal-header,
.favorites-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.search-modal-title,
.favorites-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.search-modal-close,
.favorites-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.search-modal-close:hover,
.favorites-modal-close:hover {
    color: var(--text-primary);
}

.search-modal-close svg,
.favorites-modal-close svg {
    width: 20px;
    height: 20px;
}

.search-modal-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    background-color: var(--bg-input);
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
}

.search-modal-input::placeholder {
    color: var(--text-muted);
}

.search-hint-area {
    padding: 20px 24px 0;
}

.search-hint-section {
    margin-bottom: 20px;
}

.search-hint-section:last-child {
    margin-bottom: 0;
}

.search-hint-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.search-hint-title-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.search-hint-clear {
    background: none;
    border: none;
    font-size: 12px;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-hint-clear:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

.search-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.search-tag-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366F1;
    transform: translateY(-1px);
}

.search-tag-item .tag-icon {
    display: flex;
    opacity: 0.6;
}

.search-tag-item.hot .tag-icon {
    color: #F97316;
    opacity: 1;
}

.search-tag-item.history .tag-icon {
    color: #94A3B8;
}

.search-tag-item .tag-remove {
    background: none;
    border: none;
    padding: 0 0 0 2px;
    margin: 0;
    margin-left: 2px;
    cursor: pointer;
    color: #94A3B8;
    opacity: 0.5;
    display: flex;
    align-items: center;
    transition: opacity 0.2s, color 0.2s;
}

.search-tag-item:hover .tag-remove {
    opacity: 1;
}

.search-tag-item .tag-remove:hover {
    color: #EF4444;
}

.search-filter {
    display: none;
    padding: 12px 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.search-filter.active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-filter-item {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.search-filter-item:hover {
    background: var(--bg-input);
}

.search-filter-item.active {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.search-filter-item-count {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    background: rgba(148, 163, 184, 0.2);
    font-weight: 600;
}

.search-filter-item.active .search-filter-item-count {
    background: rgba(255, 255, 255, 0.2);
}

.search-results {
    padding: 8px 0;
}

.search-filter {
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    display: none;
}

.search-filter.active {
    display: block;
}

.search-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.search-filter-row-secondary {
    padding-top: 0;
    padding-bottom: 12px;
}

.search-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid var(--border-color);
    margin-right: 8px;
}

.search-filter-group:last-child {
    border-right: none;
    margin-right: 0;
}

.search-filter-group-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.search-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.search-filter-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.search-filter-item.active {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-color: transparent;
    color: #fff;
}

.search-filter-item-count {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 600;
}

.search-filter-item.active .search-filter-item-count {
    opacity: 1;
}

.result-status-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.result-status-badge.direct {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.result-status-badge.proxy {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.result-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
}

.resource-preview {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.resource-preview.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.resource-preview-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.resource-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.resource-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.resource-preview-url {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.resource-preview-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.resource-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.resource-preview-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    color: #6366F1;
}

.resource-preview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.resource-preview-info-item {
    font-size: 12px;
}

.resource-preview-info-label {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.resource-preview-info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.search-modal-results,
.favorites-list,
.search-results {
    padding: 16px 24px 24px;
    max-height: 50vh;
    overflow-y: auto;
}

.search-empty-state {
    text-align: center;
    padding: 32px 24px;
}

.search-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.search-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.search-empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.search-empty-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.search-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.search-empty-btn.secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.section-label.design { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #D97706; }
.section-label.job { background: linear-gradient(135deg, #F0FDFA, #CCFBF1); color: #0D9488; }

/* ===== 涓婚閫夋嫨闈㈡澘 ===== */
.nav-theme-wrap {
    position: relative;
    display: inline-flex;
}

.theme-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.2s;
}

.theme-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.theme-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.theme-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.theme-panel-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 6px;
    display: flex;
    transition: all 0.2s;
}

.theme-panel-close:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 4px;
}

.theme-options::-webkit-scrollbar {
    width: 5px;
}

.theme-options::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: 999px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
    font-family: inherit;
}

.theme-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateX(2px);
}

.theme-option.active {
    border-color: var(--bg-button);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg-button) 12%, transparent);
}

.theme-preview {
    width: 52px;
    height: 36px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 4px;
    gap: 3px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
}

.theme-option.active .theme-preview {
    border-color: color-mix(in srgb, var(--bg-button) 40%, var(--border-color));
}

.preview-swatch {
    border-radius: 3px;
    width: 100%;
    height: 100%;
}

.auto-preview {
    position: relative;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.auto-half {
    width: 100%;
    height: 100%;
}

.auto-left {
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
}

.auto-right {
    background: #0F172A;
}

.theme-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.theme-option-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-option-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.theme-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.theme-option.active .theme-check {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 9. 灏忚€岀編鐨勪綋楠岀粏鑺?===== */

/* 9.2 卡片热度阴影 */
.resource-card,
.featured-card {
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.resource-card[data-heat="0"] { box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06)); }
.resource-card[data-heat="1"] { box-shadow: 0 3px 10px rgba(var(--accent-rgb, 99,102,241), 0.08), 0 2px 6px rgba(0,0,0,0.05); }
.resource-card[data-heat="2"] { box-shadow: 0 5px 14px rgba(var(--accent-rgb, 99,102,241), 0.12), 0 3px 8px rgba(0,0,0,0.06); }
.resource-card[data-heat="3"] { box-shadow: 0 8px 22px rgba(var(--accent-rgb, 99,102,241), 0.16), 0 4px 10px rgba(0,0,0,0.07); }
.resource-card[data-heat="4"] { box-shadow: 0 12px 30px rgba(var(--accent-rgb, 99,102,241), 0.22), 0 6px 14px rgba(0,0,0,0.08); }
.resource-card[data-heat="5"] {
    box-shadow: 0 18px 42px rgba(var(--accent-rgb, 99,102,241), 0.30), 0 10px 22px rgba(0,0,0,0.1);
    border-color: rgba(var(--accent-rgb, 99,102,241), 0.4) !important;
}

.featured-card[data-heat="0"] { box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06)); }
.featured-card[data-heat="1"] { box-shadow: 0 4px 14px rgba(var(--accent-rgb, 99,102,241), 0.08); }
.featured-card[data-heat="2"] { box-shadow: 0 7px 20px rgba(var(--accent-rgb, 99,102,241), 0.12); }
.featured-card[data-heat="3"] { box-shadow: 0 10px 26px rgba(var(--accent-rgb, 99,102,241), 0.17); }
.featured-card[data-heat="4"] { box-shadow: 0 14px 34px rgba(var(--accent-rgb, 99,102,241), 0.23); }
.featured-card[data-heat="5"] {
    box-shadow: 0 22px 48px rgba(var(--accent-rgb, 99,102,241), 0.32);
    border-color: rgba(var(--accent-rgb, 99,102,241), 0.45) !important;
}

.heat-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #CBD5E1;
    box-shadow: 0 0 0 0 transparent;
}

.heat-dot.lvl-1 { background: #93C5FD; }
.heat-dot.lvl-2 { background: #60A5FA; }
.heat-dot.lvl-3 { background: #818CF8; box-shadow: 0 0 8px rgba(129,140,248,0.6); }
.heat-dot.lvl-4 { background: #A78BFA; box-shadow: 0 0 10px rgba(167,139,250,0.75); }
.heat-dot.lvl-5 { background: linear-gradient(135deg, #F97316, #EF4444); box-shadow: 0 0 14px rgba(249,115,22,0.85); }

/* 9.3 鎼滅储绌虹粨鏋滃紩瀵?*/
.search-empty {
    text-align: center;
    padding: 60px 28px;
    color: var(--text-secondary);
}
.search-empty-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
    display: grid;
    place-items: center;
    color: var(--accent-color, #6366F1);
    border: 1px dashed var(--border-color);
}
.search-empty-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.search-empty-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.65;
}
.search-empty-suggest {
    max-width: 520px;
    margin: 0 auto 26px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-align: left;
}
.search-empty-suggest-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.empty-btn:hover {
    border-color: var(--accent-color, #6366F1);
    color: var(--accent-color, #6366F1);
    transform: translateY(-1px);
}
.empty-btn.primary {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.empty-btn.primary:hover { color: #fff; filter: brightness(1.05); }

/* 9.4 3D灞曠ず鎻愮ず */
.showcase-3d-hint {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.showcase-3d-hint-icon { display: inline-grid; place-items: center; }

@keyframes showcase-hint-pulse {
    0%,100% { opacity: 0.95; }
    50% { opacity: 0.75; }
}

.showcase-3d-hint { animation: showcase-hint-pulse 2.2s ease-in-out infinite; }

/* 9.5 杞绘彁绀?Toast */
.toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color, #6366F1);
    border-radius: 12px;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
    min-width: 240px;
    max-width: 380px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    backdrop-filter: blur(8px);
}

.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }

.toast.success { border-left-color: #10B981; }
.toast.success .toast-icon { color: #10B981; background: rgba(16,185,129,0.12); }
.toast.error   { border-left-color: #EF4444; }
.toast.error .toast-icon { color: #EF4444; background: rgba(239,68,68,0.12); }
.toast.info    { border-left-color: #6366F1; }
.toast.info .toast-icon { color: #6366F1; background: rgba(99,102,241,0.12); }
.toast.warn    { border-left-color: #F59E0B; }
.toast.warn .toast-icon { color: #F59E0B; background: rgba(245,158,11,0.12); }

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.toast.show .toast-icon { animation: toast-bounce 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes toast-bounce {
    0% { transform: scale(0.4); }
    60% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.toast-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 2px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.toast-close:hover { opacity: 1; color: var(--text-primary); }

@media (max-width: 640px) {
    .toast-container { bottom: 20px; right: 16px; left: 16px; }
    .toast { min-width: 0; max-width: 100%; }
}

/* 9.6 鍒嗙被椤佃繃娓?- 娣″叆+鏍囬婊戝叆 */
.page-enter-active { opacity: 0; transform: translateY(12px); }
.page-enter-active .section-title-rise { opacity: 0; transform: translateX(-18px); }
.page-enter-done {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.page-enter-done .section-title-rise {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease 0.15s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.section-title-rise { display: inline-block; }

/* 9.7 鏁版嵁绠＄悊鍖?*/
.data-manager {
    margin-top: 36px;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.data-manager-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.data-manager-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    color: var(--accent-color, #6366F1);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.data-manager-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.data-manager-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.data-manager-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.data-stat {
    padding: 14px 16px;
    background: var(--bg-body);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.data-stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.data-stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); }

.data-manager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.dm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.dm-btn:hover {
    border-color: var(--accent-color, #6366F1);
    color: var(--accent-color, #6366F1);
    transform: translateY(-1px);
}
.dm-btn.primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.dm-btn.primary:hover { color: #fff; filter: brightness(1.05); }
.dm-btn.danger {
    background: linear-gradient(135deg, #F97316, #EF4444);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.dm-btn.danger:hover { color: #fff; filter: brightness(1.05); }

.dm-import-input { display: none; }

/* 澶囦唤瀵煎嚭鎴愬姛 toast 鐢ㄧ殑鏍峰紡澶嶇敤 toast */

/* ===== 缂哄け鏍峰紡琛ュ厖 ===== */

/* 鍒嗙被椤电寮€杩囨浮 */
.page-leaving {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
    transition: opacity 0.18s ease, transform 0.18s ease !important;
}

/* 鍗＄墖鐑害鎸囩ず鍣?*/
.heat-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    vertical-align: middle;
}
.heat-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: transform 0.2s ease;
}
.heat-indicator:hover .heat-dot {
    transform: scale(1.2);
}

/* 鎼滅储寤鸿鏍囩 */
.suggest-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.suggest-tag:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border-color: var(--accent-color, #6366F1);
    color: var(--accent-color, #6366F1);
    transform: translateY(-1px);
}

/* 绌虹粨鏋滃缓璁爣绛惧鍣?*/
.search-empty-suggest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* ===== Hero Animation Upgrade ===== */
.hero-animated .hero-title-line {
    display: block;
    overflow: visible;
}
.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.62s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(var(--hero-i, 0) * 55ms);
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    -webkit-text-fill-color: inherit;
    letter-spacing: inherit;
}
.hero-in .hero-char {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.hero-animated.hero-breath .hero-title-line:last-child {
    background-size: 240% 100% !important;
    animation: hero-title-shimmer 9s ease-in-out infinite;
}
.hero-animated.hero-breath {
    animation: hero-breath-float 8s ease-in-out infinite;
    transform-origin: center top;
}
.hero-description,
.hero-search {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.85s;
}
.hero-section.hero-in .hero-description,
.hero-section.hero-in .hero-search {
    opacity: 1;
    transform: translateY(0);
}
.hero-section.hero-in .hero-search {
    transition-delay: 1.05s;
}
@keyframes hero-title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes hero-breath-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.hero-search-input:focus {
    animation: hero-input-pulse 3.2s ease-in-out infinite;
}
@keyframes hero-input-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1), 0 0 0 0 rgba(34, 211, 238, 0.15);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.14), 0 0 0 8px rgba(34, 211, 238, 0.03);
    }
}
