@font-face {
    font-family: 'League Spartan';
    src: url('../fonts/LeagueSpartan-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Bold';
    src: url('../fonts/century-gothic-bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/DMSerifDisplay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #6c757d;
    --accent-color: #495057;
}

body {
    font-family: 'League Spartan', sans-serif;
    color: var(--secondary-color);
    background-color: #ffffff;
}

/* 导航栏样式 */
.navbar {
    box-shadow: none; /* 移除阴影效果 */
    transition: all 0.3s ease;
    background-color: rgba(241, 239, 231, 0.6) !important; /* 增加不透明度从0.5到0.6 */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    backdrop-filter: blur(5px); /* 降低毛玻璃效果从10px到5px */
    -webkit-backdrop-filter: blur(5px); /* 降低毛玻璃效果从10px到5px */
    z-index: 99999; /* 使用具体的高数值，确保高于所有其他元素 */
    
    /* 新增样式 */
    border-radius: 0; /* 修改为直角 */
    padding: 0.5rem 0;  /* 稍微增加一点padding */
    height: 80px; /* 固定导航栏高度，从60px修改为80px */
}

.navbar-brand {
    display: inline-flex; /* 使其宽度自适应内容 */
    align-items: center;
    font-family: 'League Spartan', sans-serif;
    padding: 0;
    margin: 0;
    height: 60px;  /* 恢复固定高度，从50px修改为60px */
    position: relative; /* 保持相对定位 */
}

.navbar-logo {
    height: auto;
    width: 143px; /* 从130px放大约1.1倍 */
    padding: 0;
    margin: 0;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(0.95) translateY(2px); /* 添加向下平移2px的调整 */
    transform-origin: left center;
    pointer-events: none;
}

/* 为了确保链接仍然可点击，添加以下样式 */
.navbar-brand::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: auto; /* 确保链接区域可点击 */
}

.brand-text {
    font-family: 'League Spartan', sans-serif;
    font-weight: 500;
    margin-left: 8px;
    padding: 0;
    font-size: 1.2rem;  /* 调整文字大小 */
}

/* 导航链接基础样式 */
.navbar .nav-link {
    font-family: 'Century Gothic Bold', sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    padding: 9px 14px; /* 从8px 12px调整为9px 14px */
    margin: 0 8px; /* 从0 3px增加到0 8px，显著增加间距 */
    color: #333333 !important; /* 颜色加深，从var(--accent-color)改为#333333 */
    position: relative;
    transition: color 0.15s ease, transform 0.12s ease; /* 只保留颜色和变换过渡，移除背景色过渡 */
    font-size: 1.12rem; /* 稍微增加字体大小，从1.05rem到1.12rem */
    border-radius: 4px; /* 保留轻微圆角 */
}

/* 悬停效果 - 只保留颜色变化和上浮效果 */
.navbar .nav-link:hover {
    color: #8c8c8c !important; /* 悬停时颜色更亮，增加反差 */
    opacity: 0.9; /* 稍微调整透明度 */
    transform: translateY(-1px); /* 添加轻微上浮效果 */
    /* 移除背景色效果 */
}

/* 当前活跃页面样式 - 只保留颜色和字重变化 */
.navbar .nav-link.active {
    color: #111111 !important; /* 当前页面链接颜色更深，突出显示 */
    font-weight: 500; /* 稍微加粗 */
    /* 移除背景色效果 */
}

/* 导航栏字体间距优化 - 参考苹果UI风格 */
.navbar .navbar-brand {
    letter-spacing: 1px; /* 增加品牌名称的字母间距 */
    padding: 0 0; /* 调整上下内边距 */
}

/* 响应式调整 */
@media (max-width: 1023px) {
    .navbar {
        padding: 0.15rem 1rem; /* 进一步减小上下padding */
        height: 60px; /* 减小移动端导航栏高度，但比原来的50px大一些 */
    }
    
    .navbar .container {
        position: relative;
        justify-content: flex-end;
    }
    
    .navbar-brand {
        height: 50px; /* 略微减小高度以适应更薄的导航栏，从45px增加到50px */
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(3px); /* 向下移动3px，防止logo太贴近顶部 */
        margin: 0;
        z-index: 1025; /* 确保logo在适当的层级 */
    }
    
    .navbar-logo {
        height: auto;
        width: 132px;  /* 从120px放大约1.1倍 */
        transform: scale(1.05); /* 略微减小缩放比例 */
        transform-origin: center center; /* 从中心点缩放 */
    }
    
    /* 确保汉堡菜单按钮位于右侧且不被遮挡 */
    .navbar-toggler {
        margin-left: auto;
        position: relative;
        z-index: 1030;
        padding: 3px; /* 减小padding以适应更薄的导航栏 */
    }
    
    .navbar .nav-link {
        padding: 10px 12px; /* 增加垂直内边距 */
        margin: 6px 0; /* 增加垂直间距，移除水平间距 */
        text-align: center;
        transition: color 0.15s ease, transform 0.12s ease; /* 只保留颜色和变换过渡 */
        font-size: 1rem; /* 稍微调整字体大小 */
        border-radius: 4px; /* 保持与桌面端一致的圆角 */
    }
    
    /* 移动端特定的悬停效果调整 */
    .navbar .nav-link:hover {
        transform: translateY(0); /* 移动端不使用上浮效果 */
        color: #8c8c8c !important; /* 保持颜色一致 */
        opacity: 0.9;
        /* 移除背景色效果 */
    }
    
    /* 移动端活跃页面样式已整合到全局样式中 */
    
    .navbar-collapse {
        background-color: rgba(241, 239, 231, 0.7); /* 调整为略高于导航栏的不透明度，但保持整体透明感 */
        margin-top: 10px;
        border-radius: 15px;
        padding: 10px;
        z-index: 1020; /* 确保下拉菜单在适当的层级 */
        position: absolute;  /* 添加绝对定位 */
        top: 100%;           /* 定位在导航栏下方 */
        right: 0;            /* 右对齐 */
        left: 0;             /* 左侧也对齐，确保宽度正确 */
        padding-top: 30px;   /* 增加顶部内边距，确保内容不被logo遮挡 */
    }
}

/* 优化导航栏动画效果 */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

/* 自定义汉堡菜单按钮样式 */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    padding: 0;
    width: 22px;
    height: 14px;
    display: inline-block;
}

