* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 顶部导航栏 */
.header {
    background-color: #2c3e50;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 40px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* 移动端汉堡按钮 */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/*  banner 区域 */
.banner {
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    max-width: 700px;
}

/* Banner 按钮 */
.banner-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 40px;
    background-color: #3498db;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}
.banner-btn:hover {
    background-color: #2980b9;
}

/* 内容区域 */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #3498db;
    display: block;
    margin: 10px auto 0;
}

/* 大长图区域 */
.long-banner {
    width: 100%;
}
.long-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 公司动态 */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.news-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.news-item .date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 联系我们 */
.contact-box {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: center;
}

.contact-item {
    width: 280px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #3498db;
}

/* 底部 —— 优化版本 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
    margin-top: 0;
}
.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-left {
    line-height: 2;
    font-size: 14px;
}
.footer-right img {
    height: 60px;
    width: auto;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
}
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}
.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

/* ===================== 新闻/视频页面专用样式 ===================== */
/* 文字介绍 */
.news-desc {
  text-align: center;
  margin-bottom: 50px;
}
.news-desc h2 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
}
.news-desc p {
  line-height: 1.8;
  color: #555;
  font-size: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* 视频列表 - 强制严格对齐布局 */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.video-item {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 280px; /* 固定卡片总高度，强制对齐 */
}
/* 固定标题高度，文字超出自动省略，保证所有卡片对齐 */
.video-title {
  height: 60px;
  padding: 15px;
  font-size: 16px;
  color: #2c3e50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-item video {
  width: 100%;
  height: 220px; /* 统一视频高度 */
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* ===================== 联系我们页面专用样式 ===================== */
/* 联系我们标题区 */
.contact-title {
    text-align: center;
    margin-bottom: 50px;
}
.contact-title h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}
.contact-title p {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto;
}

/* 联系我们主体布局 —— 左右严格对称 */
.contact-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

/* 联系表单 */
.contact-form {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 8px;
}
.contact-form h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
    height: 120px;
}
.submit-btn:hover {
    background-color: #2980b9;
}

/* 联系方式 与表单高度对称 */
.contact-info {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-radius: 8px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}
.info-icon {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.info-content h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}
.info-content p {
    color: #555;
    line-height: 1.6;
}

/* 自定义提示框样式 */
.custom-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.custom-toast.show {
    opacity: 1;
    top: 120px;
}
.toast-success {
    background-color: #27ae60;
}
.toast-error {
    background-color: #e74c3c;
}

/* ===================== 响应式样式 ===================== */
@media (max-width: 992px) {
    .banner h1 {
        font-size: 36px;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    /* 导航菜单折叠 */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        margin-left: 0;
    }

    /* 显示汉堡按钮 */
    .hamburger {
        display: block;
    }

    .banner {
        height: 400px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .banner-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-wrap {
        flex-direction: column;
        text-align: center;
    }

    .news-desc h2 {
        font-size: 26px;
    }
    .news-desc p {
        font-size: 15px;
    }
}