﻿:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    height: 64px;
}
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
}
nav a:hover, nav a.active { color: var(--primary); }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.hero {
    text-align: center;
}
.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.query-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}
.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
#ipInput {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}
#ipInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
#ipInput::placeholder { color: #94a3b8; }
.btn {
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    font-family: inherit;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(0.98); }
.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}
.quick-actions a {
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.quick-actions-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.result-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none;
    animation: fadeIn 0.4s ease;
    margin-bottom: 2rem;
}
.result-card.show { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.result-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ip-version-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    line-height: 1.4;
    flex-shrink: 0;
}

/* 纯净度徽章 */
.purity-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--border);
    color: var(--text-secondary);
}
.purity-badge.purity-clean {
    background: #d1fae5;
    color: #065f46;
}
.purity-badge.purity-proxy {
    background: #fef3c7;
    color: #92400e;
}
.purity-badge.purity-datacenter {
    background: #ffedd5;
    color: #9a3412;
}
.purity-badge.purity-abuse {
    background: #fee2e2;
    color: #991b1b;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.info-item {
    padding: 1rem;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.info-item label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.info-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}
.info-item .value.empty {
    color: var(--text-secondary);
    font-weight: 400;
}
.value-raw {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.7;
    word-break: break-all;
}
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}
.loading.show { display: block; }
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-msg {
    color: #dc2626;
    text-align: center;
    padding: 1rem;
    display: none;
}
.error-msg.show { display: block; }

/* ===== SEO 内容区 ===== */
.seo-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}
.seo-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
}
.seo-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}
.seo-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}
.seo-section a {
    color: var(--primary);
    text-decoration: none;
}
.seo-section a:hover { text-decoration: underline; }
.seo-section ul {
    margin-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.seo-section li { margin-bottom: 0.5rem; }

/* ===== 最新文章 ===== */
.latest-posts {
    margin-bottom: 2rem;
}
.latest-posts h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
}
.post-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.post-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}
.post-item:hover .post-title {
    color: var(--primary);
}
.post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
}
.post-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 1rem;
}

/* ===== FAQ：details 语义化样式 ===== */
.faq-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}
.faq-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}
.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.faq-item summary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '▶';
    font-size: 0.75rem;
    color: var(--primary);
    transition: transform 0.2s;
    display: inline-block;
    flex-shrink: 0;
}
.faq-item[open] summary::before {
    transform: rotate(90deg);
}
.faq-item > div {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-item > div p {
    margin: 0;
}

footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}
.footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
/* ===== 友情链接 ===== */
.footer-friends {
    border-top: 1px solid var(--border);
    padding: 1rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.footer-friends .friends-title {
    font-weight: 600;
    color: var(--text);
    margin-right: 0.25rem;
}
.footer-friends a {
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.footer-friends a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}




@media (max-width: 960px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nav-container { padding: 0 1rem; }
    nav ul {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 0;
        box-shadow: var(--shadow-lg);
    }
    nav ul.show { display: flex; }
    nav li { border-bottom: 1px solid var(--border); }
    nav li:last-child { border-bottom: none; }
    nav a { display: block; padding: 0.875rem 0; }
    .menu-toggle { display: block; }
    .nav-container { gap: 0.75rem; }
    .lang-switcher { margin-left: auto; }
    .lang-current { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
    main { padding: 2rem 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .query-box { padding: 1.5rem; }
    .input-group { flex-direction: column; }
    .btn { width: 100%; }
    .info-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .seo-section { padding: 1.5rem; }
    .faq-section { padding: 1.5rem; }
    .popular-ip { padding: 1.5rem; }
    .post-item { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .post-meta { margin-left: 0; }
    .footer-top { flex-direction: column; gap: 1.5rem; }
    .footer-links { gap: 2rem; width: 100%; }
}

/* ===== 双卡片布局美化 ===== */

/* 卡片间距：两个相邻卡片之间留白 */
.result-card + .result-card {
    margin-top: 1.5rem;
}

/* 数据来源小字（每个字段值下方） */
.info-item .source {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-weight: 400;
}

.info-item .source[data-source="国内库"] {
    color: #059669;
    font-weight: 600;
}
.info-item .source[data-source="全球库"] {
    color: #2563eb;
    font-weight: 600;
}


/* ===== 常用地图经纬度链接 ===== */
.map-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.map-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.map-links-note {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.map-links-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
}
.map-links-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.map-links-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.map-link-btn {
    color: var(--primary);
    text-decoration: none;
}
.map-link-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== SEO 表格样式 ===== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}
.compare-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}
.compare-table td {
    color: var(--text-secondary);
}
.compare-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}
@media (max-width: 640px) {
    .compare-table { font-size: 0.8rem; }
    .compare-table th, .compare-table td { padding: 0.5rem; }
}

/* 本机IP展示区域 */
.my-ip-section {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}
.my-ip-info {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.my-ip-info strong {
    margin: 0 5px;
}
#btnQueryMyIP {
    display: inline-block;
    margin-top: 10px;
}

/* 表格样式 */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}
#infoTable {
    width: 100%;
    border-collapse: collapse;
}
#infoTable th, #infoTable td {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
#infoTable th {
    background: #f1f5f9;
    font-weight: 600;
}
#infoTable td:first-child {
    font-weight: 600;
    background: #f8fafc;
}