/* 创建三条不等长的横线 */
.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after,
.navbar-toggler .navbar-toggler-icon span {
    content: '';
    position: absolute;
    right: 0;
    height: 2px;
    background-color: #333333; /* 颜色加深，从var(--accent-color)改为#333333 */
    transition: all 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon::before {
    top: 0;
    width: 100%; /* 最长 */
}

.navbar-toggler .navbar-toggler-icon span {
    top: 6px;
    width: 60%; /* 最短 */
}

.navbar-toggler .navbar-toggler-icon::after {
    bottom: 0;
    width: 80%; /* 第二长 */
}

/* 展开时的动画效果 */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: translateY(6px) rotate(45deg);
    width: 100%;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: translateY(-6px) rotate(-45deg);
    width: 100%;
}

/* 导航栏展开时的背景遮罩 */
@media (max-width: 1023px) {
    .navbar-collapse.show, 
    .navbar-collapse.collapsing {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .navbar-collapse {
        background-color: rgba(241, 239, 231, 0.7); /* 保持一致性但略微提高透明度，确保可读性 */
        margin-top: 10px;
        border-radius: 15px;
        padding: 10px;
        z-index: 1020; /* 确保下拉菜单在适当的层级 */
        position: absolute;  /* 添加绝对定位 */
        top: 100%;           /* 定位在导航栏下方 */
        right: 0;            /* 右对齐 */
        left: 0;             /* 左侧也对齐，确保宽度正确 */
        padding-top: 30px;   /* 增加顶部内边距，确保内容不被logo遮挡 */
    }
    
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: -1;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        animation: fadeIn 0.3s ease-in-out;
    }
}



