/* 頁面專用樣式 */

/* 好站連結樣式 */
.links-category {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.links-category h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.links-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-category li {
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease;
}

.links-category li:hover {
    transform: translateX(5px);
}

.links-category a {
    color: #495057;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 0.8rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    border: 1px solid #e9ecef;
}

.links-category a:hover {
    color: #2c5aa0;
    background: #e3f2fd;
    border-color: #2c5aa0;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
}

.links-category a::after {
    content: "↗";
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #2c5aa0;
    font-weight: bold;
}

.links-category a:hover::after {
    opacity: 1;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .links-category {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .links-category h4 {
        font-size: 1.1rem;
    }
    
    .links-category a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

/* 頁面標題 */
.page-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

.page-header p {
    font-size: 2rem;
    font-weight: 300;
    z-index: 1;
    position: relative;
}

.energy-text {
    color: #4CAF50;
    font-style: italic;
}

/* 頁面佈局 */
.page-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

/* 側邊欄 */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.sidebar-menu h3 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #eee;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 1.5rem;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #667eea;
}

/* 主內容區 */
.main-content {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.content-section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* 公司標題 */
.company-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.company-title img {
    width: 80px;
    height: 60px;
    object-fit: contain;
}

.company-title h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin: 0;
}

.company-title p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

/* 公司資訊 */
.info-section {
    margin-bottom: 3rem;
}

.info-section h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.mission-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
}

.company-description p {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.service-category {
    margin-bottom: 2rem;
}

.service-category h5 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-category p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

/* 團隊資訊 */
.team-info h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.team-member {
    margin-bottom: 3rem;
}

.member-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.member-details strong {
    color: #333;
    font-weight: 600;
}

.representative-works {
    margin-top: 3rem;
}

.representative-works h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.works-list {
    list-style: none;
    padding: 0;
}

.works-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #555;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.works-list li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
}

.works-list li:last-child {
    border-bottom: none;
}

/* 證照網格 */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.certificate-item {
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.certificate-item h4 {
    color: #2c5aa0;
    margin: 0;
}

/* 工程實績頁面 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-content .project-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-content .read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.project-content .read-more:hover {
    border-bottom-color: #667eea;
}

/* 聯絡表單 */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 表單訊息樣式 */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.loading {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 聯絡資訊 */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details strong {
    color: #333;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
        padding: 1rem;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .project-image-carousel {
        height: 200px;
    }
    
    .carousel-controls {
        padding: 0 0.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* 工程目錄頁面響應式 */
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* 工程詳細頁面響應式 */
    .project-detail-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 2rem;
    }
    
    .project-gallery {
        position: static;
    }
    
    .gallery-carousel {
        height: 300px;
    }
    
    .project-info h1 {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* 照片集響應式 */
    .gallery-controls {
        padding: 0 0.5rem;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* 工程實績輪播樣式 */
.project-image-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-dots {
    position: absolute;
    bottom: 10px; /* 調整到底部 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 30;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dots .dot.active {
    background: white;
}

.project-image-placeholder {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-info {
    padding: 1rem 0;
}

.project-category {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.project-details,
.project-date {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* 工程目錄頁面樣式 */
.projects-filter {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 2rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.search-btn {
    background: #2c5aa0;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1e3a5f;
}

/* 現代化工程分類卡片 */
.project-categories {
    margin-top: 2rem;
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card-modern {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideUpFade 0.6s ease-out both;
    border: 1px solid #e9ecef;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #dee2e6;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.category-card-modern:hover .card-background {
    opacity: 0.1;
}

.category-image-modern {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

/* 有圖片的情況 */
.featured-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-modern:hover .featured-image-container img {
    transform: scale(1.1);
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.7;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}

.category-card-modern:hover .image-gradient-overlay {
    opacity: 0.5;
}

/* 無圖片的情況 - 預設圖示 */
.default-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.icon-background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.category-card-modern:hover .icon-background {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 懸浮覆蓋層 */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card-modern:hover .hover-overlay {
    opacity: 1;
}

.action-buttons {
    text-align: center;
}

.explore-btn {
    background: white;
    color: #333;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-icon {
    font-size: 1.2rem;
}

/* 卡片內容 */
.category-content-modern {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-stats {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(44, 90, 160, 0.95);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.category-title-section {
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.category-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.category-action {
    margin-top: auto;
}

.view-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.view-category-btn:hover {
    color: #1e3a5f;
    transform: translateX(5px);
}

.arrow {
    transition: transform 0.3s ease;
}

.view-category-btn:hover .arrow {
    transform: translateX(3px);
}

/* 無內容狀態 */
.no-categories-modern {
    text-align: center;
    padding: 4rem 2rem;
}

.no-content-illustration {
    max-width: 300px;
    margin: 0 auto;
}

.illustration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-content-illustration h3 {
    color: #999;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.no-content-illustration p {
    color: #666;
    line-height: 1.6;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .categories-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .main-image-container {
        height: 450px;
        max-height: 65vh;
    }
}

@media (max-width: 768px) {
    .categories-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .category-card-modern {
        height: 320px;
    }

    .category-image-modern {
        height: 160px;
    }

    .category-content-modern {
        padding: 1.25rem;
    }

    .icon-background {
        width: 70px;
        height: 70px;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
    }
}

/* 麵包屑導航 */
.breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    margin-top: 100px; /* 為導航欄留出更多空間 */
}

.breadcrumb .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1e3a5f;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* 清除搜尋 */
.clear-search {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #dc3545;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: #dc3545;
    color: white;
}

/* 工程詳細頁面圖片藝廊 */
.project-detail {
    padding: 2rem 0;
    background: #f8f9fa;
}

.project-detail .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.project-gallery {
    position: relative; /* 恢復relative定位 */
    width: 100%;
    min-height: auto; /* 改為自動高度 */
    height: auto; /* 允許內容決定高度 */
    overflow: visible; /* 確保內容可見 */
    display: block; /* 確保顯示 */
}

.main-gallery {
    position: relative;
    border-radius: 12px;
    overflow: visible; /* 改為 visible 讓控制按鈕可以顯示 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: white;
}

.main-image-container {
    position: relative;
    height: 500px;
    max-height: 60vh; /* 減少主圖最大高度，為縮圖留出空間 */
    overflow: visible; /* 改為 visible 讓控制按鈕可以顯示 */
    border-radius: 12px;
    background: #f8f9fa;
    min-height: 300px; /* 降低最小高度 */
    margin-bottom: 1.5rem; /* 為縮圖區域添加間距 */
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.main-image.active {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .image-overlay {
    opacity: 1;
}

.fullscreen-btn {
    background: white;
    color: #2c5aa0;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: #2c5aa0;
    color: white;
}

.main-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 100px); /* 為左右按鈕留出空間 */
    left: 50px; /* 從左邊留出空間 */
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.main-prev,
.main-next {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 25;
    flex-shrink: 0; /* 防止按鈕被壓縮 */
}

.main-prev:hover,
.main-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.image-counter {
    position: absolute;
    bottom: 10px; /* 調整到底部 */
    right: 10px; /* 調整到右邊 */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 30;
}

.thumbnail-gallery {
    margin-top: 1.5rem;
    padding: 1rem 0 2rem 0; /* 增加底部padding確保縮圖完整顯示 */
    display: block !important; /* 強制顯示 */
    visibility: visible !important; /* 強制可見 */
    opacity: 1 !important; /* 強制不透明 */
    overflow: visible; /* 確保內容不被裁切 */
    position: relative; /* 確保定位 */
    z-index: 1; /* 確保在上層顯示 */
    width: 100%; /* 確保寬度 */
    height: auto; /* 自動高度 */
}

.thumbnail-gallery h3 {
    color: #2c5aa0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.no-images-debug {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

.no-images-debug p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.thumbnail-container {
    display: grid !important; /* 強制顯示 */
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    max-height: none; /* 移除最大高度限制，讓縮圖完整顯示 */
    overflow: visible; /* 改為可見 */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* 改為漸層背景 */
    border-radius: 12px; /* 增加圓角 */
    min-height: 150px; /* 設定最小高度確保可見 */
    width: 100%; /* 確保寬度 */
    box-sizing: border-box; /* 包含邊框在內 */
    margin-top: 1rem; /* 添加頂部間距 */
    border: 1px solid rgba(0, 0, 0, 0.05); /* 添加淡邊框 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); /* 添加陰影 */
    visibility: visible !important; /* 強制可見 */
    opacity: 1 !important; /* 強制不透明 */
}

.thumbnail-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: block !important; /* 強制顯示 */
    visibility: visible !important; /* 強制可見 */
    opacity: 1 !important; /* 強制不透明 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.3), 0 4px 16px rgba(44, 90, 160, 0.2);
    transform: scale(1.02);
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(44, 90, 160, 0.5);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important; /* 強制顯示 */
    visibility: visible !important; /* 強制可見 */
    opacity: 1 !important; /* 強制不透明 */
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item.active::after {
    opacity: 1;
}

/* 燈箱模式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    display: none;
    width: 100%;
    height: 100%;
}

.lightbox-image.active {
    display: block;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
}

/* 工程資訊 */
.project-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.project-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.project-header h1 {
    color: #2c5aa0;
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.project-category {
    background: #e8f4f8;
    color: #2c5aa0;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.project-meta {
    margin-bottom: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.meta-item .icon {
    font-size: 1rem;
    margin-top: 0.1rem;
    min-width: 20px;
}

.meta-item div {
    flex: 1;
}

.meta-item strong {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
    font-size: 0.9rem;
}

.meta-item p {
    margin: 0;
    color: #555;
    line-height: 1.4;
    font-size: 0.95rem;
}

.project-description {
    margin-bottom: 0;
}

.project-description h3 {
    color: #2c5aa0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.description-content {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 相關工程 */
.related-projects {
    padding: 3rem 0;
    background: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    padding: 1.5rem;
}

.related-info h4 {
    color: #2c5aa0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.related-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.view-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-link:hover {
    color: #1e3a5f;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .project-detail-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 2rem;
    }

    .project-gallery {
        position: static;
    }

    .main-image-container {
        height: 400px;
        max-height: 50vh; /* 中等螢幕限制高度，為縮圖留出更多空間 */
        min-height: 250px; /* 降低最小高度 */
        overflow: visible; /* 響應式設計中也改為 visible */
        margin-bottom: 1rem; /* 縮圖間距 */
    }
}

@media (max-width: 768px) {
    .project-detail-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .project-info {
        order: 1;
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: 1rem;
    }

    .project-gallery {
        order: 2;
    }

    .main-image-container {
        height: 280px;
        max-height: 40vh;
        min-height: 200px;
        overflow: visible;
        margin-bottom: 1rem;
    }

    .main-controls {
        padding: 0 15px;
    }

    .main-prev,
    .main-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .thumbnail-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.6rem;
        max-height: none;
        padding: 1rem;
    }

    .project-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .project-header h1 {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        color: #2c3e50;
    }

    .project-category {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
        display: inline-block;
    }

    .project-meta {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .meta-item {
        padding: 1rem;
        gap: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #007bff;
    }

    .meta-item .icon {
        font-size: 1.3rem;
        min-width: 24px;
    }

    .meta-item strong {
        font-size: 0.9rem;
        color: #495057;
        font-weight: 600;
    }

    .meta-item p {
        font-size: 0.95rem;
        color: #2c3e50;
        margin-top: 0.25rem;
    }

    .project-description h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .description-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .lightbox-controls {
        padding: 0 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* 更小螢幕的響應式設計 */
@media (max-width: 480px) {
    .project-detail-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .project-info {
        order: 1;
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .project-gallery {
        order: 2;
    }

    .project-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .project-category {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .meta-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .meta-item .icon {
        font-size: 1.1rem;
    }

    .meta-item strong {
        font-size: 0.85rem;
    }

    .meta-item p {
        font-size: 0.9rem;
    }

    .main-image-container {
        height: 220px;
        max-height: 35vh;
        min-height: 180px;
        margin-bottom: 0.75rem;
    }
    
    .main-controls {
        padding: 0 5px;
    }
    
    .main-prev,
    .main-next {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .thumbnail-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .project-info {
        padding: 0.75rem;
    }

    .project-header h1 {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .project-category {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .project-meta {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .meta-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .meta-item .icon {
        font-size: 1rem;
    }

    .meta-item strong {
        font-size: 0.8rem;
    }

    .meta-item p {
        font-size: 0.85rem;
    }

    .project-description h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .description-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .lightbox-controls {
        padding: 0 0.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    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;
    height: auto;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.project-gallery {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.photo-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-item.active {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .gallery-item img {
    transform: scale(1.05);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-gallery:hover .gallery-controls {
    opacity: 1;
}

.gallery-prev,
.gallery-next {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-gallery:hover .gallery-dots {
    opacity: 1;
}

.gallery-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-dots .dot.active {
    background: white;
}

.gallery-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-gallery:hover .gallery-counter {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .gallery-overlay {
    opacity: 1;
}

.no-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.no-image-placeholder span {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.view-btn {
    background: white;
    color: #2c5aa0;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #2c5aa0;
    color: white;
}

.project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: #2c5aa0;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.project-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.project-location,
.project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.project-location .icon,
.project-date .icon {
    font-size: 1rem;
}

.project-category {
    background: #2c5aa0;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-location,
.project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.project-location .icon,
.project-date .icon {
    font-size: 1rem;
}

.no-projects-content {
    text-align: center;
    padding: 3rem;
}

.no-projects-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-projects-content p {
    color: #666;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3a5f;
}

/* 工程詳細頁面樣式 */

.project-detail {
    padding: 3rem 0;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.project-gallery {
    position: relative; /* 統一改為relative定位 */
    width: 100%;
    min-height: auto;
    height: auto;
    overflow: visible;
    display: block;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-carousel .carousel-slide.active {
    opacity: 1;
}

.gallery-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-carousel .carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-carousel .carousel-prev,
.gallery-carousel .carousel-next {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.gallery-carousel .carousel-prev:hover,
.gallery-carousel .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-carousel .carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gallery-carousel .carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-carousel .carousel-dots .dot.active {
    background: white;
}

.no-image {
    width: 100%;
    height: 500px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.no-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-info h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.project-meta {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item .icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.meta-item strong {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.meta-item p {
    margin: 0;
    color: #666;
}

.project-description h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.description-content {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 相關工程樣式 */
.related-projects {
    background: #f8f9fa;
    padding: 4rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 1.5rem;
}

.related-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.related-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.view-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.view-link:hover {
    text-decoration: underline;
}
    
    .company-title {
        flex-direction: column;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* 服務項目現代化樣式 */
.services-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.service-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.service-item-featured {
    grid-column: 1 / -1;
    max-width: none;
}

.service-visual {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.building-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="30" width="15" height="50" fill="%23fff"/><rect x="40" y="20" width="20" height="60" fill="%23fff"/><rect x="65" y="35" width="15" height="45" fill="%23fff"/></svg>');
}

.road-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10 50 Q30 30 50 50 T90 50" stroke="%23fff" stroke-width="6" fill="none"/><circle cx="20" cy="50" r="3" fill="%23fff"/><circle cx="50" cy="50" r="3" fill="%23fff"/><circle cx="80" cy="50" r="3" fill="%23fff"/></svg>');
}

.bridge-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10 60 Q50 30 90 60" stroke="%23fff" stroke-width="4" fill="none"/><rect x="10" y="60" width="80" height="8" fill="%23fff"/><rect x="25" y="40" width="2" height="20" fill="%23fff"/><rect x="50" y="30" width="2" height="30" fill="%23fff"/><rect x="75" y="40" width="2" height="20" fill="%23fff"/></svg>');
}

.water-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10 60 Q20 50 30 60 T50 60 T70 60 T90 60" stroke="%23fff" stroke-width="3" fill="none"/><path d="M10 70 Q20 60 30 70 T50 70 T70 70 T90 70" stroke="%23fff" stroke-width="3" fill="none"/><circle cx="30" cy="40" r="8" stroke="%23fff" stroke-width="2" fill="none"/></svg>');
}

.comprehensive-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="40" width="60" height="30" stroke="%23fff" stroke-width="2" fill="none"/><path d="M20 40 L50 20 L80 40" stroke="%23fff" stroke-width="2" fill="none"/><rect x="30" y="50" width="8" height="15" fill="%23fff"/><rect x="42" y="50" width="8" height="15" fill="%23fff"/><rect x="54" y="50" width="8" height="15" fill="%23fff"/></svg>');
}

.service-icon-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-icon-modern svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 2;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.service-details {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.service-item:hover .service-details {
    transform: translateY(0);
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 400;
}

.service-details li:last-child {
    border-bottom: none;
}

.service-info {
    padding: 2rem;
    background: white;
}

.service-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.service-info p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 工程分類頁面水平佈局 */
.project-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 320px;
}

.project-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-card-horizontal .project-gallery {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
}

.project-card-horizontal .photo-gallery {
    height: 100%;
    width: 100%;
}

.project-card-horizontal .gallery-container {
    height: 100%;
    width: 100%;
}

.project-card-horizontal .gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 300px; /* 限制最大高度 */
}

.project-card-horizontal .gallery-item img {
    width: 100%;
    height: 100%;
    max-height: 300px; /* 限制圖片最大高度 */
    object-fit: cover;
}

.project-card-horizontal .no-image {
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-horizontal .no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.project-card-horizontal .no-image-placeholder span {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.project-card-horizontal .project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.project-card-horizontal .project-header h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.project-card-horizontal .project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-card-horizontal .project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-card-horizontal .project-location,
.project-card-horizontal .project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.project-card-horizontal .project-actions {
    margin-top: auto;
}

.project-card-horizontal .btn {
    display: inline-block;
    background: linear-gradient(135deg, #2c5aa0, #4a7c7e);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.project-card-horizontal .btn:hover {
    background: linear-gradient(135deg, #1e3d6f, #3a6365);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* 修復水平佈局中的 gallery-overlay 高度問題 */
.project-card-horizontal .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    max-height: 300px; /* 限制最大高度 */
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .services-showcase {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .project-card-horizontal .project-gallery {
        flex: 0 0 280px;
        height: 280px;
        max-height: 280px;
    }
    
    .project-card-horizontal .gallery-item {
        max-height: 280px;
    }
    
    .project-card-horizontal .gallery-item img {
        max-height: 280px;
    }
    
    .project-card-horizontal .gallery-overlay {
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .services-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .service-item {
        border-radius: 16px;
    }

    .service-visual {
        height: 240px;
    }

    .service-icon-modern {
        width: 60px;
        height: 60px;
    }

    .service-icon-modern svg {
        width: 30px;
        height: 30px;
    }

    .service-info {
        padding: 1.5rem;
    }

    .service-info h3 {
        font-size: 1.2rem;
    }

    .service-overlay {
        padding: 1rem;
    }

    .service-details li {
        font-size: 0.85rem;
    }

    /* 工程分類頁面響應式 */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-gallery {
        height: 240px;
    }

    .no-image {
        height: 240px;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-header h3 {
        font-size: 1.1rem;
    }
    
    /* 水平佈局在手機上變為垂直佈局 */
    .project-card-horizontal {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .project-card-horizontal .project-gallery {
        flex: none;
        height: 250px;
        width: 100%;
        aspect-ratio: 4/3;
    }
    
    .project-card-horizontal .project-info {
        padding: 0;
    }
    
    .project-card-horizontal .project-header h3 {
        font-size: 1.1rem;
    }
    
    .project-card-horizontal .project-description {
        margin-bottom: 1rem;
    }
    
    .project-card-horizontal .project-meta {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .services-showcase {
        margin: 1rem 0;
    }

    .service-visual {
        height: 200px;
    }

    .service-info {
        padding: 1.25rem;
    }

    .feature-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    /* 工程分類頁面小屏幕響應式 */
    .project-gallery {
        height: 200px;
    }

    .no-image {
        height: 200px;
    }

    .project-info {
        padding: 1rem;
    }

    .project-header h3 {
        font-size: 1rem;
    }

    .project-meta {
        font-size: 0.85rem;
    }
    
    /* 水平佈局小屏幕響應式 */
    .project-card-horizontal {
        padding: 0.75rem;
    }
    
    .project-card-horizontal .project-gallery {
        height: 220px;
        aspect-ratio: 4/3;
    }
    
    .project-card-horizontal .project-header h3 {
        font-size: 1rem;
    }
    
    .project-card-horizontal .project-description {
        font-size: 0.9rem;
    }
    
    .project-card-horizontal .project-meta {
        font-size: 0.8rem;
    }
    
    .project-card-horizontal .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Lightbox 樣式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 證照圖片樣式 */
.certificate-item img {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.certificate-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 動畫效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
}

/* 合作夥伴頁面樣式 */
.partners-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-logo {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.05), rgba(74, 124, 126, 0.05));
    pointer-events: none;
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.partner-card:hover .partner-logo img {
    transform: scale(1.05);
}

.partner-content {
    padding: 2rem;
}

.partner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.partner-header h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.partner-website {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2c5aa0, #4a7c7e);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.partner-website:hover {
    background: linear-gradient(135deg, #1e3d6f, #3a6365);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.website-icon {
    font-size: 1rem;
}

.partner-description {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.partner-description p {
    margin: 0;
    text-align: justify;
}

.no-partners {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-content-illustration {
    display: inline-block;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.illustration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-content-illustration h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.no-content-illustration p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .partners-showcase {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .partners-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .partner-card {
        border-radius: 12px;
    }

    .partner-content {
        padding: 1.5rem;
    }

    .partner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .partner-header h3 {
        font-size: 1.25rem;
    }

    .partner-website {
        align-self: flex-end;
    }

    .partner-logo {
        height: 160px;
    }

    .no-partners {
        padding: 3rem 1rem;
    }

    .no-content-illustration {
        padding: 2rem;
    }

    .illustration-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .partner-content {
        padding: 1.25rem;
    }

    .partner-header h3 {
        font-size: 1.1rem;
    }

    .partner-website {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .partner-logo {
        height: 140px;
    }

    .partner-description {
        font-size: 0.95rem;
    }
}

