/* ===== Hero 区域 ===== */
#intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    background: linear-gradient(180deg, #fefcf5 0%, #fafafa 100%);
}

.intro-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #d4a017, #f5d76e, #d4a017);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldFlow 4s ease infinite;
    margin-bottom: 16px;
}

.intro-content .subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 400;
}

.intro-content p {
    font-size: 1rem;
    color: #999;
    max-width: 500px;
    margin: 0 auto;
}

.intro-content .tagline {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #bbb;
}

/* ===== 搜索栏 ===== */
.search-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #e8e0d0;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #d4a017;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.12);
}

/* ===== 自定义搜索引擎选择器 ===== */
.search-engine-select {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 4px 6px 12px;
    cursor: pointer;
    user-select: none;
}

.engine-current {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 6px;
}

.engine-current::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #d4a017;
    transition: transform 0.25s ease;
}

.search-engine-select.open .engine-current::after {
    transform: rotate(180deg);
}

.engine-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.engine-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 8px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.search-engine-select.open .engine-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.engine-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.engine-option:hover {
    background: rgba(212, 160, 23, 0.08);
}

.engine-option.selected {
    background: rgba(212, 160, 23, 0.12);
}

.engine-option .engine-icon {
    width: 16px;
    height: 16px;
}

.engine-label {
    font-size: 0.78rem;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.search-input {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: #ccc;
}

.search-btn {
    padding: 10px 24px;
    margin: 4px;
    border: none;
    background: linear-gradient(135deg, #d4a017, #f5d76e);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #c4900e, #e8c85a);
    box-shadow: 0 2px 10px rgba(212, 160, 23, 0.3);
}

.search-btn:active {
    transform: scale(0.97);
}
