/* 全局樣式 */
:root {
    /* 主色調 - 深藍漸變到紫色 */
    --primary-gradient: linear-gradient(45deg, #2b4acb, #8644ff);
    --primary-color: #2b4acb;
    --secondary-color: #8644ff;
    
    /* 輔助色 */
    --accent-color: #00e5ff;
    --success-color: #00c853;
    --warning-color: #ffd600;
    
    /* 背景色 */
    --light-bg: #f8f9ff;
    --dark-bg: #1a1f36;
    
    /* 文字色 */
    --text-primary: #2c3e50;
    --text-secondary: #596677;
    --text-light: #ffffff;
    
    /* 覆蓋 Bootstrap 的默認背景色 */
    --bs-body-bg: #1a1f36;  /* 設置深色背景 */
    --main-gradient: linear-gradient(135deg, rgba(27, 36, 71, 0.97), rgba(33, 28, 69, 0.97));
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-light);
    line-height: 1.8;
    padding-top: 76px;  /* 導航欄高度 + padding */
    background: var(--main-gradient) fixed;
    min-height: 100vh;
}

/* Hero 區塊 */
.hero-section {
    margin-top: -76px;  /* 與 body padding-top 相同 */
    padding-top: 76px;  /* 確保內容不被導航欄遮擋 */
    background: none;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 主要遮罩 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 36, 71, 0.92),
        rgba(33, 28, 69, 0.95) 50%,
        rgba(43, 74, 203, 0.85)
    );
    z-index: 1;
}

/* 動態效果遮罩 */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(134, 68, 255, 0.1) 0%,
        transparent 50%
    );
    animation: rotate 30s linear infinite;
    z-index: 2;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Hero 文字樣式 */
.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    background: linear-gradient(to right, 
        #ffffff 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    animation: fadeInDown 1s ease, glowText 3s ease-in-out infinite alternate;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0)
    );
    border-radius: 2px;
}

.hero-section .lead {
    font-size: 1.5rem;
    line-height: 1.8;
    margin: 2rem 0 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

/* 按鈕組樣式 */
.hero-section .btn-group {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-section .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-section .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary-color);
}

.hero-section .btn-light:hover {
    background: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-section .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* 文字發光動畫 */
@keyframes glowText {
    0% {
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 5px 25px rgba(255, 255, 255, 0.5);
    }
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
        padding-left: 15px;
    }
    
    .hero-section .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-section .btn {
        width: 100%;
        text-align: center;
    }
}

/* 滾動提示 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 3;
    animation: fadeInUp 1s ease 1s both, bounce 2s infinite 2s;
}

.scroll-hint i {
    font-size: 2rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 服務特色區塊 */
.features-section {
    display: none;
}

/* 標題樣式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 特色卡片 */
.feature-card {
    display: none;
}

/* 背景裝飾 */
.features-section::after {
    display: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .features-section {
        display: none;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .feature-card {
        display: none;
    }
}

/* 頁面加載時確保 features-section 可見 */
body:not(.loaded) .features-section {
    display: none !important;
}

/* 確保 section-title 在 features-section 中正確顯示 */
.features-section .section-title {
    display: none !important;
}

.features-section .section-title h2 {
    display: none !important;
}

.features-section .section-title p {
    display: none !important;
}

/* 服務流程區塊 */
.process-section {
    background: linear-gradient(135deg,
        rgba(30, 38, 75, 0.97),
        rgba(35, 30, 72, 0.97)
    );
    color: white;
    padding: 80px 0;
    position: relative;
}

/* 背景裝飾 */
.process-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

/* 流程步驟 */
.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 步驟數字 */
.step-number {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--primary-gradient);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* 步驟標題 */
.process-step h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

/* 步驟描述 */
.process-step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* 連接線 */
.process-step::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    z-index: 0;
}

.process-step:last-child::after {
    display: none;
}

/* 區塊標題 */
.process-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.process-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.1)
    );
    border-radius: 2px;
}

