/* About Page Specific Styles */

/* Hero Banner Section */
.about-hero-banner {
    position: relative;
    width: 100%;
    margin-top:114px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    margin-bottom: 0;
}

.about-banner-container {
    width: 100%;
    max-width: 1920px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.about-hero-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* History Section */
.about-history-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    margin-top: 20px;
    margin-bottom: 0;
}

.about-history-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.about-history-image {
    width: 75%;
    max-width: 1440px; /* 1920 的 75% */
    height: auto;
    display: block;
    object-fit: contain;
}

.about-history-text-wrap {
    width: 75%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 20px 8px;
    box-sizing: border-box;
}

.about-history-text-wrap > .about-text-img-heading {
    margin-bottom: 40px;
}

.about-history-text-wrap p {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', 'Source Han Serif CN', serif;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    line-height: 1.425;
    text-align: center;
    margin: 0 0 0.375em;
}

.about-history-text-wrap p:last-child {
    margin-bottom: 0;
}

/* Text Image Section */
.about-text-img-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    margin-top: 3%;
    margin-bottom: 0;
}

.about-text-img-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.about-text-img-heading {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', serif;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.about-text-img {
    width: 100%;
    max-width: 1440px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Timeline Section */
.about-timeline-section {
    width: 100%;
    padding-top: 60px;
    background: #fff;
    text-align: center;
    padding-right: 30px;
}

.about-timeline-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-timeline-title {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

/* 与 about_year.png 内 8 个茶碗中心对齐（按 1483×27 资源抽样，换图时可改 --tl-p*） */
.about-timeline-content-row {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    margin-bottom: 28px;
    box-sizing: border-box;
}

.about-timeline-arrow-slot {
    -webkit-box-flex: 0;
    flex-shrink: 0;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    min-width: 0;
}

.about-timeline-arrow-slot--left {
    -webkit-box-flex: 0;
    flex: 0 0 var(--tl-start);
    -webkit-box-pack: end;
    justify-content: flex-end;
}

.about-timeline-arrow-slot--right {
    -webkit-box-flex: 0;
    flex: 0 0 calc(100% - var(--tl-end));
    -webkit-box-pack: start;
    justify-content: flex-start;
}

.about-timeline-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin: 0;
    line-height: 0;
    transition: opacity 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.about-timeline-arrow:hover {
    opacity: 0.7;
}

/* 箭头中心分别落在首、末茶碗垂线上，不超出时间条宽度 */
.about-timeline-arrow-slot--left .about-timeline-arrow {
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

.about-timeline-arrow-slot--right .about-timeline-arrow {
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.about-timeline-arrow img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.about-timeline-text {
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0 6px;
    box-sizing: border-box;
}

.timeline-line1 {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 36px;
    font-weight: 700;
    color: #8B0000; /* 与左右箭头/时间线当前节点同色 */
    margin-bottom: 12px;
    line-height: 0.9;
    text-align: center;
}

.timeline-line2,
.timeline-line3 {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 20px;
    color: #333;
    line-height: 1.8;
    text-align: center;
}

.about-timeline-progress {
    width: 100%;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    align-items: flex-start;
    margin-top: 0;
}

/* 茶碗中心横向比例：PC/移动共用，与 about_year.png 同宽缩放时一一对应；换图时在 @media 内可单独覆盖 */
.about-year-wrap {
    position: relative;
    width: 100%;
    max-width: 1483px;
    margin: 0 auto 26px;
    box-sizing: border-box;
    --tl-start: 12.0481%;
    --tl-end: 88.8064%;
    --tl-p1: 12.0481%;
    --tl-p2: 23.149%;
    --tl-p3: 34.0751%;
    --tl-p4: 45.1338%;
    --tl-p5: 56.0599%;
    --tl-p6: 66.9442%;
    --tl-p7: 77.7703%;
    --tl-p8: 88.8064%;
}

.about-year-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.about-timeline-nodes {
    position: absolute;
    left: 0;
    top: calc(100% + 1px);
    width: 100%;
    height: 16px;
    pointer-events: auto;
}

.timeline-node {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: font-size 0.3s, color 0.3s, font-weight 0.3s;
    position: absolute;
    left: var(--tl-node-left, 50%);
    padding: 1px 4px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

/* 年份文字中心与茶碗中心重合 - 使用 calc() 确保精确对齐 */
.about-timeline-nodes .timeline-node:nth-child(1) { 
    --tl-node-left: calc(var(--tl-start) + (var(--tl-p1) - var(--tl-start))); 
}
.about-timeline-nodes .timeline-node:nth-child(2) { --tl-node-left: var(--tl-p2); }
.about-timeline-nodes .timeline-node:nth-child(3) { --tl-node-left: var(--tl-p3); }
.about-timeline-nodes .timeline-node:nth-child(4) { --tl-node-left: var(--tl-p4); }
.about-timeline-nodes .timeline-node:nth-child(5) { --tl-node-left: var(--tl-p5); }
.about-timeline-nodes .timeline-node:nth-child(6) { --tl-node-left: var(--tl-p6); }
.about-timeline-nodes .timeline-node:nth-child(7) { --tl-node-left: var(--tl-p7); }
.about-timeline-nodes .timeline-node:nth-child(8) { --tl-node-left: var(--tl-p8); }

.timeline-node.active {
    font-size: 18px;
    font-weight: 700;
    color: #8B0000;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

/* Center Image Section */
.about-center-img-section {
    width: 100%;
    margin-top: 5%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

.about-center-img-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-center-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-center-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.about-center-text {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Achievements Section */
.about-achievements-section {
    width: 100%;
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.about-achievements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-achievements-title {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.about-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.about-achievements-list p {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 20px;
    color: #333;
    line-height: 0.8;
    text-align: center;
    margin: 0;
}

/* Mission Section */
.about-mission-section {
    width: 100%;
    padding: 40px 20px;
    background: #fff;
    text-align: center;
}

.about-mission-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-mission-text {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.8;
    text-align: center;
    margin: 0;
}

/* Details Section */
.about-details-section {
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    text-align: center;
}

.about-details-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-details-lead {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', serif;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1.35;
    text-align: center;
    margin: 0;
}

.about-details-container p:not(.about-details-lead) {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', serif;
    font-size: 20px;
    color: #333;
    line-height: 0.8;
    text-align: center;
    margin: 0;
}

/* Decorative Section */
.about-decorative-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 40px 20px;
}

.about-decorative-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-decorative-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 移动端样式 */
@media (max-width: 800px) {
    .about-hero-banner {
        margin-top: 68px;
    }

    .about-timeline-section {
        padding: 40px 10px;
    }

    .about-year-wrap {
        max-width: 100%;
        /* 勿用 overflow-x: auto，会形成滚动容器并裁切绝对定位的年份标签 */
        overflow: visible;
        /* 与 PC 共用上方 --tl-p*；若某机型仍有偏差，可仅在此处覆盖 --tl-p1～--tl-p8 */
        margin-bottom: 34px;
    }

    .about-timeline-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .about-timeline-content-row {
        margin-bottom: 18px;
    }

    .about-timeline-arrow {
        padding: 4px;
    }

    .about-timeline-arrow img {
        max-height: 42px;
        width: auto;
    }

    .about-timeline-text {
        min-width: 0;
        padding: 0 4px;
    }

    .timeline-line1 {
        font-size: 28px;
    }

    .timeline-line2,
    .timeline-line3 {
        font-size: 18px;
    }

    /* 移动端：与 PC 相同百分比 + 绝对定位（与 flex 均分不同，才能与条图茶碗对齐） */
    .about-timeline-nodes {
        position: absolute;
        left: 0;
        top: calc(100% + 4px);
        width: 100%;
        height: auto;
        min-height: 18px;
        margin-top: 0;
        pointer-events: auto;
    }

    .about-timeline-nodes .timeline-node {
        position: absolute;
        font-size: 10px;
        padding: 1px 2px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    .about-timeline-nodes .timeline-node.active {
        font-size: 12px;
        font-weight: 700;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    .about-center-text {
        font-size: 24px;
        white-space: normal;
        padding: 0 20px;
    }

    .about-achievements-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .about-achievements-list p {
        font-size: 12pt;
    }

    .about-details-lead {
        font-size: 26px;
    }

    .about-details-container p:not(.about-details-lead) {
        font-size: 12pt;
    }

    .about-text-img-heading {
        font-size: 32px;
    }

    .about-history-text-wrap p {
        font-size: 12pt;
    }
}

/* 超小屏幕年份节点调整 */
@media (max-width: 480px) {
    .timeline-node {
        font-size: 9px;
        padding: 1px 2px;
    }

    .timeline-node.active {
        font-size: 11px;
    }

    .about-timeline-arrow img {
        max-height: 36px;
    }
}