/*
 * 品牌介绍富文本的唯一桌面样式源。
 * 前台品牌详情页与后台 UEditor iframe 必须共同加载本文件，避免预览与发布结果漂移。
 */
html,
body.view {
    min-height: 100%;
    background: #fff;
}

body.view {
    box-sizing: border-box;
    margin: 0;
    /* 模拟前台 90% 内容容器及其 46px 内边距；编辑器最大化后左右位置一致。 */
    padding: 42px calc(5% + 46px);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 2;
    color: #3b3b3b;
}

body.view *,
.brand-story-content *,
.moloney-brand-story * {
    box-sizing: border-box;
}

.brand-story-content,
.moloney-brand-story {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: 16px;
    line-height: 2;
    color: #3b3b3b;
}

.brand-story-content figure,
.brand-story-content section,
.moloney-brand-story figure,
.moloney-brand-story section {
    display: block;
    margin: 0;
}

.brand-story-content img,
.moloney-brand-story img {
    display: block;
    max-width: 100%;
    height: auto;
}

.brand-story-hero {
    position: relative;
    margin: -10px 0 34px !important;
    overflow: hidden;
    background: #171717;
}

.brand-story-hero img,
.brand-story-image img {
    display: block;
    width: 100%;
}

.brand-story-hero figcaption {
    position: absolute;
    right: 24px;
    bottom: 18px;
    padding: 7px 13px;
    background: rgba(0, 0, 0, .62);
    font-size: 12px;
    line-height: 1.5;
    color: #fff;
    letter-spacing: 1px;
}

.brand-story-lead {
    max-width: 1080px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 2.05;
    color: #272727;
}

.brand-story-quote {
    margin: 32px 0 46px;
    padding: 27px 34px;
    border-left: 4px solid #ed0014;
    background: #f7f5f2;
    font-size: 22px;
    line-height: 1.7;
    color: #191919;
}

.brand-story-quote small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.7;
    color: #888;
    letter-spacing: 2px;
}

.brand-story-section,
.brand-story-content > section,
.moloney-brand-story > section {
    margin: 0 0 50px !important;
}

.brand-story-section h3,
.brand-story-content > section > h3,
.moloney-brand-story > section > h3 {
    margin: 0 0 20px;
    padding: 0 0 13px;
    border-bottom: 1px solid #e6e6e6;
    font-size: 25px;
    line-height: 1.45;
    color: #111;
}

.brand-story-section h3 span,
.brand-story-content > section > h3 > span,
.moloney-brand-story > section > h3 > span {
    display: block !important;
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.4;
    color: #ed0014;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.brand-story-section p,
.brand-story-content > section > p,
.moloney-brand-story > section > p {
    margin: 0 0 17px;
}

.brand-story-image {
    margin: 25px 0 28px !important;
    overflow: hidden;
    background: #eee;
}

.brand-story-grid {
    display: flex !important;
    margin: 26px -8px 0;
}

.brand-story-card,
.brand-story-grid > div {
    flex: 1;
    min-width: 0;
    margin: 0 8px;
    padding: 26px 24px;
    border-top: 3px solid #222;
    background: #f7f7f7;
}

.brand-story-card strong,
.brand-story-grid > div > strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
    color: #111;
}

.brand-story-card p,
.brand-story-grid > div > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: #666;
}

.brand-story-timeline {
    display: flex !important;
    flex-wrap: wrap;
    margin: 25px -8px 0;
    padding: 0;
    list-style: none;
}

.brand-story-timeline li {
    box-sizing: border-box;
    width: 25%;
    margin: 0 0 16px;
    padding: 0 8px;
}

.brand-story-timeline li > div {
    height: 100%;
    padding: 20px;
    background: #181818;
    color: #fff;
}

.brand-story-timeline strong {
    display: block;
    margin-bottom: 7px;
    font-size: 22px;
    line-height: 1.3;
    color: #ed0014;
}

.brand-story-timeline span {
    font-size: 13px;
    line-height: 1.75;
    color: #ddd;
}

.brand-story-steps {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: brand-service;
}

.brand-story-steps li {
    position: relative;
    min-height: 42px;
    margin: 0 0 14px;
    padding: 11px 18px 11px 62px;
    background: #f7f7f7;
    counter-increment: brand-service;
}

.brand-story-steps li:before {
    content: counter(brand-service, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 100%;
    background: #ed0014;
    font-size: 13px;
    color: #fff;
}

.brand-story-closing {
    margin: 10px 0 0;
    padding: 34px 38px;
    background: #191919;
    color: #fff;
    text-align: center;
}

.brand-story-closing strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 2px;
}

.brand-story-closing span {
    font-size: 13px;
    color: #bbb;
    letter-spacing: 1px;
}

/* 编辑器宽度较小时只改变列数，不改变组件视觉样式。 */
@media (max-width: 900px) {
    body.view {
        padding: 24px;
    }

    body.view .brand-story-grid {
        display: block !important;
        margin-right: 0;
        margin-left: 0;
    }

    body.view .brand-story-card,
    body.view .brand-story-grid > div {
        margin: 0 0 16px;
    }

    body.view .brand-story-timeline li {
        width: 50%;
    }
}
