/* 全局設定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'PingFang TC', 'Heiti TC', 'Microsoft JhengHei', sans-serif;
    background-color: #121212; /* 深色背景 */
    color: #e0e0e0;
    line-height: 1.8;
}

h1, h2, h3 { margin: 0; }

/* 1. 首屏視覺 (Hero Section) */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;

    /* 使用自訂屬性，預設值指向目前的示例圖 */
    --hero-bg: url('/assets/img/hero-default.jpg');

    /* 把變數套用到背景 */
    background: linear-gradient(rgba(10, 15, 20, 0.8), rgba(10, 15, 20, 0.9)),
                var(--hero-bg) no-repeat center center/cover;
}
.hero-quote {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffffff;
    margin: 30px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}
.hero-name {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 10px;
    letter-spacing: 5px;
}
.hero-title {
    font-size: 1.1rem;
    color: #888;
}

/* 2. 基本檔案 (Profile Bar) */
.profile {
    min-height: 60vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    /* background-color: #a1a09e5b; */
    background-color: #f8f6f1;
    border-bottom: 1px solid #333;
    flex-direction: column;
}

.profile-top {
    display: flex;          /* image + info horizontal */
    align-items: center;
    gap: 30px;
}
.profile-img-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #333;
    border: 2px solid #555;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.9rem;
    overflow: hidden;
    flex-shrink: 0;
}
.profile-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-info h2 {
    font-size: 1.8rem;
    /* color: #fff; */
    color: #3d3026;
    margin-bottom: 5px;
}
.profile-info p {
    margin: 0;
    /* color: #aaa; */
    color: #6b5e52;
}

@media (max-width: 550px) {

    .profile {
        height: auto;
        padding: 30px 15px;
    }

    .profile-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-img-placeholder {
        width: 180px;
        height: 180px;
        margin-right: 0;
    }

    .profile-info h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .profile-info p {
        font-size: 0.9rem;
    }

    .hero-quote {
        font-size: 2rem;   /* adjust as needed */
        line-height: 1.3;
        padding: 20px 10px;
        word-break: break-word;
    }
}

/* 3. 烽火歷程時間軸 (Scrolling Timeline) */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 90px;
    bottom: 120px;
    width: 2px;
    background: #444;
}

.timeline-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #fff;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: #8c1c1c;
    border-radius: 50%;
}



.timeline-date {
    font-weight: bold;
    color: #d45d5d;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-image {
    margin: 20px;
    text-align: center;
}

.timeline-image img {
    width: 100%;
    max-width: 700px;

    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.15);

    display: block;
    margin: 0 auto;
}

/* 4. 壯烈犧牲與不朽 (The Final Stand) */
.final-stand {
    /* background-color: #2a0808; 深紅色背景增強悲壯感 */
    background-color: #d9d6d1;
    padding: 80px 20px;
    text-align: center;
}
.final-stand-content {
    max-width: 800px;
    margin: 0 auto;
}
.final-stand h2 {
    font-size: 2.2rem;
    /* color: #ffcccc; */
    color: #5a2d0c;
    margin-bottom: 30px;
}
.final-stand p {
    font-size: 1.15rem;
    /* color: #ffeded; */
    color:#3d3026;
    text-align: left;
    margin-bottom: 20px;
}
.highlight {
    color: #a52a2a;
    font-weight: bold;
}

/* 5. 傳承 (Legacy Footer) */
.legacy {
    padding: 60px 20px;
    text-align: center;
    background-color: #a1a09e5b;
}
.legacy p {
    color: #3d3026;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.timeline-footer {
    display: inline;
}

.timeline-image-caption,
.timeline-references {
    display: inline;
}

.timeline-image-caption p,
.timeline-references p {
    display: inline;
    margin: 0;
    color: #07cde7;
}