/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   Hero区域样式 - 现代化响应式设计
   ========================================== */

/* 
 * Hero区域配置策略：
 * - 横屏设备（默认）：使用100vh占满整个浏览器显示区域，适应不同浏览器比例
 * - 竖屏设备：使用aspect-ratio保持16:9比例
 * - 使用现代CSS特性，移除过时的padding-bottom技巧
 */

/* Hero基础样式 - 横屏设备占满整个浏览器显示区域 */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; /* 横屏设备占满整个视口高度 */
    margin: 0;
    
    /* 性能优化 */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    
    /* 禁用用户交互 */
    user-select: none;
    touch-action: manipulation;
    
    /* 层级控制 */
    z-index: 0;
}

/* 竖屏设备使用1:1比例 */
@media (orientation: portrait) {
    .hero {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 略微增加暗度以增强文字可读性 */
    z-index: 1;
    pointer-events: none;
}

/* 视频容器样式 */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* 预加载图片样式 */
.hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 1.8s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity;
    filter: brightness(0.98); /* 略微降低占位图亮度，与视频开始时匹配 */
}

/* 视频样式 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, filter;
    filter: brightness(0.98); /* 与占位图匹配初始亮度 */
}

/* 小屏幕设备内容边距调整 */
@media (max-width: 412px) {
    .hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 当视频可以播放时，隐藏占位图 */
.video-loaded .hero-placeholder {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 当视频可以播放时，显示视频 */
.video-loaded .hero-video {
    opacity: 1;
}



/* ==========================================
   Hero文字内容样式 - 桌面端（默认）
   ========================================== */

/* Hero内容容器样式 */
.hero-content {
    position: absolute;
    bottom: 12%;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

/* Hero标题样式 */
.hero-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 128px; /* 修改为128px */
    line-height: 1.1;
    margin-bottom: 0.7rem;
    text-shadow: none; /* 移除阴影效果 */
    letter-spacing: -0.5px;
    color: #fff;
    font-family: 'DM Serif Display', serif; /* 修改字体 */
    font-weight: normal;
    white-space: nowrap;
}

/* Hero区域副标题样式 */
.hero .lead {
    margin-left: auto;
    margin-right: auto;
    font-size: 64px; /* 修改为64px */
    line-height: 1.4;
    margin-bottom: 1.8rem;
    text-shadow: none; /* 移除阴影效果 */
    color: #fff;
    font-family: 'Inter', sans-serif; /* 修改字体 */
    font-weight: 400; /* regular字重 */
    white-space: nowrap;
}

/* 自定义按钮样式 */
.btn-custom {
    background-color: #232323; /* 修改背景色 */
    color: #ffffff;
    border: none;
    font-weight: 600; /* Semi Bold */
    letter-spacing: 0.8px;
    transition: none; /* 完全移除过渡效果 */
    box-shadow: none; /* 移除阴影效果 */
    font-size: 32px; /* 修改为32px */
    padding: 0.35rem 1.6rem !important;
    font-family: 'Inter', sans-serif; /* 修改字体 */
    position: relative;
    overflow: hidden;
    backdrop-filter: none; /* 移除毛玻璃效果，减少资源消耗 */
    -webkit-backdrop-filter: none;
    border-radius: 50px;
    will-change: background-color; /* 添加硬件加速提示 */
    transform: translateZ(0); /* 强制硬件加速 */
    -webkit-transform: translateZ(0);
}

.btn-custom:hover {
    transform: none; /* 移除变换效果 */
    background-color: rgba(35, 35, 35, 0.5); /* 增加透明度，使按钮略微透明 */
    color: #fff;
    box-shadow: none; /* 移除悬停时的阴影效果 */
}

.btn-custom:active {
    transform: none; /* 移除变换效果 */
    background-color: #191919; /* 点击时稍微调整背景色 */
    box-shadow: none; /* 移除点击时的阴影效果 */
}

/* 移除光泽效果 */
.btn-custom::before {
    display: none; /* 隐藏光泽效果 */
}

/* ==========================================
   Hero文字内容样式 - 响应式适配（优化合并版本）
   ========================================== */

/* 平板端适配 */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content { bottom: 8%; }
    
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        width: 90%;
    }
    
    .hero .lead {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
        width: 85%;
    }
    
    .btn-custom {
        font-size: 1.1rem;
        padding: 0.7rem 2.2rem !important;
    }
}

