@charset "utf-8";

/* 1. 全域與背景設定 - 加入第一個版本的背景圖 */
body {
    background-color: #fbf9cc;
    background-image: url(img/bg.png);
    background-repeat: no-repeat;
    background-position: right top;
    background-attachment: fixed;
    background-size: 50px 70px;
    font-family: "Lora", "Microsoft JhengHei", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* 2. 連結與自動圖示 - 加入第一個版本的圖示功能 */
a {
    color: #6fbb9a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff705b;
    text-decoration: none;
}

/* 自動在外部連結與郵件連結後加上圖示 */
a[target="_blank"]::after {
    content: url(img/ico_blank.png);
    margin-left: 5px;
    vertical-align: middle;
}

a[href^="mailto:"]::after {
    content: url(img/ico_mail.png);
    margin-left: 5px;
    vertical-align: middle;
}

/* 3. 頁首與圓形標題 - 完全移植第一個版本的樣式 */
header {
    text-align: center;
    padding: 20px;
}

h1 {
    display: inline-block;
    width: 300px; /* 寬高相等以維持圓形 */
    height: 300px;
    margin: 40px auto;
    padding: 30px;
    border: 5px solid #95dbbd;
    background-color: #6fbb9a;
    background-image: linear-gradient(to bottom, #6fbb9a, #4a9d79);
    color: #fff !important;
    font-size: 250%;
    text-align: center;
    line-height: 1.2;
    border-radius: 50%; /* 變成圓形 */
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Limelight', cursive;
    /* 置中文字內容 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 4. 主要內容容器 */
#contents {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 40px 80px;
    border: 1px solid #6fbb9e;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 5. 側邊粗線標題 (h2) */
.h {
    padding: 10px;
    margin: 20px 0;
    border: 1px dotted #94c8b1;
    border-left: 10px solid #d0e35b;
    color: #6fbb9a;
    border-radius: 5px 0 0 5px;
}

/* 6. 內陰影小標題 (h3) - 移植第一個版本 */
.h-sub {
    padding: 10px;
    background-color: #fbf9cc;
    color: #ff705b;
    border-radius: 10px;
    box-shadow: 0 0 5px 2px #ffd0ad inset; /* 內陰影效果 */
}

.h-sub span {
    font-weight: normal;
    font-size: 0.8em;
    color: #888;
}

/* 7. 更多介紹連結與箭頭 */
.more {
    text-align: right;
    font-weight: bold;
}

.more::after {
    content: url(img/ico_arrow.png);
    margin-left: 3px;
    vertical-align: middle;
}

/* 8. 其他細節設定 */
dt {
    font-weight: bold;
    color: #6fbb9a;
    margin-top: 15px;
}

dd {
    margin-left: 0;
    padding-left: 20px;
    border-left: 2px solid #fbf9cc;
    margin-bottom: 10px;
}

#contents > section + section {
    margin-top: 80px;
    border-top: 1px dashed #eee;
    padding-top: 40px;
}

footer {
    text-align: center;
    padding: 40px 0;
    background-color: #eee;
    font-size: 0.8rem;
}