/* ==================== Company Detail Pages 样式 ==================== */
/* 四个独立页面共用样式，基于 1920x1080 设计稿 */

:root {
    --company-detail-design-width: 1920px;
}

/* 页面基础样式 - 与一级页面保持一致的居中缩放逻辑 */
.company-detail-page {
    background-color: #FFFFFF;
    color: #000000;
    font-family: var(--font-family);
    position: relative;
    width: 100%;
    height: calc(67.5rem); /* 1080px 设计稿高度，随 rem 缩放 */
    max-height: calc(67.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

/* 顶部导航栏 */
.product-header {
    position: fixed;
    top: calc(3.125rem);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    /* background-color: #FFFFFF; */
    height: calc(1.5rem);
    padding: 0 calc(3.125rem);
    pointer-events: auto;
}

.back-button {
    display: flex;
    align-items: center;
    gap: calc(0.3125rem);
    font-family: var(--font-family);
    font-size: calc(1rem);
    line-height: calc(1.6rem);
    color: #404040;
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
}

.back-button:hover {
    opacity: 0.7;
}

.back-button img {
    width: calc(1.5rem);
    height: calc(1.5rem);
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: calc(1.25rem);
    margin-left: auto;
    flex-shrink: 0;
    pointer-events: auto;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    width: calc(1.25rem);
    height: calc(1.25rem);
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn img {
    width: calc(1.25rem);
    height: calc(1.25rem);
    display: block;
}




.shop-link {
    /* 纯图标模式 */
    display: inline-block;
    width: calc(1.25rem); /* 24px */
    height: calc(1.25rem); /* 24px */
    padding: 0 !important;
    background: none;
    border: none;
}

/* 隐藏所有文字 */
.shop-link span {
    display: none;
}

/* 图片填满容器 */
.shop-link img {
    width: 100%;
    height: 100%;
    display: block;
    filter: none; /* 保持原色 */
}

.shop-link:hover {
    opacity: 0.8;
}

/* 主内容区域 - 与一级页面保持一致的居中缩放逻辑 */
.page-content {
    position: relative;
    width: 100%;
    height: calc(67.5rem); /* 1080px 设计稿高度 */
    max-width: calc(120rem); /* 1920px */
    margin-left: auto;
    margin-right: auto;
    padding: calc(3.125rem); /* 50px */
    box-sizing: border-box;
    overflow: hidden !important;
    background: #FFFFFF;
}

/* ==================== 通用标题样式 ==================== */
.title-group {
    display: flex;
    flex-direction: column;
    gap: calc(0.75rem);
}

.zh-title {
    font-family: var(--font-family);
    font-size: calc(3rem);
    line-height: calc(3.5rem);
    letter-spacing: calc(0.3rem);
    color: #000000;
    margin: 0;
    font-weight: 700;
}

.subtitle.en-title,
.subtitle {
    font-family: var(--font-family);
    font-size: calc(1.5rem);
    line-height: calc(2rem);
    letter-spacing: calc(0.06rem);
    font-weight: 400;
    color: #000000;
    text-transform: capitalize;
    white-space: nowrap;
}

/* ==================== 第一页：公司介绍 ==================== */
.company-intro-page .page-content {
    display: block;
}

.page-title-section {
    position: absolute;
    left: calc(50rem);
    transform: translateX(-50%);
    top: calc(12rem); /* 上移 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(0.75rem);
    z-index: 10;
    text-align: center;
}

/* 标题稍微右移，logo 保持居中 */
.page-title-section .title-group {
    margin-left: calc(1rem); /* 标题右移 */
}

.intro-content-wrapper {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0px;
    width: auto;
    height: auto;
    left: calc(28rem); /* 居中 */
    transform: translateX(-50%); /* 居中 */
    top: calc(23rem); /* 下移为 logo 腾出空间 */
    z-index: 10;
    gap: calc(7.5rem);
}

.stats-column {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    width: auto;
    height: auto;
    gap: calc(2.5rem);
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: calc(0.1rem);
    width: calc(6.75rem);
    height: calc(4.5rem);
}

.stat-label {
    width: auto;
    height: calc(2rem);
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: calc(1rem);
    line-height: calc(1.5rem);
    text-align: center;
    letter-spacing: calc(0.15rem);
    text-transform: capitalize;
    color: #404040;
    margin: 0;
    display: flex;
    align-items: center;
}

.stat-number {
    width: auto;
    height: calc(3.5rem);
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: calc(1.75rem);
    line-height: calc(2.25rem);
    display: flex;
    align-items: center;
    letter-spacing: calc(0.12rem);
    text-transform: uppercase;
    color: #000000;
    margin: 0;
}

.text-section {
    position: relative;
    width: calc(36rem);
    display: flex;
    flex-direction: column;
    gap: 0px;
    overflow: visible;
}
.intro-text {
    position: relative;
    width: calc(30rem);
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: calc(0.8rem);
    line-height: calc(1.25rem);
    letter-spacing: calc(0.1rem);
    color: #404040;
    margin: 0;
    overflow: visible;
    /* 所有文本基础左右对齐，保证两侧边缘整齐 */
    text-align: justify;
    /* 优化英文单词间距，避免间距过大 */
    text-justify: inter-word;
}

.intro-text:first-of-type {
    min-height: calc(5rem);
    /* 第一段：主体左右对齐，最后一行左对齐（避免间距异常） */
    text-align-last: left;
}

.intro-text:last-of-type {
    min-height: calc(10.5rem);
    margin-top: calc(3.25rem);
    /* 第二段：主体左右对齐，最后一行也左对齐（兼顾整齐+无异常） */
    text-align-last: left;
}

/* Company Logo - 位于标题下方，与 contact 页面保持一致 */
.company-logo-link {
    position: relative;
    display: block;
    margin-top: calc(1.5rem); /* 标题下方间距 */
    z-index: 10;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.company-logo-link:hover {
    opacity: 0.75;
    transform: scale(1.05);
}

.company-logo-link:active {
    transform: scale(0.98);
}

.company-logo-img {
    width: calc(6rem); /* 与 contact 页面一致: 96px */
    height: auto;
    max-height: calc(2.5rem); /* 与 contact 页面一致: 40px */
    object-fit: contain;
    display: block;
}

/* 保留旧类名以兼容 */
.company-logo {
    position: absolute;
    left: calc(12.375rem);
    top: calc(30rem);
    width: calc(2rem);
    height: calc(2rem);
    z-index: 10;
}

.company-logo.real-logo {
    background-color: transparent;
    border: none;
}

.company-logo.real-logo img,
.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==================== 第二页：会社概要 ==================== */
.overview-layout {
    display: block;
    position: relative;
    padding: calc(3.125rem);
    transform: scale(0.85);
    transform-origin: top left;
}

.overview-title-section {
    position: absolute;
    left: calc(12.375rem); /* 原10.375rem + 5rem右移 */
    top: calc(14.5rem); /* 原10.42rem + 4rem下移 */
}

.overview-page-title {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(3.25rem); /* 52px */
    line-height: calc(3.5rem); /* 56px */
    letter-spacing: calc(0.13rem); /* 2.08px */
    color: #000000;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
}

.overview-company-name {
    position: absolute;
    left: calc(33.33% + 5rem); /* 原1.875rem + 5rem右移 */
    top: calc(14.5rem); /* 原10.5rem + 4rem下移 + 3rem间距 */
    display: flex;
    flex-direction: column;
    gap: calc(0.625rem); /* 10px */
    line-height: calc(1.5rem); /* 24px */
}

.company-name-en {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(1.5rem); /* 16px */
    line-height: calc(1.8rem);
    letter-spacing: calc(0.1rem); /* 1.6px */
    color: #404040;
    font-weight: 700;
    text-transform: capitalize;
    margin: 0;
}

.company-name-zh {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(1.5rem); /* 28px */
    line-height: calc(1.8rem);
    letter-spacing: calc(0.1rem); /* 2.8px */
    color: #404040;
    font-weight: 700;
    margin: 0;
}

.overview-info-grid {
    position: absolute;
    left: calc(33.33% + 5rem); /* 原1.875rem + 5rem右移 */
    top: calc(24rem); /* 原20.83rem + 4rem下移 + 3rem间距 */
    display: grid;
    grid-template-columns: calc(32rem) calc(32rem); /* 两列布局，增加宽度适应英文 */
    gap: calc(4rem) calc(8rem); /* 行间距 80px，列间距 96px */
    width: calc(82rem);
}

.overview-info-item {
    display: flex;
    flex-direction: column;
    gap: calc(0.625rem); /* 10px */
    line-height: calc(1.5rem); /* 24px */
}

.overview-info-item .info-label {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(0.8rem); /* 16px */
    line-height: calc(1.25rem);
    letter-spacing: calc(0.1rem); /* 1.6px */
    color: #404040;
    text-transform: capitalize;
    margin: 0;
}

.overview-info-item .info-value {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(1.25rem); /* 24px - 与 .single 保持一致 */
    line-height: calc(1.8rem);
    letter-spacing: calc(0.15rem); /* 2.4px */
    color: #404040;
    font-weight: 400;
    margin: 0;
}

.overview-info-item .info-value.single {
    font-size: calc(1.25rem); /* 24px */
    letter-spacing: calc(0.15rem); /* 2.4px */
}

.overview-info-item .info-value p {
    margin: 0;
}

.overview-info-item .info-value.address-block {
    display: block; /* 改成块级，只负责垂直排列 */
    gap: 0.5rem; /* 这行可选，因为用margin控制间距 */
}

.overview-info-item .info-value.address-block p {
    display: grid; /* 每个p单独成网格 */
    grid-template-columns: auto 1fr; /* 保持2列布局 */
    gap: 0 1rem; /* 列间距 */
    align-items: start; /* 垂直对齐 */
    margin-bottom: 0.5rem; /* 行间距 */
}

.overview-info-item .info-value.address-block p:last-child {
    margin-bottom: 0; /* 最后一行去掉底部边距 */
}

.overview-info-item .address-label {
    color: #404040;
    font-weight: 400;
    text-align: left;
    justify-self: begin; /* 网格内左对齐 */
    white-space: nowrap; /* 不换行 */
    padding-right: 0.5rem;
}

.overview-info-item .address-value {
    color: #404040;
    font-weight: 400;
    text-align: left;
    word-break: break-word;
    min-width: 0; /* 重要 */
}

/* 日本公司和工厂地址区域 - 增加宽度 */
.overview-info-item:nth-child(5),
.overview-info-item:nth-child(6) {
    min-width: calc(38rem);
}

.overview-info-item:nth-child(5) .info-value.address-block,
.overview-info-item:nth-child(6) .info-value.address-block {
    width: calc(38rem);
}

/* ==================== 第三页：企业使命 ==================== */
.mission-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    gap: 0;
}

.mission-layout .image-area {
    position: absolute;
    top: calc(6.25rem);
    left: calc(3.625rem);
    width: calc(46rem);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.mission-layout .image-area img {
    width:auto;
    height: calc(46rem);
    object-fit: cover;
}

.mission-layout .content-area {
    position: absolute;
    top: calc(20rem);
    left: calc(58.33% + 1.125rem);
    width: calc(36.6875rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: calc(0.75rem);
    background: transparent;
    box-sizing: border-box;
}

.mission-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: calc(3rem);
}

.mission-text p {
    font-family: var(--font-family);
    font-size: calc(1rem);
    line-height: calc(1.6rem);
    letter-spacing: calc(0.05rem);
    color: #404040;
    text-align: left;
    margin: 0 0 calc(0.25rem) 0;
    word-wrap: break-word;
    text-transform: capitalize;
}

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

/* ==================== 第三页：质量理念 ==================== */
.quality-layout {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
}

.quality-layout .page-bg {
    position: absolute;
    width: 100%;
    height: calc(67.5rem);
    left: 0;
    top: 0;
    background: #FFFFFF;
    z-index: 0;
}

.quality-layout .page-bg-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    top: calc(-0.2rem); /* 上移一点 */
    object-fit: cover;
    object-position: center 65%;
    z-index: 0;
}

.quality-header {
    position: absolute;
    width: calc(43rem); /* 增加宽度 */
    height: auto;
    left: calc(12.9375rem);
    top: calc(12rem);
    display: flex;
    flex-direction: column;
    gap: calc(2rem); /* 减小间距 */
    z-index: 2;
}

.quality-header h2,
.quality-header .zh-title {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: calc(3rem);
    line-height: calc(3.5rem);
    letter-spacing: calc(0.12rem);
    color: #000000;
  margin: 0 0 1rem 0; 
    padding: 0;
    text-transform: capitalize;
}

.quality-intro-section {
    display: flex;
    flex-direction: column;
    gap: calc(0.1rem); /* 减小间距 */
}

.quality-intro {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: calc(1rem);
    line-height: calc(1.6rem); /* 减小行间距 */
    letter-spacing: calc(0.05rem);
    color: #000000;
    margin: 0 0 1rem 0; 
    padding: 0;
    text-transform: capitalize;
}

.quality-description {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: calc(0.8rem);
    line-height: calc(1.25rem); /* 减小行间距 */
    letter-spacing: calc(0.05rem);
    color: #404040;
    margin: 0;
    padding: 0;
    text-transform: capitalize;
}

/* 原则卡片 */
.principle-card {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: calc(1.875rem);
    z-index: 2;
}

.principle-card.card-1 {
    left: calc(12.9375rem);
    top: calc(42.6rem); /* 上移以适应视窗 */
    width: calc(24.5rem);
}

.principle-card.card-2 {
    left: calc(47.5rem);
    top: calc(39.3rem); /* 上移以适应视窗 */
    width: calc(26rem);
}

.principle-card.card-3 {
    left: calc(82rem);
    top: calc(25.2rem); /* 上移以适应视窗 */
    width: calc(25rem);
}

.principle-divider {
    position: relative;
    width: auto;
    height: calc(18rem); /* 缩小以适应视窗 */
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    object-position: top center;
}

.principle-content {
    display: flex;
    flex-direction: column;
    gap: calc(0.3rem); /* 减小间距 */
    flex: 1;
}

.principle-content h3 {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: calc(1rem);
    line-height: calc(1.6rem); /* 减小行间距 */
    color: #000000;
    margin: 0;
    padding: 0;
    text-transform: capitalize;
}

.principle-content p {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: calc(0.8rem);
    line-height: calc(1.25rem); /* 减小行间距 */
    letter-spacing: calc(0.05rem);
    color: #404040;
    margin: 0;
    margin-left: 14px;
    padding: 0;
    text-transform: capitalize;
}

/* ==================== 第四页：企业哲学 ==================== */
.philosophy-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden !important;
}

.philosophy-layout .page-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    top: 0;
    left: 0;
    z-index: 0;
}

.philosophy-layout .left-section {
    position: absolute;
    left: calc(18rem);
    top: calc(24rem);
    width: calc(20rem);
    display: flex;
    flex-direction: column;
    gap: calc(2.5rem);
    z-index: 10;
}

.philosophy-layout .left-section .intro-text {
    font-family: var(--font-family);
    font-size: calc(1rem);
    line-height: calc(1.6rem);
    letter-spacing: calc(0rem);
    color: #404040;
    margin: 0;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: auto;
    min-height: auto;
}

.philosophy-layout .right-section {
    position: absolute;
    right: 0;
    top: calc(15rem);
    width: calc(70rem);
    display: flex;
    flex-direction: column;
    gap: calc(5rem);
    z-index: 10;
}

.card-row {
    display: flex;
    gap: calc(6.25rem);
    justify-content: flex-start;
    padding-left: calc(6.25rem);
}

.philosophy-card {
    width: calc(22rem);
    background: #FFFFFF;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: calc(0.325rem);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: calc(2rem);
    height: calc(2rem);
    margin-bottom: calc(0.625rem);
    flex-shrink: 0;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.philosophy-card:hover {
    transform: translateY(calc(-0.25rem));
}

.philosophy-card h3 {
    font-family: var(--font-family);
    font-size: calc(1.25rem);
    line-height: calc(2rem);
    letter-spacing: calc(0.1rem);
    color: #000000;
    margin: 0;
    margin-bottom: calc(0.625rem);
    font-weight: 700;
    text-transform: capitalize;
}

.philosophy-card p {
    font-family: var(--font-family);
    font-size: calc(0.8rem);
    line-height: calc(1.5rem);
    letter-spacing: calc(0.1rem);
    color: #404040;
    text-align: left;
    margin:calc(0rem);
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(calc(1.25rem));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content > * {
    animation: fadeIn 0.6s ease-out both;
}

.page-content > *:nth-child(1) { animation-delay: 0.1s; }
.page-content > *:nth-child(2) { animation-delay: 0.2s; }
.page-content > *:nth-child(3) { animation-delay: 0.3s; }
.page-content > *:nth-child(4) { animation-delay: 0.4s; }
.page-content > *:nth-child(5) { animation-delay: 0.5s; }