/* 移动端基础适配 */
@media (max-width: 767px) {
    .hero-content { bottom: 12%; }
    
    .hero-title {
        font-size: 2.5rem;
        width: 90%;
        margin-bottom: 0.6rem;
        line-height: 1.1;
        white-space: normal;
    }
    
    .hero .lead {
        font-size: 1.2rem;
        width: 85%;
        margin-bottom: 1rem;
        line-height: 1.2;
        white-space: normal;
    }
    
    .btn-custom {
        font-size: 0.9rem;
        padding: 0.45rem 1.3rem !important;
        letter-spacing: 0.6px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .hero-content { bottom: 10%; }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .hero .lead {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }
    
    .btn-custom {
        font-size: 0.75rem;
        padding: 0.35rem 1.1rem !important;
        letter-spacing: 0.5px;
    }
}

/* 极小屏幕适配 */
@media (max-width: 360px) {
    .hero-title { font-size: 1.7rem; }
    .hero .lead { font-size: 0.85rem; }
    .btn-custom {
        font-size: 0.7rem;
        padding: 0.3rem 0.9rem !important;
        letter-spacing: 0.4px;
    }
}


/* 注意：导航栏z-index和box-shadow已在上方.navbar基础样式中定义，这里移除重复设置 */

/* Section Styles */
.section-title {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
    position: relative;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-bottom: 0;
}

.product-image .main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform;
}

/* Products Section 的悬停效果 */
.products-section .product-card:hover .main-image {
    transform: scale(1.08);
}

/* Featured Products 的悬停效果可以稍微大一些 */
.featured-products .product-card:hover .main-image {
    transform: scale(1.12);
}

/* 移动端下减少产品卡片和图片的间距 */
@media (max-width: 768px) {
    .product-image {
        height: 320px; /* 保持增加的图片容器高度 */
        margin-bottom: 0; /* 调整为0，不再使用负边距 */
    }
    
    .product-image .main-image {
        padding: 2px; /* 进一步减少图片内边距 */
        max-height: 100%; /* 确保图片最大化利用容器高度 */
    }
    
    /* 更改Featured Products部分的图片尺寸 */
    .featured-products .product-image {
        height: 330px; /* 略微调整高度 */
        margin-bottom: 0; /* 调整为0，不再使用负边距 */
    }
    
    .product-card {
        margin-bottom: 5px; /* 添加少量底部边距 */
    }
    
    .product-card .card-body {
        padding: 5px 0.3rem !important; /* 移动端使用更紧凑的内边距 */
    }
    
    /* 减少卡片标题和描述的间距 - 注意：实际使用的是Bootstrap的card-title和card-text类 */
    
    /* 调整栅格系统间距 */
    .row {
        margin-bottom: 0;
    }
    
    .col-md-4 {
        padding: 0 3px; /* 进一步减少列的内边距 */
        margin-bottom: 10px; /* 减少列之间的垂直间距 */
    }
    
    /* 商品和区块间的间距调整 */
    .featured-products {
        padding-top: 20px !important; /* 进一步减少顶部内边距 - 移除products-section，使用专门设置 */
        padding-bottom: 20px !important; /* 进一步减少底部内边距 */
    }
    
    /* 减少section标题与内容的间距 */
    .section-title {
        margin-bottom: 0.3rem; /* 减少标题底部边距 */
    }
    
    .section-subtitle {
        margin-bottom: 1rem; /* 减少副标题底部边距 */
        font-size: 0.95rem; /* 稍微减小副标题字体 */
    }
}

