:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #007bff;
    --text-color: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

/* 添加背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 10px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 10px
        );
    z-index: -1;
}

/* 添加動態光效 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 123, 255, 0.05) 0%,
        transparent 50%
    );
    z-index: -1;
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* 導航欄基礎樣式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

/* 主要內容區域樣式 */
section {
    padding: 5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero 區域樣式 */
.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
}

/* 修改流動效果為曲線 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(0, 123, 255, 0.08) 25%,  /* 降低藍色透明度 */
            transparent 50%,
            rgba(0, 123, 255, 0.08) 75%,  /* 降低藍色透明度 */
            transparent 100%
        );
    animation: flow 15s linear infinite;
    z-index: 1;
}

/* 修改第二層流動效果為曲線 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(0, 123, 255, 0.05) 25%,  /* 降低藍色透明度 */
            transparent 50%,
            rgba(0, 123, 255, 0.05) 75%,  /* 降低藍色透明度 */
            transparent 100%
        );
    animation: flow 10s linear infinite reverse;
    z-index: 1;
}

/* 添加深色遮罩 */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* 調整內容位置 */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.hero-column {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.hero-column h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-column p {
    font-size: 1.2em;
    color: #fff;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 添加分隔线 */
.hero-column:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* 流動動畫 */
@keyframes flow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 修改波浪效果 */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23000' fill-opacity='0.3' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,181.3C672,192,768,160,864,144C960,128,1056,128,1152,144C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    animation: wave 8s linear infinite;
    z-index: 2;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1440px;
    }
}

/* 修改 services 區塊樣式 */
.services {
    position: relative;
    padding: 4rem 0;  /* 减小顶部内边距 */
}

/* 各个 service 的背景色 */
.service-1 {
    background-color: rgb(0, 66, 172); /* 深蓝色 */
}

.service-2 {
    background-color: rgba(204, 29, 29, 0.7); /* 淡粉色 */
}

.service-3 {
    background-color: rgba(0, 46, 0, 0.7); /* 淡绿色 */
}

.service-4 {
    background-color: rgba(151, 65, 4, 0.7); /* 淡橙色 */
}

.service-5 {
    background-color: rgba(234, 180, 4, 0.7); /* 淡橙色 */
}

/* 如果需要渐变效果 */
.service-1 {
    background: linear-gradient(135deg, rgba(49, 111, 162, 0.7), rgba(230, 238, 245, 0.7));
}

.service-2 {
    background: linear-gradient(135deg, rgba(244, 127, 135, 0.7), rgba(245, 230, 235, 0.7));
}

.service-3 {
    background: linear-gradient(135deg, rgba(132, 184, 132, 0.7), rgba(230, 245, 230, 0.7));
}

.service-4 {
    background: linear-gradient(135deg, rgba(224, 159, 113, 0.7), rgba(245, 235, 228, 0.7));
}

.service-5 {
    background: linear-gradient(135deg, rgba(234, 180, 4, 0.7), rgba(245, 235, 228, 0.7));
}

/* 修改服務內容容器 */
.services .container {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    padding-right: 10%;  /* 添加右侧内边距 */
}

.services h1 {
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: left;
    font-size: 4rem;
}

/* 按鈕樣式 */
.service-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    align-items: center;
}

/* 按鈕基礎樣式 */
.service-button {
    padding: 0.8rem 2rem;
    background-color: transparent !important; /* 確保背景透明 */
    border: 2px solid #ffffff !important; /* 確保邊框存在 */
    color: #ffffff !important; /* 確保文字顏色 */
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

/* 按鈕懸停效果 */
.service-button:hover {
    background-color: #ffffff !important; /* 確保背景變白 */
    color: #000000 !important; /* 確保文字變黑 */
}

/* 確保按鈕在背景效果之上 */
.service-content {
    position: relative;
    z-index: 2;
}

/* 移除原有的服務卡片樣式 */
.services-grid {
    display: none;
}

/* 表單樣式 */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(5px);
    color: var(--text-color);
}

button {
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background-color: #0056b3;
}

/* 動畫效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

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

/* 響應式設計 */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        padding: 0;
        margin: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 2.5rem 0;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-column {
        margin-bottom: 30px;
    }
    
    .hero-column:first-child::after {
        display: none;
    }
    
    .hero-column:last-child {
        margin-bottom: 0;
    }
}

