/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fffaf8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.logo h1 {
    color: #ff6b9d;
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b9d, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #888;
    font-size: 14px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700; /* 加粗字体 */
    font-size: 18px; /* 加大字体 */
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ff6b9d;
    background-color: #fff0f5;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff6b9d;
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

/* 主体内容 */
main {
    margin: 30px 0;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.8), rgba(255, 105, 180, 0.9)), url('https://via.placeholder.com/1200x400') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 40px;
    border-radius: 0 0 50% 50% / 0 0 20% 20%;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b9d, #ff8e53);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.6);
}

.btn:active {
    transform: translateY(1px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* 内容区域通用样式 */
section {
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #ff6b9d;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #ff6b9d, #ff8e53);
    margin: 10px auto;
    border-radius: 3px;
}

/* 关于我们 */
.about {
    background-color: #fff;
    padding: 40px 0;
}

.about .container p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

/* 新闻动态 */
.news .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news .news-list article {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    animation: slideInUp 0.5s ease;
    animation-fill-mode: both;
}

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

.news .news-list article:nth-child(1) { animation-delay: 0.1s; }
.news .news-list article:nth-child(2) { animation-delay: 0.2s; }
.news .news-list article:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news .news-list article h3 {
    color: #ff6b9d;
    margin-bottom: 10px;
    font-size: 20px;
}

.news .news-list article .date {
    color: #ff9eb5;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 业务范围 */
.services {
    background-color: #fffaf8;
    padding: 40px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    animation: fadeIn 0.5s ease;
    animation-fill-mode: both;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

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

.service-item h3 {
    color: #ff6b9d;
    margin-bottom: 15px;
    font-size: 22px;
}

/* 成功案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    animation: fadeIn 0.5s ease;
    animation-fill-mode: both;
}

.case-item:nth-child(1) { animation-delay: 0.1s; }
.case-item:nth-child(2) { animation-delay: 0.2s; }
.case-item:nth-child(3) { animation-delay: 0.3s; }

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

.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.case-item h3 {
    padding: 15px 20px 5px;
    color: #ff6b9d;
}

.case-item p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 14px;
}

/* 人才发展 */
.careers {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
}

.careers .container p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #666;
    font-size: 16px;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #333, #555);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ff9eb5;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff9eb5;
}

.footer-section ul {
    list-style: none;
    columns: 2; /* 改为2列布局 */
    column-gap: 30px;
}

.footer-section ul li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: #ff9eb5;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 80px 20px;
        border-radius: 0 0 30% 30% / 0 0 10% 10%;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .news .news-list,
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端底部链接改为1列 */
    .footer-section ul {
        columns: 1;
    }
    
    /* 移动端导航栏字体调整 */
    nav ul li a {
        font-size: 16px;
    }
}