
/* =======================
   YANGLI 网站完整样式修复
   ======================= */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 14px;
}

/* 页面容器 */
.container, .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =======================
   头部和导航样式
   ======================= */

/* 顶部信息栏 */
.top-bar {
    background-color: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

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

/* 主导航区域 */
header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    min-height: 80px;
}

/* LOGO样式 */
.logo {
    display: flex;
    align-items: center;
    height: 60px;
}

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

/* 语言选择器 */
.language-selector {
    position: relative;
    margin-right: 20px;
}

.language-selector .current-lang {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.language-selector img {
    width: 16px;
    height: 12px;
    margin-right: 5px;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box input {
    width: 250px;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #007bff;
}

.search-box button {
    position: absolute;
    right: 5px;
    background: #007bff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

/* =======================
   主导航菜单
   ======================= */

.main-nav {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    padding: 0;
}

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

/* 导航菜单 */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    margin-right: 30px;
}

.nav-menu > li > a {
    display: block;
    padding: 20px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu > li > a:hover {
    color: #007bff;
}

/* 高亮菜单项 */
.nav-menu > li.hot > a {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 下拉菜单 */
.nav-menu li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown li {
    position: relative;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown li a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
}

/* 三级菜单 */
.dropdown li .sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0;
}

/* =======================
   主要内容区域
   ======================= */

.main-content {
    min-height: 500px;
    padding: 40px 0;
}

/* 轮播图区域 */
.hero-slider {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .content {
    padding: 20px;
}

.product-card .category {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.product-card .actions {
    display: flex;
    gap: 10px;
}

.product-card .btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* =======================
   公司信息区域
   ======================= */

.company-stats {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 公司介绍 */
.company-intro {
    padding: 80px 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.intro-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.intro-image {
    text-align: center;
}

/* =======================
   认证和证书区域
   ======================= */

.certificates {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.certificates h2 {
    margin-bottom: 20px;
    color: #333;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cert-item img {
    max-width: 100%;
    height: auto;
}

/* =======================
   解决方案区域
   ======================= */

.solutions {
    padding: 80px 0;
}

.solutions h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.solution-tab {
    padding: 12px 24px;
    margin: 5px;
    background: #f8f9fa;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.solution-tab.active {
    background: #007bff;
    color: white;
}

/* =======================
   服务区域
   ======================= */

.services {
    background: #f8f9fa;
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* =======================
   联系表单
   ======================= */

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* =======================
   页脚
   ======================= */

footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
}

/* 社交媒体图标 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* =======================
   响应式设计
   ======================= */

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .nav-menu {
        flex-direction: column;
        position: static;
    }
    
    .nav-menu > li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: none;
    }
    
    .nav-menu li .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .search-box input {
        width: 150px;
    }
}

/* =======================
   动画效果
   ======================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* =======================
   工具类
   ======================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* 颜色工具类 */
.text-primary { color: #007bff; }
.text-secondary { color: #6c757d; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-light { color: #f8f9fa; }
.text-dark { color: #343a40; }
.text-muted { color: #6c757d; }

.bg-primary { background-color: #007bff; }
.bg-secondary { background-color: #6c757d; }
.bg-success { background-color: #28a745; }
.bg-danger { background-color: #dc3545; }
.bg-warning { background-color: #ffc107; }
.bg-info { background-color: #17a2b8; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #343a40; }
.bg-white { background-color: #fff; }

/* 边框工具类 */
.border { border: 1px solid #dee2e6; }
.border-top { border-top: 1px solid #dee2e6; }
.border-bottom { border-bottom: 1px solid #dee2e6; }
.border-left { border-left: 1px solid #dee2e6; }
.border-right { border-right: 1px solid #dee2e6; }

.rounded { border-radius: 0.25rem; }
.rounded-circle { border-radius: 50%; }
.rounded-lg { border-radius: 0.5rem; }

/* 阴影工具类 */
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175); }

/* 特殊效果 */
.hover-lift {
    transition: transform 0.3s ease;
}

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

/* =======================
   修复特定问题
   ======================= */

/* 修复产品图片显示 */
img {
    max-width: 100%;
    height: auto;
}

/* 修复链接样式 */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

/* 修复表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* 修复滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
