/* Base Styles */
:root {
    --primary-color: #8b0000;
    --secondary-color: #d4af37;
    --text-color: #333;
    --light-bg: #f9f5f0;
    --highlight-color: #fff2cc;
    --border-color: #d9c7a7;
    --shadow-color: rgba(0,0,0,0.1);
}

body {
    font-family: 'Noto Serif TC', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-bg);
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Doctor Photo */
.doctor-chan-photo {
    float: left;
    top: 20px;
    width: 10%;
}

/* 
.doctor-chan-photo {
    position: absolute;
    float: left;
    top: 20px;
    left: 20px;
    width: 25%;
    max-width: 100px;
    z-index: 10;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease;
} 
*/

/* 
.doctor-chan-photo { 
    position: absolute; 
    float: left;
    top: 20px;
    left: 20px;
    width: 30%;

    max-width: 100px;
    z-index: 10;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease;
}
*/

/*
.doctor-chan-photo:hover {
    transform: scale(1.02);
}
*/

/*
.doctor-chan-photo img {
    width: 100%;   
    height: auto;      
    width: 10%;  
    height: 20%; 
    display: block;
    border-bottom: 1px solid var(--border-color);
}
*/
.photo-caption {
    text-align: center;
    font-weight: bold;
    padding: 8px 5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
}

/* Header Styles */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.article-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.decoration-line {
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
}

.decoration-symbol {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 0 20px;
}

/* Section Styles */
section {
    margin-bottom: 50px;
    position: relative;
}

h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    padding-left: 60px;
}

.section-number {
    position: absolute;
    left: 0;
    color: rgba(139, 0, 0, 0.2);
    font-size: 2.5rem;
    font-weight: bold;
    top: -15px;
}

h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 20px 0 15px;
}

h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Highlight Styles */
.highlight {
    background-color: var(--highlight-color);
    padding: 2px 5px;
    font-weight: bold;
    border-radius: 3px;
}

/* History Section */
.history-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    background-color: white;
    padding: 0 10px;
    display: inline-block;
}

.timeline-desc {
    font-size: 0.9rem;
    background-color: white;
    padding: 0 10px;
    display: inline-block;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid white;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Modern Section */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    display: flex;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    align-items: center;
    transition: transform 0.3s ease;
}

.modern-list li:hover {
    transform: translateX(5px);
}

.modern-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    color: var(--secondary-color);
    min-width: 40px;
    text-align: center;
}

.modern-content {
    flex: 1;
}

/* Conclusion & Footer */
.conclusion {
    text-align: center;
    padding: 30px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-top: 40px;
}

.note {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 20px;
}

.footer-line {
    width: 100px;
    height: 1px;
    background-color: var(--border-color);
}

.footer-symbol {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0 20px;
}

/* Responsive Design */

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
/*    
    .doctor-chan-photo {
        position: relative;
        width: 50%;
        margin: 0 auto 20px;
        top: auto;
        left: auto;
    }
 */   
    .article-header {
        padding-top: 0;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
        padding-left: 50px;
    }
    
    .section-number {
        font-size: 2rem;
        top: -10px;
    }
    
    .timeline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        margin-bottom: 20px;
        text-align: left;
        padding-left: 30px;
        position: relative;
        width: 100%;
    }
    
    .timeline-item::before {
        left: 0;
        top: 5px;
        transform: none;
    }
    
    .modern-list li {
        flex-direction: column;
    }
    
    .modern-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
/*    
    .doctor-chan-photo {
        width: 70%;
    }
 */   
    h2 {
        padding-left: 40px;
    }
    
    .section-number {
        font-size: 1.8rem;
    }
}