/* 确保堆叠顺序正确 */
.col-md-4 {
    position: relative;
    z-index: 1;
}

.col-md-4:hover {
    z-index: 9996;
}

/* 确保其他元素的层级正确 */
.navbar {
    z-index: 99999;
}

.modal {
    z-index: 9998;
}

/* 移除无用的product-modal类定义 */

.hero-overlay {
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

/* 移除无用的slider-nav和slider-indicators z-index定义 */

/* 移除无用的modal-backdrop类定义 - 如果需要，由Bootstrap提供 */

.product-card img {
    height: auto;
    max-height: 100%;
}

.product-card .card-body {
    padding: 0.6rem 1.5rem 1.5rem 1.5rem;
}

.product-card .card-title {
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .featured-products,
    .about-section {
        padding-top: 100px; /* 移除contact-section和products-section，products-section使用专门的设置 */
    }
    
    /* 移除无用的product-categories类定义 */

    /* 移除无用的hero-slide、slider-nav、slider-indicators、indicator类定义 */

    /* 导航栏展开时hero的交互样式已通过基础样式统一处理，无需额外配置 */

    /* 增加Featured Products区域与视频底部的间距 */
    .featured-products {
        padding-top: 6rem !important; /* 增加顶部内边距 */
    }

    /* hero位置已在基础样式中统一配置，移动端无需额外设置 */
}

/* 修复导航栏遮挡section标题的问题 - 减小偏移量 */
html {
    scroll-padding-top: 0; /* 完全移除全局滚动内边距 */
    scroll-behavior: smooth; /* 确保平滑滚动效果 */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 0; /* 移除移动端内边距 */
    }
    
    /* 处理页面内锚点定位的问题 */
    #featured-products,
    .featured-products { 
        scroll-margin-top: 0; /* 移除featured-products的滚动边距 */
        padding-top: 35px !important; /* 减少顶部内边距，缩小与视频的间距 */
        margin-top: 0; /* 修改为0，去除负边距 */
    }
    
    /* 使标题正好位于导航栏下方 */
    .featured-products .section-title {
        padding-top: 70px !important; /* 给标题添加顶部内边距，确保在导航栏下方有足够空间 */
        margin-top: 0;
    }
    
    /* hero底部间距已在基础样式中统一处理 */
    
    /* 其他区块的处理 */
    .products-section,
    .about-section,
    section[id] { 
        scroll-margin-top: 70px; /* 保持其他区块的滚动边距 - 移除contact-section */
    }
}

/* 商品分类样式 */
.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    text-transform: uppercase; /* 大写标题 */
    letter-spacing: 0.5px; /* 增加字母间距 */
}

/* 响应式优化 */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.8rem;
    }
}

/* 产品标签样式 */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* 添加以下属性解决分段加载问题 */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.pourover-badge {
    background-color: #8B5A2B; /* 咖啡色，适合手冲主题 */
    color: white;
}

.espresso-badge {
    background-color: #4A2C2A; /* 深咖啡色，适合浓缩咖啡主题 */
    color: white;
}

