@import '../header/sub.css';

/* ============================================
   关于我们页面 - 主体布局 (.about__layout)
   左侧侧边栏 + 右侧内容区的两栏布局
   ============================================ */
.about__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* ============================================
   侧边栏容器 - (.about__sidebar)
   用于包裹"关于我们"导航与"联系我们"卡片
   ============================================ */
.about__sidebar {
    flex: 0 0 300px;
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   内容区容器 - (.about__content)
   右侧公司简介正文区域
   ============================================ */
.about__content {
    flex: 1 1 0;
    min-width: 0;
    background-color: var(--header-color-white);
    padding: 30px 40px 50px;
    box-sizing: border-box;
}

/* ============================================
   关于我们导航卡片 - (.about-nav)
   侧边栏顶部含标题与菜单项的卡片
   ============================================ */
.about-nav {
    background-color: var(--header-color-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 卡片标题"关于我们" */
.about-nav__title {
    background-color: var(--header-color-accent-2);
    color: var(--header-color-white);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    padding: 22px 20px;
    margin: 0;
    letter-spacing: 2px;
}

/* 导航列表容器 */
.about-nav__list {
    list-style: none;
    margin: 0;
    padding: 12px 14px;
}

/* 导航项 */
.about-nav__item {
    list-style: none;
}

.about-nav__item+.about-nav__item {
    margin-top: 6px;
}

/* 导航链接按钮 */
.about-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #333;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 4px;
    background-color: var(--header-color-white);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.about-nav__link:hover {
    background-color: rgba(4, 153, 225, 0.08);
    color: var(--header-color-accent-2);
}

/* 导航项前缀小方块图标 */
.about-nav__icon {
    width: 12px;
    height: 12px;
    background-color: #2c3e50;
    flex-shrink: 0;
    display: inline-block;
}

/* 当前激活项样式：蓝色背景 + 白色文字 */
.about-nav__item--active .about-nav__link {
    background-color: var(--header-color-accent-2);
    color: var(--header-color-white);
}

.about-nav__item--active .about-nav__icon {
    background-color: var(--header-color-white);
}

.about-nav__text {
    flex: 1 1 auto;
}

/* ============================================
   联系我们信息卡片 - (.about-contact)
   侧边栏底部联系方式展示卡片
   ============================================ */
.about-contact {
    background-color: var(--header-color-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 卡片标题"联系我们" */
.about-contact__title {
    background-color: var(--header-color-accent-2);
    color: var(--header-color-white);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    padding: 22px 20px;
    margin: 0;
    letter-spacing: 2px;
}

/* 联系信息列表 */
.about-contact__list {
    list-style: none;
    margin: 0;
    padding: 18px 18px 22px;
}

.about-contact__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    padding: 4px 0;
}

.about-contact__item+.about-contact__item {
    margin-top: 6px;
}

/* 联系人小图标 */
.about-contact__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--header-color-accent-2);
}

.about-contact__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.about-contact__text {
    flex: 1 1 auto;
    word-break: break-all;
}

/* ============================================
   右侧内容区 - 公司简介标题与正文
   ============================================ */

/* 标题"公司简介" */
.about__title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    text-align: center;
    line-height: 1.2;
    margin: 6px 0 26px;
    padding: 0 0 16px;
    letter-spacing: 1px;
}

/* 标题下方的蓝色装饰横线 */
.about__title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background-color: var(--header-color-accent-2);
    border-radius: 2px;
}

/* 公司简介正文段落容器 */
.about__article {
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
    text-indent: 2em;
}

.about__article p {
    margin: 0 0 14px;
    text-indent: 2em;
}

.about__article p:last-child {
    margin-bottom: 0;
}

/* ============================================
   响应式适配 - 平板端 (max-width: 1024px)
   缩小间距，保持两栏布局
   ============================================ */
@media screen and (max-width: 1024px) {
    .about__layout {
        gap: 20px;
    }

    .about__sidebar {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .about__content {
        padding: 24px 24px 40px;
    }

    .about__title {
        font-size: 22px;
    }
}

/* ============================================
   响应式适配 - 移动端 (max-width: 768px)
   切换为单列堆叠布局
   ============================================ */
@media screen and (max-width: 768px) {
    .about__layout {
        flex-direction: column;
        gap: 20px;
    }

    .about__sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .about__content {
        padding: 20px 18px 30px;
    }

    .about-nav__title,
    .about-contact__title {
        font-size: 20px;
        padding: 18px 16px;
    }

    .about__title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .about__article {
        font-size: 14px;
        line-height: 1.85;
    }
}

/* ============================================
   响应式适配 - 小屏手机 (max-width: 480px)
   进一步压缩间距与字号
   ============================================ */
@media screen and (max-width: 480px) {
    .about__content {
        padding: 16px 14px 24px;
    }

    .about-nav__title,
    .about-contact__title {
        font-size: 18px;
        padding: 16px 14px;
    }

    .about-nav__link {
        padding: 10px 14px;
        font-size: 14px;
    }

    .about-contact__item {
        font-size: 13px;
    }

    .about__title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .about__article {
        font-size: 13px;
        line-height: 1.8;
    }

    .about__article p {
        text-indent: 2em;
    }
}