body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: .3s;
}

:root {
    --bg: #f5f5f7;
    --text: #111;
    --card: #fff;
    --shadow: rgba(0,0,0,0.08);
}

body.dark {
    --bg: #1e1e1e;
    --text: #f5f5f7;
    --card: #2a2a2a;
    --shadow: rgba(0,0,0,0.4);
}

.container {
    max-width: 680px;
    margin: 40px auto;
    padding: 12px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px var(--shadow);
}

.search-card {
    display: flex;
    align-items: center;
    gap: 8px;
}

.engine-icon {
    width: 24px;
}

input, select, button {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #ccc;
    outline: none;
}

button {
    cursor: pointer;
    background: #007aff;
    color: #fff;
    border: none;
}

/* 夜间切换按钮 */
.theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 10px;
    font-size: 20px;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 8px 20px var(--shadow);
    border: none;
}

/* 广告框 */
.ad-box {
    background: #ccc;
    color: #000;
    font-size: 18px;
    text-align: center;
    padding: 20px 0;
}

.ad-left, .ad-right {
    position: fixed;
    top: 120px;
    width: 120px;
    height: 300px;
}

.ad-left { left: 10px; }
.ad-right { right: 10px; }

/* 手机端广告到底部 */
.ad-mobile {
    display: none;
}

/* 手机适配 */
@media (max-width: 768px) {
    .ad-left, .ad-right {
        display: none;
    }
    .ad-mobile {
        display: block;
        width: 100%;
        position: fixed;
        bottom: 0;
    }
    .container {
        margin-bottom: 80px;
    }
}
