/* ===================================
   比瑞吉官网 - 主样式文件
   =================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #0066cc;
}

ul, ol {
    list-style: none;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   头部样式
   =================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 28px;
    color: #0066cc;
    font-weight: bold;
}

/* 主导航 */
.main-nav > ul {
    display: flex;
    gap: 30px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    padding: 10px 0;
    display: block;
    font-weight: 500;
    color: #333;
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a {
    color: #0066cc;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

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

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #0066cc;
}

.header-lang {
    font-size: 13px;
}

.header-lang a {
    margin: 0 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===================================
   主内容区
   =================================== */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 300px);
}

/* ===================================
   Banner/Hero 区域
   =================================== */
.hero {
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #667eea;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===================================
   特色区块
   =================================== */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 50px;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ===================================
   品牌展示
   =================================== */
.brands-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title p {
    font-size: 16px;
    color: #666;
}

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

.brand-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.brand-image {
    height: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.brand-info {
    padding: 25px;
}

.brand-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.brand-info p {
    color: #666;
    margin-bottom: 15px;
}

.brand-link {
    color: #667eea;
    font-weight: 500;
}

/* ===================================
   新闻中心
   =================================== */
.news-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.news-image {
    height: 220px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.news-content {
    padding: 25px;
}

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

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.news-content p {
    color: #666;
    line-height: 1.7;
}

/* ===================================
   页脚样式
   =================================== */
.site-footer {
    background: #2c3e50;
    color: #fff;
}

.footer-top {
    padding: 60px 0;
}

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

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-col ul li a {
    color: #bdc3c7;
}

.footer-col ul li a:hover {
    color: #fff;
}

.contact-info p {
    margin-bottom: 12px;
    color: #bdc3c7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
}

.copyright {
    text-align: center;
    color: #bdc3c7;
}

.copyright p {
    margin-bottom: 10px;
}

.copyright a {
    color: #bdc3c7;
}

.copyright a:hover {
    color: #fff;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #5568d3;
    transform: translateY(-5px);
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-wrap: wrap;
    }
    
    .header-lang {
        display: none;
    }
    
    .features-grid,
    .brands-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
}

/* ===================================
   通用工具类
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-image {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

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