/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding-top: 136px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a3c7c;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2a5fbd;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* 顶部固定区域 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 顶部信息栏样式 */
.top-info-bar {
    background-color: #1a3c7c;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.top-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.company-slogan {
    font-weight: 600;
    color: #fff;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    font-size: 0.9rem;
    color: #a3b6e0;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 100%;
    width: auto;
}

/* 文字LOGO样式 */
.text-logo {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a3c7c;
    background: linear-gradient(135deg, #2a5fbd 0%, #1a3c7c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding: 5px 0;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(42, 95, 189, 0.1);
}

.text-logo:hover {
    transform: translateY(-2px);
    text-shadow: 4px 4px 8px rgba(42, 95, 189, 0.2);
}

.text-logo:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2a5fbd, #1a3c7c);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.text-logo:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    list-style: none;
    white-space: nowrap;
}

.nav-links li {
    margin-left: 22px;
}

.nav-links a {
    font-weight: 600;
    color: #444;
    transition: color 0.3s;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

.nav-links a:hover {
    color: #2a5fbd;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2a5fbd;
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a3c7c;
    background: none;
    border: none;
}

/* 当页面滚动时的导航栏样式 */
.fixed-header.scrolled .top-info-bar {
    padding: 5px 0;
    font-size: 0.8rem;
}

.fixed-header.scrolled .contact-info {
    gap: 15px;
}

.fixed-header.scrolled header {
    padding: 5px 0;
}

.fixed-header.scrolled .logo {
    height: 50px;
}

.fixed-header.scrolled .text-logo {
    font-size: 1.5rem;
}

/* 轮播图区域 */
.slider-section {
    padding: 0;
    margin-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.8s ease;
}

.slide {
    width: 50%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 40px;
}

.slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.3rem;
    max-width: 600px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

/* 产品展示区域 */
.products-section {
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #1a3c7c;
    margin-bottom: 12px;
}

.product-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-btn {
    display: inline-block;
    background: linear-gradient(to right, #2a5fbd, #1a3c7c);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    align-self: flex-start;
    font-size: 0.9rem;
    text-decoration: none;
}

.product-btn:hover {
    background: linear-gradient(to right, #1a3c7c, #2a5fbd);
    box-shadow: 0 5px 15px rgba(42, 95, 189, 0.3);
}

/* 308nm光疗指南区域 */
.guide-section {
    background-color: #f0f5ff;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章轮播容器 */
.articles-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(26, 60, 124, 0.1);
    background: white;
}

.articles-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.article-slide {
    min-width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.article-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-slide:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 20px 0;
}

.article-content h3 {
    font-size: 1.8rem;
    color: #1a3c7c;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1rem;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #2a5fbd, #1a3c7c);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.article-btn:hover {
    background: linear-gradient(to right, #1a3c7c, #2a5fbd);
    box-shadow: 0 8px 20px rgba(42, 95, 189, 0.3);
    transform: translateY(-3px);
}

.article-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.article-btn:hover i {
    transform: translateX(5px);
}

.articles-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.article-prev, .article-next {
    background-color: white;
    border: 2px solid #eef3fd;
    color: #2a5fbd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.article-prev:hover, .article-next:hover {
    background-color: #2a5fbd;
    color: white;
    border-color: #2a5fbd;
    transform: translateY(-3px);
}

.articles-indicators {
    display: flex;
    margin: 0 20px;
}

.article-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #eef3fd;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.article-indicator.active {
    background-color: #2a5fbd;
    transform: scale(1.2);
}

/* 白癜风教育区域 - 最新文章 */
.education-section {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.education-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.education-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.education-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(42, 95, 189, 0.1);
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(42, 95, 189, 0.15);
    border-color: rgba(42, 95, 189, 0.3);
}

.education-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 95, 189, 0.05), rgba(26, 60, 124, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.education-item:hover:before {
    opacity: 1;
}

.education-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.education-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.education-item:hover .education-img img {
    transform: scale(1.1);
}

.education-img:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
}

.education-text {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: white;
}

.education-icon {
    position: absolute;
    top: -30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2a5fbd, #1a3c7c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(42, 95, 189, 0.3);
    z-index: 3;
}

.education-icon i {
    font-size: 1.5rem;
    color: white;
}

.education-text h3 {
    font-size: 1.4rem;
    color: #1a3c7c;
    margin-bottom: 15px;
    margin-top: 10px;
    transition: color 0.3s;
}

.education-item:hover .education-text h3 {
    color: #2a5fbd;
}

.education-text p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

.education-text .article-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.education-link {
    display: inline-flex;
    align-items: center;
    color: #2a5fbd;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
    text-decoration: none;
    align-self: flex-start;
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid #eef3fd;
    background-color: transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.education-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.education-link:hover {
    background-color: #2a5fbd;
    color: white;
    border-color: #2a5fbd;
    transform: translateY(-2px);
}

.education-link:hover i {
    transform: translateX(5px);
}

/* 评论区域 */
.comments-section {
    background-color: #fff;
}

.comment-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comment-form h3 {
    font-size: 1.8rem;
    color: #1a3c7c;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2a5fbd;
}

/* 页脚样式 */
footer {
    background-color: #1a3c7c;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #2a5fbd;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #c2d1f0;
    transition: color 0.3s;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a3b6e0;
    font-size: 0.95rem;
}

/* 动画效果 */
.education-item.active {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(42, 95, 189, 0.2);
}

@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
    50% { box-shadow: 0 10px 30px rgba(42, 95, 189, 0.2); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
}

.education-item.active {
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .article-slide {
        flex-direction: column;
        gap: 30px;
    }
    .article-image, .article-content {
        width: 100%;
    }
    .article-image img {
        height: 300px;
    }
    .products-grid, .education-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .slider-container {
        height: 500px;
    }
    .slide-content h1 {
        font-size: 2.3rem;
    }
    .slide-content p {
        font-size: 1.1rem;
    }
    .article-content h3 {
        font-size: 1.6rem;
    }
    .products-grid, .education-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    .top-info-bar {
        display: none;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 10px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .text-logo {
        font-size: 1.5rem;
    }
    .logo-container {
        gap: 10px;
    }
    .slider-container {
        height: 400px;
    }
    .slide-content h1 {
        font-size: 1.8rem;
    }
    .slide-content {
        padding: 20px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    section {
        padding: 60px 0;
    }
    .article-slide {
        padding: 30px 20px;
    }
    .article-content h3 {
        font-size: 1.4rem;
    }
    .products-grid, .education-content {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .product-info p {
        margin-bottom: 20px;
    }
    .education-content {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 80px;
    }
    .slider-container {
        height: 350px;
    }
    .slider-controls {
        bottom: 20px;
        right: 20px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    .article-slide {
        padding: 20px 15px;
    }
    .article-image img {
        height: 220px;
    }
    .comment-form-container {
        padding: 25px;
    }
    .logo {
        height: 50px;
    }
    .text-logo {
        font-size: 1.3rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .education-img {
        height: 200px;
    }
    .education-icon {
        width: 50px;
        height: 50px;
        top: -25px;
        left: 25px;
    }
    .education-icon i {
        font-size: 1.2rem;
    }
    .education-text {
        padding: 25px;
    }
}
