/* 杭州凯立康医疗器械有限公司官网样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

a:hover {
    color: #0066b3;
}

ul, li {
    list-style: none;
}

img {
    border: none;
    max-width: 100%;
    display: block;
}

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

/* 顶部信息栏 */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .welcome {
    color: #0066b3;
}

.top-bar .top-right a {
    margin-left: 20px;
    color: #666;
}

.top-bar .top-right a:hover {
    color: #0066b3;
}

/* 头部 */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #0066b3;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo .logo-text h1 {
    font-size: 24px;
    color: #0066b3;
    font-weight: bold;
}

.logo .logo-text p {
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    margin-right: 20px;
}

.search-box input {
    width: 200px;
    height: 36px;
    border: 1px solid #ddd;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    width: 60px;
    height: 36px;
    background: #0066b3;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.search-box button:hover {
    background: #005599;
}

.lang-btn {
    padding: 8px 15px;
    border: 1px solid #0066b3;
    color: #0066b3;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

.lang-btn:hover {
    background: #0066b3;
    color: #fff;
}

/* 导航栏 */
.nav {
    background: #0066b3;
}

.nav ul {
    display: flex;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    padding: 15px 30px;
    color: #fff;
    font-size: 16px;
}

.nav a:hover, .nav a.active {
    background: #005599;
    color: #fff;
}

/* 下拉菜单 */
.nav li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    z-index: 999;
}

.nav li:hover .dropdown {
    display: block;
}

.nav li .dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.nav li .dropdown a:last-child {
    border-bottom: none;
}

.nav li .dropdown a:hover {
    background: #f5f8fc;
    color: #0066b3;
}

/* Banner */
.banner {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #0066b3 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner01.jpg') center/cover;
    opacity: 0.3;
}

.banner-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.banner-content .btn {
    display: inline-block;
    padding: 12px 40px;
    background: #fff;
    color: #0066b3;
    font-size: 16px;
    border-radius: 30px;
    font-weight: bold;
}

.banner-content .btn:hover {
    background: #f0f0f0;
}

/* 首页轮播 */
.banner-slider {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}
.banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    z-index: 2;
}
.banner-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
}
.banner-slide-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}
.banner-slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.banner-slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.banner-slide-content .btn {
    display: inline-block;
    padding: 12px 40px;
    background: #fff;
    color: #0066b3;
    font-size: 16px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
}
.banner-slide-content .btn:hover {
    background: #f0f0f0;
}
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
    user-select: none;
}
.banner-arrow:hover {
    background: rgba(0,0,0,0.7);
}
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.banner-dot.active {
    background: #fff;
}

/* 通用标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 14px;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: #0066b3;
    margin: 15px auto 0;
}

/* 产品分类 */
.product-categories {
    padding: 60px 0;
    background: #f9f9f9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-item {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover {
    border-color: #0066b3;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 179, 0.1);
}

.category-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #0066b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    overflow: hidden;
}

.category-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.category-item p {
    font-size: 12px;
    color: #999;
}

/* 产品展示 */
.products {
    padding: 60px 0;
}

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

