/* 全局样式文件 */
:root {
    --primary: #0A0E27;
    --accent: #4F46E5;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --surface: #F9FAFB;
    --border: rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* 页脚 */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-links-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links-horizontal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-horizontal a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* 通用容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 页面标题 */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* 列表页通用样式 */
.list-section {
    padding: 4rem 0 6rem;
    background: white;
}

.list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

.list-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex: 0 0 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
    width: auto;
    display: flex;
    flex-direction: column;
}

.list-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.list-item-img {
    width: 100%;
    height: clamp(280px, 18vw, 420px);
    min-height: 280px;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
    background: #f5f7fb;
    background-image: linear-gradient(45deg, rgba(79, 70, 229, 0.03) 25%, transparent 25%, transparent 50%, rgba(79, 70, 229, 0.03) 50%, rgba(79, 70, 229, 0.03) 75%, transparent 75%, transparent);
    background-size: 18px 18px;
}

.list-item-content {
    padding: 2rem;
    flex: 1;
}

.list-item-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.list-item-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text);
    height: 1.93em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.list-item-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    height: 5.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 企业宣传列表：卡片内容区域加高，避免内容被截断 */
.promo-list-grid .list-item {
    min-height: 600px;
}

.promo-list-grid .list-item-img {
    height: clamp(280px, 18vw, 420px) !important;
    min-height: 280px !important;
    max-height: 420px !important;
    object-fit: contain !important;
    object-position: center !important;
}

.promo-list-grid .list-item-content {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 2.4rem;
    overflow: visible;
}

.promo-list-grid .list-item-title {
    height: auto !important;
    min-height: 0;
    max-height: none;
    overflow: visible;
    text-overflow: unset;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

/* 宣传标题强制去截断（专用类，防止被其他样式覆盖） */
.promo-list-grid .promo-item-title {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.56 !important;
    -webkit-line-clamp: initial !important;
    -webkit-box-orient: initial !important;
}

.promo-list-grid .list-item-desc {
    height: auto;
    min-height: 6.8em;
    -webkit-line-clamp: 4;
}

/* 新闻/案例列表：图片固定高度，优先完整显示 */
.media-list-page .news-image,
.media-list-page .list-item-img {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    background: #f5f7fb;
    background-image: linear-gradient(45deg, rgba(79, 70, 229, 0.03) 25%, transparent 25%, transparent 50%, rgba(79, 70, 229, 0.03) 50%, rgba(79, 70, 229, 0.03) 75%, transparent 75%, transparent);
    background-size: 18px 18px;
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* 响应式 */
@media (max-width: 768px) {
    .logo-img {
        width: 54px;
        height: 54px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .list-grid {
        display: block;
    }

    .list-item-img {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }

    .list-item {
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }

    .promo-list-grid .list-item {
        min-height: 0;
    }

    .promo-list-grid .list-item-content {
        min-height: 180px;
    }

    .media-list-page .news-image,
    .media-list-page .list-item-img {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .list-item {
        flex: 0 0 calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
    }
}

/* GEO 数据区域 */
#geo-data {
    display: none;
}
