/* 全局变量定义 */
:root {
    --primary-color: #0a4b91;
    --secondary-color: #1e5fad;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #dddddd;
    --bg-gray: #f5f5f5;
    --color-bg-main: #ffffff;
    --color-bg-header: #1e40af;
    --color-bg-banner: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --color-text-primary: #000000;
    --color-text-secondary: #666666;
    --color-text-light: #ffffff;
    --color-border: #e5e7eb;
    --color-border-light: #f0f0f0;
    --color-accent: #244ffa;
    --color-accent-dark: #1e40af;
    --color-hover: #2563eb;
    --color-active: #1e40af;


    /* 字体定义 */
    --font-family-primary: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    --font-family-secondary: "Arial", "Helvetica", "Roboto", sans-serif;
    --font-family-mono: "Consolas", "Monaco", "Courier New", monospace;

    --h1: 28px;
    --h2: 24px;
    --h3: 18px;
    --body: 16px;
    --caption: 14px;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    /* 尺寸定义 */
    --container-width: 1200px;
    --header-height: 120px;
    --nav-height: 50px;
    --banner-height: 200px;
    --breadcrumb-height: 40px;
    --footer-height: auto;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --border-radius: 4px;
    --transition: all 0.3s ease;


}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary), var(--font-family-secondary);
    background: var(--color-bg-main);
    color: var(--color-text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
}






.outter-header {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* 页面横幅样式 */
.page-banner {
    height: var(--banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 40px;
}

.banner-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.banner-logo .logo-placeholder {
    width: 64px;
    height: 64px;
    margin-right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-text {
    text-align: left;
}

.banner-title {
    font-size: var(--h1);
    font-weight: var(--weight-bold);
    color: var(--color-text-light);
}

.banner-subtitle {
    font-family: var(--font-family-secondary);
    font-size: var(--body);
    color: var(--color-text-light);
    opacity: 0.9;
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.content-container {
    width: 100%;
}

/* 新闻动态标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.title-divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* 主内容布局 */
.news-layout {
    width: 100%;
}

/* 左侧头条新闻 */
.headline-news {
    display: flex;
    width: 100%;
    margin-bottom: 40px;
    gap: 30px;
    align-items: flex-start;
}

.headline-content {
    flex: 1;
    height: 350px; /* 设置固定高度，与右侧新闻列表总高度匹配 */
}

.video-overlay {
    position: relative;
    width: 100%;
    height: 100%; /* 使用固定高度，不再注释掉 */
    overflow: hidden;
    margin-bottom: 15px;
}

.headline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 确保图片尺寸不会随着内容变化 */
    min-width: 0;
    min-height: 0;
}
/* 右侧新闻列表 */
.news-list {
    flex: 0 0 580px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-image {
    height: 100px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img {
    width: 120px;
    height: 100px;
    object-fit: cover;
}

.news-text {
    flex: 1;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示的行数 */
    -webkit-box-orient: vertical;
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 显示省略号 */
    color: #ababab;
}

.news-date {
    text-align: right;
    font-size: 14px;
    opacity: 0.8;
}

/* 下方新闻列表 */
.news-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.article-item {
    display: flex;
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.article-image {
    flex: 0 0 200px;
    background-color: var(--primary-color);
}

.article-content {
    flex: 1;
    padding: 20px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.article-text {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-date {
    font-size: 12px;
    color: var(--light-text);
}



/*==== 新闻动态--开始 ====*/
.applications {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    border: #f2f2f2 solid 1px;;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: var(--container-width);
    margin: 0 auto;
}

.application-item {
    display: flex;
    flex-direction: column;
    text-align: center;

    gap: var(--spacing-sm);
}


.img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    /* TODO: 替换为真实图片 */
}

.application-image .img-placeholder {
    aspect-ratio: 4/3;
}

.application-desc {
    font-size: 0.95rem;
    text-align: center;
    color: var(--secondary-text);
    margin: 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-divider-small {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto var(--spacing-lg) auto;
    border-radius: 1.5px;
}
/*==== 新闻动态--结束 ====*/

/*==== 长方形--开始 ====*/

/* 操作按钮区域样式 */
.action-buttons {
    margin-bottom: var(--spacing-xl);
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* 关于我们组件 */
.about-us {
    position: relative;
    width: 128px;
    height: 52px;
    border: 1px solid #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-sizing: border-box;
    color: #2c3e50;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 调整后的左侧横线 */
.about-us::before {
    content: "";
    position: absolute;
    left: -11px; /* 调整后的位置：向右移动10px */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background-color: #3498db;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.about-us:hover {
    background-color: #e1f0fa;
    color: #2980b9;
    cursor: pointer;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.about-us:hover::before {
    background-color: #2980b9;
}

.example {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 60px;
}
/*==== 长方形--结束 ====*/



/*==== 线形--开始 ====*/

.about-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 40px; */
}

.line {
    height: 2px;
    background-color: #1a73e8;
    flex-grow: 1;
    max-width: 500px;
}

.left-line {
    margin-right: 20px;
}

.right-line {
    margin-left: 20px;
}

.title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/*==== 线形--结束 ====*/





/* 响应式设计 */
@media (max-width: 1024px) {
    .headline-news {
        flex-direction: column;
        gap: 20px;
        align-items:center;
    }

    .headline-content {
        flex: 1;
        max-height: 400px;
        max-width: 640px;
    }

    .news-list {
        flex: 1;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 15px;

    }

    .news-item {
        flex: 1 1 calc(50% - 8px);
        min-width: 200px;
    }

    .article-image {
        flex: 0 0 150px;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 688px) {
    /*.main-nav {*/
    /*    display: none;*/
    /*}*/

    .banner-section {
        height: 200px;
    }

    .page-title {
        font-size: 24px;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        flex: 0 0 180px;
        width: 100%;
    }

    .news-list {
        flex-direction: column;
    }

    .news-item {
        flex: 1 1 100%;
    }

    .applications-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* 图片加载动画 */
.banner-image,
.headline-image {
    transition: opacity 0.3s ease;
}

.banner-image[loading="lazy"],
.headline-image[loading="lazy"] {
    opacity: 0;
}

.banner-image.loaded,
.headline-image.loaded {
    opacity: 1;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 按钮和链接的交互效果
button,
a {
    transition: all 0.3s ease;
}

button:active,
a:active {
    transform: translateY(1px);
} */

/* 防止内容溢出 */
.article-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 确保良好的可访问性 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
