/* Partners Page Styles - Light Theme */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--bg-page);
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, rgba(10, 22, 40, 0.75), rgba(10, 22, 40, 0.9)),
        url('../../images/banner.png') center center / cover no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 2px;
    margin-bottom: 32px;
    font-weight: 600;
    border-left: 3px solid var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -1px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.page-hero h1 span:last-child {
    display: block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

/* Revealed State for Hero */
.hero-label.revealed,
.page-hero h1.revealed,
.hero-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section Tag */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-tag::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin: 0 auto 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service Intro Section */
.service-intro {
    background: var(--bg-surface);
    padding: 100px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.intro-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.intro-text .section-title {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.intro-text p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.intro-visual {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.intro-visual.revealed {
    opacity: 1;
    transform: translateY(0);
}

.shopify-feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.shopify-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.shopify-logo-area i {
    font-size: 3rem;
    color: #96bf48;
}

.shopify-logo-area span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: 1px;
}

.shopify-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shopify-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shopify-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.shopify-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Services Section */
.services-section {
    background: #f4f7fb;
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 36px 30px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    background: rgba(59, 130, 246, 0.03);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.service-card h3 {
    color: var(--text-title);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Process Section */
.process-section {
    background: var(--bg-surface);
    padding: 100px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    position: relative;
    z-index: 1;
}

.process-step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
    flex-shrink: 0;
}

.step-body h3 {
    color: var(--text-title);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-body p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* Partners Section */
.partners-section {
    background: var(--bg-surface);
    padding: 80px 0 120px;
    position: relative;
}

.partner-category {
    margin-bottom: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.category-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.category-title {
    font-size: 1.8rem;
    color: var(--text-title);
    font-weight: 700;
    white-space: nowrap;
}

.category-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), transparent);
    width: 100%;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Partner Card */
.partner-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    opacity: 0;
    transform: translateY(30px);
}

.partner-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--primary);
    transition: height 0.4s ease;
}

.partner-card:hover {
    background: rgba(59, 130, 246, 0.03);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.partner-card:hover::before {
    height: 100%;
}

.partner-logo-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.partner-logo-wrapper img {
    max-height: 100%;
    max-width: 180px;
    filter: none; /* 淺色主題下顯示原始 Logo 顏色 */
    opacity: 0.8;
    transition: all 0.4s ease;
}

.partner-card:hover .partner-logo-wrapper img {
    opacity: 1;
}

/* Text Logo Fallback */
.partner-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-title);
    opacity: 0.7;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-card:hover .partner-logo-text {
    opacity: 1;
    color: var(--primary);
}

.partner-info h3 {
    color: var(--text-title);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.partner-info p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.cta-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    color: var(--text-title);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    color: var(--text-body);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 20px 70px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-background {
        background:
            linear-gradient(to bottom, rgba(10, 22, 40, 0.75), rgba(10, 22, 40, 0.9)),
            url('../../images/banner-mobile.png') center center / cover no-repeat;
    }

    .service-intro {
        padding: 60px 20px;
    }

    .services-section {
        padding: 60px 20px;
    }

    .process-section {
        padding: 60px 20px;
    }

    .partners-section {
        padding: 60px 20px 80px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-text .section-title {
        font-size: 1.8rem;
    }

    .shopify-feature-card {
        padding: 28px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 20px;
        text-align: center;
    }

    .service-icon {
        margin: 0 auto 20px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .shopify-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        padding: 24px 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}
