/* DentViva Global Styles - Performance Optimized */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
}

/* 性能优化：减少重绘重排 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 性能优化：硬件加速 */
.btn, .product-card, .slide, .cert-card, .mission-card {
    will-change: transform;
    transform: translateZ(0);
}

/* 性能优化：CSS Containment */
.hero-slider, .product-grid, .cert-grid, .mission-grid {
    contain: layout style;
}

/* 性能优化：图片渲染优化 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
:root {
    --main-color: #2E8B8B;
    --main-hover: #247575;
    --secondary: #4ECDC4;
    --light-bg: #F7FBFB;
    --dark-text: #333333;
    --gray-text: #666666;
    --white: #ffffff;
    --border: #e5e7eb;
}
body {
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
}
ul, li {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
    width: 100%;
}
.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}
.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--main-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover {
    background: var(--main-hover);
    color: var(--white);
}

/* ========== 顶部热线栏 ========== */
.top-bar {
    width: 100%;
    background: var(--main-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hotline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hotline i {
    font-size: 14px;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}
.search-box input {
    border: none;
    background: transparent;
    padding: 6px 12px;
    width: 200px;
    outline: none;
    color: white;
    font-size: 13px;
}
.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-box button {
    background: var(--secondary);
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: white;
    font-size: 13px;
    transition: background 0.3s;
}
.search-box button:hover {
    background: #3dbdb5;
}
.lang-switcher {
    display: flex;
    gap: 6px;
}
.lang-switcher a {
    color: white;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0.7;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.lang-switcher a:hover, .lang-switcher a.active {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

/* ========== 头部导航栏 ========== */
.header {
    width: 100%;
    height: 80px;
    line-height: 80px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.header-right {
    display: flex;
    align-items: center;
}
.main-nav {
    display: flex;
    gap: 0;
}
.main-nav > li {
    position: relative;
    padding: 0 22px;
}
.main-nav > li > a {
    font-size: 15px;
    font-weight: 500;
    display: block;
    transition: color 0.3s;
}
.main-nav > li:hover > a,
.main-nav > li > a.active {
    color: var(--main-color);
}

/* 下拉菜单 */
.sub-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 220px;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 9999;
}
.sub-nav li {
    line-height: 45px;
    padding: 0 20px;
    border-bottom: 1px solid #f5f5f5;
}
.sub-nav li:last-child {
    border-bottom: none;
}
.sub-nav li a {
    display: block;
    font-size: 14px;
    color: var(--gray-text);
    transition: color 0.3s;
}
.sub-nav li:hover a {
    color: var(--main-color);
}
.main-nav > li:hover .sub-nav {
    display: block;
}

/* ========== 页面顶部标题栏 ========== */
.page-top {
    margin-top: 0;
    padding: 60px 0;
    background: var(--light-bg);
}
.page-top h1 {
    font-size: 32px;
    text-align: center;
    color: var(--dark-text);
}

/* ========== 首页Banner ========== */
.banner {
    width: 100%;
    height: calc(100vh - 136px);
    min-height: 500px;
    background: linear-gradient(120deg, #E6F7F4 0%, #F0FDFB 50%, #E8F8F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner-content {
    max-width: 700px;
    padding: 0 20px;
}
.banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-text);
}
.banner p {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 30px;
    line-height: 1.8;
}
.banner .btn {
    padding: 12px 36px;
    font-size: 15px;
    border-radius: 4px;
}

/* ========== 首页产品卡片 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--dark-text);
}
.product-card:hover {
    transform: translateY(-6px);
}
.product-img {
    width: 100%;
    height: 200px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 16px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 20px;
}
.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}
.product-info p {
    color: var(--gray-text);
    font-size: 13px;
}

/* ========== 产品分类卡片 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.category-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--dark-text);
    min-width: 0;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-card h3 {
    font-size: 16px;
    font-weight: 600;
}
.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-icon i {
    font-size: 36px;
    color: var(--main-color);
}

/* 分类图片样式 - 完全自适应卡片 */
.category-img-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-bg);
}
.category-img-wrapper img,
.category-img-wrapper .category-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.category-img-wrapper .category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    margin: 0;
}

/* ========== 关于我们区块 ========== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}
.about-left {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 18px;
    overflow: hidden;
}
.about-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-right {
    flex: 1;
    min-width: 300px;
}
.about-right h2 {
    font-size: 26px;
    margin-bottom: 20px;
}
.about-right p {
    color: var(--gray-text);
    line-height: 1.9;
    margin-bottom: 15px;
}
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.cert-item {
    padding: 6px 15px;
    background: var(--light-bg);
    border-radius: 4px;
    color: var(--main-color);
    font-size: 13px;
}

/* ========== 核心优势 ========== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.advantage-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.advantage-card:hover {
    transform: translateY(-5px);
}
.advantage-card i {
    font-size: 36px;
    color: var(--main-color);
    margin-bottom: 15px;
    display: block;
}
.advantage-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.advantage-card p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

/* ========== 新闻列表 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.news-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: translateY(-3px);
}
.news-date {
    color: var(--main-color);
    font-size: 13px;
    margin-bottom: 10px;
}
.news-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}
.news-item h3 a {
    color: var(--dark-text);
    transition: color 0.3s;
}
.news-item h3 a:hover {
    color: var(--main-color);
}
.news-item p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* ========== 联系表单 ========== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--light-bg);
    padding: 35px;
    border-radius: 8px;
}
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: var(--main-color);
}
.contact-form textarea {
    height: 140px;
    resize: none;
}
.contact-form .btn {
    width: 100%;
    padding: 14px 0;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.contact-info h3 {
    font-size: 20px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
    display: inline-block;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--gray-text);
    line-height: 1.8;
}
.contact-info li i {
    font-size: 20px;
    color: var(--main-color);
    width: 30px;
    text-align: center;
    margin-top: 3px;
}
.contact-info .hotline-num {
    font-size: 20px;
    color: var(--main-color);
    font-weight: 700;
    margin-top: 10px;
}

/* ========== 产品详情 ========== */
.product-detail {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.product-img-box {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 18px;
    overflow: hidden;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-text {
    flex: 1;
    min-width: 300px;
}
.product-text h2 {
    font-size: 26px;
    margin-bottom: 20px;
}
.product-text p {
    color: var(--gray-text);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ========== 页脚 ========== */
.footer {
    width: 100%;
    background: #2D3748;
    color: #ccc;
    padding: 40px 0 20px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
}
.footer-col a {
    color: #ccc;
    line-height: 2;
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: var(--secondary);
}
.footer-col p {
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    .category-card {
        padding: 15px 10px;
    }
    .category-card h3 {
        font-size: 14px;
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-left {
        height: 300px;
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .banner {
        height: auto;
        min-height: 400px;
        padding: 60px 0;
    }
    .banner h1 {
        font-size: 28px;
    }
    .search-box {
        display: none;
    }
    .top-bar .container {
        justify-content: center;
    }
}
