/* index.html 样式迁移 */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #81c784;
    --accent-color: #ff8f00;
    --text-color: #333;
    --light-bg: #eaf5d9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    color: #666;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 轮播图 */
.banner {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('banner-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: rgba(46, 125, 50, 0.7);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e65100;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #eaf5d9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: rgba(46, 125, 50, 0.7);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-content {
    background:linear-gradient(to right, rgba(234, 245, 217, 0.9) 60%, transparent), url('https://lshtbct.oss-cn-hangzhou.aliyuncs.com/images/aboutlv.jpg') no-repeat right center;
    background-size: cover;
    background-attachment: local;
    min-height: 500px;
    padding: 40px;
    border-radius: 12px;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.about-text {
    flex: 0 0 55%;
    position: relative; /* 确保文字在遮罩上层 */
    z-index: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #2e7d32;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

.about-text p {
    text-indent: 2em;
    /* 首行缩进2个字符宽度 */
    margin-bottom: 16px;
    /* 可选：增加段落间距，优化阅读体验 */
    color: #333; /* 保持正文黑色 */
}
@media (max-width: 992px) {
    .about-content {
        background: 
            linear-gradient(rgba(234, 245, 217, 0.9), rgba(234, 245, 217, 0.9)),
            url('https://lshtbct.oss-cn-hangzhou.aliyuncs.com/images/aboutlv.jpg') no-repeat right center;
        background-size: contain;
    }
    .about-text {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* 为内容添加半透明背景，确保文字清晰可读 */
.about-content {
    background-color: rgba(255, 255, 255, 0.9);
    /* 白色半透明背景 */
    padding: 40px;
    /* 增加内边距 */
    border-radius: 12px;
    /* 圆角效果 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    /* 轻微阴影增强层次感 */
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about .btn {
    margin-top: 24px;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background-color: #eaf5d9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background-color: rgba(46, 125, 50, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: white;
}

.product-info p {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 13px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 合作伙伴 */
.partners {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.partner-logo {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 页脚 */
footer {
    background-color: #222;
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #777;
    font-size: 14px;
}

.copyright a {
    color: #777;
    text-decoration: none;
}

/* 商标证书展示 */
.certificates {
    padding: 70px 0;
    background-color: #eaf5d9;
}

.certificates-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.certificates-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.certificate-item {
    background: rgba(46, 125, 50, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(46, 125, 50, 0.10);
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(20% - 20px);
    max-width: 200px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.16);
}

.certificate-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    max-height: 240px;
}

@media (max-width: 1200px) {
    .certificate-item {
        width: calc(25% - 20px);
    }
}

@media (max-width: 900px) {
    .certificate-item {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 600px) {
    .certificate-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 400px) {
    .certificate-item {
        width: 100%;
        max-width: 280px;
    }
}

/* 中医简介部分 */
.tcm-intro {
    padding: 70px 0;
    background-color: #eaf5d9;
}

.tcm-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tcm-item {
    flex: 1;
    min-width: 200px;
    max-width: 25%;
    background: rgba(46, 125, 50, 0.7);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 18px rgba(46, 125, 50, 0.10);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tcm-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.16);
}

.tcm-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .tcm-item {
        min-width: 45%;
        max-width: 45%;
    }
}

@media (max-width: 600px) {
    .tcm-item {
        min-width: 90%;
        max-width: 90%;
    }
}
/* 图片放大模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  .modal-content {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
  }
  
  @keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
  }
  
  #caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 18px;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
  }
  
  /* 响应式调整 */
  @media only screen and (max-width: 768px) {
    .modal-content {
      max-width: 95%;
      max-height: 70vh;
    }
    
    #caption {
      font-size: 16px;
    }
    
    .close {
      font-size: 30px;
      top: 15px;
      right: 25px;
    }
  }
.certificate-item img, .tcm-item img {
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .certificate-item:hover img, .tcm-item:hover img {
    transform: scale(1.05);
  }