/*
 * 广州冷弯 - 多语言静态网站样式
 * 俄罗斯风格配色：深蓝 + 红色 + 白色 + 金色
 */

/* 基础变量 */
:root {
    --primary-blue: #1a3a6e;      /* 深蓝色 - 主色 */
    --secondary-blue: #2c5aa0;    /* 中蓝色 */
    --accent-red: #c41e3a;        /* 红色 - 强调色 */
    --accent-gold: #d4af37;       /* 金色 */
    --light-gray: #f5f5f5;        /* 浅灰背景 */
    --white: #ffffff;
    --dark-text: #333333;
    --light-text: #666666;
    --border-color: #e0e0e0;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-text);
    line-height: 1.6;
}

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

a:hover {
    color: var(--accent-red);
}

/* 顶部导航 */
.top-bar {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.language-switch {
    display: flex;
    gap: 15px;
}

.language-switch a {
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
}

.language-switch a:hover,
.language-switch a.active {
    background: var(--accent-red);
}

/* 主导航 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo-text span {
    color: var(--accent-red);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    padding: 10px 15px;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 80%;
}

.main-nav a.active {
    color: var(--accent-red);
}

/* Banner轮播 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 58, 110, 0.8));
    color: var(--white);
    padding: 40px 20px 20px;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-desc {
    font-size: 16px;
    max-width: 600px;
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 区块标题 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
}

.section-title h2 {
    font-size: 28px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--accent-red);
    display: inline-block;
}

.section-more {
    color: var(--accent-red);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-more:hover {
    color: var(--primary-blue);
}

/* 公司简介区块 */
.about-section {
    background: var(--white);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.about-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
    color: var(--light-text);
}

.about-image {
    width: 300px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品展示 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(26, 58, 110, 0.3));
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.product-desc {
    font-size: 13px;
    color: var(--light-text);
    line-height: 1.4;
}

/* 案例展示 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.case-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.case-image {
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

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

.case-name {
    font-size: 15px;
    color: var(--primary-blue);
    font-weight: 500;
}

/* 新闻动态 */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.news-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-image {
    width: 120px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

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

.news-content {
    flex: 1;
}

.news-title {
    font-size: 16px;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-title:hover {
    color: var(--accent-red);
}

.news-date {
    font-size: 13px;
    color: var(--light-text);
}

/* 页脚 */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* 产品详情页 */
.product-detail {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-detail-image {
    width: 400px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-detail-title {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li::before {
    content: '▸';
    color: var(--accent-red);
}

.product-detail-desc {
    line-height: 1.8;
    color: var(--light-text);
}

/* 联系页面 */
.contact-section {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
}

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

.contact-item {
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-item p {
    color: var(--light-text);
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 250px;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .product-detail-header {
        flex-direction: column;
    }

    .product-detail-image {
        width: 100%;
        height: 250px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 特色标签 */
.tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    background: var(--accent-red);
    color: var(--white);
}

.tag-blue {
    background: var(--secondary-blue);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-blue);
}

.btn-red {
    background: var(--accent-red);
    color: var(--white);
}

.btn-red:hover {
    background: #a01830;
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* 图片通用样式 */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* 跨域图片加载处理 */
img[crossorigin] {
    background-color: var(--light-gray);
}

/* 图片加载失败时的替代显示 */
img:not([src]),
img[src=""] {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    min-height: 100px;
}