/* 基础表格样式（桌面端） */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}
#infoTable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
#infoTable thead {
    background: #f1f5f9;
}
#infoTable th, #infoTable td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.95rem;
}
#infoTable th {
    font-weight: 600;
    color: #334155;
}
#infoTable td:first-child {
    font-weight: 600;
    background: #f8fafc;
    color: #1e293b;
    width: 140px;
}

/* ========== 移动端卡片布局 ========== */
@media screen and (max-width: 768px) {
    /* 隐藏表头 */
    #infoTable thead {
        display: none;
    }

    /* 每一行变成卡片 */
    #infoTable tbody tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
        padding: 12px 15px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    /* 第一列作为卡片标题，占满宽 */
    #infoTable td:first-child {
        flex: 1 1 100%;
        font-weight: 700;
        font-size: 1rem;
        color: #0f172a;
        padding: 0 0 8px 0;
        border-bottom: 1px solid #e2e8f0;
        background: transparent;
    }

    /* 全球库值占满一行（单列页：英文/韩语） */
    #infoTable td:nth-child(2) {
        flex: 1 1 100%;
        padding: 8px 0 0 0;
        border: none;
        font-size: 0.9rem;
    }

    /* 双库页（简体/繁体，class=domestic）：全球库与国内库各占一半 */
    #infoTable.domestic td:nth-child(2),
    #infoTable.domestic td:nth-child(3) {
        flex: 1 1 50%;
        padding: 8px 0 0 0;
        border: none;
        font-size: 0.9rem;
    }

    /* 添加库来源标签（多语言文案由 JS 写入 data-label） */
    #infoTable td:nth-child(2)::before,
    #infoTable.domestic td:nth-child(3)::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        color: #64748b;
        margin-bottom: 2px;
    }
}

/* 折叠式SEO内容区域 */
.seo-details {
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fafbfc;
}
.seo-details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    user-select: none;
}
.seo-details summary::-webkit-details-marker {
    display: none;
}
.seo-details summary h2 {
    display: inline;
    font-size: 1.25rem;
    margin: 0;
    flex: 1;
}
/* 自定义右侧箭头 */
.seo-details summary::after {
    content: '▸';
    font-size: 1.2rem;
    color: #64748b;
    margin-left: 12px;
    transition: transform 0.2s;
}
.seo-details[open] summary::after {
    content: '▾';
}
/* 展开动画 */
.seo-details[open] > *:not(summary) {
    animation: seoFade 0.3s ease;
}
@keyframes seoFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Native Banner 广告容器（4:1 比例，醒目提示） ===== */
.native-ad-container {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem 0.5rem 2rem 0.5rem;  /* 上下留空给文字条，稍微加大 */
    background: #fafbfc;
}

/* ===== 上边条：醒目“广告”提示（橙底深灰字） ===== */
.native-ad-container::before {
    content: "广告 · 请谨慎辨别";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #fef3c7;  /* 浅橙色背景，醒目但不刺眼 */
    color: #92400e;       /* 深琥珀色文字，清晰 */
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.3rem 0;
    border-radius: 7px 7px 0 0;
    user-select: none;
}

/* ===== 下边条：温和提醒（灰色，低调） ===== */
.native-ad-container::after {
    content: "请理性查看，内容由广告主提供";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0.2rem 0;
    border-radius: 0 0 7px 7px;
    user-select: none;
}

/* 内联广告内容自适应 */
.native-ad-container iframe,
.native-ad-container img {
    max-width: 100%;
    height: auto;
    border: none;
    display: block;
    margin: 0 auto;
}

/* 移动端微调 */
@media (max-width: 640px) {
    .native-ad-container {
        padding: 1.8rem 0.25rem 1.8rem 0.25rem;
    }
    .native-ad-container::before {
        font-size: 0.6rem;
        padding: 0.25rem 0;
        letter-spacing: 1px;
    }
    .native-ad-container::after {
        font-size: 0.5rem;
        padding: 0.15rem 0;
    }
}
/* ===== 顶部语言切换器 ===== */
.lang-switcher {
    position: relative;
    margin-left: auto;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}
.lang-current:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.lang-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}
.lang-switcher.show .lang-arrow { transform: rotate(180deg); }
.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 175px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem;
    list-style: none;
    z-index: 200;
}
.lang-menu.show { display: block; }
.lang-menu a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.lang-menu a:hover { background: var(--bg); color: var(--primary); }
.lang-menu a.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-weight: 600;
}

/* ===== 语言提示条（软提示，不强制跳转） ===== */
.lang-banner {
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    z-index: 300;
}
.lang-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.lang-banner-actions {
    display: inline-flex;
    gap: 0.5rem;
}
.lang-banner .btn {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    line-height: 1.5;
}
.lang-banner-switch {
    background: #fff;
    color: var(--primary);
}
.lang-banner-switch:hover {
    background: #e2e8f0;
}
.lang-banner-dismiss {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.lang-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 640px) {
    .lang-banner { font-size: 0.8rem; }
}
