/* ============================================================
   GEO SaaS 企业官网 — 全局基础样式（不可变）
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 滚动条（使用模板变量） */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Reveal 动画 */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.reveal:nth-child(6) {
    transition-delay: 0.40s;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--primary-gradient, var(--primary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
}

/* 通用 helper */
.section {
    padding: 5.5rem 0;
    position: relative;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 3.2rem;
}

.section-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.section-divider {
    width: 56px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

/* ---------- 多语言切换器 ---------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-switcher a.lang-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    background-color: transparent;
}

.lang-switcher a.lang-link.active-link {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.lang-switcher a.lang-link:hover:not(.active-link) {
    background-color: var(--gray-100);
    color: var(--primary);
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ---------- 实体标签 ---------- */
.entity-tag-group {
    position: relative;
    display: inline-block;
}

.entity-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 10;
    padding: 0.5rem 0;
}

.entity-dropdown.show {
    display: block;
}

.entity-tag-btn:hover {
    background: #e0f2fe;
}

/* ============================================================
   前台通用样式类（第5批迁移）
   ============================================================ */

/* --- 链接去下划线 + 颜色继承 --- */
.link-plain {
    text-decoration: none;
    color: inherit;
}
.link-plain:hover {
    color: var(--primary);
}

/* --- 显示控制 --- */
.display-none {
    display: none;
}
.display-block {
    display: block;
}

/* --- Flex 工具 --- */
.flex-1 {
    flex: 1;
}
.flex-wrap {
    flex-wrap: wrap;
}
.gap-1 {
    gap: 0.6rem;
}
.gap-2 {
    gap: 0.5rem;
}
.align-items-center {
    align-items: center;
}
.justify-content-center {
    justify-content: center;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-muted {
    color: var(--gray-400);
}

/* --- 垂直对齐 --- */
.v-align-middle {
    vertical-align: middle;
    margin-right: 2px;
}
.v-align-middle-mr-4 {
    vertical-align: middle;
    margin-right: 4px;
}

/* --- 价格标签 --- */
.price-tag {
    color: var(--primary);
    font-weight: 700;
}
.price-tag-primary {
    color: var(--color-primary);
    font-weight: 700;
}

/* --- 产品卡片图片 --- */
.product-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

/* --- 案例列表图片 --- */
.case-list-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- 团队头像（详情页） --- */
.team-detail-avatar {
    width: 200px;
    height: auto;
    border-radius: 50%;
    margin: 1rem 0;
}

/* --- 详情页大图 --- */
.detail-main-img {
    max-width: 100%;
    margin: 1rem 0;
}
.detail-main-img-center {
    max-width: 100%;
    height: auto;
}

/* --- 服务标题图标 --- */
.service-title-icon {
    margin-right: 0.5rem;
}

/* --- 视频相关 --- */
.video-wrapper {
    margin-bottom: 1.5rem;
}
.video-description {
    color: #333;
    font-size: 1.1rem;
}
.video-placeholder {
    background: #f0f0f0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gray-500);
}
.video-placeholder svg {
    width: 64px;
    height: 64px;
    margin-right: 0.5rem;
}
.video-list-placeholder {
    background: #f0f0f0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}
.video-list-placeholder svg {
    width: 48px;
    height: 48px;
    margin-right: 0.5rem;
}
.transcript-content {
    white-space: pre-wrap;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.video-meta {
    margin-top: 2rem;
    color: #666;
}

/* --- 文章/详情页引用区域 --- */
.citation-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.citation-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.citation-section h3 svg {
    vertical-align: middle;
}
.citation-list {
    list-style: none;
    padding: 0;
}
.citation-item {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #3b82f6;
}
.citation-item .citation-model {
    font-weight: 600;
    color: #1e40af;
}
.citation-item .citation-model .citation-time {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.9rem;
}
.citation-item .citation-url {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 0.25rem;
}
.citation-item .citation-url a {
    color: var(--primary);
    text-decoration: none;
}
.citation-item .citation-url a:hover {
    text-decoration: underline;
}
.citation-item .citation-text {
    margin-top: 0.25rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #374151;
}

/* --- 实体标签 --- */
.entity-tags-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}
.entity-tags-section h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.entity-tags-section h3 svg {
    vertical-align: middle;
}
.entity-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.entity-tag-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.entity-tag-btn:hover {
    background: #e0f2fe;
}
.entity-tag-group {
    position: relative;
    display: inline-block;
}
.entity-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 10;
    padding: 0.5rem 0;
}
.entity-dropdown.show {
    display: block;
}
.entity-dropdown .dropdown-link {
    display: block;
    padding: 0.4rem 1rem;
    color: #0369a1;
    text-decoration: none;
    font-size: 0.85rem;
}
.entity-dropdown .dropdown-link:hover {
    background: #f0f9ff;
}
.entity-dropdown .dropdown-link svg {
    vertical-align: middle;
    margin-right: 2px;
}
.entity-dropdown .no-links {
    display: block;
    padding: 0.4rem 1rem;
    color: #999;
    font-size: 0.85rem;
}

/* --- 首页优势卡片图标 --- */
.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary-subtle, rgba(79, 70, 229, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.advantage-icon svg {
    width: 32px;
    height: 32px;
}

/* --- 统计区域（深色背景） --- */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark, #1e293b), var(--primary, #4f46e5));
    padding: 4rem 0;
    color: white;
}
.stats-section .section-header h2 {
    color: white;
}

/* --- 首页搜索表单 --- */
.search-form-inline {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}
.search-form-inline .search-input {
    flex: 1;
}
.search-form-inline .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.search-results-container {
    display: none;
    margin-top: 1rem;
}
.search-results-container.show {
    display: block;
}
.search-results-container .results-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.search-results-container .results-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* --- 轮播控制 --- */
.hero-slide {
    display: none;
}
.hero-slide.active {
    display: block;
}

/* --- 文章元数据 --- */
.article-meta svg {
    vertical-align: middle;
    margin-right: 2px;
}

/* --- 问答详情页时间 --- */
.qa-detail-time {
    margin-top: 2rem;
    text-align: right;
    color: #666;
}

/* --- 视频列表项 --- */
.video-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1rem;
    background: white;
    transition: box-shadow 0.2s;
}
.video-item:hover {
    box-shadow: var(--shadow-md);
}
.video-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.video-item h3 a {
    text-decoration: none;
    color: inherit;
}
.video-item h3 a:hover {
    color: var(--primary);
}
.video-item video {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.video-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}
.video-item small {
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .case-list-img {
        width: 100%;
        height: 160px;
    }
    .team-detail-avatar {
        width: 120px;
    }
    .search-form-inline {
        flex-direction: column;
        max-width: 100%;
    }
    .search-form-inline .search-input {
        width: 100%;
    }
    .citation-item .citation-url {
        font-size: 0.75rem;
        word-break: break-all;
    }
    .video-placeholder {
        height: 200px;
    }
    .video-placeholder svg {
        width: 40px;
        height: 40px;
    }
}