:root {
    --primary-color: #1e3a5f;
    --accent-color: #c6a43f;
    --light-bg: #f8f9fa;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* 防止页面出现横向滚动，保证固定定位控件位于可视区 */
html, body {
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* 网站LOGO下方的文字 */
.brand-subtitle {
    font-size: 1.0rem;
    font-weight: 400;
    color: #666;
    line-height: 1.2;
    max-width: 200px;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

.lang-switch {
    margin-left: 1rem;
}

/* 保证语言切换在窄屏下不换行导致撑开容器 */
.lang-switch {
    white-space: nowrap;
}

.lang-switch a {
    text-decoration: none;
    color: var(--primary-color);
    margin: 0 0.3rem;
    font-weight: 500;
    cursor: pointer;
}

.lang-switch a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* 页面容器 */
.page {
    display: none;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* 首页特殊处理：banner从页面顶部开始，但要在菜单栏下方 */
#home {
    padding-top: 80px;
}

/* 首页轮播 - 全宽度，16:9 比例 */
.carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* 让活动项目显示为 flex 来居中图片和文字 */
.carousel-item.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    object-fit: contain;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
    padding: 0;
}

.carousel-caption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 80%;
    z-index: 2;
    padding: 2rem;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary-custom {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #b8942f;
    box-shadow: 0 5px 15px rgba(198, 164, 63, 0.3);
}

/* 分类卡片 */
.category-section {
    padding: 4rem 0;
    background-color: white;
}

/* Reduce spacing between category tiles (override Bootstrap gutters) */
#categoriesGrid {
    --bs-gutter-x: 8px; /* horizontal gap */
    --bs-gutter-y: 8px; /* vertical gap */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    /* position: absolute; */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

/* 分类网格列 */
#categoriesGrid > div {
    display: flex;
    padding-left: 4px;
    padding-right: 4px;
}

.category-card {
    background-color: var(--light-bg);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 160px;
    height: 100%;
    width: 100%;
}

.category-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-img {
    width: 100%;
    /* 图片占据大部分卡片（目标约80%），保持覆盖填充 */
    height: calc(100% - 44px);
    object-fit: cover;
    border-radius: 8px;
    margin: 0 0 0.6rem 0;
    border: 2px solid transparent;
    display: block;
}

.category-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.3rem 0 0 0;
    font-size: 0.95rem;
    line-height: 1.1;
    height: 44px; /* 留出约 20% 空间给标题 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* 移动端：压缩卡片以便一次可见更多分类（目标：接近 3x3 布局） */
@media (max-width: 576px) {
    #categoriesGrid > div {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        padding: 4px;
    }

    .category-card {
        padding: 0.5rem;
        min-height: 120px;
        border-radius: 6px;
    }

    .category-img {
        height: calc(100% - 36px);
    }

    .category-title {
        font-size: 0.82rem;
    }
}

