

/* ======== 页头 Header ======== */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    /* 我们可以让它变成一个flex容器，以便更好地控制图片 */
    display: inline-block; /* 或者 display: block; */
}
.logo img{
   max-width:80px;
   width:100%;
   height:auto;
   vertical-align: middle;
   position:relative;
   right:400%;
}

.main-nav ul {
    display: flex;
}

.main-nav li a {
    padding: 10px 20px;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--primary-color);
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav li a:hover::after,
.main-nav li a.active::after {
    width: 50%;
}

.header-contact {
    color: var(--primary-color);
    font-size: 18px;
}
.header-contact i {
    margin-right: 8px;
}

/* ======== Banner ======== */
.banner {
    height: 100%;
    width: 100%;
    max-width: 1925px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;

}
.slider {
    overflow: hidden; 
    position: relative;
  }
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
  }
  .slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
  }
  .dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.5;
    cursor: pointer;
  }
  .dots span.active {
    opacity: 1;
  }

/* ======== 首页特定样式 ======== */
.scope-card {
    text-align: center;
}
.scope-card img {
    max-width: 100%;
    margin-bottom: 15px;
}
.scope-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.scope-card p {
    font-size: 14px;
    color: var(--light-text);
}

.section-profile {
    max-width:1920px;
    height: auto;
    background-size: cover;
    background-position: center;
    color: #0c0101;
    margin: 0 auto; 
}
.profile-content {
    max-width: 100%;
}
.section-profile .section-title {
    text-align: left;
}
.profile-content .section-title h2, 
.profile-content .section-title p {
    color: #0c0c0c;
}
.profile-content > p {
    margin-bottom: 30px;
    line-height: 2;
    
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #d8641c;
}
.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.tabs {
    text-align: center;
    margin-bottom: 40px;
}
.tab-link {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 25px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}
.tab-link.active,
.tab-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.case-gallery img {
    max-width: 100%;
    transition: transform 0.3s;
}
.case-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ======== 页脚 Footer ======== */
.footer {
    background-color: var(--bg-light-gray);
    padding-top: 40px;
    font-size: 14px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.footer-item {
    display: flex;
    align-items: flex-start;
}

.icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
}
.icon-bg.green { background-color: var(--green-accent); }
.icon-bg.red { background-color: var(--red-accent); }

.footer-links a {
    display: block;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--light-text);
}
.footer-links a:hover { color: var(--primary-color); }
.footer-links span {
    float: right;
    margin-left: 10px;
}
.footer-contact p {
    color: var(--light-text);
    margin-bottom: 5px;
}