/* 产品卡片悬停效果增强 */
.product-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* 桌面端的Featured Products上边距设置 */
.featured-products {
    padding-top: 100px !important; /* 显著增加顶部内边距，确保不被导航栏遮挡 */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .product-badge {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
}

/* 页脚样式 */
.site-footer {
    padding: 60px 0 30px;
    color: #ffffff;
    margin-top: 80px;
    background-color: #000000; /* 保持黑色背景 */
    border-top-left-radius: 250px; /* 添加左上圆角 */
    border-top-right-radius: 250px; /* 添加右上圆角 */
    overflow: hidden; /* 确保内容不超出圆角边界 */
}

/* 页脚上方的黑色圆球样式 */
.footer-circle {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 150px; /* 与圆球尺寸一致 */
    margin-bottom: 150px; /* 与圆球尺寸一致，使圆球与页脚之间的间距等于圆球直径 */
    z-index: 1000; /* 确保圆球在页脚上方 */
}

.footer-circle img {
    width: 150px; /* 放大圆球宽度 */
    height: 150px; /* 放大圆球高度 */
    object-fit: contain;
}

/* 响应式调整圆球大小 */
@media (max-width: 768px) {
    .footer-circle img {
        width: 100px; /* 放大中等屏幕的圆球尺寸 */
        height: 100px;
    }
    
    .footer-circle {
        margin-top: 100px; /* 与圆球尺寸一致 */
        margin-bottom: 100px; /* 与圆球尺寸一致 */
    }
}

@media (max-width: 480px) {
    .footer-circle img {
        width: 80px; /* 放大小屏幕的圆球尺寸 */
        height: 80px;
    }
    
    .footer-circle {
        margin-top: 80px; /* 与圆球尺寸一致 */
        margin-bottom: 80px; /* 与圆球尺寸一致 */
    }
}

/* 页脚导航 - 使用Grid布局 */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    margin-bottom: 40px;
    gap: 10px; /* 添加列间距 */
}

/* 调整导航链接的位置，使其与下方内容对齐 */
.footer-nav a:nth-child(1) {
    grid-column: 3; /* Contact Us */
    justify-self: center;
}

.footer-nav a:nth-child(2) {
    grid-column: 4; /* Where to Buy */
    justify-self: center;
}

.footer-nav a:nth-child(3) {
    grid-column: 5; /* FAQs */
    justify-self: center;
}

.footer-nav a {
    color: #ffffff; /* 恢复白色链接 */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px; /* 添加内边距使点击区域更大 */
    display: inline-block; /* 确保padding生效 */
    text-align: center; /* 文本居中 */
}

.footer-nav a:hover {
    color: #cccccc; /* 恢复原来的悬停颜色 */
}

/* 页脚内容区 - 使用相同的Grid布局 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: stretch; /* 改为拉伸，使每个元素可以自己控制对齐方式 */
    margin-bottom: 30px;
    gap: 10px; /* 添加列间距 */
}

/* Grid区域定义 - 保持与上方导航一致的列位置 */
.footer-logo {
    grid-column: 3; /* 第3列 - 与Contact Us对齐 */
    justify-self: center;
    background-color: transparent; /* 移除背景色 */
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: flex-end; /* 底部对齐 */
    height: 40px; /* 固定高度 */
}

