/* ===== 全局变量 ===== */
:root {
    --primary: #0101b5;
    --primary-dark: #00008f;
    --primary-light: #4d4dff;
    --gray-light: #f8fafc;
    --gray-border: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --radius-card: 1.25rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== 导航栏 ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(1, 1, 181, 0.2);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, #3b3bff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 2rem;
    min-height: 280px;
    box-shadow: var(--shadow-md);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-light);
    padding: 0.3rem;
    border-radius: 40px;
    border: 1px solid var(--gray-border);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 0.4rem 1rem;
    border-radius: 32px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: var(--text-muted);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(1, 1, 181, 0.2);
}

/* ===== Hero 区域 ===== */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    padding: 4rem 0 5rem;
    border-bottom: 1px solid var(--gray-border);
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    background: rgba(1, 1, 181, 0.1);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 90%;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(1, 1, 181, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -12px rgba(1, 1, 181, 0.4);
}

/* .hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 2rem;
    min-height: 280px;
    box-shadow: var(--shadow-md);
} */
 
 /* 照片墙宫格 - 加大尺寸版本 */
        .hero-photo-wall {
            flex: 1.2;          /* 增加占比，让照片墙更宽 */
            min-width: 360px;   /* 加大最小宽度，确保图片不会太小 */
        }

        .photo-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.25rem;       /* 间隙增大，视觉更舒展 */
            border-radius: 2rem;
            overflow: hidden;
            background: #fff;
            padding: 0.5rem;
            box-shadow: var(--shadow-md);
        }

        .photo-grid img {
            width: 100%;
            height: auto;
            aspect-ratio: 4 / 3;   /* 从3:2改为4:3，图片更高，面积更大 */
            object-fit: cover;
            border-radius: 1.2rem;  /* 圆角略增 */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .photo-grid img:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

/* ===== 通用区块 ===== */
.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.section-header {
    margin-bottom: 3rem;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card, .food-card {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-border);
}

.product-card:hover, .food-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #eef2ff;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 卡片按钮样式 */
.card-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: space-between;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-primary-small {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}
.btn-primary-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== 公司简介富文本样式 ===== */
.about-bg {
    background-color: var(--gray-light);
}

.about-text {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0;
    list-style: none;
}

.about-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-text li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== 联系区域 ===== */
.contact-section {
    background: linear-gradient(to right, #ffffff, #f8faff);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--gray-border);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.4rem;
}

/* ===== 页脚 ===== */
footer {
    background-color: #0b1120;
    color: #cbd5e1;
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-copy a{
    text-decoration: none;
    color: #cbd5e1;
}


.social-icons a {
    color: #94a3b8;
    margin-left: 1.2rem;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--primary-light);
}

/* 微信二维码样式 */
.qr-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.wechat-qr {
    width: 150px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.wechat-qr:hover {
    transform: scale(1.02);
}

.qr-tip {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 产品链接样式 */
.product-link {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}
.product-link:hover {
    transform: translateY(-5px);
}
/* 保持原卡片悬停效果 */
.product-card {
    transition: box-shadow 0.3s ease;
}
.product-link:hover .product-card {
    box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        max-width: 100%;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .contact-section {
        padding: 2rem 1rem;
    }
     .photo-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.9rem;
    }
    .hero-photo-wall {
        flex: 1;
        min-width: 280px;
    }
}