/* static/css/style.css */
/* 1. 定义 Inter 字体 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/Inter-Regular.woff2') format('woff2'),
         url('/static/fonts/Inter-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/Inter-Bold.woff2') format('woff2'),
         url('/static/fonts/Inter-Bold.woff') format('woff');
}
/* Logo 链接 */
.logo-link {
    display: inline-block;
    line-height: 1;
}

/* Logo 图片 */
.logo-img {
    height: 55px;      /* 根据需要调整高度 */
    width: auto;
    vertical-align: middle;
}

/* 响应式：移动端适当缩小 */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
}

/* static/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 推荐标签 - 淡蓝色微弱标识 */
.recommend-tag {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #eef2ff;
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* 页脚 Logo */
.footer-logo-wrapper {
    text-align: center;
    display: inline-block;
    width: 100%;
}

.footer-logo-img {
    width: 100%;
    max-width: 140px;   /* 可根据设计调整 */
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.footer-slogan {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    word-break: keep-all;  /* 防止中文换行 */
    white-space: nowrap;    /* 强制不换行，如果文字过长可去掉 */
}

/* 如果文字过长，允许换行 */
@media (max-width: 768px) {
    .footer-slogan {
        white-space: normal;  /* 移动端允许换行 */
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #0a192f;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a192f;
    --bg-light: #f8fafc;
    --primary: #0a192f;
    --accent: #00a3ff;
    --accent-glow: rgba(0, 163, 255, 0.2);
    --gray-700: #334155;
    --gray-500: #64748b;
    --border-light: #e2e8f0;
    --card-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --transition: all 0.25s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 - 修复拥挤问题 */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    z-index: 50;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo span {
    background: linear-gradient(135deg, #00a3ff, #7b2cbf);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: #0f2b4f;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -10px rgba(0, 163, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* 响应式：当屏幕宽度小于768px时，导航栏垂直排列，且链接可换行 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: center;
        gap: 1rem;
    }
    .nav-links a {
        white-space: normal;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Hero 区域 */
.hero {
    padding: 5rem 0 6rem;
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

.hero-badge {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: rgba(0, 163, 255, 0.08);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-700);
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 合作伙伴墙 */
.logos-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: white;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    opacity: 0.7;
}

/* 通用区块 */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-sub {
    text-align: center;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 30px 40px -20px rgba(0, 163, 255, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* 数据成果区 */
.stats-section {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
}

.stat-item h4 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #b3e5ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.stat-item p {
    color: #94a3b8;
    font-weight: 500;
}

/* 洞察网格 */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.insight-content {
    padding: 1.5rem;
}

.insight-tag {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.insight-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.insight-date {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(105deg, #0a192f, #102b44);
    color: white;
    border-radius: 32px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
    margin-top: 1rem;
}

.cta-section .btn-primary:hover {
    background: #f0f9ff;
}

/* 页脚 */
footer {
    background: #f9fafb;
    border-top: 1px solid var(--border-light);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--gray-700);
    text-decoration: none;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* 解决方案/产品/案例等页面额外样式 */
.page-header {
    background: #f8fafc;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-detail {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.solution-icon {
    font-size: 3rem;
}

.solution-title {
    font-size: 2rem;
    margin: 1rem 0;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* 产品页面 */
.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
}

.product-title {
    font-size: 2rem;
    margin: 1rem 0;
}

.price-badge {
    background: #e6f7ff;
    color: #00a3ff;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

/* 案例网格 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.case-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.case-content {
    padding: 2rem;
}

.case-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.metric {
    color: #00a3ff;
    font-weight: 700;
    margin: 1rem 0;
}

/* 资源博客网格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.blog-card {
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    transition: 0.2s;
}

.blog-card:hover {
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.tag {
    color: #00a3ff;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 联系页面表单 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
}

button {
    background: #0a192f;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    cursor: pointer;
}

.contact-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
}

/* 关于页面 */
.hero-about {
    background: #0a192f;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.mission {
    font-size: 1.5rem;
    font-weight: 500;
    color: #334155;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-card {
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .solution-grid, .product-card, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
}