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

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* 主容器 */
.app-container {
    min-height: 100vh;
    position: relative;
}

/* 顶部主导航 */
.main-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1vw;
    padding: 2vw 0;
}

.main-nav {
    display: flex;
    gap: 1.5vw;
    justify-content: center;
    flex-wrap: nowrap;
    padding-bottom: 0.52vw;
    max-width: 100vw;
    padding: 0 2vw;
}

.nav-item {
    background: #F8F4F3;
    border-radius: 0.6vw;
    text-align: center;
    min-width: 12vw;
    max-width: 12vw;
    transition: all .5s ease-out;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.nav-item:hover {
    transform: translateY(-0.6vw);
    box-shadow: 0 0.21vw 0.78vw rgba(0, 0, 0, 0.15);
}

.nav-item.active {
    transform: translateY(-0.6vw);
    box-shadow: 0 0.21vw 0.78vw rgba(0, 0, 0, 0.15);
}

.nav-icon {
    width: 100%;
    height: 9vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-name {
    font-size: 1.1vw;
    font-weight: 600;
    color: #000000;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    padding: 0.8vw 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item:hover .nav-name,
.nav-item.active .nav-name {
    color: white;
    color: #9C1918;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    justify-content: center;
    padding: 0 2vw;
    max-width: 1400px;
    margin: 0 auto;
    transition: margin-left .5s ease-out;
}

.product-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1.56vw;
    padding-bottom: 8vw;
}

/* 产品卡片 */
.product-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 30vw;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* 装饰图片容器 */
.decorative-images {
    pointer-events: none;
}

/* 装饰图片基础样式 */
.decorative-img {
    position: absolute;
}

/* 装饰图片1 */
.decorative-img-1 {
    top: 1vw;
    left: 0;
    width: 12vw;
    object-fit: contain;
}

/* 装饰图片2 */
.decorative-img-2 {
    top: 9vw;
    left: 10vw;
    width: 6vw;
}

/* 装饰图片3 - 引号 */
.decorative-img-3 {
    bottom: 6.5vw;
    left: 0;
    width: 3vw;
    transform: translate(-75%);
}

.product-gallery {
    flex: 0 0 40vw;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 桌面端隐藏移动端翻页按钮和移动端装饰图片 */
.mobile-nav-prev,
.mobile-nav-next,
.mobile-decorative-images,
.mobile-quote-decoration {
    display: none;
}

/* 上方区域样式 */
.info-top {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 2vw;
}

/* 右下角标题区域 */
.title-section {
    position: relative;
    text-align: right;
    z-index: 2;
    margin-bottom: 2.5vw;
}

/* 产品标题 */
.product-title {
    font-size: 2.2vw;
    font-weight: 900;
    color: #9C1818;
    line-height: 1.2;
}

/* 关键词容器 */
.keywords {
    display: flex;
    gap: 1vw;
    justify-content: flex-end;
}

/* 单个关键词 */
.keyword {
    font-size: 1vw;
    font-weight: 500;
    color: #333;
    padding: 0.3vw 0;
    position: relative;
}

/* 下方介绍区域 */
.info-bottom {
    position: relative;
    padding: 0 2vw;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* 介绍文字 */
.product-intro {
    font-size: 1.1vw;
    color: #A1A1A1;
    line-height: 1.6;
    margin: 0;
    padding-left: 0;
    height: calc(1.1vw * 1.6 * 4);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* 产品图片样式 */
.main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 4/3;
    border-radius: 1vw;
}

/* 分页导航 */
.pagination-nav {
    padding: 1.56vw;
    display: flex;
    justify-content: center;
    margin-top: 2vw;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 2.5vw;
    padding: 0.4vw 0.8vw;
    color: #495057;
    border-radius: 0.1vw;
    cursor: pointer;
    font-size: 0.83vw;
    transition: all 0.3s ease;
    font-weight: 900;
    user-select: none;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2vw;
    height: 2.2vw;
    background: #9C1918;
    border-radius: 0.2vw;
    position: relative;
}

/* 左箭头 */
.prev .btn-symbol::before {
    content: '';
    width: 0.7vw;
    height: 0.7vw;
    border-left: 0.1vw solid white;
    border-bottom: 0.1vw solid white;
    transform: rotate(45deg) translate(0.15vw, -0.1vw);
}

/* 右箭头 */
.next .btn-symbol::before {
    content: '';
    width: 0.7vw;
    height: 0.7vw;
    border-right: 0.1vw solid white;
    border-top: 0.1vw solid white;
    transform: rotate(45deg) translate(-0.15vw, 0.1vw);
}

.btn-text {
    color: rgba(0,0,0,.6);
}

.page-btn.disabled .btn-symbol {
    background: #adb5bd;
}

.page-btn.disabled .btn-text {
    color: #adb5bd;
}

.page-info {
    display: flex;
    align-items: center;
    gap: .8vw;
    font-size: 0.73vw;
    font-weight: 500;
    color: #000;
    padding: 0 1vw;
}

.page-line {
    width: 9vw;
    height: 2px;
    background-color: #3F3F3F;
    flex: 1;
}

.page-line-left {
    margin-right: 1vw;
}

.page-line-right {
    margin-left: 1vw;
}

#currentPage {
    font-weight: bold;
    font-size: .8vw;
    color: #000;
    flex: 0 0 auto;
}

/* 卡片模式左侧分类列表 */
.cards-category-sidebar {
    position: fixed;
    top: 14.5vw;
    left: 0.5vw;
    width: 16vw;
    height: 100vh;
    z-index: 300;
    overflow-y: auto;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE和Edge */
    padding-left: 1vw;
}

/* 隐藏Webkit浏览器的滚动条 */
.cards-category-sidebar::-webkit-scrollbar {
    display: none;
}

.cards-category-title {
    display: none;
}

.cards-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    padding: 1vw 0;
}

.cards-category-item {
    width: 100%;
    padding: 1vw 1.2vw;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1vw;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    margin-left: 0.4vw;
    border-left: 0.3vw solid transparent;
}

.cards-category-item .category-icon {
    font-size: 1.8vw;
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    color: #333;
    width: 1.8vw;
    height: 1.8vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-category-item .category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cards-category-item .cards-category-name {
    font-size: 1vw;
    font-weight: 500;
    color: #333;
    opacity: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.cards-category-item:hover {
    background: #f8f8f8;
}

.cards-category-item.active {
    background: #e8e8e8;
    border-left-color: #9B1919;
}

.cards-category-item.active .category-icon {
    color: #333;
}

.cards-category-item.active .cards-category-name {
    opacity: 1;
    color: #333;
}

/* 卡片列表区域 */
.cards-section {
    flex: 0.8;
    max-width: none;
}

.cards-section .cards-description {
    color: #000;
}

.cards-header {
    display: none;
}

.cards-header-content {
    display: flex;
    align-items: center;
}

.cards-icon {
    display: none;
}

.cards-description {
    font-size: 1.1vw;
    color: rgba(0, 0, 0, .6);
    margin: 0;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    margin-bottom: 2vw;
}

/* 分类区域样式 */
.category-section {
    margin-bottom: 3vw;
}

.category-section-title {
    font-size: 1.4vw;
    font-weight: 700;
    color: #333;
    margin-bottom: 2vw;
    padding-left: 1vw;
    position: relative;
    display: flex;
    align-items: center;
}

/* 左侧红色柱子 */
.category-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.3vw;
    height: 1.8vw;
    background: #9B1919;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

.card-item {
    background: #ffffff;
    border-radius: 0.6vw;
    padding: 0;
    position: relative;
    box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    box-shadow: 0 0.8vw 2vw rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 15vw;
    object-fit: cover;
    margin-bottom: 0;
}

/* 卡片内容区域 */
.card-content {
    padding: 1.2vw 1.5vw 1.5vw 1.5vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
}

/* 产品名称和时间在同一行 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1vw;
}

.card-name {
    font-size: 1.2vw;
    font-weight: 600;
    color: #333;
    text-align: left;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.2vw * 1.3 * 2);
}

.card-time {
    font-size: 1vw;
    font-weight: 600;
    color: #9B1919;
    text-align: right;
    white-space: nowrap;
}

.card-tag {
    display: inline-block;
    background: #9B1919;
    color: white;
    font-size: 0.7vw;
    font-weight: 600;
    padding: 0.3vw 0.6vw;
    border-radius: 0.3vw;
    width: fit-content;
}

.card-description {
    font-size: 0.9vw;
    color: #666;
    text-align: left;
    line-height: 1.4;
    margin: 0;
}





/* 响应式设计 */
@media (max-width: 768px) {
    body {
        background-color: #ffffff;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    .main-header{
        margin-bottom: 6vw;
    }
    
    /* 触摸优化 */
    .category-item,
    .page-btn {
        -webkit-tap-highlight-color: rgba(230, 0, 18, 0.1);
        touch-action: manipulation;
    }
    
    .category-header {
        padding: 3vw 0vw;
        margin-bottom: 1vw;
    }
    
    .main-nav {
        gap: 3vw;
        padding: 0 4vw;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        min-width: 26vw;
        max-width: 26vw;
        flex-shrink: 0;
        border-radius: 3vw;
        background: #F8F4F3 !important;
        transform: translateY(0);
        box-shadow: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-item:hover,
    .nav-item:active {
        background: #f8f8f8 !important;
        transform: translateY(0);
        box-shadow: none;
    }
    
    .nav-item:active {
        background: #e8e8e8 !important;
        transition: background-color 0.1s ease;
    }
    
    .nav-item.active {
        background: #e8e8e8 !important;
        transform: translateY(0);
        box-shadow: none;
    }
    
    /* 移动端移除圆点指示器，使用背景色变化 */
    .nav-item::before {
        display: none;
    }
    
    .nav-icon {
        width: 100%;
        height: 14vw;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .nav-name {
        font-size: 2.6vw;
        padding: 1vw 0;
        color: #000000;
    }
    
    .nav-item:hover .nav-name,
    .nav-item.active .nav-name {
        color: #9C1918;
    }
    
    .main-content {
        flex-direction: column;
        gap: 4vw;
        padding: 0;
        margin-left: 0 !important;
        justify-content: center;
    }
    
    .product-section {
        width: 100%;
        order: 1;
        padding-bottom: 1vw;
    }
    
    .product-card {
        align-items: stretch;
        flex-direction: column;
        height: auto;
        max-height: none;
        position: relative;
    }

    /* 移动端产品信息区域重新布局 */
    .product-info {
        order: 2;
        margin-top: 0;
        flex: none;
        display: flex;
        flex-direction: column;
        padding: 0 12vw;
    }

    /* 移动端产品图片区域 */
    .product-gallery {
        order: 1;
        flex: none;
        height: 60vw;
        position: relative;
        margin: 15vw 0 4vw 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 移动端产品图片圆角调整 */
    .main-image img {
        border-radius: 3vw;
    }

    /* 移动端产品图片翻页箭头 - 参考btn-symbol样式 */
    .mobile-nav-prev::before,
    .mobile-nav-next::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2.5vw;
        height: 2.5vw;
        border-color: #9C1918;
        border-style: solid;
        border-width: 0;
        pointer-events: none;
    }

    /* 左箭头样式 */
    .mobile-nav-prev::before {
        border-left: 0.4vw solid #9C1918;
        border-bottom: 0.4vw solid #9C1918;
        transform: translate(-25%, -50%) rotate(45deg);
    }

    /* 右箭头样式 */
    .mobile-nav-next::before {
        border-right: 0.4vw solid #9C1918;
        border-top: 0.4vw solid #9C1918;
        transform: translate(-75%, -50%) rotate(45deg);
    }

    /* 移动端产品图片翻页点击区域 */
    .mobile-nav-prev,
    .mobile-nav-next {
        position: absolute;
        width: 20vw;
        height: 100%;
        top: 0;
        z-index: 15;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-prev {
        left: -4.5vw;
    }

    .mobile-nav-next {
        right: -4.5vw;
    }

    /* 移动端专用装饰图片容器 */
    .mobile-decorative-images {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-100%);
        height: auto;
        pointer-events: none;
        z-index: 5;
    }

    /* 移动端专用装饰图片样式 */
    .mobile-decorative-img {
        width: 30vw;
        height: auto;
        object-fit: contain;
    }

    /* 移动端隐藏原装饰图片容器，使用专门的移动端装饰类 */
    .decorative-images {
        display: none;
    }

    /* 移动端专用quote装饰图片 */
    .mobile-quote-decoration {
        display: block;
        position: absolute;
        left: 1.5vw;
        top: 0;
        width: 10vw;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        pointer-events: none;
        z-index: 1;
        transform: translateY(-10%);
    }

    .mobile-quote-img {
        width: 10vw;
        object-fit: contain;
    }

    /* 移动端title-section区域 */
    .info-top {
        flex: none;
        padding: 0;
        min-height: auto;
        order: 1;
    }

    .title-section {
        text-align: center;
        margin-bottom: 4vw;
    }


    /* 移动端产品标题 */
    .product-title {
        font-size: 7vw;
        margin-bottom: 2vw;
    }

    /* 移动端关键词 */
    .keywords {
        gap: 6vw;
    }

    .keyword {
        font-size: 4vw;
        padding: 0.5vw 0;
    }

    .keyword:not(:last-child)::after {
        right: -1vw;
        height: 2.5vw;
        width: 2px;
    }

    /* 移动端product-intro区域 */
    .info-bottom {
        padding: 0;
        flex: none;
        order: 2;
        margin-bottom: 6vw;
        position: relative;
        padding-left: 14vw;
    }

    /* 移动端介绍文字 */
    .product-intro {
        font-size: 4vw;
        padding-left: 0;
        line-height: 1.5;
        min-height: calc(4vw * 1.5 * 4);
        max-height: calc(4vw * 1.5 * 8);
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 8;
        line-clamp: 8;
        -webkit-box-orient: vertical;
    }
    
    .pagination-nav {
        padding: 3vw 4vw;
        margin-top: 6vw;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 4vw;
        box-shadow: 0 2vw 8vw rgba(0, 0, 0, 0.1);
        order: 3;
    }
    
    .pagination {
        max-width: none;
        min-width: 60vw;
    }
    
    .page-btn {
        gap: 2vw;
        padding: 2vw 3vw;
        font-size: 3.5vw;
        font-weight: 700;
    }
    
    .btn-symbol {
        width: 4vw;
        height: 4vw;
        border-radius: 100%;
    }
    
    .prev .btn-symbol::before {
        width: 1.2vw;
        height: 1.2vw;
        border-width: 0.3vw;
    }
    
    .next .btn-symbol::before {
        width: 1.2vw;
        height: 1.2vw;
        border-width: 0.3vw;
    }
    
    .page-info {
        gap: 2vw;
        font-size: 3vw;
        padding: 0 4vw;
    }
    
    .page-line-left {
        margin-right: 2vw;
    }
    
    .page-line-right {
        margin-left: 2vw;
    }
    
    #currentPage {
        font-size: 3.5vw;
    }
    
    
    /* 移动端内容容器 - 默认不使用flex */
    .content-container {
        min-height: calc(100vh - 20vw); /* 减去导航栏高度 */
    }
    
    /* 移动端内容容器 - 仅在卡片模式下使用flex */
    .content-container.cards-mode {
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: flex-start;
    }
    
    /* 移动端卡片分类侧边栏 */
    .cards-category-sidebar {
        position: sticky;
        top: 0;
        left: 0;
        width: 18vw;
        height: auto;
        max-height: 100vh;
        margin: 0;
        padding: 0;
        background: transparent;
        z-index: 100;
        overflow-y: auto;
        flex-shrink: 0;
        /* 隐藏滚动条但保持功能 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE和Edge */
    }
    
    /* 隐藏Webkit浏览器的滚动条 */
    .cards-category-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .cards-category-title {
        display: none;
    }
    
    .cards-category-list {
        display: flex;
        flex-direction: column;
        gap: 4vw;
        flex-wrap: wrap;
    }
    
    .cards-category-item {
        width: 100%;
        height: auto;
        min-height: 10vw;
        padding: 2.5vw 1vw;
        border-radius: 0 1.5vw 1.5vw 0;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1vw;
        flex-shrink: 0;
        text-align: center;
        background: transparent;
        position: relative;
        border-left: 1.2vw solid transparent;
    }
    
    .cards-category-item .category-icon {
        font-size: 6vw;
        flex-shrink: 0;
        line-height: 1;
        width: 6vw;
        height: 6vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cards-category-item .category-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .cards-category-item .cards-category-name {
        font-size: 3vw;
        color: #333;
        line-height: 1.2;
        opacity: 1;
        overflow: visible;
        white-space: wrap;
        flex-shrink: 0;
        text-align: center;
    }
    
    .cards-category-item:hover .cards-category-name {
        opacity: 1;
    }
    
    .cards-category-item.active {
        background: #e8e8e8;
        border-left-color: #9B1919;
    }
    
    .cards-category-item.active .category-icon {
        color: #333;
    }
    
    .cards-category-item.active .cards-category-name {
        opacity: 1;
        color: #333;
    }
    
    /* 移动端主内容区域 */
    .main-content {
        flex: 1;
        min-width: 0; /* 防止flex子元素溢出 */
    }
    
    /* 移动端卡片样式 */
    .cards-section {
        padding: 0 0 4vw 0;
    }
    
    .cards-header {
        display: none;
    }
    

    
    .cards-header-content {
        gap: 0;
    }
    
    .cards-icon {
        display: none;
    }
    
    .cards-description {
        font-size: 4vw;
    }
    
    .cards-grid {
        display: flex;
        flex-direction: column;
        gap: 6vw;
        margin-bottom: 4vw;
    }
    
    .category-section {
        margin-bottom: 6vw;
    }
    
    .category-section-title {
        font-size: 4vw;
        font-weight: 700;
        color: #333;
        margin-bottom: 4vw;
        padding-left: 2vw;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    /* 移动端左侧红色柱子 */
    .category-section-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0.5vw;
        height: 4vw;
        background: #9B1919;
    }
    
    .category-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4vw;
    }
    
    .card-item {
        border-radius: 3vw;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .card-item:hover {
        transform: none;
    }

    .card-image {
        height: 40vw;
        border-radius: 3vw 3vw 0 0;
        margin-bottom: 0;
    }

    .card-content {
        padding: 3vw 4vw 4vw 4vw;
        gap: 2vw;
    }

    .card-header {
        gap: 2vw;
    }

    .card-name {
        font-size: 4.5vw;
        line-height: 1.3;
        margin: 0;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(4.5vw * 1.3 * 2);
    }

    .card-time {
        font-size: 4vw;
    }

    .card-tag {
        font-size: 2.8vw;
        padding: 1vw 2vw;
        border-radius: 1vw;
    }

    .card-description {
        font-size: 3.5vw;
        line-height: 1.4;
        margin: 0;
    }
    
}

/* 过敏原信息页面样式 */
.allergy-section {
    flex: 1;
    max-width: none;
    padding: 2vw 4vw;
}

.allergy-container {
    max-width: 1200px;
    margin: 0 auto;
}

.allergy-header {
    margin-bottom: 3vw;
}

.allergy-title {
    font-size: 2.2vw;
    font-weight: 700;
    color: #333;
    margin-bottom: 1vw;
    padding-left: 1vw;
    position: relative;
}

.allergy-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.3vw;
    height: 1.8vw;
    background: #9B1919;
}

.allergy-description,
.allergy-note {
    font-size: 1.1vw;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1vw;
}

/* 过敏原图标网格 */
.allergen-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4.5vw, 1fr));
    margin-bottom: 4vw;
    background: white;
}

.allergen-icon-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #000;
    margin: -0.5px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.allergen-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #f0f0f0;
}

.allergen-icon img {
    width: 3.5vw;
    height: 3.5vw;
    object-fit: contain;
}

.allergen-name {
    display: none;
}

.allergen-description {
    flex: 1;
    aspect-ratio: 1;
    font-size: 0.7vw;
    color: #000000;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0.5vw;
    box-sizing: border-box;
    border-top: 1px solid #000;
}

/* 食品分类区域 */
.food-sections {
    display: flex;
    flex-direction: column;
    gap: 0vw;
}

.food-category {
    margin-bottom: 2vw;
}

.food-category-title {
    font-size: 1.8vw;
    font-weight: 700;
    color: #333;
    margin-bottom: 2vw;
    padding-left: 1vw;
    position: relative;
}

.food-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.3vw;
    height: 1.8vw;
    background: #9B1919;
}