.footer-logo-text {
    color: rgba(241, 239, 231, 1); /* 导航栏颜色 */
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-art {
    grid-column: 4; /* 第4列 - 与Where to Buy对齐 */
    justify-self: center;
    display: flex;
    align-items: flex-end; /* 底部对齐 */
    height: 40px; /* 与logo相同高度 */
    transform: translateX(-10px); /* 向左偏移修正SVG内容偏右的问题 */
}

.footer-copyright {
    grid-column: 5; /* 第5列 - 与FAQs对齐 */
    justify-self: center;
    font-size: 0.9rem;
    color: rgba(241, 239, 231, 1); /* 修改为导航栏背景色 */
    white-space: nowrap; /* 防止文字换行 */
    display: flex;
    align-items: flex-end; /* 底部对齐 */
    height: 40px; /* 与logo相同高度 */
}

.footer-copyright p {
    margin: 0; /* 移除p标签的默认margin */
}

.footer-logo img {
    height: 40px; /* 保持放大的尺寸 */
    width: auto;
    filter: none; /* 移除滤镜，保留原始颜色 */
}

/* 移除之前添加的样式 */
.footer-logo::after {
    display: none;
}

/* 响应式页脚 */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
        border-top-left-radius: 100px; /* 中等屏幕上稍微减小圆角 */
        border-top-right-radius: 100px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr; /* 简化为3列 */
        align-items: stretch; /* 保持拉伸 */
    }
    
    .footer-nav {
        grid-template-columns: 1fr 1fr 1fr; /* 与content保持一致 */
    }
    
    .footer-nav a:nth-child(1) {
        grid-column: 1;
    }
    
    .footer-nav a:nth-child(2) {
        grid-column: 2;
    }
    
    .footer-nav a:nth-child(3) {
        grid-column: 3;
    }
    
    .footer-logo {
        grid-column: 1; /* 在小屏幕上重新排列 */
        height: 35px; /* 减小高度 */
    }
    
    .footer-logo-text {
        font-size: 1.3rem; /* 减小字体大小 */
    }
    
    .footer-art {
        grid-column: 2;
        height: 35px; /* 减小高度 */
        transform: translateX(-8px); /* 移动端下调整偏移量 */
    }
    
    .footer-copyright {
        grid-column: 3;
        height: 35px; /* 减小高度 */
    }
}

/* 超小屏幕调整 */
@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr; /* 改为三列布局，与桌面端一致 */
        grid-gap: 5px; /* 减小列间距 */
        text-align: center;
    }
    
    .footer-nav {
        grid-template-columns: 1fr 1fr 1fr; /* 改为三列布局，与桌面端一致 */
        grid-gap: 5px; /* 减小列间距 */
    }
    
    .footer-nav a:nth-child(1) {
        grid-column: 1;
        justify-self: center;
        font-size: 0.85rem; /* 减小字体 */
    }
    
    .footer-nav a:nth-child(2) {
        grid-column: 2;
        justify-self: center;
        font-size: 0.85rem; /* 减小字体 */
    }
    
    .footer-nav a:nth-child(3) {
        grid-column: 3;
        justify-self: center;
        font-size: 0.85rem; /* 减小字体 */
    }
    
    .footer-logo {
        grid-column: 1; /* 第1列 */
        justify-self: center;
        height: 30px; /* 保持小高度 */
    }
    
    .footer-logo-text {
        font-size: 1.1rem; /* 进一步减小字体大小 */
    }
    
    .footer-art {
        grid-column: 2; /* 第2列 */
        justify-self: center;
        height: 30px; /* 保持小高度 */
        transform: translateX(-8px); /* 保持偏移调整 */
    }
    
    .footer-art img {
        height: 28px; /* 略微减小图标大小 */
    }
    
    .footer-copyright {
        grid-column: 3; /* 第3列 */
        justify-self: center;
        height: 30px; /* 保持小高度 */
        font-size: 0.75rem; /* 更小的字体 */
    }
    
    .site-footer {
        border-top-left-radius: 50px; /* 调整圆角大小 */
        border-top-right-radius: 50px;
        padding: 30px 0 15px; /* 减小上下内边距 */
    }
}

.footer-art img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* 白色滤镜 */
}

/* 极小屏幕调整 (小于400px) */
@media (max-width: 400px) {
    .footer-nav a:nth-child(1),
    .footer-nav a:nth-child(2),
    .footer-nav a:nth-child(3) {
        font-size: 0.75rem; /* 进一步减小字体 */
        padding: 3px 5px; /* 减小内边距 */
    }
    
    .footer-logo-text {
        font-size: 1rem; /* 更小的字体 */
    }
    
    .footer-copyright {
        font-size: 0.7rem; /* 更小的字体 */
    }
    
    .footer-art img {
        height: 25px; /* 更小的图标 */
    }
}

