/* Baking Page Specific Styles */

/* Hero Section */
.baking-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #dbeafe 100%);
    padding: 60px 0;
}

.baking-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #dbeafe 100%);
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.baking-hero-bg::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 350px;
    height: 280px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.12);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.baking-hero-bg::after {
    content: '🍔';
    position: absolute;
    top: 20%;
    right: 14%;
    font-size: 140px;
    opacity: 0.85;
    transform: rotate(-8deg);
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.baking-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #dbeafe 100%);
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.baking-hero-bg .pos-system {
    position: absolute;
    top: 30%;
    right: 5%;
    width: 220px;
    height: 160px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 18px;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.baking-hero-bg .pos-system::before {
    content: '💳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    opacity: 0.8;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.baking-hero-bg .pos-system::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.baking-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.baking-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    line-height: 1.2;
}

.baking-hero .hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.icon-chat {
    font-size: 18px;
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.play-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-size: 12px;
}

.btn-secondary .play-icon {
    background: var(--primary-green);
}

.btn-secondary:hover .play-icon {
    background: white;
    color: var(--primary-green);
}

/* Overseas Industries Section */
.overseas-industries {
    padding: 80px 0;
    background: white;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    justify-content: center;
}

.section-icon {
    font-size: 36px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Industry Carousel Styles */
.industry-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.industry-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.industry-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.industry-card.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.industry-card.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    color: var(--primary-green);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicators .indicator:hover {
    background: rgba(16, 185, 129, 0.5);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: var(--primary-green);
    width: 30px;
    border-radius: 6px;
}

/* Legacy grid support for responsive */
.industry-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.industry-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    position: relative;
}

.card-image-1 {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.card-image-1::before {
    content: '🥟';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
}

.card-image-2 {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
}

.card-image-2::before {
    content: '🍰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
}

.card-image-3 {
    background: linear-gradient(135deg, #365314 0%, #3f6212 100%);
}

.card-image-3::before {
    content: '🥖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
}

.card-image-4 {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.card-image-4::before {
    content: '☕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
}

.card-image-5 {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
}

.card-image-5::before {
    content: '🏪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 25px 20px 20px;
    color: white;
}

.card-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Core Features Section */
.core-features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.features-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-left-color: var(--primary-green);
}

.feature-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-green);
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.features-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.features-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1;
}

.features-image::after {
    content: '📊';
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
    z-index: 2;
}

.features-image .baked-good-left {
    position: absolute;
    top: 20%;
    left: 5%;
    font-size: 80px;
    opacity: 0.4;
    z-index: 0;
}

.features-image .baked-good-right {
    position: absolute;
    top: 20%;
    right: 5%;
    font-size: 80px;
    opacity: 0.4;
    z-index: 0;
}

/* ERP Management Section */
.erp-management {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
}

.erp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.erp-image {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.erp-image-1 {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    position: relative;
}

.erp-image-1::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.erp-image-1::after {
    content: '📦';
    position: absolute;
    top: 30%;
    left: 30%;
    font-size: 80px;
    opacity: 0.4;
    z-index: 1;
}

.erp-image-2 {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    height: 250px;
    margin-top: 20px;
    position: relative;
}

.erp-image-2::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.erp-image-2::after {
    content: '👥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
    z-index: 1;
}

.erp-description {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Member Management Section */
.member-management-baking {
    padding: 80px 0;
    background: var(--bg-light);
}

.member-description {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Multi-level Chain Management Section */
.multi-level-chain {
    padding: 80px 0;
    background: white;
}

.chain-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chain-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chain-subtitle {
    font-size: 20px;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 10px;
}

.chain-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

.chain-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.chain-image::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 35%;
    height: 70%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1;
}

.chain-image::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 35%;
    height: 70%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1;
}

.chain-image .phone-screen {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 30%;
    height: 60%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 15px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    opacity: 0.9;
}

.chain-image .phone-screen::before {
    content: '📊';
    font-size: 60px;
}

.chain-image .phone-screen-right {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 30%;
    height: 60%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 15px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    opacity: 0.9;
}

.chain-image .phone-screen-right::before {
    content: '📈';
    font-size: 60px;
}

/* Success Cases Section */
.success-cases-baking {
    padding: 80px 0;
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.case-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.case-image-1 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    position: relative;
}

.case-image-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.case-image-1::after {
    content: '👔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.case-image-2 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    position: relative;
}

.case-image-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.case-image-2::after {
    content: '💻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.case-image-3 {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    position: relative;
}

.case-image-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.case-image-3::after {
    content: '🥬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.3;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.case-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .baking-hero h1 {
        font-size: 36px;
    }

    .baking-hero .hero-subtitle {
        font-size: 18px;
    }

    .features-layout {
        grid-template-columns: 1fr;
    }

    .features-image {
        height: 350px;
    }

    .erp-content {
        grid-template-columns: 1fr;
    }

    .chain-content {
        grid-template-columns: 1fr;
    }

    .industry-carousel-container {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .industry-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .baking-hero {
        min-height: 500px;
        margin-top: 70px;
    }

    .baking-hero h1 {
        font-size: 28px;
    }

    .baking-hero .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .industry-carousel-container {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .industry-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .overseas-industries,
    .core-features,
    .erp-management,
    .member-management-baking,
    .multi-level-chain,
    .success-cases-baking {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .baking-hero-content {
        padding: 40px 0;
    }

    .industry-carousel-container {
        padding: 0 30px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .industry-cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }
}
