/* --- 系統變數定義 --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --accent-color: #00ffcc; /* CHIYIGO 青色 */
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --border-color: #333333;
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

/* --- 基礎設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 佈局組件 --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    z-index: 1000;
}

.main-logo {
    height: 42px;
    display: block;
}

.sys-version {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-left: 10px;
    border: 1px solid var(--accent-color);
    padding: 2px 5px;
}

/* 系統狀態點 */
.sys-status {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--accent-color);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- 模組樣式 --- */
.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 100px 5%;
    align-items: center;
}

.label {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.tagline {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 2rem;
}

/* 影片容器 */
.video-container {
    position: relative;
    border: 1px solid var(--border-color);
    background: #000;
}

#boot-video {
    width: 100%;
    display: block;
    transition: all 1.5s ease;
}

#boot-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--accent-color);
    opacity: 0;
}

/* --- 作品集卡片 --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: border-color 0.3s ease;
}

.portfolio-card:hover {
    border-color: var(--accent-color);
}

.portfolio-card h3 {
    margin-bottom: 1rem;
}

.portfolio-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 4.5em;
    overflow: hidden;
}

/* --- 表單樣式 --- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input, select, textarea {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: white;
    font-family: var(--font-mono);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn, button {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: var(--font-mono);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover, button:hover {
    background: var(--accent-color);
    color: black;
}

/* --- 響應式適配 --- */
@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: 1fr;
        padding: 50px 5%;
    }
    h1 { font-size: 2.5rem; }
}