:root {
    --primary-color: #5b8def;
    --primary-light: #7ba5ff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-glass-strong: rgba(255, 255, 255, 0.88);
    --border-light: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.14);
    --shadow-hover: 0 14px 38px rgba(91, 141, 239, 0.24);
    --radius-pill: 999px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-smooth: 0.28s ease;
    --transition-fast: 0.18s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 28px 24px 120px;
    color: #ffffff;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #d8e0f0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
    position: relative;
}

.page-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero {
    display: flex;
    justify-content: center;
    margin-top: clamp(4px, 2vw, 20px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 36px);
    padding: 0;
}

.mascot-logo {
    width: min(138px, 20vw);
    min-width: 84px;
    height: auto;
}

.sou-what-logo {
    width: min(320px, 42vw);
    min-width: 156px;
    height: auto;
}

.hero-main {
    display: flex;
    justify-content: center;
    margin-top: clamp(28px, 7vw, 72px);
}

.search-container {
    width: 100%;
    max-width: 880px;
    display: flex;
    align-items: center;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 10px;
    position: relative;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 40px rgba(91, 141, 239, 0.2);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-engine-selector {
    position: relative;
    margin-right: 10px;
}

.current-engine {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    transition: all var(--transition-smooth);
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.current-engine:hover,
.current-engine:focus-visible {
    background: #ffffff;
    transform: scale(1.08) rotate(10deg);
    box-shadow: 0 4px 12px rgba(91, 141, 239, 0.2);
    outline: none;
}

.engine-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 132px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 100;
    animation: slideDown 0.2s ease;
}

.engine-dropdown.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.engine-option {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-main);
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.engine-option:hover {
    background: #f5f6fa;
    color: var(--primary-color);
    transform: translateX(4px);
}

.engine-option.active {
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.1), rgba(123, 165, 255, 0.1));
    color: var(--primary-color);
    font-weight: 600;
}

#search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
    padding: 0 10px;
}

#search-input::placeholder {
    color: #94a3b8;
}

#search-button {
    height: 40px;
    padding: 0 24px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 17px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

#search-button::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transition: left 0.5s;
}

#search-button:hover::before {
    left: 100%;
}

#search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(91, 141, 239, 0.3);
}

#search-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 141, 239, 0.25);
}

.suggestions-box {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    display: none;
    z-index: 90;
    overflow: hidden;
}

.suggestions-box.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(91, 141, 239, 0.08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.info-fab-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.image-info-trigger {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    font-size: 22px;
}

.image-info-trigger:hover,
.image-info-trigger.active {
    color: #ffffff;
    transform: scale(1.15);
}

.image-info-trigger:active {
    transform: scale(0.95);
}

.image-info-panel {
    width: min(320px, calc(100vw - 110px));
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: none;
    animation: slidePanelIn 0.2s ease;
}

.image-info-panel.active {
    display: block;
}

@keyframes slidePanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.image-info-label {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.image-title {
    max-width: 150px;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.image-info-value {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero-main {
        margin-top: 28px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 16px 100px;
    }

    .logo-container {
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .mascot-logo {
        width: min(112px, 30vw);
    }

    .sou-what-logo {
        width: min(244px, 62vw);
    }

    .search-container {
        padding-right: 10px;
    }

    #search-button {
        padding: 0 14px;
        font-size: 15px;
    }

    .info-fab-wrap {
        right: 12px;
        bottom: 20px;
        gap: 10px;
    }

    .image-info-panel {
        width: min(280px, calc(100vw - 78px));
    }
}

@media (max-width: 540px) {
    .search-container {
        padding: 10px;
        gap: 10px;
        flex-wrap: wrap;
        border-radius: 28px;
    }

    .search-engine-selector {
        margin-right: 0;
    }

    #search-input {
        width: calc(100% - 60px);
        min-width: 0;
        padding: 0;
    }

    #search-button {
        width: 100%;
        height: 44px;
        border-radius: 18px;
    }

    .suggestions-box {
        top: calc(100% + 10px);
    }
}
