/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.nav {
    background: linear-gradient(to bottom, rgba(125, 200, 246, 0.8), rgba(75, 99, 174, 0));
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.nav-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-ul {
    display: flex;
    justify-content: start;
}

.nav-ul li {
    list-style: none;
    margin: 0 40px;
}

.nav-ul-a {
    color: #200;
    font-size: 19px;
    text-decoration: none;
}

.nav-ul li a:hover {
    color: rgb(51, 0, 255);
}

.login {
    color: rgb(216, 83, 83);
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.logo {
    color: #ed9d7b;
    font-size: 26px;
    font-weight: bold;
    text-decoration: none;
}

.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 999;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

/* 横幅图片及图内文字样式 */
.banner-content {
    position: relative;
    width: 100%;
    padding-top: 25.531%;
    height: 0;
    overflow: hidden;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    width: 90%;
}

.banner-text h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 0 0 16px 0;
    font-weight: bold;
    line-height: 1.2;
}

.banner-text p {
    font-size: clamp(20px, 2vw, 30px);
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* 通用模块样式 */
.section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #2c3e50;
}

/* 产品模块样式 */
.products {
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .product-info {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-card p {
    font-size: 14px;
    color: #666;
}

/* 服务项目模块样式 */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer div {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.footer p a {
    font-size: 14px;
    margin-top: 20px;
}