---
import Layout from "../../../layouts/Layout_2.astro";
import { getConfig, getExtra } from "../../../../utils/config";
import {
    TP2_COLUMN_ABOUT_US,
    TP2_COLUMN_ABOUT_US_URL,
    TP2_COLUMN_INDEX,
    TP2_COLUMN_INDEX_URL,
} from "../../../../utils/const";
const config = getConfig(Astro);
const extra = getExtra(config.app_extra_tag);
const breadcrumb = [
    { title: TP2_COLUMN_INDEX, url: TP2_COLUMN_INDEX_URL },
    { title: TP2_COLUMN_ABOUT_US, url: TP2_COLUMN_ABOUT_US_URL },
];
---

<Layout
    title={TP2_COLUMN_ABOUT_US + ` - ${config.app_name}`}
    breadcrumb={breadcrumb}
    description={`关于我们 - ${config.app_name}`}
    keywords={config.app_keywords}    
>
    <div id="content" class="main" data-site="中国">
        <main>
            <div>
                <!-- 活动与新闻-->
                <div class="hcomponent-page-info">
                    <div class="news-detail-title">
                        <div class="container-custom fix-p-color">
                            <h1><span>{extra.about_us.title}{config.app_name}</span></h1>
                        </div>
                    </div>
                </div>
            </div>
            <div class="container-custom hcomponent-share-bar">
                <div class="container-custom">
                    <ul class="share-box list-unstyled hasLine">
                        <li class="line"></li>
                    </ul>
                </div>
            </div>
            <div >
                <div class="hcomponent-news-detail-content">
                    <div class="news-detail-box container-custom clearfix">
                        <div class="news-detail-content">
                            <Fragment set:html={extra.about_us.content} />
                            <p style="text-align: right;">{config.app_company}</p>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</Layout>
<style>

.main {
    padding-top: 5rem;
    h1 {
        span {
            font-weight: bold;
        }
        margin-top: 0;
        text-align: center;
        font-size: 2rem;
    }

    .container-custom {
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px
    }
}

p {
    color: #666;
    font-size: 1em;
    line-height: 1.95em;
    margin: 0
}

@media (max-width:767px) {
    .container-custom>.container-custom {
        padding: 0;
    }
}

.mt20{
    margin-top: 20px;
}
.main .bottom-box .share-box {
    margin: 20px auto 0 auto;
}

.main .share-box {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    z-index: 99;
}
.share-box.list-unstyled:not(.hasLine){
    margin-bottom: 0;
}

.main .share-box li .wechat-qrcode {
    top: 30px;
    height: 240px;
}

.main .share-box li .wechat-qrcode p {
    text-align: center;
    margin: 0;
    padding: 0;
}

.main .hasLine .line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #dddddd;
    top: 0;
    left: 0;
    top: 50%;
    margin-top: -1px;
}

.main .share-box.s-bottom {
    border-bottom: 1px solid #ddd;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 20px auto 0 auto;
}

.news-detail-box {
    margin-top: 5rem;
}

</style>