/* TGG Personal Website - Main Styles */ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
} 
 
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #f8f9fa; 
} 
 
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
} 
 
/* Header Styles */ 
.navbar { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    padding: 1rem 0; 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
} 
 
.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
    position: relative;
} 

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    flex: 1; 
    justify-content: center; 
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
} 

/* IP 顯示區域樣式 - 修復佈局偏移問題 */
.ip-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    flex-shrink: 0;
    width: auto;
    max-width: 180px;
}

.ip-info, .location-info {
    margin: 1px 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ip-label, .location-label {
    font-weight: bold;
    margin-right: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

#user-ipv4, #user-ipv6, #user-location {
    color: #ffd700;
    font-weight: 500;
    text-align: right;
    font-size: 1rem;
}

/* 漢堡菜單樣式 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        margin-top: 1rem;
        position: static;
        transform: none;
        left: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .ip-display {
        font-size: 0.7rem;
        max-width: 150px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .ip-display {
        display: none;
    }
}
.logo h1 { 
    color: white; 
    font-size: 2rem; 
    font-weight: bold; 
} 
 /* 導航菜單 */
.nav-menu a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 1.2rem;      /* 菜單字體稍微大一點 (17.6px) */
    transition: color 0.3s ease; 
} 
 
.nav-menu a:hover, 
.nav-menu a.active { 
    color: #ffd700; 
} 
 
/* Main Content */ 
main { 
    margin-top: 80px; 
} 
 
/* Hero Section */ 
.hero { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 100px 0; 
    text-align: center; 
} 
 
.hero-content { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 20px; 
} 
 
.profile-image { 
    margin-bottom: 2rem; 
} 
 
.profile-image img { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    border: 5px solid white; 
    object-fit: cover; 
} 
 
.hero-title { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    font-weight: 700; 
} 
 
.hero-subtitle { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    opacity: 0.9; 
} 
 
.hero-buttons { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap; 
} 
 
/* Buttons */ 
.btn { 
    display: inline-block; 
    padding: 12px 30px; 
    text-decoration: none; 
    border-radius: 25px; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    border: none; 
    cursor: pointer; 
} 
 
.btn-primary { 
    background-color: #ffd700; 
    color: #333; 
} 
 
.btn-primary:hover { 
    background-color: #ffed4e; 
    transform: translateY(-2px); 
} 
 
.btn-secondary { 
    background-color: transparent; 
    color: white; 
    border: 2px solid white; 
} 
 
.btn-secondary:hover { 
    background-color: white; 
    color: #667eea; 
} 
 
/* Features Section */ 
.features { 
    padding: 80px 0; 
    background-color: white; 
} 
 
.features h2 { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    color: #333; 
} 
 
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
} 
 
.feature-card { 
    background: white; 
    padding: 2rem; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease; 
} 
 
.feature-card:hover { 
    transform: translateY(-5px); 
} 
 
.feature-icon { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
} 
 
.feature-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    color: #333; 
} 
 
.feature-card p { 
    color: #666; 
} 
 
/* Page Headers */
.about-hero,
.links-hero,
.downloads-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.about-hero h1,
.links-hero h1,
.downloads-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Links Page */
.links-content {
    padding: 80px 0;
    background-color: white;
}

.links-category {
    margin-bottom: 4rem;
}

.links-category h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.link-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Downloads Page */
.downloads-content {
    padding: 80px 0;
    background-color: white;
}

.downloads-category {
    margin-bottom: 4rem;
}

.downloads-category h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.download-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-size,
.file-type {
    background-color: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.btn-download {
    background-color: #28a745;
    color: white;
}

.btn-download:hover {
    background-color: #218838;
}
 
/* Footer */ 
footer { 
    background-color: #333; 
    color: white; 
    text-align: center; 
    padding: 2rem 0; 
    margin-top: 4rem; 
} 
 
footer p { 
    margin: 0; 
}
