/*
Theme Name: ANYE Dental Accurate Replica
Description: 100% accurate replica of ANYE dental website based on source code analysis
Version: 2.0
Author: ANYE Migration Team
*/

/* 根据源码分析的精确CSS变量 */
:root {
    --main-theme-color: #016FC6;
    --sub-theme-color: #016FC6;
}

/* 重置样式 - 完全匹配原网站 */
* {
    font-family: 'Roboto', sans-serif !important;
    font-family: 'Open Sans', sans-serif !important;
    word-break: break-word;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    margin: 0;
    padding: 0;
}

img {
    width: auto;
    height: auto;
}

.img-res img {
    width: auto;
    height: auto !important;
    max-width: 100% !important;
}

/* 容器系统 - Bootstrap兼容 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6, .col-md-3, .col-md-9, .col-xs-12, .col-sm-6 {
    padding: 0 15px;
}

.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; }
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }

/* 网站头部 - 精确还原 */
.site_header {
    position: relative;
    z-index: 999;
}

.site_header_bottom {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    flex: 1;
    margin: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

/* 导航菜单 - 完全匹配原样式 */
.nav_menu_box {
    flex: 2;
}

.nav_menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 30px;
}

.nav_menu li {
    position: relative;
}

.nav_menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    padding: 15px 0;
    display: block;
    transition: all 0.3s;
}

.nav_menu li:hover a,
.nav_menu li.currentLoc a {
    color: var(--main-theme-color);
}

.nav_menu li.currentLoc > a {
    background-color: var(--main-theme-color) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* 子菜单 */
.nav_menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav_menu li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav_menu li ul li {
    width: 100%;
    background-color: #fff;
}

.nav_menu li ul li a {
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid #f5f5f5;
}

.nav_menu li ul li a:hover {
    background-color: #f8f9fa;
    color: var(--main-theme-color);
}

/* 首页轮播Banner - 精确复制 */
.home_banner {
    position: relative;
    height: 800px;
    overflow: hidden;
}

.home_banner_swiper {
    width: 100%;
    height: 100%;
}

.home_banner .swiper-slide {
    width: 100%;
    height: 100%;
}

.home_banner .swiper-slide figure {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.home_banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banner分页器 - 完全匹配原样式 */
.banner_swiper_pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.banner_swiper_pagination .swiper-pagination-bullet {
    width: 36px;
    height: 4px;
    opacity: 1;
    background: #000;
    border-radius: 0;
    transition: all 0.3s;
}

.banner_swiper_pagination .swiper-pagination-bullet-active {
    background: var(--main-theme-color);
}

/* About Us section - 精确还原 */
.home_about {
    padding: 100px 0;
    background: #f8f9fa;
}

.home_about_content_wrap {
    display: flex;
    align-items: center;
    min-height: 400px;
}

.title_style01 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0 0 40px;
    line-height: 1.2;
}

.home_about_text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid;
}

.btn-primary {
    background-color: var(--main-theme-color);
    border-color: var(--main-theme-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0154A3;
    border-color: #0154A3;
}

.btn_style01 {
    margin-right: 10px;
}

.btn_style01:last-child {
    background-color: #ddd !important;
    border-color: #ddd !important;
    color: #666 !important;
}

/* About Us 图片和视频 */
.home_aboutus_profile {
    position: relative;
}

.home_about_img {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.home_about_img img {
    width: 100%;
    height: auto;
}

.play_btn_style01 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* 公司数据展示 - 完全匹配 */
.home_about_tech_line {
    margin-bottom: 15px;
}

.home_about_tech_item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.home_about_tech_item:hover {
    transform: translateY(-5px);
}

.home_about_tech_item_icon {
    margin: 0 20px 0 0;
    flex-shrink: 0;
}

.home_about_tech_item_icon img {
    width: 40px;
    height: auto;
}

.home_about_tech_item_text {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-theme-color);
    margin: 0 0 5px 0;
}

.home_about_tech_item div {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

/* Products section - 精确复制 */
.home_products {
    padding: 100px 0;
    background: url('https://www.anyeyl.com/attachment/116/source/image_1616142276_products_111861.png') center center no-repeat;
    background-size: cover;
    position: relative;
}

.home_products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
}

.home_products > .container {
    position: relative;
    z-index: 2;
}

.home_products_head {
    display: flex;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.home_products_widget h2 {
    margin: 0 0 15px 0;
}

.home_products_widget a {
    color: var(--main-theme-color);
    text-decoration: none;
    font-weight: 500;
}

.home_products_sort_list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.home_products_sort_list li a {
    display: block;
    padding: 12px 24px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #ddd;
    transition: all 0.3s;
    font-weight: 500;
}

.home_products_sort_list li.active a,
.home_products_sort_list li a:hover {
    background: var(--main-theme-color);
    color: #fff;
    border-color: var(--main-theme-color);
}

/* Products轮播内容 */
.home_products_swiper1 {
    padding-bottom: 70px;
}

.home_products_item_brief {
    padding: 30px 40px;
}

.home_products_item_title h2 {
    font-size: 32px;
    margin: 30px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home_products_item_desc {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 70px;
}

.home_products_item_album {
    display: flex;
    gap: 15px;
}

.home_products_item_album figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.home_products_item_album img {
    width: 140px;
    height: 105px;
    object-fit: cover;
    transition: transform 0.3s;
}

.home_products_item_album img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.btn_style02 {
    font-size: 14px;
    padding: 8px 20px;
}

.pull-right {
    float: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 工具类 */
.d-flex { display: flex; }
.text-uppercase { text-transform: uppercase; }
.mt-0 { margin-top: 0; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-30 { margin-top: 30px; }
.mt-90 { margin-top: 90px; }
.pb-30 { padding-bottom: 30px; }
.padding0 { padding: 0; }

/* 响应式设计 */
@media only screen and (max-width: 768px) {
    .site_header_bottom {
        padding: 10px 0;
    }
    
    .nav_menu_box {
        display: none;
    }
    
    .col-md-6, .col-md-3, .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .title_style01 {
        font-size: 30px;
    }
    
    .home_banner {
        height: 400px;
    }
    
    .banner_swiper_pagination {
        bottom: 6px;
    }
    
    .banner_swiper_pagination .swiper-pagination-bullet {
        width: 20px;
        height: 3px;
    }
    
    .home_products_sort_list {
        flex-direction: column;
        gap: 10px;
    }
    
    .home_products_item_title h2 {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .home_products_item_desc {
        margin-bottom: 40px;
    }
    
    .home_products_item_album {
        flex-wrap: wrap;
    }
    
    .home_products_item_album img {
        width: 100px;
        height: 75px;
    }
}

@media only screen and (max-width: 767px) {
    .sm-mb-15 { margin-bottom: 15px; }
    .sm-pb-30 { padding-bottom: 30px; }
    .sm-mt-20 { margin-top: 20px; }
    .sm-mb-40 { margin-bottom: 40px; }
    .sm-mt-60 { margin-top: 60px; }
    .sm-pb-70 { padding-bottom: 70px; }
}

@media only screen and (max-width: 480px) {
    .xs-mb-20 { margin-bottom: 20px; }
}

/* Swiper重写样式以匹配原网站 */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 箭头和图标 */
.flaticon-right-arrow-2::before {
    content: "→";
    font-family: Arial;
}

.arrow {
    margin-left: 8px;
}

/* 隐藏类 */
.hidden-xs,
.hidden-sm {
    display: block;
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

/* 确保所有颜色使用主题色 */
a:focus,
a:hover {
    color: var(--main-theme-color);
}

/* 最终的精细调整以确保100%匹配 */
.use-positon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} 