/* 響應式調整 */
@media (max-width: 991px) {
    .process-step::after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 30px;
    }
    
    .process-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 60px 0;
    }
    
    .process-step {
        margin-bottom: 20px;
    }
}

/* 作品展示 */
.portfolio-section {
    padding: 20px 0;
    background: none;
    color: white;
}

.portfolio-item {
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

/* 篩選按鈕區塊樣式 */
.portfolio-filter {
    padding: 20px 0;
    border-radius: 12px;
    margin: 20px 0 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(43, 74, 203, 0.2);
}

.filter-buttons {
    margin: 0;
    padding: 10px;
}

.btn-filter {
    margin: 5px;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(43, 74, 203, 0.1);
    border: 1px solid rgba(134, 68, 255, 0.2);
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-filter:hover {
    background: rgba(134, 68, 255, 0.2);
    border-color: rgba(134, 68, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.btn-filter.active {
    background: var(--main-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(43, 74, 203, 0.3);
    transform: translateY(-1px);
}

/* 作品卡片容器 */
.row.g-4 {
    background: transparent; /* 確保行容器背景是透明的 */
}

/* 作品卡片圖片容器 */
.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(26, 31, 54, 0.3); /* 稍微加深卡片背景 */
}

/* 作品卡片遮罩 */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 31, 54, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

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

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

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

.portfolio-overlay .content {
    text-align: center;
    padding: 20px;
    color: white;
}

.portfolio-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.portfolio-overlay .category {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.portfolio-overlay .btn {
    padding: 8px 25px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.portfolio-overlay .btn:hover {
    background: white;
    color: var(--secondary-color);
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 50px 0;
    }
}

/* 客戶評價 */
.testimonial-section {
    background: linear-gradient(135deg,
        rgba(30, 38, 75, 0.97),
        rgba(35, 30, 72, 0.97)
    );
    color: white;
    padding: 80px 0;
    position: relative;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    color: white;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 評分星星 */
.testimonial-card .fa-star {
    color: #ffd700;
    margin-right: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 評價內容 */
.testimonial-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* 客戶資訊 */
.testimonial-card .testimonial-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5rem;
}

.testimonial-card h5 {
    color: white;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.testimonial-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

/* 按鈕樣式 */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(43, 74, 203, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(43, 74, 203, 0.3);
}

/* 導航欄 */
.navbar {
    background: linear-gradient(to right, rgba(43, 74, 203, 0.98), rgba(134, 68, 255, 0.98));
    transition: all 0.3s ease;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-scrolled {
    background: linear-gradient(to right, rgba(27, 36, 71, 0.98), rgba(33, 28, 69, 0.98)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 5px 0;
}

/* Logo 區域樣式 */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
}

/* Logo 圖片容器 */
.brand-logo {
    position: relative;
    margin-right: 20px;
    padding-right: 20px;
}

.brand-logo::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0));
}

.brand-logo img {
    height: 35px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

/* 品牌文字容器 */
.brand-text {
    line-height: 1.2;
    position: relative;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.brand-slogan {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.brand-slogan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 15px;
    height: 1px;
    background: rgba(255,255,255,0.6);
    transform: translateY(-50%);
}

/* 滾動效果 */
.navbar-scrolled .brand-logo img {
    height: 30px;
}

.navbar-scrolled .brand-title {
    color: white;
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-scrolled .brand-slogan {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-scrolled .brand-logo::after {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
}

/* 響應式調整 */
@media (max-width: 768px) {
    .brand-logo {
        margin-right: 15px;
        padding-right: 15px;
    }

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

    .brand-slogan {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

/* 導航連結間距調整 */
.navbar .nav-link {
    padding: 6px 16px !important;
}

.navbar-scrolled .nav-link {
    padding: 4px 16px !important;
}

/* 聯絡按鈕調整 */
.navbar .contact-btn {
    padding: 6px 20px !important;
}

.navbar-scrolled .contact-btn {
    padding: 4px 18px !important;
}

/* 滾動後的所有導航連結顏色 */
.navbar-scrolled .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-scrolled .navbar-nav .nav-link:hover {
    color: white !important;
}

/* 滾動後的聯絡按鈕保持白色文字 */
.navbar-scrolled .navbar-nav .contact-btn {
    color: white !important;
}

/* 導航連結基本樣式 */
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 80%;
}

/* 聯絡按鈕 */
.navbar .contact-btn {
    background: var(--primary-gradient);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 8px 20px !important;
    margin-left: 10px;
}

.navbar .contact-btn:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.navbar .contact-btn::after {
    display: none;
}

/* 響應式調整 */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(to bottom, rgba(43, 74, 203, 0.98), rgba(134, 68, 255, 0.98));
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .navbar-collapse .nav-link:hover {
        color: white !important;
    }

    .navbar-collapse .contact-btn {
        margin: 10px 0;
        text-align: center;
    }
}

/* 頁面標題區塊 */
.page-header {
    background: none;
    color: white;
    padding: 60px 0;  /* 減少上下間距 */
    position: relative;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 2.8rem;  /* 減小標題字體大小 */
    font-weight: 700;
    margin-bottom: 0.5rem;  /* 減少標題下方間距 */
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header .lead {
    font-size: 1.1rem;  /* 減小副標題字體大小 */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;  /* 移除底部間距 */
}

/* 更新日期樣式 */
.page-header .update-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-style: italic;
}

.page-header .update-date i {
    color: var(--secondary-color);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;  /* 手機版更小的間距 */
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .page-header .update-date {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
}

/* 技術能力圖標 */
.skills-section {
    background: linear-gradient(135deg,
        rgba(27, 36, 71, 0.97),
        rgba(33, 28, 69, 0.97)
    );
    color: white;
    padding: 80px 0;
    position: relative;
}

.skills-section i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.skills-section .col-4:hover i {
    transform: scale(1.2);
}

/* 聯絡卡片 */
.contact-section {
    background: none;
    color: white;
    padding: 80px 0;
    position: relative;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(43, 74, 203, 0.1);
}

/* 頁尾樣式 */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2f4c 100%);
    color: var(--text-light);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

/* 添加背景動態效果 */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* 頁尾標題 */
footer h5 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
}

/* 頁尾文字 */
footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* 社群媒體連結 */
footer .social-links {
    margin-top: 20px;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer .social-links a:hover {
    transform: translateY(-5px);
    background: var(--primary-gradient);
    box-shadow: 0 5px 15px rgba(134, 68, 255, 0.3);
}

/* 社群媒體連結懸停效果增強 */
footer .social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

footer .social-links a:hover::before {
    opacity: 1;
}

footer .social-links a i {
    transition: transform 0.3s ease;
}

footer .social-links a:hover i {
    transform: scale(1.2);
}

/* 聯絡資訊 */
footer .contact-info {
    margin-bottom: 20px;
}

footer .contact-info p {
    margin-bottom: 0.5rem; /* 原來默認的margin-bottom通常是1rem，這裡縮短為一半 */
}

footer .contact-info i {
    width: 25px;
    color: var(--secondary-color);
    margin-right: 10px;
}

/* 版權資訊 */
footer .copyright {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* 法律連結樣式增強 */
.legal-links a {
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.legal-links a:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

footer .list-unstyled a {
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

/* 頁腳連結滑鼠懸停效果 */
footer .list-unstyled a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
    text-decoration: none;
}

/* 頁腳連結滑鼠懸停時添加左側邊框效果 */
footer .list-unstyled a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transform: translateY(-50%);
    transition: width 0.3s ease;
    opacity: 0;
}

footer .list-unstyled a:hover::before {
    width: 8px;
    opacity: 1;
}

/* 響應式調整 */
@media (max-width: 768px) {
    footer {
        padding: 50px 0 20px;
    }
    
    footer .col-md-4 {
        margin-bottom: 40px;
    }
}

/* 團隊卡片 */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    height: 250px;
    object-fit: cover;
}

/* 核心價值卡片 */
.core-values .card {
    transition: transform 0.3s ease;
}

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

.core-values .card i {
    color: var(--primary-color);
}

/* 服務卡片 */
.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* 專案詳情 */
.project-detail {
    background: linear-gradient(135deg, rgba(27, 36, 71, 0.97), rgba(33, 28, 69, 0.97));
    color: white;
    padding: 80px 0;
}

.project-carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.project-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.project-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.project-info strong {
    color: var(--secondary-color);
    margin-right: 10px;
}

.project-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.project-description h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* 相關專案樣式 */
.related-projects {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-projects h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* 輪播控制按鈕樣式 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--secondary-color);
}

/* 地圖容器 */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 450px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 個人介紹區塊 */
.about-intro {
    background: linear-gradient(135deg,
        rgba(27, 36, 71, 0.97),
        rgba(33, 28, 69, 0.97)
    );
    color: white;
    padding: 100px 0;
    position: relative;
}

/* 個人介紹內容 */
.about-intro .about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-intro .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.about-intro .lead {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.about-intro p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 分隔線效果 */
.about-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

/* 關於我們區塊 */
.about-section {
    background: linear-gradient(135deg,
        rgba(30, 38, 75, 0.97),
        rgba(35, 30, 72, 0.97)
    );
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 關於我們內容 */
.about-content {
    padding-right: 50px;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.about-content .lead {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.about-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 特色列表 */
.about-features {
    display: grid;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* 圖片區域 */
.about-image {
    position: relative;
    overflow: hidden;
    max-width: 400px;  /* 降低最大寬度 */
    margin: 0 auto;
    aspect-ratio: 3/4;  /* 改為更適合長圖的比例 */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;  /* 從上方開始顯示圖片 */
    transition: transform 0.3s ease;
}

/* 移除 hover 效果 */
.about-image:hover img {
    transform: none;
}

/* 經驗徽章 */
.experience-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-gradient);
    padding: 5px 5px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 響應式調整 */
@media (max-width: 991px) {
    .about-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .about-image {
        max-width: 350px;  /* 平板尺寸 */
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }
    
    .about-image {
        max-width: 300px;  /* 手機尺寸 */
        aspect-ratio: 2/3;  /* 手機版更窄的比例 */
    }
}

/* 關於我們按鈕 */
.about-content .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.about-content .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.about-content .btn-outline-light i {
    transition: transform 0.3s ease;
}

.about-content .btn-outline-light:hover i {
    transform: translateX(5px);
}

/* 統一區塊標題樣式 */
.section-title,
.about-section h2,
.process-section h2,
.portfolio-section h2,
.testimonial-section h2,
.skills-section h2,
.contact-section h2 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 20px;
}

/* 標題下方裝飾線 */
.section-title::after,
.about-section h2::after,
.process-section h2::after,
.portfolio-section h2::after,
.testimonial-section h2::after,
.skills-section h2::after,
.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.1)
    );
    border-radius: 2px;
}

/* 副標題樣式 */
.section-title p,
.process-section p.lead,
.portfolio-section p.lead,
.testimonial-section p.lead,
.skills-section p.lead,
.contact-section p.lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .section-title,
    .about-section h2,
    .process-section h2,
    .portfolio-section h2,
    .testimonial-section h2,
    .skills-section h2,
    .contact-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .section-title p,
    .process-section p.lead,
    .portfolio-section p.lead,
    .testimonial-section p.lead,
    .skills-section p.lead,
    .contact-section p.lead {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* 複製按鈕樣式 */
.contact-info .btn-outline-light {
    padding: 2px 10px;
    font-size: 0.8rem;
    border-width: 1px;
}

.contact-info .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Toast 提示樣式 */
.toast {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toast-body {
    padding: 12px 20px;
    color: var(--primary-color);
    font-weight: 500;
}

/* 時間軸區塊 */
.timeline-section {
    background: linear-gradient(135deg,
        rgba(30, 38, 75, 0.97),
        rgba(35, 30, 72, 0.97)
    );
    color: white;
    padding: 100px 0;
    position: relative;
}

/* 時間軸容器 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 時間軸中線 */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

/* 時間軸項目 */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 50px;
}

/* 時間軸圓點 */
.timeline-dot {
    position: absolute;
    right: -9px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -9px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(134, 68, 255, 0.5);
}

/* 時間軸內容 */
.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 時間標籤 */
.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 70px;
    }
    
    .timeline-dot {
        left: 21px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

/* 導航文字效果 */
.nav-text {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-text-zh {
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-text-en {
    position: absolute;
    left: 24px;  /* 圖標寬度 + 間距 */
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link:hover .nav-text-zh {
    opacity: 0;
}

.nav-link:hover .nav-text-en {
    opacity: 1;
}

/* 保持圖標位置固定 */
.nav-link i {
    width: 16px;  /* 固定圖標寬度 */
    margin-right: 8px;
}

/* 手機版導航調整 */
@media (max-width: 768px) {
    .nav-text {
        padding: 3px 0;
    }
    
    .nav-text-en {
        left: 24px;  /* 保持與桌面版一致 */
    }
}

/* 服務頁面樣式 */
.service-category {
    position: relative;
    background: linear-gradient(135deg, rgba(27, 36, 71, 0.97), rgba(33, 28, 69, 0.97));
    color: white;
}

.service-category:nth-child(even) {
    background: linear-gradient(135deg, rgba(33, 28, 69, 0.97), rgba(27, 36, 71, 0.97));
}

.service-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card-body {
    padding: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.service-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.features-list {
    margin-bottom: 2rem;
}

.features-list h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.features-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.service-price .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.service-price .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-price {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* 服務流程樣式 */
.service-process {
    background: linear-gradient(135deg, rgba(27, 36, 71, 0.97), rgba(33, 28, 69, 0.97));
    color: white;
    padding: 100px 0;
    position: relative;
}

.service-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.process-step {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.step-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.process-step p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

.process-step:hover .step-icon {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.process-step:hover .step-icon i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .process-step {
        margin-bottom: 40px;
    }
    
    .process-step:last-child {
        margin-bottom: 0;
    }
}

/* FAQ頁面樣式 */
.faq-section {
    position: relative;
    background: linear-gradient(135deg, rgba(27, 36, 71, 0.97), rgba(33, 28, 69, 0.97));
    color: white;
    padding: 100px 0;
}

.faq-wrapper {
    position: relative;
    z-index: 1;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-button {
    background: transparent;
    color: white;
    font-size: 1.1rem;
    padding: 20px;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    line-height: 1.8;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .faq-section {
        padding: 50px 0;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 15px;
    }
}

/* 聯絡表單頁面樣式 */
.contact-form-section {
    position: relative;
    background: none;
    color: white;
    padding: 100px 0;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(134, 68, 255, 0.25);
}

.contact-form .form-floating label {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--secondary-color);
}

.contact-form .btn-primary {
    padding: 15px 40px;
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(134, 68, 255, 0.3);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 50px 0;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* 聯絡資訊區塊樣式 */
.contact-info-section {
    position: relative;
    background: none;
    padding: 100px 0;
    color: white;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.contact-card .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.contact-card .btn-outline-light:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-info-section {
        padding: 50px 0;
    }
    
    .contact-card {
        padding: 20px;
    }
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-section {
    position: relative;
    background: none;
    color: white;
    padding: 100px 0;
}

.contact-info-section {
    position: relative;
    background: none;
    padding: 10px 0;
    color: white;
}

/* 浮動按鈕樣式 */
.floating-buttons {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

/* LINE浮動按鈕樣式 */
.line-btn {
    background: linear-gradient(45deg, #06C755, #00B900);
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* 浮動按鈕懸停效果增強 */
.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-btn:hover::before {
    opacity: 1;
}

.floating-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.floating-btn:hover i {
    transform: scale(1.2);
}

.scroll-top-btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .floating-btn i {
        font-size: 1.2rem;
    }
}

/* reCAPTCHA 樣式調整 */
.g-recaptcha {
    transform-origin: center;
    -webkit-transform-origin: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        -webkit-transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
    }
}

.description-content {
    line-height: 1.5;
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 移除 br 後的空白行 */
.description-content br + br {
    display: none;
}

/* 使用段落間距來控制間距 */
.description-content p {
    margin: 0;
    padding: 0;
}

/* 處理換行 */
.description-content br {
    content: "";
    display: block;
    margin-top: 0.5em;
}

/* 縮圖導航樣式 */
.thumbnail-nav {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail-nav::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.thumbnail-item {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item img.active {
    opacity: 1;
    border: 2px solid var(--secondary-color);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .thumbnail-item {
        flex: 0 0 80px;
        height: 60px;
    }
}

/* 篩選按鈕樣式 */
.portfolio-filter {
    padding: 20px 0;
    border-radius: 12px;
    margin: 1px 0 1px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(43, 74, 203, 0.2);
}

.filter-buttons {
    margin: 0;
    padding: 10px;
}

.btn-filter {
    background: rgba(43, 74, 203, 0.1);
    border: 1px solid rgba(134, 68, 255, 0.2);
    color: var(--text-light);
}

.btn-filter:hover {
    background: rgba(134, 68, 255, 0.2);
    border-color: rgba(134, 68, 255, 0.3);
}

.btn-filter.active {
    background: var(--main-gradient);
    border-color: transparent;
}

/* 作品卡片動畫 */
.portfolio-item {
    transition: all 0.5s ease;
    position: relative;
    margin-bottom: 30px;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.col-lg-4 {
    transition: all 0.3s ease;
}

/* 錯誤頁面樣式 */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(27, 36, 71, 0.97), rgba(33, 28, 69, 0.97));
}

.error-content {
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1;
}

.error-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.error-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-actions {
    margin-top: 30px;
}

.error-actions .btn {
    padding: 12px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
}

/* 團隊介紹區塊 */
.team-section {
    background: linear-gradient(135deg, rgba(27,36,71,0.97), rgba(33,28,69,0.97));
    color: white;
    padding: 100px 0 80px;
    position: relative;
}

.team-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.team-section h2::after {
    content: '';
    display: block;
    margin: 18px auto 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    border-radius: 2px;
}

.team-section .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    line-height: 1.8;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(43,74,203,0.05);
}

.team-section .card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 100%;
}

.team-section .card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px 0 rgba(134,68,255,0.15);
    border-color: var(--secondary-color);
}

.team-section .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-section .card-body {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.team-section .card-body ul {
    padding-left: 1.2em;
    margin-bottom: 0;
}

.team-section .card-body ul li {
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    margin-bottom: 0.3em;
    list-style: disc;
}

.team-section .card-body p.text-muted {
    color: var(--secondary-color) !important;
    font-size: 1.05rem;
    margin-bottom: 0.7em;
}

.team-section .card-body i {
    font-size: 1.3em;
    vertical-align: middle;
}

.team-section .mb-3, .team-section .mb-2 {
    margin-bottom: 1.2em !important;
}

.team-section .mt-5 {
    margin-top: 3em !important;
}

.team-section .text-center strong {
    color: var(--accent-color);
    font-weight: 700;
}

.team-section .fa-puzzle-piece {
    color: var(--accent-color);
}

@media (max-width: 991px) {
    .team-section {
        padding: 60px 0 40px;
    }
    .team-section .card-body {
        padding: 1.5rem 1rem 1rem 1rem;
    }
}

@media (max-width: 767px) {
    .team-section {
        padding: 40px 0 20px;
    }
    .team-section .lead {
        font-size: 1rem;
        padding: 12px 8px;
    }
    .team-section .card {
        margin-bottom: 20px;
    }
}

/* 團隊合作方式美化 */
.team-section .team-collab-box {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(134,68,255,0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.2em 2em 1.5em 2em;
    margin: 0 auto 0 auto;
    max-width: 600px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.team-section .team-collab-box:hover {
    box-shadow: 0 8px 32px 0 rgba(134,68,255,0.18);
    border-color: var(--accent-color);
}

.team-section .team-collab-box h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1em;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.team-section .team-collab-box i {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-right: 0.5em;
}

.team-section .team-collab-box p {
    color: rgba(255,255,255,0.92);
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 0;
}

.team-section .team-collab-box strong {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1em;
}

@media (max-width: 767px) {
    .team-section .team-collab-box {
        padding: 1.2em 0.8em 1em 0.8em;
        max-width: 98vw;
    }
    .team-section .team-collab-box h5 {
        font-size: 1.1rem;
    }
}

/* 專案介紹文字樣式 */
.project-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

.project-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--secondary-color),
        transparent
    );
}

.project-intro br {
    content: "";
    display: block;
    margin: 0.8em 0;
}

.project-intro .highlight {
    display: inline-block;
    margin-top: 0.5em;
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
    padding: 0 5px;
}

.project-intro .highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.3;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .project-intro {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
        margin-bottom: 2rem;
    }
}

/* 成人內容確認視窗樣式 */
.swal2-popup {
    background: rgba(30, 38, 75, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.swal2-title, .swal2-content {
    color: white;
}

.swal2-confirm {
    background: var(--primary-gradient) !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* 成人內容確認視窗樣式 */
.adult-confirm-popup {
    background: rgba(30, 38, 75, 0.95) !important;
    border: 1px solid rgba(134, 68, 255, 0.2) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 2rem !important;
}

.adult-confirm-title {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.adult-confirm-content {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
}

.adult-warning p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.adult-warning p:last-child {
    margin-top: 1.5rem;
    font-weight: 500;
    color: var(--accent-color);
}

.adult-confirm-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.adult-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(134, 68, 255, 0.3) !important;
}

.adult-cancel-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.adult-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* 修改SweetAlert2的圖標顏色 */
.swal2-icon.swal2-warning {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

/* 載入動畫樣式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 31, 54, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.code-container {
    max-width: 600px;
    width: 90%;
    background: rgba(21, 25, 44, 0.95);
    border-radius: 12px;
    padding: 25px;
    font-family: 'Consolas', 'Monaco', monospace;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(134, 68, 255, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.code-line {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
    padding-left: 20px;
    min-height: 24px;
}

.code-keyword {
    color: #ff79c6;
}

.code-function {
    color: #50fa7b;
}

.code-variable {
    color: #8be9fd;
}

.code-class {
    color: #bd93f9;
}

.code-string {
    color: #f1fa8c;
}

.code-method {
    color: #ffb86c;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    animation: blink 1s step-end infinite;
    font-weight: bold;
    color: var(--accent-color);
}

.loading-progress {
    margin-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

.loading-text {
    display: block;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* 網址公告頁面樣式 - 修改版 */
.domains-content {
    /* 移除背景和邊框相關樣式 */
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 2rem;
}

/* 保留其他樣式不變 */
.domain-card {
    background: rgba(40, 48, 85, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.domain-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.active-domains .domain-title i {
    color: #4CAF50;
}

.inactive-domains .domain-title i {
    color: #F44336;
}

.domain-table {
    color: #fff;
    margin-bottom: 1.5rem;
}

.domain-table th {
    background-color: rgba(134, 68, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.domain-table td {
    border-color: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
}

.domain-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.domain-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.domain-info.alert-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #FF9800;
}

.domain-info.alert-warning p {
    color: #FF5252; /* 紅色文字 */
    font-weight: 500; /* 稍微加粗 */
}

.domain-info.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
}

.domain-info.alert-info p {
    color: #FFFFFF; /* 白色文字 */
    font-weight: 500; /* 稍微加粗 */
}

@media (max-width: 767px) {
    .domains-content {
        padding: 1.5rem;
    }
    
    .domain-card {
        padding: 1rem;
    }
    
    .domain-title {
        font-size: 1.3rem;
    }
    
    .domain-table {
        font-size: 0.9rem;
    }
}

/* 開放式子網域卡片樣式 */
.shared-domains .domain-title i {
    color: #2196F3; /* 藍色圖標，代表共享 */
}

/* 服務條款頁面樣式 */
.terms-section {
    background: linear-gradient(135deg, rgba(27, 36, 71, 0.97), rgba(33, 28, 69, 0.97));
    color: white;
    padding: 80px 0;
    position: relative;
}

.terms-content {
    background: rgba(40, 48, 85, 0.5);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    position: relative;
    padding-left: 0.5rem;
    border-left: 3px solid var(--secondary-color);
}

.terms-body {
    padding-left: 1rem;
}

.terms-body p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.terms-footer {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .terms-section {
        padding: 50px 0;
    }
    
    .terms-content {
        padding: 1.5rem;
    }
    
    .terms-title {
        font-size: 1.3rem;
    }
    
    .terms-body {
        padding-left: 0.5rem;
    }
}

/* 版權區塊和法律連結樣式 */
.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.legal-links a {
    font-size: 0.85rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.legal-links a:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

@media (max-width: 767px) {
    .legal-links {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legal-links a {
        margin: 5px 10px;
        font-size: 0.8rem;
    }
}

/* 聯絡表單隱私權政策連結樣式 */
.contact-form-section .text-muted a {
    text-decoration: underline;
    transition: color 0.3s ease;
    position: relative;
}

.contact-form-section .text-muted a:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

.contact-form-section .text-muted a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.contact-form-section .text-muted a:hover::after {
    width: 100%;
}

/* 頁面加載時確保 features-section 可見 */
body:not(.loaded) .features-section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
}

/* 確保 section-title 在 features-section 中正確顯示 */
.features-section .section-title {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    margin-bottom: 60px !important;
}

.features-section .section-title h2 {
    color: white !important;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.features-section .section-title p {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 服務特色區塊 - 全新設計 */
.service-highlights {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(30, 38, 75, 0.97), rgba(35, 30, 72, 0.97));
    position: relative;
    overflow: hidden;
}

/* 背景裝飾 */
.service-highlights::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(43, 74, 203, 0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

.service-highlights .container {
    position: relative;
    z-index: 2;
}

.highlights-header {
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.highlights-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.highlights-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8644ff, #5c27fe);
    border-radius: 3px;
}

.highlights-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #8644ff, #5c27fe);
    transition: height 0.4s ease;
}

.highlight-item:hover::before {
    height: 100%;
}

.highlight-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8644ff 0%, #5c27fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(92, 39, 254, 0.3);
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 25px rgba(92, 39, 254, 0.5);
}

.highlight-icon i {
    font-size: 28px;
    color: #fff;
    transition: all 0.4s ease;
}

.highlight-item:hover .highlight-icon i {
    transform: scale(1.2);
}

.highlight-content {
    color: #fff;
}

.highlight-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-content h3 {
    transform: translateX(10px);
    color: #8644ff;
}

.highlight-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-content p {
    opacity: 1;
}

/* 響應式調整 */
@media (max-width: 991px) {
    .highlights-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .highlight-item {
        padding: 25px;
    }
    
    .highlight-icon {
        width: 60px;
        height: 60px;
    }
    
    .highlight-icon i {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .service-highlights {
        padding: 60px 0;
    }
    
    .highlights-header h2 {
        font-size: 2rem;
    }
    
    .highlights-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* 修復列表樣式問題 */
footer .list-unstyled a {
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

/* 頁腳連結滑鼠懸停效果 */
footer .list-unstyled a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
    text-decoration: none;
}

/* 頁腳連結滑鼠懸停時添加左側邊框效果 */
footer .list-unstyled a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transform: translateY(-50%);
    transition: width 0.3s ease;
    opacity: 0;
}

footer .list-unstyled a:hover::before {
    width: 8px;
    opacity: 1;
}