.product-filter a {
    padding: 8px 25px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.product-filter a:hover, .product-filter a.active {
    background: #0066b3;
    color: #fff;
    border-color: #0066b3;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
    overflow: hidden;
}

.product-item:hover {
    border-color: #0066b3;
    box-shadow: 0 10px 30px rgba(0, 102, 179, 0.1);
    transform: translateY(-5px);
}

.product-item .img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item .img img {
    max-width: 90%;
    max-height: 90%;
    transition: all 0.3s;
}

.product-item:hover .img img {
    transform: scale(1.1);
}

.product-item .info {
    padding: 15px;
    text-align: center;
}

.product-item .info h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-item .info .btn {
    display: inline-block;
    padding: 5px 20px;
    background: #0066b3;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}

.product-item .info .btn:hover {
    background: #005599;
}

/* 关于我们 */
.about {
    padding: 60px 0;
    background: #f9f9f9;
}

.about .container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 5px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.about-content .line {
    width: 60px;
    height: 3px;
    background: #0066b3;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
}

.about-content .btn {
    display: inline-block;
    padding: 10px 30px;
    background: #0066b3;
    color: #fff;
    font-size: 14px;
    border-radius: 3px;
    margin-top: 10px;
}

.about-content .btn:hover {
    background: #005599;
}

/* 新闻中心 */
.news {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s;
}

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

.news-item .img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item .info {
    padding: 20px;
}

.news-item .date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 联系我们 */
.contact-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.contact-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #0066b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.contact-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 底部 */
.footer {
    background: #222;
    color: #999;
    padding: 50px 0 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 10px;
}

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

.footer ul li a {
    color: #999;
    font-size: 13px;
}

.footer ul li a:hover {
    color: #0066b3;
}

.footer .contact-info p {
    display: flex;
    align-items: center;
}

.footer .contact-info p span {
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer-bottom a {
    color: #666;
}

.footer-bottom a:hover {
    color: #0066b3;
}

/* 内页Banner */
.page-banner {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #0066b3 0%, #0099cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.page-banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 14px;
    opacity: 0.8;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    background: #f5f5f5;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #0066b3;
}

/* 内页内容 */
.page-content {
    padding: 50px 0;
}

.page-content .container {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-title {
    background: #0066b3;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    margin-bottom: 1px;
}

.sidebar-menu li {
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #fff;
    color: #0066b3;
    padding-left: 25px;
}

.main-content {
    flex: 1;
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5;
}

.main-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066b3;
}

.main-content p {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
}

/* 产品详情 */
.product-detail {
    display: block;
}

.product-detail .img {
    width: 100%;
    border: 1px solid #e5e5e5;
    padding: 20px;
    background: #f9f9f9;
    box-sizing: border-box;
}

.product-detail .img img {
    width: 100%;
}

.product-detail .info {
    flex: 1;
}

.product-detail .info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.product-detail .info .meta {
    padding: 15px;
    background: #f9f9f9;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.product-detail .info .meta p {
    margin-bottom: 8px;
}

.product-detail .info .desc {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

/* 响应式 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer .container {
        grid-template-columns: 1fr;
    }
    .about .container {
        flex-direction: column;
    }
    .page-content .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .product-detail {
        flex-direction: column;
    }
    .product-detail .img {
        width: 100%;
    }
}

/* 二级子分类下拉 */
.nav .dropdown .nav-item {
    position: relative;
}
.nav .dropdown .nav-item > a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}
.nav .dropdown .nav-item > a:hover {
    background: #f5f8fc;
    color: #0066b3;
}
.nav .dropdown .nav-item .arrow {
    float: right;
    color: #999;
    font-size: 16px;
}
.nav .dropdown .nav-item .sub-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 4px 4px 0;
    z-index: 1000;
}
.nav .dropdown .nav-item:hover .sub-dropdown {
    display: block;
}
.nav .dropdown .nav-item .sub-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}
.nav .dropdown .nav-item .sub-dropdown a:hover {
    background: #f5f8fc;
    color: #0066b3;
}

/* 产品详情页图片放大 */
.product-detail .img-zoom-wrap {
    position: relative;
    display: inline-block;
}
.product-detail .zoom-container {
    width: auto;
    max-width: 500px;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
    padding: 20px;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}
.product-detail .zoom-container img {
    width: auto;
    max-width: 100%;
    display: block;
}
.product-detail .zoom-lens {
    position: absolute;
    width: 50px;
    height: 35px;
    border: 2px solid #0066b3;
    background: rgba(0,102,179,0.15);
    cursor: move;
    display: none;
    pointer-events: none;
    z-index: 10;
}
.product-detail .zoom-result {
    width: 700px;
    height: 500px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    background: #fff;
    display: none;
    position: absolute;
    left: calc(100% + 30px);
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.product-detail .zoom-result img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
}
