/* About Page Styles */
.page-header {
    height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.7);
}

.page-header-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.page-header-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw + 1rem, 3.75rem);
    margin-bottom: 1rem;
}

/* Philosophy Section */
.philosophy-section {
    background: var(--cream);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-image {
    position: relative;
}

/* 樣式 2: 完整偏移矩形邊框 - 企業理念圖片 */
.content-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--gold);
    opacity: 0.3;
    transition: all 0.4s ease;
    pointer-events: none;
}

.content-image:hover::before {
    top: -18px;
    left: -18px;
    right: 18px;
    bottom: 18px;
    opacity: 0.5;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.content-image:hover img {
    transform: scale(1.02);
}

.content-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2vw + 0.75rem, 2.5rem);
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-box {
    text-align: center;
    position: relative;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 樣式 8: 分段邊框 - 統計數據框 */
.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.15);
}

.stat-box:hover::before,
.stat-box:hover::after {
    width: 60%;
    opacity: 0.6;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Timeline - 交錯式設計 */
.timeline-section {
    background: linear-gradient(to bottom, var(--white) 0%, var(--cream) 100%);
    overflow: hidden;
    position: relative;
}

.timeline {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

/* 背景裝飾 - 中央垂直線 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--gold) 5%,
        var(--gold) 95%,
        transparent 100%
    );
    opacity: 0.25;
    margin-left: -1px;
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    gap: 0;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左側內容（奇數） */
.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    margin-left: auto;
}

/* 右側內容（偶數） */
.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
    margin-right: auto;
}

/* 中央圓點容器 */
.timeline-item::after {
    content: '';
    grid-column: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
}

/* 中央圓點 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.3);
}

/* 內容卡片 */
.timeline-content {
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s ease;
    max-width: 480px;
}

/* 指向中央的箭頭 - 左側內容 */
.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 26px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent var(--white);
    z-index: 1;
}

/* 指向中央的箭頭 - 右側內容 */
.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 26px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 12px 12px 0;
    border-color: transparent var(--white) transparent transparent;
    z-index: 1;
}

/* 金色裝飾線 */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* 年份標籤 */
.timeline-year {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: inline-block;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 0.75rem;
    font-weight: 600;
    word-wrap: break-word;
}

.timeline-content p {
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 0.98rem;
    word-wrap: break-word;
}

/* Team Section */
.team-section {
    background: var(--cream);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

/* 樣式 5: 四角方塊裝飾 - 團隊卡片 */
.team-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: 2;
}

.team-card::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.team-card:hover::before {
    top: -8px;
    left: -8px;
    width: 25px;
    height: 25px;
    opacity: 0.5;
}

.team-card:hover::after {
    bottom: -8px;
    right: -8px;
    width: 25px;
    height: 25px;
    opacity: 0.5;
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: var(--black);
}

/* 中等螢幕 */
@media (max-width: 1024px) {
    .timeline {
        max-width: 900px;
        padding: 2.5rem 1.5rem;
    }

    .timeline-item {
        margin-bottom: 3rem;
    }

    .timeline-content {
        max-width: 400px;
        padding: 1.75rem 2rem;
    }

    .timeline-year {
        font-size: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }
}

/* 平板 */
@media (max-width: 768px) {
    .page-header {
        margin-top: 60px;
    }

    .philosophy-section,
    .timeline-section,
    .team-section {
        padding: 4rem 1.25rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    /* 時間軸平板版 - 改為單列垂直排列 */
    .timeline::before {
        left: 30px;
        margin-left: -1px;
        z-index: 1;
    }

    .timeline {
        padding: 2rem 1.25rem;
    }

    .timeline-item {
        display: block;
        padding-left: 70px;
        margin-bottom: 2.5rem;
    }

    .timeline-item::after {
        display: none;
    }

    .timeline-item::before {
        left: 30px;
        top: 28px;
        width: 14px;
        height: 14px;
        transform: translateX(-50%);
        z-index: 10;
    }

    .timeline-item:hover::before {
        transform: translateX(-50%) scale(1.3);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: auto;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        padding: 1.5rem 1.75rem;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -12px;
        right: auto;
        border-width: 12px 12px 12px 0;
        border-color: transparent var(--white) transparent transparent;
    }

    .timeline-content::after {
        width: 50px;
    }

    .timeline-year {
        font-size: 0.95rem;
        padding: 0.3rem 1rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.92rem;
    }

    .timeline-content:hover {
        transform: translateY(-3px);
    }
}

/* 手機 */
@media (max-width: 480px) {
    .philosophy-section,
    .timeline-section,
    .team-section {
        padding: 3rem 1rem;
    }

    /* 時間軸手機版 */
    .timeline::before {
        left: 20px;
        margin-left: -1px;
        z-index: 1;
    }

    .timeline {
        padding: 1.5rem 1rem;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    .timeline-item::before {
        left: 20px;
        width: 12px;
        height: 12px;
        top: 24px;
        border-width: 3px;
        transform: translateX(-50%);
        z-index: 10;
    }

    .timeline-item:hover::before {
        transform: translateX(-50%) scale(1.2);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding: 1.25rem 1.5rem;
        border-radius: 6px;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -8px;
        border-width: 8px 8px 8px 0;
    }

    .timeline-content::after {
        width: 40px;
        height: 2px;
    }

    .timeline-year {
        font-size: 0.85rem;
        padding: 0.25rem 0.85rem;
        letter-spacing: 1px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content p {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .timeline-content:hover {
        transform: translateY(-2px);
    }
}

/* 企業經營 & 核心理念 */
.philosophy-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.philosophy-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.philosophy-key {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--charcoal);
    min-width: 3.5em;
}

.philosophy-arrow {
    color: var(--gold);
    font-weight: 700;
}

.philosophy-val {
    color: var(--gray);
}

.core-values {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.value-box {
    text-align: center;
    position: relative;
    padding: 1.75rem 1rem;
    background: var(--white);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.value-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.value-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.15);
}

.value-box:hover::before,
.value-box:hover::after {
    width: 60%;
    opacity: 0.6;
}

.value-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .core-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .philosophy-list li {
        font-size: 1rem;
    }
}
