/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 基础 rem 设置：1rem = 10px，避免全局冲突使用独立作用域 */
.ac-main-wrapper {
    font-size: 62.5%;
}

.ac-main-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ac-body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    font-size: 1.5rem;
}

/* 全宽容器 */
.ac-full-width {
    width: 100%;
    padding: 0 2rem;
}

.ac-section-header {
    text-align: center;
    margin-bottom: 3.2rem;
    position: relative;
}

.ac-section-heading {
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 1.2rem;
}

.ac-section-description {
    font-size: 1.6rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Best Welding Helmets 网格布局 (全宽，桌面6列，手机2列) ========== */
.ac-helmets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin: 0;
    width: 100%;
}

/* 产品卡片样式 */
.ac-pcard-link {
    display: block;
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: none;
    height: 100%;
}

.ac-pcard-link:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    z-index: 2;
    position: relative;
}

.ac-pcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: transparent;
}

.ac-pcard-image {
    position: relative;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ac-pcard-image img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: none;
}

.ac-pcard-tags {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    z-index: 2;
}

.ac-prod-tag-discounted {
    background-color: #871525;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.ac-pcard-content {
    padding: 1.6rem 1.2rem 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ac-pcard-name {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
}

.ac-pcard-link:hover .ac-pcard-name {
    color: #871525;
}

.ac-pcard-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #871525;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.ac-prod-price {
    font-weight: 600;
}

