/* 引入Google Fonts：Inter，欧美现代无衬线字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与基础色 */
body {
    font-family: 'Inter', sans-serif;
    color: #343a40; /* 深灰文字，比纯黑更柔和 */
    line-height: 1.7; /* 优化行高，提升阅读体验 */
    background-color: #f8f9fa; /* 极浅灰背景，减少视觉疲劳 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
a:hover {
    color: #0F3B5D; /* 主色悬停效果 */
}

ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

/* 专业标题样式 */
.section-title {
    text-align: center;
    margin: 60px 0 35px;
    font-size: 28px;
    font-weight: 700;
    color: #212529; /* 更粗的标题色 */
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}
/* 标题下的装饰线 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0F3B5D;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /*  subtle shadow */
    position: sticky;
    top: 0;
    z-index: 999;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* 固定高度，更精致 */
}
.logo img {
    width: 180px; /* 调整Logo尺寸 */
    height: auto;
}
.nav ul {
    display: flex;
    gap: 25px;
}
.nav li {
    position: relative;
    font-weight: 500;
    font-size: 15px;
}
/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 220px;
    display: none;
    border-radius: 5px;
    overflow: hidden;
}
.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
}
.dropdown-menu a:hover {
    background-color: #f8f9fa;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Banner */
/* 轮播 Banner */
.banner {
  padding: 50px 0;
  background: #fff;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.banner-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}
.banner-text {
  flex: 1;
}
.banner-text h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #212529;
  font-weight: 700;
  line-height: 1.3;
}
.banner-text p {
  font-size: 16px;
  color: #6c757d;
}

/* 轮播核心 */
.banner-slide {
  flex: 1;
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 8px;
}
.banner-slide img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideAnim 9s infinite;
}
.banner-slide img:nth-child(1) { animation-delay: 0s; }
.banner-slide img:nth-child(2) { animation-delay: 3s; }
.banner-slide img:nth-child(3) { animation-delay: 6s; }

@keyframes slideAnim {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

.banner-text h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #212529;
    font-weight: 700;
    line-height: 1.3;
}
.banner-text p {
    font-size: 16px;
    color: #6c757d; /* 辅助文字颜色 */
}

.banner-slide img {
    border-radius: 8px;
    height: 380px;
    width: 100%;
    object-fit: cover;
}

/* Who We Are */
.who-we-are {
    padding: 20px 0 50px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.who-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    color: #495057;
    text-align: center;
}

/* Advantages */
.advantages {
    padding: 50px 0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.adv-box {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
.adv-item {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.adv-item:hover {
    transform: translateY(-5px); /* 悬停上浮效果 */
}
.adv-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}
.adv-item p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}
.adv-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}
.adv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hot Products */
.hot-products {
    padding: 50px 0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.product-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.product-item {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    text-align: center;
}
.p-img {
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-item h4 {
    font-size: 18px;
    font-weight: 600;
}

/* Reviews */
.client-reviews {
    padding: 50px 0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.review-box {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}
.review-item {
    width: 350px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
.review-item p {
    font-size: 15px;
    font-style: italic;
    margin-bottom: 15px;
    color: #495057;
}
.review-item span {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid #f8f9fa;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
table th {
    background-color: #0F3B5D; /* 主色表头 */
    color: #fff;
    font-weight: 600;
    padding: 15px;
    text-align: center;
}
table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}
table tr:last-child td {
    border-bottom: none;
}
table tr:hover td {
    background-color: #f8f9fa;
}

/* Img Box */
.img-box {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.img-grid .img-box {
    height: 220px;
}

/* Footer */
.footer {
    background-color: #0F3B5D; /* 深底主色 */
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-radius: 8px 8px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #fff;
}
.footer-col a, .footer-col p {
    color: #ced4da; /* 浅灰文字 */
    font-size: 15px;
    margin-bottom: 12px;
    display: block;
}
.footer-col a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}
.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 14px;
}

/* Case Hero */
.case-hero {
    padding: 100px 0;
    background: linear-gradient(rgba(15, 59, 93, 0.85), rgba(15, 59, 93, 0.85)), url('https://picsum.photos/id/1058/1600/600') center center no-repeat;
    background-size: cover;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    border-radius: 8px;
}
.case-hero h1 {
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width:992px) {
    .banner-flex {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-text h1 {
        font-size: 26px;
    }
}
@media (max-width:768px) {
    .header .container {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .case-hero h1 {
        font-size: 32px;
    }
}