/* 全局樣式 */
:root {
    --primary-color: #1976D2;
    --secondary-color: #2196F3;
    --light-blue: #E3F2FD;
    --dark-blue: #0D47A1;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "微軟正黑體", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 標題區域 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 導航欄 */
nav {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* 主要內容區域 */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
    font-size: 1.8rem;
}

/* 流程圖容器 */
.flowchart-container {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.flowchart-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.flowchart-image:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-full {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.view-full:hover {
    text-decoration: underline;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    text-align: justify;
}

/* 步驟卡片 */
.step-card {
    display: flex;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

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

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    background-color: var(--light-blue);
    color: var(--primary-color);
    font-size: 2rem;
}

.step-content {
    flex: 1;
    padding: 1.5rem;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.step-content p {
    margin-bottom: 1rem;
}

.details-list {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.details-list h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--dark-blue);
}

.details-list ul {
    padding-left: 1.5rem;
}

.details-list li {
    margin-bottom: 0.3rem;
}

/* 應用場景 */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.application-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.application-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.application-card h3 {
    color: var(--dark-blue);
    margin-bottom: 0.8rem;
}

/* 關於我們 */
.about-content {
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* 頁腳 */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 0.8rem 1rem;
    }
    
    .step-card {
        flex-direction: column;
    }
    
    .step-icon {
        width: 100%;
        padding: 1rem 0;
    }
    
    .application-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header .subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
}
