﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

:root {
    --primary: #FF99AA; /* 主色调粉色 */
    --primary-light: #f8c7d0; /* 浅粉色 */
    --primary-dark: #EA6F84; /* 深粉色 */
    --secondary: #4a90e2; /* 辅助蓝色 */
    --light: #fff7f9; /* 浅背景色 */
    --dark: #333; /* 深文字色 */
    --gray: #f0f0f0; /* 灰色背景 */
}

body {
    background-color: #fff;
    color: var(--dark);
    line-height: 1.6;
}

/* 顶部栏样式 */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.top-links a:hover {
    text-decoration: underline;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-right: 15px;
}

.logo-text {
    color: var(--primary-dark);
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
}

.contact-info {
    text-align: right;
}

.contact-info .phone {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.contact-info p {
    margin: 5px 0;
    color: var(--dark);
}

/* 导航菜单 - 级联菜单样式 */
nav {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

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

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu > li > a:hover, 
.nav-menu > li > a.active {
    background-color: var(--primary-dark);
}

/* 二级菜单样式 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 3px solid var(--primary);
}

.nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sub-menu li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding-left: 25px;
}

/* 轮播图 */
.slider {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 90%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    max-width: 600px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
}

.slider-nav:hover {
    background: rgba(0,0,0,0.5);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-dark);
    display: inline-block;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #666;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 20px;
}

.card-body p {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}

.card-footer {
    padding: 15px 20px;
    background: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 新闻公告 */
.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    margin-left: 10px;
    margin-top: -15px;
}

.news-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h3 {
    font-size: 18px;
}

.news-header a {
    color: white;
    font-size: 14px;
}

.news-list {
    padding: 15px 0;
}

.news-item {
    padding: 12px 20px;
    border-bottom: 1px dashed #eee;
    display: flex;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .date {
    background: var(--light);
    color: var(--primary);
    font-size: 14px;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-item .date .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.news-item .content {
    flex: 1;
}

.news-item .content h4 {
    margin-bottom: 5px;
}

.news-item .content p {
    color: #888;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 特色服务 */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.service-item {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: var(--light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-dark);
    font-size: 30px;
}

.service-item h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

/* 页脚 */
footer {
    background: linear-gradient(to right, var(--primary-dark), #EA6F84);
    color: white;
    padding: 50px 0 0px;
    margin-left: -120px;
    width: 119%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-column p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.footer-links li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.contact-list i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid ;
    opacity: 0.7;
    font-size: 14px;
    width: 110%;
    background: #F2FFFC;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .slider {
        height: 400px;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    /* 移动设备上的级联菜单 */
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        width: 100%;
    }
    
    .nav-menu > li:hover .sub-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .services {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .top-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu > li {
        width: 100%;
        text-align: center;
    }
}

/* 移除下拉箭头后的样式调整 */
.nav-menu > li > a {
    padding: 15px 20px; /* 减少两侧内边距 */
}    