@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap'); :root { --yellow: #FFD700; /* 應援黃色 */ --dark-yellow: #4e492b; --black: #1a1a1a; --gray: #f4f4f4; --text-color: #333; --dark: #777; --accent: #FFD700; } /* 1. 先處理 body 和全域,確保沒人亂給外距 */ * { margin: 0; padding: 0; box-sizing: border-box; } html { background: #0A0A0A; min-height: 100%; } body { font-family: 'Noto Sans TC', system-ui, sans-serif; color: var(--text-color); line-height: 1.6; overflow-x: hidden; } header { /* aspect-ratio: 1920 / 1080; */ width: 100%; /* 改用 vh (螢幕高度) 通常比 aspect-ratio 更能解決首屏留白問題 */ min-height: 100vh; background-image: url(img/header.jpg); background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; position: relative; margin: 0; padding: 0; vertical-align: bottom; /* 消除某些瀏覽器對區塊元素的底邊留白 */ } /* 導覽列 */ nav { background-color: var(--black); padding: 0.5rem; position: sticky; top: 0; z-index: 1000; display: flex; justify-content: center; margin: 0; } nav a { color: var(--yellow); text-decoration: none; margin: 0 20px; font-weight: bold; transition: 0.3s; } nav a:hover { color: white; } #particles { position: absolute; left: 0; width: 100%; display: block; z-index: 1; pointer-events: none; } /* 橫幅 Hero Section */ .hero { z-index: 2; position: relative; width: 100%; } .hero h1 { font-size: 2.5rem; line-height: 1.2; color: var(--yellow); text-shadow: 0 0 30px rgba(255, 221, 0, 0.8); } .hero p { font-size: 1.2rem; /* margin-bottom: 2rem; */ color: var(--gray); } .btn { display: inline-block; padding: 10px 30px; background: var(--yellow); color: #000; font-weight: bold; border-radius: 50px; text-decoration: none; transition: all 0.3s; } .btn:hover { transform: scale(1.1); background: #FFEE66; } /* 區塊容器 */ .container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; } .story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; } .card { /* background: rgba(0, 0, 0, 0.85); */ border-radius: 20px; padding: 30px; transition: transform 0.4s, box-shadow 0.4s; } .card:hover { transform: translateY(-15px); box-shadow: 0 5px 5px rgba(255, 221, 0, 0.2); } .card h3 { color: var(--yellow); margin-bottom: 15px; } section { margin-bottom: 60px; background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 15px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); position: relative; z-index: 10; } h2 { border-left: 5px solid var(--yellow); padding-left: 15px; color: var(--black); margin-bottom: 25px; } /* 作品列表表格 */ table { width: 100%; border-collapse: collapse; margin-top: 20px; } table th { background-color: var(--yellow); color: var(--black); padding: 12px; } table td { padding: 12px; border-bottom: 1px solid #ddd; text-align: center; } a { color: var(--text-color); text-decoration: none; } /* 現在的故事線樣式 */ .timeline { border-left: 3px solid var(--yellow); padding-left: 20px; margin-left: 10px; } .timeline-item { margin-bottom: 20px; position: relative; } .timeline-item::before { content: ''; width: 12px; height: 12px; background: var(--black); border: 3px solid var(--yellow); border-radius: 50%; position: absolute; left: -31px; top: 5px; } /* 頁尾 */ footer { background-color: var(--black); color: white; text-align: center; padding: 20px 0; margin-top: 50px; } .highlight { color: var(--dark-yellow); font-weight: bold; }