/* 首页样式 - Bing风格搜索框切换 */
:root {
    --primary: #2563EB;
    --secondary: #10B981;
    --text: #111827;
    --text-secondary: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --radius: 12px;
    --nav-h: 72px;
}

* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: #0f2744;
    margin: 0;
    padding: 0;
}
a { color: var(--primary); text-decoration: none; }

/* ===== 固定顶部导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
body.scrolled .navbar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.nav-logo svg { width: 28px; height: 28px; }

/* 导航栏搜索框 - 默认隐藏，滚动后显示 */
.nav-search {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.scrolled .nav-search {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-search-box {
    background: #f3f4f6;
    border-radius: 40px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.nav-search-box:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(37,99,235,0.12);
}
.nav-search-box svg {
    width: 18px;
    height: 18px;
    color: #666;
    margin-left: 12px;
    flex-shrink: 0;
}
.nav-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    color: var(--text);
    min-width: 0;
}
.nav-search-box input::placeholder { color: #999; }
.nav-search-btn {
    background: var(--primary);
    color: white;
    padding: 7px 18px;
    border-radius: 36px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav-search-btn:hover { background: #1d4ed8; }

/* 右侧按钮 */
.nav-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: var(--text);
}
.btn-outline:hover { background: #f3f4f6; }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    height: 32px;
}
.btn-ghost:hover { color: var(--primary); background: #f3f4f6; }
.nav-user {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    border-radius: 20px;
    background: #f3f4f6;
    white-space: nowrap;
}
.nav-level-badge {
    display: inline-block;
    padding: 1px 7px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.btn-outline {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 20px;
    line-height: 30px;
}
.nav-links .btn,
.nav-links .nav-user {
    display: inline-flex;
    align-items: center;
}

/* ===== Hero 全屏区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    padding-top: var(--nav-h);
}

/* 背景图 fixed 覆盖全屏 */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-bg.has-image {
    background-size: cover;
    background-position: center;
}

/* Hero内容 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.scrolled .hero-content {
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
}

/* Hero搜索框（大号居中） */
.hero-search {
    background: rgba(255,255,255,0.95);
    border-radius: 40px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    margin-bottom: 32px;
}
.hero-search svg {
    width: 20px;
    height: 20px;
    color: #666;
    margin-left: 16px;
    flex-shrink: 0;
}
.hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    color: var(--text);
}
.hero-search input::placeholder { color: #999; }
.hero-search-btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 36px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search-btn:hover { background: #1d4ed8; }

/* 快捷入口 */
.shortcuts {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
body.scrolled .shortcuts {
    opacity: 0;
    transform: translateY(-10px);
}
.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}
.shortcut-item:hover { transform: translateY(-4px); }
.shortcut-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.2s;
}
.shortcut-item:hover .shortcut-icon { background: rgba(255,255,255,0.25); }
.shortcut-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.2s;
}
.shortcut-item:hover .shortcut-logo { transform: scale(1.08); }
.shortcut-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

/* ===== 主内容区 ===== */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: -40px auto 0;
    padding: 32px 28px 60px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
}

/* 区块标题 */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.section-badge {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* 瀑布流 */
.masonry { columns: 4; column-gap: 20px; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; }
.masonry-item a { text-decoration: none; color: inherit; }

/* 文章卡片 */
.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.article-card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f1f5f9;
    transition: opacity 0.4s ease;
}
.lazy-img { opacity: 0; transition: opacity 0.4s ease; }
.lazy-img.loaded { opacity: 1; }
.article-card-body { padding: 16px; }
.article-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-summary {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}
.article-card-client {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-card-client img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.article-card-client-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* 企业网格 */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.client-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.client-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.client-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text);
}
.client-card span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-state svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}
.empty-state p { font-size: 15px; }

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    background: rgba(15,39,68,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.7);
    padding: 28px 24px;
    text-align: center;
}
.footer-content p { margin: 0 0 8px; font-size: 14px; }
.footer-links { display: flex; gap: 16px; justify-content: center; }
.footer-link {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.9); }

/* 响应式 */
@media (max-width: 1024px) {
    .masonry { columns: 3; }
}
@media (max-width: 768px) {
    .masonry { columns: 2; }
    .nav-links .btn-outline { display: none; }
    .nav-logo span { display: none; }
}
@media (max-width: 480px) {
    .masonry { columns: 1; }
    .shortcuts { gap: 10px; }
    .shortcut-icon { width: 44px; height: 44px; font-size: 20px; }
    .shortcut-label { font-size: 11px; }
}


/* 导航栏加高 + LOGO放大 - 2026-06-01 */
.nav-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* LOGO放大 - 强制覆盖内联样式 - 2026-06-01 */
.navbar .nav-logo img,
.nav-logo img[style*='height'] {
    height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* 移动端LOGO */
@media (max-width: 768px) {
    .navbar .nav-logo img {
        height: 40px !important;
    }
}

/* ========== 新闻卡片高度统一优化 - 2026-06-02 ========== */

/* 1. 卡片容器 - 设置固定高度，使用flex布局 */
.article-card {
  display: flex !important;
  flex-direction: column !important;
  height: 350px !important; /* 固定高度，确保所有卡片一致 */
  width: 100% !important;
}

/* 2. 封面图片 - 固定高度，确保显示一致 */
.article-card-cover {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important; /* 防止被压缩 */
}

/* 3. 内容容器 - 使用flex布局，空间自动分配 */
.article-card-body {
  padding: 16px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important; /* 关键：允许内容溢出处理 */
}

/* 4. 标题 - 强制2行高度 */
.article-card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.5 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 45px !important; /* 强制2行高度 */
  flex-shrink: 0 !important;
}

/* 5. 摘要 - 强制2行高度 */
.article-card-summary {
  font-size: 13px !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.6 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 42px !important; /* 强制2行高度 */
  flex: 1 !important;
}

/* 6. 元信息 - 固定在底部 */
.article-card-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  flex-shrink: 0 !important;
  margin-top: auto !important; /* 推到底部 */
}
