:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-bg: rgba(25, 25, 35, 0.85);
    --light-bg: rgba(255, 255, 255, 0.1);
    --border-radius: 16px;
    --blur-effect: blur(15px);
    --transition-speed: 0.4s;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: url('https://bing.wxhfywy.cn/daily.webp') no-repeat center center fixed;
    background-size: cover;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    z-index: 10;
    animation: fadeIn 1.2s ease-out;
}

.logo {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    perspective: 1000px;
}

.logo-icon-wrapper {
    position: relative;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.logo-icon {
    font-size: 3.2rem;
    color: #fff;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #e0e0e0, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: logoLine 3s ease-in-out infinite 1s;
}

@keyframes logoLine {
    0%, 100% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeIn 1.5s ease-out;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-container {
    background: var(--dark-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    backdrop-filter: var(--blur-effect);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: all var(--transition-speed);
    animation: containerSlide 1s ease-out;
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    transform: rotate(30deg);
    z-index: -1;
}

@keyframes containerSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.search-title {
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-row {
    display: flex;
    gap: 15px;
}

.search-select {
    flex: 0 0 190px;
    position: relative;
}

select {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 18px center;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

select option {
    background: #2d3748;
    color: white;
    padding: 10px;
}

.search-input-container {
    position: relative;
    flex: 1;
}

input[type="text"] {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    color: white;
    font-size: 1.05rem;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px var(--primary-color), inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-size: 1.1rem;
}

.clear-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    display: none;
    transition: all var(--transition-speed);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.clear-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.search-btn {
    padding: 16px 32px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

.search-btn:active {
    transform: translateY(0);
}

.quick-searches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.quick-search {
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-search:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
    
    .search-select {
        flex: 1;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .logo-icon {
        font-size: 2.8rem;
    }
    
    .search-container {
        padding: 25px;
    }
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}


select {
    transition: all 0.3s ease, transform 0.2s ease;
}

select:focus {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(108, 92, 231, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

