/* === 全局重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.google-bg {
    background: #fff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    min-height: 100vh;
}

/* === 首页容器（谷歌风格） === */
.google-container {
    max-width: 580px;
    margin: 15vh auto 0;
    text-align: center;
    padding: 20px;
}

.logo {
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.search-box {
    display: flex;
    border: 1px solid #dfe1e5;
    border-radius: 48px;
    padding: 6px 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 1rem;
    background: transparent;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 0 20px;
    font-weight: 500;
    color: #1a73e8;
    cursor: pointer;
}

/* === 右上角按钮组（固定位置 + 美化） === */
.top-right-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 9999;
    background: transparent;
}

.top-right-buttons a {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: inline-block;
    font-family: inherit;
}

.top-right-buttons .btn-outline {
    border: 1px solid #dadce0;
    color: #1a73e8;
}

.top-right-buttons .btn-outline:hover {
    background: #f1f3f4;
    border-color: #1a73e8;
    transform: translateY(-1px);
}

.top-right-buttons .btn-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-right-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #0f2b4f, #1e3c72);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-right-buttons {
        top: 12px;
        right: 12px;
        gap: 8px;
    }
    .top-right-buttons a {
        padding: 6px 14px;
        font-size: 12px;
    }
    .google-container {
        margin-top: 10vh;
    }
}

/* === 搜索结果页样式 === */
.result-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeef5;
    flex-wrap: wrap;
}

.logo-small {
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none;
    color: #1e3c72;
    margin-right: 30px;
}

.result-search {
    display: flex;
    flex: 1;
    max-width: 500px;
    border: 1px solid #dadce0;
    border-radius: 32px;
    padding: 5px 10px;
}

.result-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
}

.result-search button {
    background: transparent;
    border: none;
    color: #1a73e8;
}

.result-section {
    margin-bottom: 30px;
}

.result-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item a {
    text-decoration: none;
}

.result-item h4 {
    font-size: 1.2rem;
    color: #1a0dab;
    margin-bottom: 4px;
}

.result-item .url {
    font-size: 0.85rem;
    color: #4d5156;
}

@media (max-width: 768px) {
    .result-header {
        flex-direction: column;
        align-items: stretch;
    }
    .result-search {
        max-width: 100%;
        margin-top: 10px;
    }
}