/* Mobile category tiles (used on products page mobile) */
@media (max-width: 576px) {
    .mobile-category-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0 -4px;
        align-items: flex-start;
    }

    .mobile-category-tile {
        background-color: var(--light-bg);
        width: calc(50% - 6px);
        border-radius: 8px;
        padding: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        border: 2px solid transparent;
        box-sizing: border-box;
    }

    .mobile-category-tile.active {
        border-color: var(--accent-color);
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

    .mobile-tile-img {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: cover;
        border-radius: 6px;
    }

    .tile-img-placeholder {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        border-radius: 6px;
        color: #999;
        font-weight: 600;
    }

    .tile-title {
        font-size: 0.9rem;
        color: var(--primary-color);
        text-align: center;
        line-height: 1.1;
    }

    /* Mobile products: 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-img {
        height: 180px;
    }
}

/* Desktop/tablet category tiles (used on products page) */
.desktop-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.desktop-category-tile {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.desktop-category-tile.active {
    border-color: var(--accent-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.desktop-category-tile .mobile-tile-img,
.desktop-category-tile .tile-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.desktop-category-tile .tile-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #999;
    font-weight: 600;
}

.desktop-category-tile .tile-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.2;
}

/* Hide the "Filter Products" title on small screens */
@media (max-width: 576px) {
    .filter-title {
        display: none !important;
    }
}

/* Hide apply/clear buttons on small screens */
@media (max-width: 576px) {
    .filter-btn,
    .clear-filter {
        display: none !important;
    }
}

/* Floating MORE button */
.more-btn {
    position: fixed;
    top: calc(80px + 12px);
    right: 12px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: none; /* shown by JS on products page */
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 2000;
    cursor: pointer;
    border: none;
}
.more-btn:hover { transform: translateY(-2px); }

@media (max-width: 576px) {
    .more-btn { width: 48px; height:48px; top: calc(64px + 8px); right: 10px; }
}

/* 产品卡片网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    overflow: hidden;
    background-color: var(--light-bg);
    flex-shrink: 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: auto;
    margin-bottom: 0;
}

.product-detail-btn {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.product-detail-btn:hover {
    background-color: #2d5a8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 90, 139, 0.3);
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a8c 100%);
    color: white;
    padding: 6rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 产品详情页 */
.product-detail {
    padding: 3rem 0;
    background-color: white;
}

.detail-gallery {
    margin-bottom: 2rem;
}

.main-image {
    width: 100%;
    height: 500px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.thumbnails img {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    object-fit: cover;
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: var(--accent-color);
}

.detail-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.detail-specs {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* 列表页面 */
.products-container {
    padding: 3rem 0;
    background-color: white;
}

.filters-bar {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.category-filter {
    min-width: 150px;
}

.category-filter select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.sort-select {
    min-width: 150px;
}

.sort-select select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

/* 筛选侧边栏样式 */
.filter-sidebar {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 120px;
}

@media (min-width: 992px) {
    .products-container .col-lg-3.col-md-4,
    .products-container .col-lg-9.col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .filter-sidebar {
        position: static;
        top: auto;
        margin-bottom: 1.5rem;
    }

    .desktop-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.filter-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--light-bg);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h4 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.filter-checkbox {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-checkbox input {
    accent-color: var(--accent-color);
}

.filter-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: #b09028;
    color: white;
}

.clear-filter {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    width: 100%;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clear-filter:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 排序栏样式 */
.sort-bar {
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-weight: 500;
    color: var(--primary-color);
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.view-btn:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

/* 分页样式 */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

/* 联系表单 */
.contact-section {
    padding: 4rem 0;
    background-color: white;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(198, 164, 63, 0.1);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: var(--accent-color);
}

/* 联系信息卡片样式 */
.contact-info-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.contact-info-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-detail i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
}

.contact-detail p {
    margin: 0;
    color: #555;
}

.contact-detail p strong {
    color: var(--primary-color);
}

.contact-detail a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--accent-color);
}

/* 地图样式 */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 400px;
    margin-bottom: 2rem;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--primary-color);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* 关于我们 */
.about-section {
    padding: 4rem 0;
    background-color: white;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a8c 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-col h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    color: #ccc;
}

/* 消息提示 */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About 页面样式 */
.section-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--light-bg);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.member-desc {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 1200px) {
    .carousel-caption h1 {
        font-size: 2.8rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .carousel-caption {
        bottom: 8%;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .brand-title {
        font-size: 1.4rem;
    }

    .brand-subtitle {
        font-size: 0.56rem;
        max-width: 150px;
    }

    .carousel-caption {
        bottom: 6%;
        max-width: 90%;
        padding: 1.5rem;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        display: none;
    }

    .btn-primary-custom {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .category-card {
        min-height: 150px;
        padding: 1.5rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .filters-bar {
        flex-direction: column;
    }

    .search-box,
    .category-filter,
    .sort-select {
        min-width: unset;
    }

    .thumbnails img {
        flex: 0 0 55px;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .carousel-caption {
        bottom: 4%;
        max-width: 95%;
        padding: 1rem;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        display: none;
    }

    .btn-primary-custom {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

    .main-image {
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
