﻿/* 有邦健康网站 - 公共样式 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #4dabf7;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

/* 导航栏 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 20px 60px;
    text-align: center;
    color: white;
}

.page-header-content h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 通用区块 */
.section {
    padding: 80px 20px;
}

.section.bg-light {
    background: var(--bg-white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.left {
    text-align: left;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
}

/* 关于页面 */
.content-wrapper {
    max-width: 100%;
}

/* 理念网格 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.philosophy-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.philosophy-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.philosophy-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.philosophy-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* 合作卡片网格 */
.coop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.coop-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.coop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.coop-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.coop-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.coop-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.coop-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coop-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.coop-feature::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .coop-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .coop-card {
        padding: 30px 24px;
    }
}

/* 公司介绍左右布局 */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}
.intro-text {
    display: flex;
    flex-direction: column;
}
.intro-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.intro-lead {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}
.about-detail p {
    margin-bottom: 16px;
    line-height: 2;
    color: var(--text-light);
    text-align: justify;
    font-size: 15px;
}
.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .intro-image {
        order: -1;
    }
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    width: 45%;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* 资质 */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.qual-item {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.qual-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.qual-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.qual-item h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.qual-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-image {
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

.product-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.product-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* 新闻列表（新样式：干净行式，日期灰底框+中间文字+右侧长方形了解详情框） */
.news-list {
    background: transparent;
}

.news-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: var(--transition);
    overflow: hidden;
}

.news-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 12px rgba(0,123,255,0.1);
}

.news-date {
    min-width: 120px;
    padding: 28px 20px;
    background: #f1f3f5;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 30px;
    text-decoration: none;
    color: inherit;
}

.news-body {
    flex: 1;
}

.news-title {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s;
}

.news-item:hover .news-title {
    color: var(--secondary-color);
}

.news-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    min-width: 100px;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.news-more .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.news-item:hover .news-more {
    background: var(--primary-color);
}

.news-item:hover .news-more .arrow {
    transform: translateX(4px);
}

/* 加载更多按钮 */
.load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    display: inline-block;
    padding: 12px 50px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--secondary-color);
    color: white;
}

/* 隐藏的新闻项（用于加载更多） */
.news-item.extra {
    display: none;
}

.news-item.extra.show {
    display: flex;
}

/* 页脚 */
.footer {
    background: #0a2530;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
}

.footer-column p {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #718096;
}

.footer-bottom a {
    color: #718096;
    text-decoration: none;
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .page-header-content h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 50px !important;
    }
    
    .footer {
        padding: 40px 16px 24px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 14px;
    }
    .footer-column p {
        font-size: 13px;
    }
    .footer-column img {
        margin: 0 auto;
    }
    .footer-column a {
        font-size: 13px;
    }
    .footer-bottom {
        font-size: 12px;
        padding-top: 24px;
    }

    /* 新闻列表 — 移动端自适应：日期/内容/按钮纵向堆叠 */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-date {
        min-width: unset;
        width: 100%;
        text-align: left;
        padding: 16px 20px 8px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        font-size: 12px;
    }
    .news-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }
    .news-body h4 {
        font-size: 15px;
    }
    .news-desc {
        -webkit-line-clamp: 3;
    }
    .news-more {
        min-width: unset;
        width: 100%;
        padding: 10px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}
