:root {
    --primary: #222;
    --secondary: #666;
    --bg: #ffffff;
    /* --accent: #f7f7f7; */
    --bg-green: #3c4844;
    --max-width:1100px;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    color: var(--text-w);
    background-color: var(--bg-b);
}

.logo a {
    color: var(--text-w);
}

/* canvas */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* 背景 */
}

/* hero */
.hero {
    width: 100%;
    height: 95vh; 
    display: flex; align-items: center; justify-content: center;
    text-align: right; 
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; margin-bottom: 25px; }
.hero p { 
    font-size: 1.2rem; 
    color: var(--gray); 
    margin: 0 5px 40px; 
}

.hero-inner {
    position: absolute;
    z-index: 999;
    right: 10%;
    bottom: 13%;
}

.slogan {
    color: var(--text-w);
}

.btn { 
    padding: 15px 35px; border-radius: 50px; text-decoration: none; 
    font-weight: 500; transition: var(--transition); display: inline-block;
    cursor: pointer; border: none; font-size: 1rem; text-align: center;
}
.btn-primary { 
    background: var(--blue); 
    color: white;
}
.btn-primary:hover { 
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    background: var(--blue); }

.btn-outline{border:1px solid var(--blue); color:var(--blue);}
.btn-outline:hover{
    background:var(--blue); 
    color: var(--text-w);
}

/* background-image  */
.image_container {
    position: relative;
    width: 100%;
    height: 600px;
    background-image: url('../images/slides/fly.webp');
    
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}
.parallax-content {
    position: absolute;
    width: 480px;
    height: 130px;
    bottom: 130px;
    left: 90px;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}
.flex-row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* Content Section */
/* 基礎變數設定 (確保與內頁一致) */


.container { 
    width: 100%; 
    margin: auto; 
    padding: 160px 40px; /* 加大上下間距，增加大氣感 */
    background-color: var(--bg);
}

#philosophy {
    max-width: 1200px;
    margin: 0 auto;
}

/* 標題區塊：改為優雅的居中排版 */
.section-header {
    margin-bottom: 100px;
    text-align: center;
}

.eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-header h2 {
    font-family: 'Noto Serif TC', serif; /* 使用襯線體 */
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* 網格與卡片：強調細節與互動 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 60px 45px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05); /* 極細邊框取代陰影 */
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.card-number {
    font-family: 'Garamond', serif;
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 30px;
    display: block;
}

.card h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.card p {
    color: var(--primary);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
}

.more {
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.4;
    transition: var(--transition);
}

/* Hover 效果：優雅的平移與重點色強調 */
.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
}

.card:hover .more {
    opacity: 1;
    color: var(--blue);
    padding-left: 10px; /* 箭頭向右微移 */
}

/* RWD 優化 */
@media (max-width: 768px) {
    .container { padding: 100px 24px; }
    .section-header h2 { font-size: 2rem; }
}

/* Problem */
.problem{
    color: var(--text-w);
    background:var(--bg-b);
}
.problem ul{
    margin-top:20px;
    list-style:none;
}
.problem li{
    margin-bottom:12px;
}
.middle {
    width: var(--max-width);
    margin: auto; 
    padding: 100px 0;
}

.services {
    background-color: var(--bg-b);
}

/* Method */
.method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:40px;margin-top:50px;}
.method-item h3{margin-bottom:15px;}

/* Case */
.case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:40px;margin-top:40px;}
.case-grid a {
    cursor: pointer;
}
.case-item {
    border:1px solid #eee;
    padding:25px;
    border-radius:6px;
    color: var(--text-w);
}
.case-item:hover {
    color: var(--text-b);
    background-color: var(--bg-w)
}

.portfolio {
    max-width: var(--max-width);
    margin: auto;
}
.portfolio h2 {
    color: var(--text-b);
}

/* Blog */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px;margin-top:40px;}
.blog-item {
    border:1px solid #eee;
    border-radius:6px;
    overflow:hidden;
}
.blog-item:hover {
    border: 1px solid var(--text-b);
}
.blog-item img{width:100%;height:auto;display:block;}
.blog-item-content{
    padding:15px;
    color: var(--text-b);
}


@media(max-width:800px){
    .hero-inner {
        right: 5%;
        left: 5%;
    }

    .parallax-content {
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 0;
        border-radius: 0;
    }

    .container { 
        padding: 0;
    }
    .grid {
        gap: 0px;
        margin-top: 0px;
    }
    .card {
        margin-bottom: 1px;
        border-bottom: 1px solid #ccc;
    }

    .middle {
        width: 100%;
        padding: 100px 50px;
    }

    .section-header {
        padding-top: 30px;
        margin-bottom: 0;
    }

    .portfolio h2 { 
        padding: 30px 50px 0;
    }
}