/* 沿用主站的基礎變數 */
:root {
    --primary-color: #4da3ff;      
    --secondary-color: #adb5bd;
    --text-color: #e0e0e0;            
    --bg-body: #121212;
    --bg-light: #1e1e1e;           
    --header-bg: #242424;
    --card-bg: #2d2d2d;
    --transition: all 0.3s ease;
}

body.light-mode {
    --primary-color: #007bff;      
    --secondary-color: #6c757d;
    --text-color: #333;            
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;           
    --header-bg: #ffffff;
    --card-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-body); transition: background-color 0.3s ease, color 0.3s ease; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--header-bg); box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 10px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; font-size: 1.2rem; }
.logo img { height: 40px; width: 40px; border-radius: 50%; border: 2px solid var(--primary-color); }
.theme-toggle { background: none; border: none; color: var(--text-color); font-size: 1.2rem; cursor: pointer; }

/* Section */
.section { padding: 60px 0; min-height: 80vh; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.project-header { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1.2rem; }
.project-title { font-size: 1.4rem; font-weight: bold; color: var(--primary-color); margin-bottom: 10px; }
.project-desc { color: var(--secondary-color); margin-bottom: 20px; flex-grow: 1; }
.project-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 0.9rem; color: var(--secondary-color); }
.lang-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: var(--primary-color); margin-right: 5px; }
.project-links a { margin-left: 10px; transition: color 0.2s; }
.project-links a:hover { color: var(--primary-color); }

.loading-spinner, .empty-state { grid-column: 1 / -1; text-align: center; padding: 40px; font-size: 1.2rem; color: var(--secondary-color); }

/* Footer */
footer { background: #333; color: #fff; text-align: center; padding: 20px 0; margin-top: auto; }
