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

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

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

.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #2196f3);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
    color: #555;
}

a {
    text-decoration: none;
    color: #2196f3;
    transition: all 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #4caf50, #2196f3);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2196f3;
    color: #2196f3;
}

.btn-outline:hover {
    background: #2196f3;
    color: white;
}

/* 表单元素 */
.search-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    font-size: 1rem;
    margin-right: 10px;
}

.search-btn {
    padding: 12px 20px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.search-btn:hover {
    background: #0d47a1;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #2196f3;
    font-size: 1.8rem;
}

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

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

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 10px;
    font-size: 18px;
    border-radius: 4px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #2196f3;
}

nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2196f3;
    transition: width 0.3s ease;
}

nav ul li a:hover:before,
nav ul li a.active:before {
    width: 100%;
}

/* 首页特色部分 */
/* 公司简介 */
#intro {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.intro-content p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* 宣传横幅 */
#banner {
    background: linear-gradient(rgba(33, 150, 243, 0.8), rgba(76, 175, 80, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%232196f3"/><circle cx="20" cy="20" r="5" fill="%23ffffff" opacity="0.2"/><circle cx="50" cy="50" r="8" fill="%23ffffff" opacity="0.2"/><circle cx="80" cy="80" r="6" fill="%23ffffff" opacity="0.2"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.news-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-item .date {
    color: #2196f3;
    font-weight: 500;
    margin-bottom: 10px;
}

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

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

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
}

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

.case-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4caf50;
}

/* 人才发展 */
#careers {
    background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%);
}

.careers-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.careers-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* 关于我们页面 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text ul {
    padding-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2196f3;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-year {
    position: absolute;
    width: 80px;
    height: 80px;
    left: 50%;
    top: 0;
    margin-left: -40px;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.team-member {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
}

.member-title {
    color: #2196f3;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 新闻动态页面 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.news-date {
    background: #2196f3;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.news-date .day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 5px 0;
}

.news-date .year {
    font-size: 0.9rem;
}

.news-content {
    padding: 25px;
    flex: 1;
}

.news-content h3 {
    margin-top: 0;
}

.excerpt {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: #2196f3;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.read-more:after {
    content: " →";
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.page-link:hover,
.page-link.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

/* 业务范围页面 */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.services-list {
    display: grid;
    gap: 40px;
}

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

.service-header {
    padding: 30px;
    background: linear-gradient(90deg, #4caf50, #2196f3);
    color: white;
    display: flex;
    align-items: center;
}

.service-description {
    padding: 30px;
}

.service-description ul {
    padding-left: 20px;
    margin: 20px 0;
}

.service-description ul li {
    margin-bottom: 10px;
}

/* 成功案例页面 */
.cases-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.cases-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2196f3;
    color: white;
}

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

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

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

.case-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.case-header h3 {
    margin: 0 0 15px 0;
}

.case-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.enterprise-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.chronic-tag {
    background: #ffebee;
    color: #d32f2f;
}

.individual-tag {
    background: #e8f5e9;
    color: #388e3c;
}

.case-body {
    padding: 25px;
}

.case-summary {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item h4 {
    color: #2196f3;
    margin-bottom: 10px;
}

/* 客户评价 */
.testimonials {
    text-align: center;
}

.testimonial-slider {
    max-width: 1100px;
    margin: 40px auto 0;
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #555;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.author-title {
    color: #2196f3;
}

/* 产品中心页面 */
.products-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #2196f3;
    color: white;
}

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

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

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #4caf50, #2196f3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-info {
    padding: 25px;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-type {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.software-type {
    background: #e3f2fd;
    color: #1976d2;
}

.hardware-type {
    background: #fff3e0;
    color: #f57c00;
}

.service-type {
    background: #e8f5e9;
    color: #388e3c;
}

.product-link {
    color: #2196f3;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* 技术优势 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* 知识库页面 */
.knowledge-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.knowledge-search {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.knowledge-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

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

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

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

.knowledge-header {
    padding: 25px 25px 0;
}

.knowledge-header h3 {
    margin: 0 0 15px 0;
}

.knowledge-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.disease-category {
    background: #ffebee;
    color: #d32f2f;
}

.nutrition-category {
    background: #fff3e0;
    color: #f57c00;
}

.exercise-category {
    background: #e8f5e9;
    color: #388e3c;
}

.mental-category {
    background: #f3e5f5;
    color: #7b1fa2;
}

.elderly-category {
    background: #e1f5fe;
    color: #0288d1;
}

.child-category {
    background: #fce4ec;
    color: #c2185b;
}

.knowledge-excerpt {
    padding: 0 25px;
}

.knowledge-meta {
    padding: 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publish-date {
    color: #999;
    font-size: 0.9rem;
}

/* 热门话题 */
.popular-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.topic-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 常见问题页面 */
.faq-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.faq-search {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    padding: 25px;
    background: #f5f7fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    color: #333;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196f3;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    margin: 25px 0;
}

/* 联系我们页面 */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info .info-item {
    margin-bottom: 30px;
}

.contact-info .info-item:last-child {
    margin-bottom: 0;
}

.info-item h4 {
    color: #2196f3;
    margin-bottom: 10px;
}

.departments h3 {
    margin-bottom: 25px;
}

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

.department-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.department-card h4 {
    color: #2196f3;
    margin-bottom: 15px;
}

.map-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.map-placeholder {
    background: linear-gradient(135deg, #4caf50, #2196f3);
    color: white;
    padding: 60px 30px;
    text-align: center;
    border-radius: 8px;
}

.map-placeholder p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.branches {
    display: grid;
    gap: 20px;
}

.branch-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.transport-item h3 {
    color: #2196f3;
    margin-bottom: 15px;
}

/* CTA区域 */
.cta-section {
    text-align: center;
}

/* 底部样式 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: #2196f3;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #bdc3c7;
}

.footer-section ul li a:hover {
    color: #2196f3;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .section {
        padding: 40px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    #banner {
        padding: 60px 0;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.1rem;
    }

    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .news-grid,
    .cases-grid,
    .products-grid,
    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .timeline:before {
        left: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 0 60px;
        text-align: left;
    }

    .timeline-year {
        left: 30px;
        margin-left: 0;
    }
}