.food-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1vw 8vw;
}

.food-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 0.8vw;
    transition: box-shadow 0.3s ease;
    gap: 1vw;
}

.food-item-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 0.5vw;
}

.food-item-image {
    width: 8vw;
    height: calc(8vw * 0.863);
    object-fit: cover;
    flex-shrink: 0;
}

.food-item-content {
    flex: 1;
    min-width: 0;
}

.food-item-name {
    font-size: 1vw;
    color: #000;
    margin-bottom: 0.1vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.food-item-description {
    font-size: 0.8vw;
    color: #a1a1a1;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.food-item-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    max-width: 30%;
}

.allergen-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.allergen-badge img {
    width: 2.5vw;
    height: 2.5vw;
    object-fit: contain;
}

/* 移动端过敏原页面样式 */
@media (max-width: 768px) {
    .allergy-section {
        padding: 4vw;
    }
    
    .allergy-header {
        margin-bottom: 6vw;
    }
    
    .allergy-title {
        font-size: 6vw;
        margin-bottom: 3vw;
        padding-left: 2vw;
        position: relative;
    }
    
    .allergy-title::before {
        width: 0.8vw;
        height: 4vw;
    }
    
    .allergy-description,
    .allergy-note {
        font-size: 3.5vw;
        margin-bottom: 3vw;
    }
    
    .allergen-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 8vw;
        background: white;
    }
    
    .allergen-icon-item {
        border: 1px solid #000;
        margin: -0.5px;
        display: flex;
        flex-direction: column;
        height: 20vw;
    }
    
    .allergen-icon {
        height: 10vw;
        background: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .allergen-icon img {
        width: 4vw;
        height: 4vw;
        min-width: 20px;
        min-height: 20px;
        object-fit: contain;
    }
    
    .allergen-name {
        display: none;
    }
    
    .allergen-description {
        height: 10vw;
        font-size: max(1.8vw, 10px);
        color: #000000;
        line-height: 1.1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1vw;
        text-align: center;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        border-top: 1px solid #000;
        flex-shrink: 0;
    }
    
    .food-sections {
        gap: 6vw;
    }
    
    .food-category-title {
        font-size: 5vw;
        margin-bottom: 4vw;
        padding-left: 2vw;
    }
    
    .food-category-title::before {
        width: 0.8vw;
        height: 4vw;
    }
    
    .food-items-grid {
        grid-template-columns: 1fr;
        gap: 3vw;
    }
    
    .food-item {
        padding: 4vw;
        flex-direction: row;
        align-items: center;
        gap: 3vw;
        border-radius: 2vw;
    }
    
    .food-item-left {
        flex-direction: row;
        align-items: center;
        gap: 3vw;
        flex: 1;
        min-width: 0;
    }
    
    .food-item-image {
        width: 15vw;
        height: calc(15vw * 0.863);
        border-radius: 2vw;
        flex-shrink: 0;
    }
    
    .food-item-content {
        text-align: left;
        flex: 1;
        min-width: 0;
    }
    
    .food-item-name {
        font-size: 3.5vw;
        margin-bottom: 1vw;
        color: #000;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .food-item-description {
        font-size: 2.8vw;
        color: #a1a1a1;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .food-item-allergens {
        justify-content: flex-end;
        gap: 1.5vw;
        flex-shrink: 0;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .allergen-badge {
        width: 6vw;
        height: 6vw;
        border-width: 0.2vw;
    }
    
    .allergen-badge img {
        width: 3.5vw;
        height: 3.5vw;
    }
}