/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e60012;
}

/* Header样式 */
.header {
    position: relative;
}

.slider {
    position: relative;
    height: 561px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: #ce2930;
}

/* 导航栏样式 */
.nav {
    background: #ce2930;   
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-logo {
    padding: 10px 20px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    flex: 1;
    display: flex;
    justify-content: space-between;
    list-style: none;
    position: relative;
    width: 1200px;
    margin: 0 auto;
}

.nav-list > li {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-list > li > a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* 导航栏样式 */
.nav-list > li > a:hover,
.nav-list > li > a.active {
    background: rgba(255, 255, 255, 0.377);
    transform: translateY(-2px);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 4px;
    padding: 10px 0;
    display: none;
}

.nav-list > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.submenu li {
    list-style: none;   
    height: 40px;
}

.submenu li a {
    display: block;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    color: #ce2930;
    background: #f5f5f5;
    padding-left: 30px;
}

.submenu {
    display: none;
    position: absolute;
    background: #fff;
    padding: 10px 0;
    display: flex;
}

.nav-list > li:hover .submenu {
    display: flex;
}

/* 关于翊维 */
.about { 
    padding-top: 90px;
    padding-bottom: 90px;
    background-color: #eff8ff;
    height: 576px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    height: calc(100% - 120px); /* 减去标题和padding的空间 */
}

.about-text {
    flex: 1;
    padding-top: 100px;
    width: 810px;
}

.about-text p {
    margin-bottom: 10px;
    color: #444;
    font-size: 18px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.about-title {
    text-align: center;
    padding-top: 0px;
}

.about-title img {
    max-width: 200px;
    height: auto;
}

/* 公司业务 */
.services {
    padding: 60px 0;
    background-color: #fff;
    height: 683px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.service-intro {
    background-color: #ce2930;
    color: #fff;
    padding: 40px 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-intro h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.service-intro p {
    line-height: 1.8;
    font-size: 16px;
}

.service-card.clickable {
    background-color: #ce2930;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-card.clickable:active {
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.service-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card {
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ce2930;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card .main-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.service-list {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.service-item {
    color: #fff;
    font-size: 16px;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255,255,255,0.1);
}

.service-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-image {
    text-align: center;
}

.service-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.service-image p {
    color: #fff;
    font-size: 14px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    color: #666;
    margin: 8px 0;
}

/* 新闻动态 */
.news {
    padding: 60px 0;
    background-color: #eff8ff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.news-images {
    width: 100%;   
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-image img {
    width: 100%;
    height: 264px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-image:hover img {
    transform: scale(1.05);
}

.news-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.date {
    color: #e60012;
    font-weight: bold;
    min-width: 80px;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-content h4 {
    color: #333;
}

.news-content p {
    color: #666;
    font-size: 16px;
}

/* 网站尾部 */
.footer {
    background-color: #cf2930;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-info {
    flex: 1;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    width: 95px;
    height: auto;
}

.footer-text {
    flex: 1;
}

.footer-text p {
    margin: 8px 0;
    color: #ccc;
    font-size: 18px;
}

.footer-info p {
    margin: 15px 0;
    color: #ffffff;
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;   
    margin-right: 30px;
}

.footer-qrcode p {
    color: #ccc;
    margin-right: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #ffffff;
    padding: 15px 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb span {
    color: #ce2930;
    margin-left: 5px;
}

/* 新闻列表页面布局 */
.news-list-page {
    background: #fcfcfc;
    padding: 10px 0;
}

.news-list-page .container {
    display: flex;
    gap: 40px;
}

/* 左侧边栏样式 */
.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-title {
    background: #ce2930;
    color: #fff;
    padding: 20px;
    font-size: 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
}

.sidebar-menu {
    background: #fff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: #f5f5f5;
    color: #ce2930;
    padding-left: 30px;
    font-weight: bold;
}

/* 右侧内容区样式 */
.content-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
}

.news-list-item {
    display: flex;
    gap: 30px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 160px;    
}

.news-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.news-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.date {
    color: #999;
}

.read-more {
    color: #ce2930;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #e60012;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.page-item, .page-next, .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item:hover, .page-next:hover {
    background: #f5f5f5;
    color: #ce2930;
}

.page-item.active {
    background: #ce2930;
    color: #fff;
}

.page-dots {
    color: #999;
}

.page-next {
    background: #f5f5f5;
}

/* 新闻详情页面布局 */
.news-detail-page {
    background: #fcfcfc;
    padding: 40px 0;
}

.news-detail-page .container {
    display: flex;
    gap: 40px;
}

/* 右侧内容区样式 */
.content-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
}

/* 新闻详情样式 */
.news-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.news-meta {
    text-align: center;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-meta span {
    margin: 0 15px;
}

.news-content {
    margin-bottom: 40px;
    padding: 0 20px;
}

.news-content .news-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 600px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.news-text {
    max-width: 800px;
    margin: 0 auto;
}

.news-text p {
    font-size: 20px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
    padding: 10px 0;
}

.news-text p + p {
    margin-top: 15px;  /* 段落之间的间距 */
}

/* 上一篇下一篇导航 */
.news-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.prev-next {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prev-next a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.prev-next a:hover {
    color: #ce2930;
}

/* 联系信息样式 */
.contact-info {
    margin-bottom: 50px;
}

.contact-info h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-item {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-item i {
    font-size: 36px;
    color: #ce2930;
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.info-item p {
    color: #666;
    font-size: 16px;
}

/* 留言表单样式 */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ce2930;
    outline: none;
}

.submit-btn {
    background: #ce2930;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #b32329;
}

/* 地图容器样式 */
.company-map {
    margin-bottom: 50px;
}

.company-map h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}
