/* 全域設定 */
body {
    font-family: "Microsoft JhengHei", sans-serif;
    background-color: #f4f4f9; /* 背景顏色 */
    background-image: url("./東京.jpg"); /* 背景圖片 */
    background-repeat: no-repeat; /* 不重複 */
    background-position: center top; /* 置中靠上 */
    background-attachment: fixed; /* 固定背景，不隨捲動 */
    background-size: cover; /* 背景圖片自動縮放填滿 */
    color: #333;
    margin: 0;
    padding: 0;
}

/* 建立角落裝飾 */
.corner-decor {
    position: fixed;
    width: 80px;
    height: auto;
    z-index: 10;
}

#top-left { top: 0; left: 0; }
#top-right { top: 0; right: 0; }
#bottom-left { bottom: 0; left: 0; }
#bottom-right { bottom: 0; right: 0; }



/* 頁首 */
header {
    background-color: rgba(74, 144, 226, 0.9); /* 半透明藍色 */
    color: white;
    text-align: center;
    padding: 20px;
}

/* LOGO 樣式 */
header h1 {
    display: inline-block;
    padding: 15px 30px;
    font-size: 2.2em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #4a90e2, #50c9c3); /* 漸層背景 */
    border-radius: 12px; /* 圓角 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* 外框陰影 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* 文字陰影 */
}


/* 導覽列 */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(51, 51, 51, 0.85); /* 半透明深灰 */
    display: flex;
    justify-content: center;
}

/* 區塊內容 */
main {
    padding: 20px;
}

/* 使用 id 選擇器 */
#intro {
    background-color: rgba(232, 240, 254, 0.9);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

#character {
    background-color: rgba(255, 243, 205, 0.9);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

#interests {
    background-color: rgba(212, 237, 218, 0.9);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}


/* 使用 class 選擇器 */
.highlight {
    color: #e63946;
    font-weight: bold;
}

/* 定義圖片樣式 */
img {
    border: 3px solid #ccc;
    border-radius: 10px;
    margin: 10px 0;
}

/* 定義 dl dt dd */
dl dt {
    font-weight: bold;
    color: #4a4a4a;
}
dl dd {
    margin-bottom: 10px;
}

/* 偽類 pseudo-class */
a:visited {
    color: #6a0dad;
}
a:active {
    color: #ff4500;
}

/* 偽元素 pseudo-element */
p::first-line {
    font-weight: bold;
    color: #2a9d8f;
}

p::before {
    content: "★ ";
    color: #e63946;
}