/* 自定義CSS樣式 - 優化網站視覺設計和導航 */

/* 改進導航欄樣式 */
.navbar-dark {
    background-color: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    margin: 0 5px;
    border-radius: 4px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
    background-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.navbar-dark .navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #4a90e2;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #4a90e2;
}

/* 改進專案卡片樣式 */
.post-box {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(248, 193, 70, 0.2);
}

.post-thumb {
    position: relative;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-box:hover .post-thumb img {
    transform: scale(1.08);
}

.post-info {
    padding: 25px;
    background-color: #ffffff;
}

.post-info h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.post-info ul {
    margin-bottom: 15px;
    padding-left: 0;
    list-style: none;
}

.post-info ul li {
    display: inline-block;
    margin-right: 15px;
    color: #666;
    font-size: 0.9rem;
}

.post-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 改進按鈕樣式 */
.sim-btn {
    background: linear-gradient(135deg, #4a90e2, #2c6cb5);
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 35px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.sim-btn:hover {
    background: linear-gradient(135deg, #2c6cb5, #4a90e2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* 改進頁面標題樣式 */
.section-title {
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    color: #2c3e50;
    letter-spacing: 1px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4a90e2, #f8c146);
    border-radius: 2px;
}

/* 改進頁腳樣式 */
.footer {
    background-color: #1a1a1a;
    padding: 70px 0 30px;
}

.footer h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #f8c146, transparent);
    border-radius: 2px;
}

/* Modal 樣式優化 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 25px;
}

.modal-body h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body ul li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

.modal-body img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 響應式設計優化 */
@media (max-width: 768px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
    }
    
    .post-thumb img {
        height: 200px;
    }
    
    .section-title h3 {
        font-size: 28px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .post-thumb img {
        height: 180px;
    }
    
    .section-title h3 {
        font-size: 24px;
    }
    
    .post-info {
        padding: 20px;
    }
    
    .post-info h4 {
        font-size: 1.1rem;
    }
}
