/* about.css - 关于我们页面样式 */

/* 文章样式 */
.article {
    background-color: var(--white);
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.article-title {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.article-title h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.article-title h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background-color: var(--primary-color);
}

.article-content {
    line-height: 1.8;
    color: var(--light-text);
    /* 富文本里的媒体（图片/视频）自适应容器宽度，避免撑破布局影响侧边栏 */
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-content video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 10px auto;
    background: #000;
    /* 覆盖 wangEditor 写入的无效 width/height="auto" 属性，消除黑边 */
    object-fit: contain;
}

.article-content video source {
    max-width: 100%;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

/* API返回的富文本HTML样式 */
.article-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

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

.article-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.article-content ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.article-content ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.article-content ul li:last-child {
    border-bottom: none;
}

/* 保留内联样式的优先级 */
.article-content p[style*="text-indent"] {
    /* 允许API返回的text-indent样式 */
}

.article-content span[style] {
    /* 允许API返回的span样式（颜色、字体大小等） */
}

/* 公司简介样式 - 扁平化国企风格 */
.company-intro {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.company-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* 公司信息区域 */
.company-info {
    margin-top: 30px;
}

.info-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.info-section p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
}

/* 企业规模数据网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.info-label {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 资质列表 */
.qualification-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.qualification-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.qualification-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.qualification-list li:last-child {
    border-bottom: none;
}

/* 荣誉列表 */
.honor-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.honor-list li {
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

/* 简化的时间线 */
.timeline-simple {
    margin-top: 15px;
}

.timeline-simple .timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.timeline-simple .year {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    min-width: 70px;
    text-align: center;
}

.timeline-simple .event {
    color: var(--text-color);
    line-height: 1.6;
    flex: 1;
}

/* 组织架构 */
.org-chart {
    margin-top: 30px;
    text-align: center;
}

.org-chart img {
    max-width: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 集团领导 - 水平布局样式 */
.leadership-list-horizontal {
    margin-top: 20px;
}

.leader-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-bottom: 1px solid var(--border-color);
}

.leader-row:last-child {
    margin-bottom: 0;
}

.leader-photo-horizontal {
    width: 120px;
    height: 160px;
    margin-right: 25px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.leader-photo-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info-horizontal {
    flex: 1;
    padding-top: 5px;
}

.leader-title {
    margin-bottom: 15px;
}

.leader-name-red {
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f;
    display: inline-block;
}

.leader-duties {
    color: var(--text-color);
    line-height: 1.6;
}

.leader-duties p {
    margin-bottom: 8px;
}

.leader-duties strong {
    color: var(--text-color);
    font-weight: 600;
}

/* 原有集团领导样式保留（用于其他可能的布局） */
.leadership-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.leader-item {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
}

.leader-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.leader-photo {
    height: 300px;
    overflow: hidden;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    padding: 20px;
    text-align: center;
}

.leader-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.leader-position {
    color: var(--lighter-text);
    margin-bottom: 10px;
}

.leader-desc {
    color: var(--light-text);
    line-height: 1.6;
}

/* 企业文化 */
.culture-section {
    margin-bottom: 40px;
}

.culture-section:last-child {
    margin-bottom: 0;
}

.culture-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.culture-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: var(--primary-color);
}

.culture-content {
    line-height: 1.8;
    color: var(--light-text);
}

.culture-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.culture-item {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
    text-align: center;
}

.culture-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.culture-item:hover .culture-icon {
    background-color: var(--primary-color);
}

.culture-item:hover .culture-icon i {
    color: var(--white);
}

.culture-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.culture-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.culture-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 资质荣誉 */
.honor-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.honor-tab {
    padding: 10px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.honor-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.honor-content {
    display: none;
}

.honor-content.active {
    display: block;
}

.honor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.honor-item {
    flex: 1 1 calc(25% - 23px);
    min-width: 250px;
}

.honor-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.honor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.honor-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.honor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.honor-card:hover .honor-image img {
    transform: scale(1.1);
}

.honor-info {
    padding: 15px;
    text-align: center;
}

.honor-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honor-date {
    color: var(--lighter-text);
    font-size: 14px;
}

/* 全资子公司 */
.subsidiary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.subsidiary-item {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
}

.subsidiary-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.subsidiary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.subsidiary-logo {
    width: 30%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.subsidiary-logo img {
    max-width: 100%;
    max-height: 100px;
}

.subsidiary-info {
    width: 70%;
    padding: 20px;
}

.subsidiary-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.subsidiary-desc {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.subsidiary-contact {
    color: var(--lighter-text);
    font-size: 14px;
}

.subsidiary-contact p {
    margin-bottom: 5px;
}

/* 联系我们 */
.contact-container {
    display: flex;
    margin: 0 -15px;
}

.contact-info {
    width: 40%;
    padding: 0 15px;
}

.contact-map {
    width: 60%;
    padding: 0 15px;
}

.contact-card {
    background-color: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.contact-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.contact-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: var(--primary-color);
}

.contact-list {
    margin-bottom: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.contact-list i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}

.contact-social {
    display: flex;
}

.social-item {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-item:hover {
    background-color: var(--primary-color);
}

.social-item:hover i {
    color: var(--white);
}

.social-item i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.map-container {
    height: 400px;
    background-color: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
} 

/* 响应式设计 */
@media screen and (max-width: 1199px) {
    .leadership-list {
        flex-wrap: wrap;
    }

    .leader-item {
        width: 50%;
    }

    .culture-list {
        flex-wrap: wrap;
    }

    .culture-item {
        width: 33.333%;
    }

    .honor-list {
        flex-wrap: wrap;
    }

    .honor-item {
        width: 50%;
    }

    .subsidiary-list {
        flex-wrap: wrap;
    }

    .subsidiary-item {
        width: 50%;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        width: 100%;
        margin-bottom: 30px;
    }

    .contact-map {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .article {
        padding: 20px;
    }

    .article-title h2 {
        font-size: 20px;
    }

    .company-intro {
        padding: 15px;
        margin-bottom: 25px;
    }

    .company-intro p {
        font-size: 15px;
    }

    .info-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .info-section h3 {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .info-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .info-label {
        font-size: 13px;
    }

    .info-value {
        font-size: 15px;
    }

    .honor-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .honor-list li {
        padding: 8px 12px;
    }

    .qualification-list li {
        padding: 6px 0 6px 15px;
        font-size: 14px;
    }

    .timeline-simple .timeline-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }

    .timeline-simple .year {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 13px;
        padding: 4px 10px;
    }

    .timeline-simple .event {
        font-size: 14px;
    }

    .leader-item {
        width: 100%;
    }

    /* 水平布局移动端样式 */
    .leader-row {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .leader-photo-horizontal {
        width: 100px;
        height: 130px;
        margin: 0 auto 15px auto;
    }

    .leader-info-horizontal {
        padding-top: 0;
    }

    .leader-name-red {
        font-size: 15px;
    }

    .leader-duties p {
        font-size: 14px;
    }

    .culture-item {
        width: 50%;
    }

    .honor-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .honor-tab {
        padding: 8px 20px;
        font-size: 14px;
    }

    .honor-item {
        width: 100%;
    }

    .subsidiary-item {
        width: 100%;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-title h3 {
        font-size: 20px;
    }

    .contact-list li {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .article-title h2 {
        font-size: 18px;
    }

    .article-content p {
        font-size: 14px;
    }

    .company-intro {
        padding: 12px;
        margin-bottom: 20px;
    }

    .company-intro p {
        font-size: 14px;
    }

    .info-section {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .info-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-item {
        padding: 10px;
    }

    .info-label {
        font-size: 12px;
    }

    .info-value {
        font-size: 14px;
    }

    .qualification-list li {
        padding: 5px 0 5px 12px;
        font-size: 13px;
    }

    .honor-list li {
        padding: 6px 10px;
        font-size: 13px;
    }

    .timeline-simple .timeline-item {
        padding: 10px;
    }

    .timeline-simple .year {
        font-size: 12px;
        padding: 3px 8px;
        margin-bottom: 8px;
    }

    .timeline-simple .event {
        font-size: 13px;
    }

    .leader-photo {
        height: 250px;
    }

    /* 水平布局超小屏幕样式 */
    .leader-row {
        padding: 12px;
        margin-bottom: 20px;
    }

    .leader-photo-horizontal {
        width: 80px;
        height: 100px;
        margin-bottom: 12px;
    }

    .leader-name-red {
        font-size: 14px;
    }

    .leader-duties p {
        font-size: 13px;
    }

    .leader-duties strong {
        font-size: 13px;
    }

    .leader-name {
        font-size: 16px;
    }

    .leader-position {
        font-size: 13px;
    }

    .culture-item {
        width: 100%;
    }

    .culture-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .culture-icon i {
        font-size: 28px;
    }

    .culture-item h3 {
        font-size: 15px;
    }

    .honor-tab {
        padding: 6px 15px;
        font-size: 13px;
    }

    .honor-image {
        height: 180px;
    }

    .honor-name {
        font-size: 15px;
    }

    .subsidiary-logo {
        width: 80px;
        height: 80px;
    }

    .subsidiary-name {
        font-size: 16px;
    }

    .contact-map iframe {
        height: 250px;
    }
} 