/* 移动端 - 策划创意 */

.m-creativity-page {
    min-height: 100vh;
    background: #f3f4f7;
    color: #333;
    padding-bottom: 24px;
}

/* ========== Hero ========== */
.m-creativity-hero {
    margin: 12px 12px 8px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.m-creativity-hero-overlay {
    position: relative;
    width: 100%;
    min-height: 180px;
    border-radius: 12px;
    overflow: hidden;
}

.m-creativity-hero-overlay img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.m-creativity-hero-overlay-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-align: center;
    color: #fff;
}

.m-creativity-hero-overlay-inner h2 {
    margin: 0 0 10px;
    font-size: clamp(16px, 4.5vw, 22px);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.m-creativity-hero-overlay-inner p {
    margin: 0 0 16px;
    font-size: clamp(11px, 3vw, 13px);
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
}

.m-creativity-hero-btn {
    width: 120px;
    height: 38px;
    border: none;
    border-radius: 19px;
    background: url(https://mstatic.ofpay.com/marketing/upload/a9ae562749214593ae08e00fee3c1927.png) no-repeat center center;
    background-size: 100% 100%;
    cursor: pointer;
}

/* ========== 通用标题 ========== */
.m-creativity-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-align: center;
}

/* ========== 营销策划 ========== */
.m-creativity-section {
    padding: 24px 14px;
}

.m-creativity-plan {
    background: #fff;
}

.m-creativity-plan-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.m-creativity-plan-card {
    position: relative;
    border-radius: 10px;
    min-height: 160px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.m-creativity-plan-card:nth-child(2),
.m-creativity-plan-card:nth-child(3) {
    background: #ebebeb;
}

.m-creativity-plan-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    background-size: cover;
    background-position: center;
}

.m-creativity-plan-card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 160px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.m-creativity-plan-icon {
    margin-bottom: 12px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.m-creativity-plan-icon svg {
    display: block;
}

.m-creativity-plan-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.m-creativity-plan-card-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 0 0 10px;
    transition: background 0.3s ease;
}

.m-creativity-plan-card-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #555;
    transition: color 0.3s ease;
}

/* 点击/悬浮效果 */
.m-creativity-plan-card.is-active .m-creativity-plan-card-bg,
.m-creativity-plan-card:active .m-creativity-plan-card-bg {
    opacity: 1;
}

.m-creativity-plan-card.is-active .m-creativity-plan-icon,
.m-creativity-plan-card:active .m-creativity-plan-icon {
    color: #fff;
}

.m-creativity-plan-card.is-active .m-creativity-plan-card-title,
.m-creativity-plan-card:active .m-creativity-plan-card-title {
    color: #fff;
}

.m-creativity-plan-card.is-active .m-creativity-plan-card-line,
.m-creativity-plan-card:active .m-creativity-plan-card-line {
    background: #fff;
}

.m-creativity-plan-card.is-active .m-creativity-plan-card-desc,
.m-creativity-plan-card:active .m-creativity-plan-card-desc {
    color: #fff;
}

/* ========== 创意服务 ========== */
.m-creativity-services {
    background: linear-gradient(180deg, #fafbfc 0%, #f0f3f8 100%);
}

.m-creativity-svc-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.m-creativity-svc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 80px;
    box-sizing: border-box;
    text-align: left;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 10px;
    padding: 12px 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.m-creativity-svc-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.m-creativity-svc-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.m-creativity-svc-card-sub {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.m-creativity-svc-card-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eaf3fc;
    border: 1px solid #d4e5f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.m-creativity-svc-card-icon-wrap img {
    display: block;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

/* 悬浮/点击选中态 */
.m-creativity-svc-card.is-active,
.m-creativity-svc-card:active {
    outline: none;
    background: linear-gradient(270deg, #4c9aff 0%, #0148a4 100%);
    box-shadow: 0 4px 16px rgba(1, 72, 164, 0.28);
    transform: translateY(-1px);
}

.m-creativity-svc-card.is-active .m-creativity-svc-card-name,
.m-creativity-svc-card.is-active .m-creativity-svc-card-sub,
.m-creativity-svc-card:active .m-creativity-svc-card-name,
.m-creativity-svc-card:active .m-creativity-svc-card-sub {
    color: #fff;
}

.m-creativity-svc-card.is-active .m-creativity-svc-card-sub,
.m-creativity-svc-card:active .m-creativity-svc-card-sub {
    color: rgba(255, 255, 255, 0.92);
}

.m-creativity-svc-card.is-active .m-creativity-svc-card-icon-wrap,
.m-creativity-svc-card:active .m-creativity-svc-card-icon-wrap {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========== 底部通栏 ========== */
.m-creativity-bottom-banner {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: url("https://mstatic.ofpay.com/marketing/upload/acb936185f7749ccaf16d54eefd73572.png") center/cover no-repeat;
    margin: 0 12px;
    border-radius: 12px;
}

.m-creativity-bottom-banner-text {
    margin: 0;
    text-align: center;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ========== 创意设计板块 ========== */
.m-creativity-plan {
    margin: 12px 12px 0;
    padding: 20px 16px;
    background: #fff;
    border-radius: 12px;
}

.m-creativity-section-inner {
    max-width: 720px;
    margin: 0 auto;
}

.m-creativity-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.m-creativity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.m-creativity-item {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.m-creativity-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.m-creativity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.m-creativity-item-title {
    margin: 0;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ========== 响应式 ========== */
@media (max-width: 360px) {
    .m-creativity-plan-grid {
        grid-template-columns: 1fr;
    }

    .m-creativity-svc-grid {
        grid-template-columns: 1fr;
    }

    .m-creativity-plan-card {
        min-height: 140px;
    }

    .m-creativity-plan-card-inner {
        min-height: 140px;
    }

    .m-creativity-grid {
        grid-template-columns: 1fr;
    }
}