/* 添加玻璃態效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo {
    display: flex;
    align-items: center;
}

/* 最後一個 section 不需要底部間距 */
section:last-child {
    margin-bottom: 0;
}

/* 確保主要內容區域在導航欄下方 */
main {
    margin-top: 70px; /* 為固定導航欄留出空間 */
    position: relative;
    z-index: 1;
}

/* 確保所有 section 都在導航欄下方 */
section {
    position: relative;
    z-index: 1;
}

/* dc頁面的樣式 */

.datacenter-content {
    margin-bottom: 1rem; /* 减小 section 之间的间距 */
}

.content-card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem; /* 减小内边距 */
    margin: 1rem 0; /* 减小卡片之间的间距 */
}

.content-card h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-card h2 {
    color: #444;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.content-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.1rem;
    font-size: 1.1rem;
}

.service-details {
    margin-bottom: 1rem; /* 减小内容区域的下边距 */
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem; /* 减小图片容器的上边距 */
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.text-content {
    flex: 1;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}

.feature-list li i {
    color: #4CAF50; /* 绿色对勾 */
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.feature-list2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list2 li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #d9d6d6;
}

.feature-list2 li i {
    color: #4CAF50; /* 绿色对勾 */
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .text-content, .image-container {
        width: 100%;
    }
}

/* 圆形家图标按钮样式 */
.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.home-button i {
    font-size: 1.2em;
}

.home-button:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.1);
}

/* 项目轮播样式 */
.project-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow-x: auto;
    position: relative;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth; /* 添加平滑滚动 */
}

.project-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.project-track {
    display: flex;
    width: max-content;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding: 10px 0;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.project-item {
    flex: 0 0 300px;
    margin: 0 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.project-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .project-item {
        flex: 0 0 250px;
    }
    
    .project-item img {
        height: 350px;
    }
}

.dotted-link {
    text-decoration: none;
    border-bottom: 1px dotted rgba(200, 200, 200, 0.5);
    transition: border-bottom 0.3s ease;
    padding-bottom: 4px;
    margin-bottom: 2px;
    display: inline-block;
    color: inherit;
}

.dotted-link:hover {
    border-bottom: 1px solid #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 2rem 1rem;
    }
    
    .services {
        padding: 4rem 1rem 4rem 1rem;  /* 调整移动端内边距 */
    }
    
    .services .container {
        padding-left: 5%;  /* 在移动端减少左右内边距 */
        padding-right: 5%;
    }
    
    .services h1 {
        font-size: 2.5rem;  /* 在移动端减小标题大小 */
        margin-bottom: 1.5rem;
    }
    
    .services h2 {
        font-size: 1.5rem;  /* 在移动端调整副标题大小 */
    }
    
    .services h3 {
        font-size: 1.2rem;  /* 在移动端调整小标题大小 */
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.radar-charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.radar-chart-wrapper {
    flex: 0 1 400px;
    text-align: center;
}

.radar-chart-wrapper h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;  /* 减少标题下方间距 */
    font-size: 1rem;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.radar-chart-container {
    background-color: rgba(245, 240, 230, 0.95);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 400px;
}

@media (max-width: 768px) {
    .radar-charts-container {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .radar-chart-wrapper {
        flex: 0 1 100%;
    }
    
    .radar-chart-container {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .radar-chart-wrapper h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

.icons-container {
    margin: 20px 0;
    padding-left: 0;  /* 移除左边距 */
    display: flex;
    justify-content: flex-start;
}

.dcis-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .icons-container {
        padding-left: 5%;
    }
}

/* 恢复图标样式 */
.icon-sprite {
    display: inline-block;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.0);
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.00);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 为每个图标定义不同的类 */
.icon-1 {
    background-image: url('../images/icon_db.png');
    background-size: 40% 40%;
    background-position: center;
}

.icon-2 {
    background-image: url('../images/icon_toolset.png');
    background-size: 40% 40%;
    background-position: center;
}

.plus-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    line-height: 200px;  /* 添加行高确保完全居中 */
    position: relative;  /* 添加相对定位 */
    top: 50%;  /* 向下偏移50% */
    transform: translateY(-50%);  /* 向上偏移自身高度的50% */
}