.ac-prod-compare-price {
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

/* 响应式 */
@media (max-width: 1200px) {
    .ac-helmets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ac-helmets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ac-section-heading {
        font-size: 2.6rem;
    }

    .ac-pcard-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .ac-helmets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========== Shop by collections ========== */

/* ========== Shop by collections 黑色背景 + 白色纯箭头，全宽 ========== */
.ac-collections-section {
    margin-top: 6rem;
    padding: 4rem 0 5rem;
    background-color: #000000;
    width: 100%;
}

.ac-collections-section .ac-section-heading {
    color: #ffffff;
}

.ac-collections-section .ac-section-header {
    margin-bottom: 3.2rem;
}

.ac-collections-header {
    position: relative;
    text-align: center;
    margin-bottom: 3.2rem;
}

.ac-collections-header .ac-section-header {
    margin-bottom: 0;
}

/* 桌面端：箭头在右上角 */
.ac-carousel-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 1.6rem;
}

.ac-arrow-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-arrow-btn:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.ac-arrow-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* 轮播容器样式 */
.ac-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ac-carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

/* 轮播项样式 - 确保正方形 */
.ac-carousel-item {
    position: relative;
    flex-shrink: 0;
    transition: height 0.2s ease;
}

/* 卡片内部图片容器 - 保持正方形 */
.ac-collection-card {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.ac-collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 标题样式 */
.ac-collection-item-title {
    margin-top: 1rem;
    text-align: center;
}

.ac-collection-item-title h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
}

/* 不需要轮播时的横向滚动样式 */
.ac-carousel-track[style*="overflow-x: auto"] {
    scrollbar-width: thin;
    scrollbar-color: #666 #333;
}

.ac-carousel-track[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 6px;
}

.ac-carousel-track[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.ac-carousel-track[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

/* 手机端：箭头在轮播图下方居中 */
@media (max-width: 768px) {
    .ac-carousel-controls-desktop {
        display: none;
    }

    .ac-carousel-controls-mobile {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .ac-arrow-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 769px) {
    .ac-carousel-controls-mobile {
        display: none;
    }
}



/* ========== Shop by collections end ========== */

/* 全宽容器 */
.ac-full-width {
    width: 100%;
    padding: 0 2rem;
}

.ac-section-header {
    text-align: center;
    margin-bottom: 3.2rem;
    position: relative;
}

.ac-section-heading {
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 1.2rem;
}

.ac-section-description {
    font-size: 1.6rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Best Welding Helmets 网格布局 (全宽，桌面6列，手机2列) ========== */
.ac-helmets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin: 0;
    width: 100%;
}

/* 产品卡片样式 */
.ac-pcard-link {
    display: block;
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: none;
    height: 100%;
}

.ac-pcard-link:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    z-index: 2;
    position: relative;
}

.ac-pcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: transparent;
}

.ac-pcard-image {
    position: relative;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ac-pcard-image img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: none;
}

.ac-pcard-tags {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    z-index: 2;
}

.ac-prod-tag-discounted {
    background-color: #871525;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.ac-pcard-content {
    padding: 1.6rem 1.2rem 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ac-pcard-name {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
}

.ac-pcard-link:hover .ac-pcard-name {
    color: #871525;
}

.ac-pcard-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #871525;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.ac-prod-price {
    font-weight: 600;
}

.ac-prod-compare-price {
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

/* 响应式 */
@media (max-width: 1200px) {
    .ac-helmets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ac-helmets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ac-section-heading {
        font-size: 2.6rem;
    }

    .ac-pcard-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .ac-helmets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Shop by collections 黑色背景 + 白色纯箭头，全宽 ========== */
.ac-collections-section {
    margin-top: 6rem;
    padding: 4rem 0 5rem;
    background-color: #000000;
    width: 100%;
}

.ac-collections-section .ac-section-heading {
    color: #ffffff;
}

.ac-collections-section .ac-section-header {
    margin-bottom: 3.2rem;
}

.ac-collections-header {
    position: relative;
    text-align: center;
    margin-bottom: 3.2rem;
}

.ac-collections-header .ac-section-header {
    margin-bottom: 0;
}

/* 桌面端：箭头在右上角 */
.ac-carousel-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 1.6rem;
}

.ac-arrow-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-arrow-btn:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.ac-arrow-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* 手机端：箭头在轮播图下方居中 */
@media (max-width: 768px) {
    .ac-carousel-controls-desktop {
        display: none;
    }

    .ac-carousel-controls-mobile {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .ac-arrow-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 769px) {
    .ac-carousel-controls-mobile {
        display: none;
    }
}

/* 轮播容器 */
.ac-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ac-carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform;
    flex-wrap: nowrap;
}

/* 每个轮播项 */
.ac-carousel-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: calc(100% / 4 - 2rem);
    margin-right: 2.4rem;
}

/* 产品卡片：无圆角，白色背景 */
.ac-collection-card {
    width: 100%;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: block;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0;
    overflow: hidden;
}

.ac-collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ac-collection-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* 标题在白色框外部，位于图片下方 */
.ac-collection-item-title {
    text-align: center;
    margin-top: 1.2rem;
    background: transparent;
    padding: 0;
}

.ac-collection-item-title h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
}

/* 响应式卡片宽度 */
@media (max-width: 1100px) {
    .ac-carousel-item {
        width: calc(100% / 3 - 1.8rem);
    }
}

@media (max-width: 768px) {
    .ac-carousel-item {
        width: calc(100% / 2 - 1.5rem);
    }
}

@media (max-width: 550px) {
    .ac-carousel-item {
        width: calc(100% / 1.5 - 1rem);
        min-width: 240px;
    }
}

/* ========== Split Section (About) - 比例 4:6 ========== */
.split-section {
    display: flex;
    flex-wrap: wrap;
    background: #1a1a1a;
    min-height: 500px;
}

.split-content {
    flex: 4;
    /* 40% */
    padding: 60px;
    color: white;
}

.split-badge {
    background: #c7141e;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.split-badge-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.split-content h2 {
    font-size: 46px;
    font-weight: 700;
    color: #c7141e;
    margin-bottom: 20px;
    line-height: 1.1;
}

.info-box {
    background: #f8f9fa;
    border-left: 5px solid #c7141e;
    padding: 25px;
    margin: 20px 0;
    font-family: inherit;
    line-height: 1.6;
}

.info-box p {
    margin-bottom: 15px;
    color: #333;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: #c7141e;
}

.btn-red {
    display: inline-block;
    background-color: #c7141e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-red:hover {
    background-color: #8a191d;
}

.split-image {
    flex: 6;
    /* 60% */
    min-height: 400px;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Equipment Grid ========== */
.equipment-section {
    padding: 60px 0;
    background: #ffffff;
}

.equipment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.equipment-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #676767;
    margin-bottom: 12px;
    font-weight: 600;
}

.equipment-heading {
    font-size: 40px;
    font-weight: 700;
    color: #232323;
    margin: 0;
    line-height: 1.2;
}

.equipment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: #c7141e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.equipment-btn:hover {
    background-color: #232323;
    transform: translateY(-2px);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.equipment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-4px);
    border-color: #cccccc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.equipment-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin: 0;
    line-height: 1.4;
}

.equipment-card-icon {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: auto;
}

.equipment-card-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.equipment-card:hover .equipment-card-icon img {
    opacity: 0.6;
}

/* 响应式 */
@media (max-width: 989px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        height: 400px;
    }

    .card-title {
        font-size: 30px;
    }

    .split-content h2 {
        font-size: 42px;
    }

    .split-content {
        padding: 42px;
    }

    .split-content {
        flex: 1;
    }

    .split-image {
        flex: 1;
    }

    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .equipment-heading {
        font-size: 32px;
    }

    .feature-item {
        padding: 0 15px;
    }

    .feature-text {
        font-size: 16px;
    }

    .hero-title,
    .hero-title-highlight {
        font-size: clamp(40px, 8vw, 70px);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 20px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-title,
    .hero-title-highlight {
        font-size: clamp(32px, 7vw, 50px);
    }

    .hero-title-highlight {
        padding: 6px 16px;
        margin-top: 8px;
    }

    .feature-grid {
        flex-direction: column;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 15px 0;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 360px;
    }

    .card-title {
        font-size: 27px;
    }

    .split-section {
        flex-direction: column;
    }

    .split-content {
        padding: 40px 20px;
    }

    .split-content h2 {
        font-size: 32px;
    }

    .equipment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-heading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .card-title {
        font-size: 24px;
    }
}