:root {
    --bg-light: #ffffff;
    --google-blue: #1a0dab;
    --text-dark: #202124;
    --text-gray: #70757a;
    --text-snippet: #4d5156;
    --border-light: #dadce0;
    --google-search-border: #dfe1e5;
    /* 像素级对齐常量 - 强制固定回滚至 180px */
    --serp-left-margin: 180px;
    --serp-content-width: 652px;
}

* { box-sizing: border-box; }

body {
    background-color: #fff !important;
    color: var(--text-dark);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

header {
    background: #fff !important;
    border-bottom: 1px solid #ebebeb !important;
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100% !important;
}

.header-top {
    display: grid !important;
    grid-template-columns: 160px 652px 1fr !important;
    align-items: center !important;
    height: 80px !important;
    width: 100% !important;
    padding: 0 20px !important;
}

.logo-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.search-section {
    flex: 1 !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
}

.logo {
    display: flex !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    letter-spacing: -1px !important;
}
.logo span:nth-child(1) { color: #4285f4 !important; }
.logo span:nth-child(2) { color: #ea4335 !important; }
.logo span:nth-child(3) { color: #fbbc05 !important; }
.logo span:nth-child(4) { color: #4285f4 !important; }
.logo span:nth-child(5) { color: #34a853 !important; }
.logo span:nth-child(6) { color: #ea4335 !important; }

.search-bar-wrap {
    width: 100% !important;
    max-width: 652px !important;
    height: 44px !important;
    background: #fff !important;
    border: 1px solid #dfe1e5 !important;
    border-radius: 24px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
}

.search-bar-wrap:hover, .search-bar-wrap:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,.28) !important;
    border-color: rgba(223,225,229,0) !important;
}

.search-bar-wrap input {
    border: none !important;
    outline: none !important;
    flex: 1 !important;
    height: 100% !important;
    background: transparent !important;
    font-size: 16px !important;
    color: #202124 !important;
}

.user-actions {
    margin-left: auto !important;
    padding-right: 20px !important;
    display: flex !important;
    align-items: center !important;
}

.btn-signin {
    background-color: #1a73e8 !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.btn-signin:hover {
    background-color: #1b66c9 !important;
    box-shadow: 0 1px 3px 1px rgba(60,64,67,.15), 0 1px 2px 0 rgba(60,64,67,.30) !important;
}

.header-nav {
    padding-left: var(--serp-left-margin) !important;
    height: 48px !important;
    border-bottom: 1px solid #ebebeb !important;
}

.nav-links {
    display: flex !important;
    gap: 24px !important;
    height: 100% !important;
}

.nav-links a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #5f6368 !important;
    font-size: 14px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    letter-spacing: 0.2px !important;
}

.nav-links a:hover, .nav-links a.active {
    color: #1a73e8 !important;
    border-bottom-color: #1a73e8 !important;
}

.main-wrapper {
    margin-left: var(--serp-left-margin) !important;
    margin-right: auto !important;
    margin-top: 30px;
    max-width: 1200px;
    text-align: left !important;
}

.search-result-item {
    margin-bottom: 30px;
    text-decoration: none;
    display: block;
}

.result-source {
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
}

.result-title {
    font-size: 20px;
    color: var(--google-blue) !important;
    line-height: normal;
    margin: 4px 0;
    font-weight: 400;
}

.result-snippet {
    font-size: 14px;
    color: var(--text-snippet);
    line-height: 1.58;
}

/* Professional Pagination Styling */
.pagination-wrapper {
    margin: 40px var(--serp-left-margin) 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.pagination-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.brand-blue { color: #4285f4; }
.brand-purple { color: #5e17eb; }

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pagination-numbers a, .pagination-numbers span {
    text-decoration: none;
    font-size: 14px;
    color: #1a0dab;
    padding: 2px 4px;
}

.pagination-numbers span {
    color: #202124;
    font-weight: 700;
}

.pagination-numbers a:hover {
    text-decoration: underline;
}

.pg-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4285f4;
    font-size: 14px;
    text-decoration: none;
}

.pg-nav:hover { text-decoration: underline; }

.search-highlight {
    font-style: normal;
    font-weight: 700;
    color: #d93025; /* Google-style red for highlights or just bold */
    background-color: #fef7e0; /* Subtle yellow background */
    padding: 0 2px;
    border-radius: 2px;
}

/* 文章详情净化 */
.article-detail {
    width: 100% !important;
    text-align: left !important;
}

.article-body {
    width: 100% !important;
    max-width: var(--serp-content-width) !important;
    font-size: 16px;
    line-height: 1.8;
}

.article-body * {
    text-align: left !important;
    background: transparent !important;
    max-width: 100% !important;
}

footer {
    margin-left: var(--serp-left-margin) !important;
    padding: 60px 0;
    color: var(--text-gray);
    font-size: 12px;
}