/* Coffee Story Section Styles */
.coffee-story {
    overflow: hidden;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.story-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* 新增固定图片类，悬停时不放大 */
.fixed-story-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: none; /* 移除过渡效果 */
}

.story-text-bg {
    background-color: rgba(241, 239, 231, 1);
}

.story-title {
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.story-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 0.8rem;
}

/* 优化内边距 */
.story-text-container .story-text {
    padding: 1.5rem !important;
}

/* 移除咖啡故事部分的行间距 */
.coffee-story .row {
    margin-bottom: 0;
}

.coffee-story .row + .row {
    margin-top: 0;
}

/* 自定义1.85:1比例类 */
.ratio-185x1 {
    --bs-aspect-ratio: calc(1 / 1.85 * 100%);
}

/* 自定义3.7:1比例类 */
.ratio-37x10 {
    --bs-aspect-ratio: calc(10 / 37 * 100%);
}

/* 文本按钮样式 - 参考导航栏链接的悬停效果 */
.text-link {
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease, transform 0.12s ease;
    display: inline-block;
    padding: 2px 0;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.text-link:hover {
    color: #8c8c8c;
    transform: translateY(-1px);
}

/* 故事文字容器样式 */
.story-text-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow-y: auto;
}

.story-text {
    width: 100%;
}

/* 故事部分响应式调整 */
@media (max-width: 768px) {
    .story-text-container {
        overflow-y: auto;
    }
    
    .story-text {
        padding: 1.5rem !important;
    }
    
    .story-title {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .story-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .coffee-story .col-md-6:first-child {
        margin-bottom: 0;
    }
    
    .text-link {
        font-size: 0.95rem;
        padding: 2px 0;
    }
}

@media (max-width: 576px) {
    .story-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .story-description {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .text-link {
        font-size: 0.9rem;
    }
}

/* 悬停效果仅对story-image类有效，fixed-story-image类不受影响 */
.coffee-story .position-relative:hover .story-image {
    transform: scale(1.05);
}

/* 增加Products Section区域与视频底部的间距 */
.products-section {
    padding-top: 6rem !important; /* 增加顶部内边距 */
}

/* 在移动端特别处理products区域，防止标题被导航栏遮挡 */
@media (max-width: 768px) {
    #products {
        scroll-margin-top: 0; /* 移除滚动边距 */
        padding-top: 20px !important; /* 进一步减少顶部内边距，缩小与视频的间距 */
        margin-top: 0; /* 修改为0，去除负边距 */
    }
    
    /* 使标题正好位于导航栏下方 - 保持足够间距避免被遮挡 */
    #products .section-title {
        padding-top: 60px !important; /* 增加标题顶部内边距，确保锚点跳转时不被导航栏遮挡 */
        margin-top: 0;
    }
}

/* 优化内边距 */

/* Values Section Styles */
.values-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    margin-top: 40px;
}

/* Philosophy 介绍文字样式 */
.philosophy-intro {
    width: 100%;
    margin-bottom: 50px;
}

.philosophy-lead {
    font-size: 64px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.philosophy-text {
    font-size: 36px;
    line-height: 1.4;
    color: #666;
}

.philosophy-text strong {
    color: #333;
    font-weight: 600;
}

.values-section .row {
    display: flex;
    flex-wrap: wrap;
}

.values-section .col-md-4 {
    display: flex;
    margin-bottom: 30px;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.value-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.value-card h3 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-card p {
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

/* Values Section 响应式调整 */
@media (max-width: 768px) {
    .values-section {
        padding: 60px 0;
    }
    
    .philosophy-lead {
        font-size: 36px;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .philosophy-text {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .value-card {
        padding: 20px;
    }
    
    .value-card img {
        height: 180px;
        margin-bottom: 15px;
    }
    
    .value-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .value-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .philosophy-lead {
        font-size: 28px;
    }
    
    .philosophy-text {
        font-size: 18px;
    }
}
