/* Phone Case Vending Machine Styles */
.phone-case-vending-section {
    width: 100%;
    background-image: url('../images/phone case vending machine880_bg.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

.phone-case-vending-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.phone-case-vending-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.phone-icon {
    display: inline-flex;
    margin-right: 10px;
    vertical-align: middle;
}

.phone-icon svg {
    vertical-align: middle;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0;
}

.phone-case-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

.feature-item {
    width: 30%;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.icon-bg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f5ff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    transition: background 0.3s ease;
}

.feature-item:hover .icon-bg {
    background: #e0ebff;
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.phone-case-cta {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    background-color: #1e73be;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #1a5c9a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.3);
}

.phone-case-image {
    text-align: center;
    margin: 40px 0;
}

.phone-case-image a {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.phone-case-image a:hover {
    transform: scale(1.02);
}

.phone-case-image a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 115, 190, 0.1);
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.phone-case-image a:hover:after {
    opacity: 1;
}

.phone-case-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Cotton Candy Vending Machine Styles */
/*.cotton-candy-section {*/
/*    width: 100%;*/
/*    background-color: #fef6f9;*/
/*    padding: 60px 0;*/
/*    margin-top: 40px;*/
/*}*/

.cotton-candy-section  {
    width: 100%;
    background-image: url('../images/Cotton-Candy-bg1.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}



.cotton-candy-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.cotton-candy-header {
    text-align: left;
    margin-bottom: 40px;
}

.candy-icon {
    display: inline-flex;
    margin-right: 10px;
    vertical-align: middle;
}

.candy-icon svg {
    vertical-align: middle;
}

/* 修改产品项目样式，使其在网格布局中表现更好 */
.product-item {
    flex: 1 1 calc(33.333% - 20px);
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 为棉花糖部分添加顶部间距 */
.cotton-candy-section {
    padding: 60px 0;
    background-color: #fff9fc;
    /* margin-bottom: 40px; */
}

.cotton-candy-header {
    text-align: center;
    margin-bottom: 40px;
}

/* 调整产品网格的间距和布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-thumbnail {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
}

.product-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-thumbnail img {
    transform: scale(1.05);
}

.product-header {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #1e73be;
}

.product-footer {
    padding: 0 20px 20px;
}

.product-btn {
    display: inline-block;
    background-color: #1e73be;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.product-btn:hover {
    background-color: #1a5c9a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.3);
}

/* Jigsaw Puzzle Vending Machine Styles */
.puzzle-section {
    width: 100%;
    background-color: #f0f7ff;
    padding: 60px 0;
    /*margin-top: 40px;*/
}

.puzzle-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.puzzle-header {
    text-align: left;
    margin-bottom: 40px;
}

.puzzle-icon {
    display: inline-flex;
    margin-right: 10px;
    vertical-align: middle;
}

.puzzle-icon svg {
    vertical-align: middle;
}

.puzzle-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.puzzle-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.puzzle-image a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /*box-shadow: 0 5px 10px rgba(0,0,0,0.15);*/
    transition: all 0.5s ease;
}

.puzzle-image a:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.puzzle-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s ease;
}

.puzzle-image a:hover img {
    transform: scale(1.05);
}

.puzzle-details {
    flex: 1;
    min-width: 300px;
}

.puzzle-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.puzzle-cta {
    margin-top: 30px;
}

.puzzle-btn {
    display: inline-block;
    background-color: #1e73be;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.puzzle-btn:hover {
    background-color: #1a5c9a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.3);
}

/* 添加的样式用于棉花糖主打产品展示 */
.featured-product {
    margin-bottom: 30px;
    background-color: #fff8fb;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 159, 208, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 159, 208, 0.2);
}

.featured-product-inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .featured-product-inner {
        flex-direction: row;
    }
}

.featured-product-image {
    flex: 1;
    overflow: hidden;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-product-image img:hover {
    transform: scale(1.05);
}

.featured-product-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.featured-product-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-product-title a:hover {
    color: #ff69b4;
}

.featured-product-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.featured-product-footer {
    text-align: left;
    margin-top: auto;
}

.featured-product-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #1e73be;
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.featured-product-btn:hover {
    background-color: #1a5c9a !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3) !important;
}

.featured-product-specs {
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.spec-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #666;
    flex: 1;
}

.spec-value {
    color: #333;
    flex: 2;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .feature-item {
        width: 48%;
    }
    
    .product-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .feature-item {
        width: 100%;
    }
    
    .phone-case-vending-section,
    .cotton-candy-section,
    .puzzle-section {
        padding: 40px 0;
    }
    
    .product-item {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .puzzle-content {
        flex-direction: column;
    }
    
    .puzzle-image,
    .puzzle-details {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .feature-title {
        font-size: 16px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
    
    .cta-button,
    .product-btn,
    .puzzle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .product-title {
        font-size: 16px;
        height: auto;
    }
    
    .puzzle-description {
        font-size: 14px;
        line-height: 1.6;
    }
} 

/* Other Machines Section 样式 */
.other-machines-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 40px;
}

.other-machines-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.other-machines-header {
    text-align: center;
    margin-bottom: 40px;
}

/* 调整滑块中的产品网格为3列布局 */
.machines-slider .product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 576px) {
    .machines-slider .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .machines-slider .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 滑块容器和导航 */
.slider-container {
    display: none;
}

.slider-container.active {
    display: block;
}

.slider-navigation {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #1e73be;
}

@media (max-width: 1200px) {
    .other-machines-container .product-item {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .other-machines-section {
        padding: 40px 0;
    }
    
    .other-machines-container .product-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .other-machines-container .product-item {
        width: 100%;
    }
} 

/* 修改棉花糖区域的产品网格为4列布局 */
.cotton-candy-section .product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 576px) {
    .cotton-candy-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .cotton-candy-section .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .cotton-candy-section .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 减小棉花糖区域产品项目高度 */
.cotton-candy-section .product-item {
    margin-bottom: 20px;
}

.cotton-candy-section .product-thumbnail {
    height: 180px;
    overflow: hidden;
}

.cotton-candy-section .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cotton-candy-section .product-header {
    padding: 12px 15px;
}

.cotton-candy-section .product-title {
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

.cotton-candy-section .product-footer {
    padding: 10px 15px 15px;
} 