/* backend/static/css/style.css */

/* Import PrinTex™ Brand Colors */
@import 'brand-colors.css';

/* -------------------- Toast Notification Styles -------------------- */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* 確保在最上層 */
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* 允許點擊穿透 */
}

.toast {
    background-color: var(--brand-primary);
    color: var(--brand-white);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    opacity: 0; /* 初始隱藏 */
    transform: translateY(20px); /* 初始位置在下方 */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* 動畫效果 */
    box-shadow: 0 4px 12px var(--brand-shadow-dark);
    font-size: 1em;
    text-align: center;
    min-width: 200px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0); /* 顯示時移動到正常位置 */
}

.toast-success {
    background-color: var(--egrra-success);
    color: var(--egrra-white);
}

.toast-error {
    background-color: var(--egrra-error);
    color: var(--egrra-white);
}

.toast-info {
    background-color: var(--egrra-info);
    color: var(--egrra-white);
}

/* General Body Styles */
body {
    font-family: var(--egrra-font-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--egrra-text-primary);
    background-color: var(--egrra-bg-secondary);
    font-size: var(--egrra-text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%; /* Take full width of the parent */
    max-width: 1200px; /* But don't exceed 1200px on large screens */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* Add horizontal padding for safety margin on small screens */
    padding-right: 20px;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
}


/* Header Styles */
header {
    background: var(--egrra-bg-primary);
    color: var(--egrra-text-primary);
    padding: 0;
    border-bottom: var(--egrra-border-light) 1px solid;
    box-shadow: 0 2px 8px var(--egrra-shadow-light);
    /* --- MODIFICATION START: Stacking Context Fix --- */
    position: relative; /* Establish a stacking context */
    z-index: 1001;      /* Ensure the header is on top of other content */
    /* --- MODIFICATION END --- */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .container {
    padding-top: 15px; 
    padding-bottom: 15px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none; 
}

header .logo-img {
    height: 60px;
    width: auto;
}

header .logo-text {
   display: none; 
}


header nav {
    display: flex;
    align-items: center;
    flex-grow: 0;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
}

header li {
    padding: 0 15px;
}

header a {
    color: var(--egrra-text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: var(--egrra-text-sm);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

header a:hover {
    color: var(--egrra-accent);
    transform: translateY(-1px);
}

header a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--egrra-accent);
    transition: width 0.3s ease;
}

header a:hover:after {
    width: 100%;
}

/* Button Styles */
.btn {
    display: inline-block;
    color: var(--brand-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.primary-btn {
    background-color: var(--egrra-accent);
    border: 2px solid var(--egrra-accent);
    color: var(--egrra-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px var(--egrra-shadow-medium);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    background-color: var(--egrra-accent-dark);
    border-color: var(--egrra-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--egrra-shadow-dark);
}

.primary-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--brand-white-alpha-20), transparent);
    transition: left 0.5s;
}

.primary-btn:hover:before {
    left: 100%;
}

.secondary-btn {
    background-color: var(--egrra-secondary);
    border: 2px solid var(--egrra-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px var(--egrra-shadow-medium);
}

.secondary-btn:hover {
    background-color: var(--egrra-secondary-dark);
    border-color: var(--egrra-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--egrra-shadow-dark);
}

/* Hero Section Styles */
.hero-section {
    background: url('/static/images/初始總覽圖.jpg') no-repeat center center/cover;
    color: var(--egrra-white);
    text-align: center;
    padding: var(--egrra-space-16) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-primary-alpha-80), var(--brand-primary-alpha-60));
    backdrop-filter: blur(1px);
}

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

.hero-section h1 {
    font-size: var(--egrra-text-5xl);
    font-weight: 800;
    margin-bottom: var(--egrra-space-4);
    text-shadow: 2px 2px 8px var(--brand-shadow-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-section h2 {
    font-size: var(--egrra-text-4xl);
    margin-bottom: var(--egrra-space-4);
    text-shadow: 2px 2px 4px var(--brand-shadow-dark);
}

.hero-section p {
    font-size: var(--egrra-text-lg);
    margin-bottom: var(--egrra-space-8);
    text-shadow: 1px 1px 3px var(--brand-shadow-dark);
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--brand-white);
}

/* About Section Styles */
.about-section, .contact-info-short-section {
    background: var(--egrra-bg-primary);
    padding: var(--egrra-space-12) 0;
    margin-top: var(--egrra-space-5);
    text-align: center;
    box-shadow: 0 4px 20px var(--egrra-shadow-light);
    border-radius: var(--egrra-radius-lg);
    border: 1px solid var(--egrra-border-light);
}

.about-section h3, .contact-info-short-section h3 {
    font-size: var(--egrra-text-4xl);
    color: var(--egrra-primary);
    margin-bottom: var(--egrra-space-5);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.media-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.media-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--brand-shadow-light);
    object-fit: cover;
    width: 30%;
    min-width: 200px;
    max-width: 250px;
}

.media-gallery iframe {
    width: 100%;
    max-width: 700px;
    height: 380px;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--brand-shadow-light);
}

/* Footer Styles */
footer {
    background: var(--egrra-secondary);
    color: var(--egrra-text-inverse);
    text-align: center;
    padding: var(--egrra-space-10) 0;
    margin-top: var(--egrra-space-8);
    border-top: 4px solid var(--egrra-primary);
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

footer .footer-links a {
    color: var(--brand-white);
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

footer .footer-links a:hover {
    background-color: var(--egrra-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--egrra-shadow-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }

    header nav {
        margin-top: 15px;
    }

    header ul {
        flex-direction: column;
        padding-top: 10px;
    }

    header li {
        padding: 10px 0;
    }

    .hero-section {
        padding: var(--egrra-space-12) 0;
        min-height: 400px;
        background-attachment: scroll;
    }

    .hero-section h1 {
        font-size: var(--egrra-text-3xl);
    }

    .hero-section h2 {
        font-size: var(--egrra-text-2xl);
    }

    .hero-section p {
        font-size: var(--egrra-text-base);
        margin-bottom: var(--egrra-space-6);
    }

    .media-gallery img {
        width: 100%;
    }
}

/* Scroll effect */
header.scrolled {
    background-color: var(--brand-white-alpha-95);
    box-shadow: 0 4px 20px var(--egrra-shadow-medium);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* --- 新增：漢堡選單按鈕樣式 --- */
.hamburger-btn {
    display: none; /* 電腦版預設隱藏 */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003; /* 確保在最上層 */
}

.hamburger-icon-bar {
    width: 100%;
    height: 3px;
    background-color: var(--egrra-text-primary);
    border-radius: var(--egrra-radius-sm);
    transition: all 0.3s ease-in-out;
}

/* --- 新增：手機版響應式樣式 (核心) --- */
@media (max-width: 768px) {
    /* 1. 顯示漢堡圖示 */
    .hamburger-btn {
        display: flex;
    }

    /* 2. 隱藏原本的導覽列 */
    header nav#main-nav {
        display: flex;
        position: fixed; /* 改為固定定位，覆蓋整個畫面 */
        top: 0;
        left: 100%; /* 預設藏在畫面的右邊 */
        width: 100%;
        height: 100vh; /* 使用視窗高度 */
        background-color: rgba(239, 239, 239, 0.98); /* PrinTex 淺灰色 98% 不透明 */
        backdrop-filter: blur(10px) saturate(120%); /* 減少模糊，保持清晰度 */
        -webkit-backdrop-filter: blur(10px) saturate(120%);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        justify-content: flex-start; /* 從頂部開始排列 */
        align-items: center;
        padding-top: 70px; /* 減少頂部間距 */
        overflow-y: auto; /* 允許垂直滾動 */
        -webkit-overflow-scrolling: touch; /* iOS 滑動優化 */
        transition: left 0.4s ease-in-out; /* 滑入動畫效果 */
        z-index: 1002; /* 確保在最上層，比漢堡按鈕高 */
    }

    /* 3. 當導覽列被觸發打開時 (用 JS 加上 .is-active) */
    header nav#main-nav.is-active {
        left: 0; /* 滑入到畫面中 */
    }

    /* 4. 修改導覽列中 ul 和 li 的樣式 */
    header nav#main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0 30px 0; /* 減少上下留白 */
        margin: 0;
    }

    header nav#main-nav li {
        padding: 8px 0; /* 縮小間距讓更多項目可見 */
        width: 100%;
        margin: 0;
    }
    
    header nav#main-nav li a {
        font-size: 1.2em; /* 稍微縮小字體以容納更多項目 */
        color: var(--brand-primary-dark) !important; /* 使用深黑色，確保清晰可見 */
        font-weight: 700 !important; /* 加粗字體 */
        display: inline-block;
        padding: 10px 35px; /* 縮小內距 */
        transition: all 0.3s ease;
        text-transform: none; /* 移除全大寫 */
        letter-spacing: 0;
        opacity: 1 !important; /* 確保完全不透明 */
    }

    /* 移除底部線條動畫（手機版不需要） */
    header nav#main-nav li a:after {
        display: none;
    }

    header nav#main-nav li a:hover,
    header nav#main-nav li a.active {
        color: var(--egrra-primary) !important;
        background-color: var(--egrra-gray-100);
        border-radius: var(--egrra-radius-md);
        transform: translateX(5px);
    }

    /* 5. (可選) 漢堡圖示變成 "X" 的動畫 */
    .hamburger-btn.is-active .hamburger-icon-bar {
        background-color: var(--brand-primary-dark); /* 深黑色，確保清晰可見 */
    }

    .hamburger-btn.is-active .hamburger-icon-bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .hamburger-btn.is-active .hamburger-icon-bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.is-active .hamburger-icon-bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}

/* ==================== EGRRA Professional Typography System ==================== */

/* Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--egrra-font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--egrra-text-primary);
    margin-bottom: var(--egrra-space-4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--egrra-text-5xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-text-inverse);
    margin-bottom: var(--egrra-space-6);
}

h2 {
    font-size: var(--egrra-text-4xl);
    margin-bottom: var(--egrra-space-5);
}

h3 {
    font-size: var(--egrra-text-3xl);
    margin-bottom: var(--egrra-space-4);
}

h4 {
    font-size: var(--egrra-text-2xl);
}

h5 {
    font-size: var(--egrra-text-xl);
}

h6 {
    font-size: var(--egrra-text-lg);
}

/* Professional paragraph styling */
p {
    font-size: var(--egrra-text-base);
    line-height: 1.7;
    color: var(--egrra-text-primary);
    margin-bottom: var(--egrra-space-4);
}

.lead {
    font-size: var(--egrra-text-lg);
    font-weight: 400;
    line-height: 1.6;
    color: var(--egrra-text-primary);
}

.text-small {
    font-size: var(--egrra-text-sm);
}

.text-muted {
    color: var(--egrra-text-muted);
}

/* ==================== EGRRA Material & Technical Design Elements ==================== */

/* Professional cards for material specifications */
.material-card {
    background: var(--egrra-bg-primary);
    border: 1px solid var(--egrra-border-light);
    border-radius: var(--egrra-radius-lg);
    padding: var(--egrra-space-6);
    margin-bottom: var(--egrra-space-5);
    box-shadow: 0 4px 20px var(--egrra-shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--egrra-shadow-medium);
    border-color: var(--egrra-primary);
}

.material-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--egrra-primary), var(--egrra-accent));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.material-card:hover:before {
    transform: scaleY(1);
}

/* Technical specifications table styling */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--egrra-space-5) 0;
    background: var(--egrra-bg-primary);
    border-radius: var(--egrra-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--egrra-shadow-light);
}

.spec-table th {
    background: var(--egrra-secondary);
    color: var(--egrra-text-inverse);
    padding: var(--egrra-space-4);
    text-align: left;
    font-weight: 600;
    font-size: var(--egrra-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-table td {
    padding: var(--egrra-space-4);
    border-bottom: 1px solid var(--egrra-border-light);
    font-size: var(--egrra-text-sm);
    color: var(--egrra-text-primary);
}

.spec-table tr:hover {
    background: var(--egrra-bg-secondary);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* Professional quotation form styling */
.quotation-form {
    background: var(--egrra-bg-primary);
    border: 1px solid var(--egrra-border-light);
    border-radius: var(--egrra-radius-xl);
    padding: var(--egrra-space-8);
    box-shadow: 0 8px 30px var(--egrra-shadow-light);
    position: relative;
}

.quotation-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--egrra-primary), var(--egrra-accent));
    border-radius: var(--egrra-radius-xl) var(--egrra-radius-xl) 0 0;
}

.form-group {
    margin-bottom: var(--egrra-space-5);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: var(--egrra-text-sm);
    color: var(--egrra-text-primary);
    margin-bottom: var(--egrra-space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: var(--egrra-space-3) var(--egrra-space-4);
    border: 2px solid var(--egrra-border-medium);
    border-radius: var(--egrra-radius-md);
    font-size: var(--egrra-text-base);
    font-family: var(--egrra-font-primary);
    transition: all 0.3s ease;
    background: var(--egrra-bg-primary);
    color: var(--egrra-text-primary);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--egrra-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-alpha-10);
    transform: translateY(-1px);
}

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

/* Professional badge styling for categories */
.category-badge {
    display: inline-block;
    padding: var(--egrra-space-1) var(--egrra-space-3);
    background: var(--egrra-tech-blue);
    color: var(--egrra-white);
    font-size: var(--egrra-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--egrra-radius-full);
    margin-right: var(--egrra-space-2);
    margin-bottom: var(--egrra-space-2);
}

.category-badge.primary {
    background: var(--egrra-primary);
}

.category-badge.secondary {
    background: var(--egrra-secondary);
}

.category-badge.accent {
    background: var(--egrra-accent);
}

/* Technical data visualization */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--egrra-space-5);
    margin: var(--egrra-space-6) 0;
}

.data-point {
    background: var(--egrra-bg-primary);
    border: 1px solid var(--egrra-border-light);
    border-radius: var(--egrra-radius-lg);
    padding: var(--egrra-space-5);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.data-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--egrra-shadow-medium);
    border-color: var(--egrra-primary);
}

.data-value {
    font-size: var(--egrra-text-3xl);
    font-weight: 800;
    color: var(--egrra-primary);
    line-height: 1;
    margin-bottom: var(--egrra-space-2);
}

.data-label {
    font-size: var(--egrra-text-sm);
    color: var(--egrra-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Professional alert boxes */
.alert {
    padding: var(--egrra-space-4) var(--egrra-space-5);
    border-radius: var(--egrra-radius-md);
    margin-bottom: var(--egrra-space-5);
    border-left: 4px solid;
    font-size: var(--egrra-text-sm);
    line-height: 1.6;
}

.alert-info {
    background: var(--brand-info-alpha-10);
    border-color: var(--egrra-primary);
    color: var(--egrra-primary);
}

.alert-success {
    background: var(--brand-success-alpha-10);
    border-color: var(--egrra-success);
    color: var(--egrra-success);
}

.alert-warning {
    background: var(--brand-warning-alpha-10);
    border-color: var(--egrra-warning);
    color: var(--egrra-warning);
}

.alert-error {
    background: var(--brand-error-alpha-10);
    border-color: var(--egrra-error);
    color: var(--egrra-error);
}

/* Progress bars for technical specifications */
.progress-bar {
    background: var(--egrra-gray-200);
    border-radius: var(--egrra-radius-full);
    height: 8px;
    overflow: hidden;
    position: relative;
    margin: var(--egrra-space-2) 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--egrra-primary), var(--egrra-accent));
    border-radius: var(--egrra-radius-full);
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--brand-white-alpha-30), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Material sample grid */
.material-samples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--egrra-space-4);
    margin: var(--egrra-space-6) 0;
}

.material-sample {
    background: var(--egrra-bg-primary);
    border: 1px solid var(--egrra-border-light);
    border-radius: var(--egrra-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--egrra-shadow-light);
}

.material-sample:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px var(--egrra-shadow-medium);
}

.material-sample-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--egrra-gray-100);
}

.material-sample-info {
    padding: var(--egrra-space-4);
}

.material-sample-title {
    font-weight: 600;
    font-size: var(--egrra-text-sm);
    color: var(--egrra-text-primary);
    margin-bottom: var(--egrra-space-2);
}

.material-sample-desc {
    font-size: var(--egrra-text-xs);
    color: var(--egrra-text-secondary);
    line-height: 1.4;
}

/* Professional loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--egrra-gray-200);
    border-radius: 50%;
    border-top-color: var(--egrra-primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive enhancements for mobile */
@media (max-width: 768px) {
    .data-grid {
        grid-template-columns: 1fr;
    }

    .material-samples {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--egrra-space-3);
    }

    .quotation-form {
        padding: var(--egrra-space-5);
    }

    h1 {
        font-size: var(--egrra-text-4xl);
    }

    h2 {
        font-size: var(--egrra-text-3xl);
    }
}

/* ==================== PrinTex™ 客製化流程樣式 ==================== */

.printex-process-section {
    background: linear-gradient(135deg, var(--egrra-gray-50) 0%, var(--egrra-gray-100) 100%);
    padding: var(--egrra-space-16) 0;
    margin-bottom: var(--egrra-space-12);
    position: relative;
    overflow: hidden;
}

.printex-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23F8F6F0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.printex-process-section .container {
    position: relative;
    z-index: 1;
}

.process-header {
    text-align: center;
    margin-bottom: var(--egrra-space-12);
}

.process-title {
    font-size: var(--egrra-text-4xl);
    font-weight: 700;
    color: var(--egrra-secondary);
    margin: 0 0 var(--egrra-space-3) 0;
    position: relative;
}

.process-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--egrra-accent) 0%, var(--egrra-accent-dark) 100%);
    margin: var(--egrra-space-4) auto;
    border-radius: 2px;
}

.process-subtitle {
    font-size: var(--egrra-text-lg);
    color: var(--brand-primary);
    margin: 0;
    font-weight: 600;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--egrra-space-8);
    margin-bottom: var(--egrra-space-12);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    background: var(--egrra-white);
    border-radius: var(--egrra-radius-xl);
    padding: var(--egrra-space-6);
    box-shadow: 0 4px 24px var(--brand-shadow-light);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--egrra-border-light);
    overflow: hidden;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: var(--egrra-space-4);
    right: var(--egrra-space-4);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--egrra-accent-light) 0%, var(--egrra-accent) 100%);
    color: var(--egrra-accent-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--egrra-text-sm);
    font-weight: 700;
    box-shadow: 0 2px 8px var(--brand-shadow-medium);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--brand-shadow-medium);
    border-color: var(--egrra-accent-light);
}

.process-step:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 16px var(--brand-shadow-dark);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--egrra-accent) 0%, var(--egrra-accent-dark) 100%);
    border-radius: var(--egrra-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--egrra-space-4);
    color: var(--egrra-white);
    box-shadow: 0 4px 16px var(--brand-shadow-medium);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 24px var(--brand-shadow-dark);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.step-content h4 {
    font-size: var(--egrra-text-xl);
    font-weight: 700;
    color: var(--egrra-secondary);
    margin: 0 0 var(--egrra-space-2) 0;
    line-height: 1.3;
}

.step-content p {
    font-size: var(--egrra-text-base);
    color: var(--brand-text-primary);
    margin: 0;
    line-height: 1.5;
    padding-right: var(--egrra-space-8);
}

.process-actions {
    display: flex;
    justify-content: center;
    gap: var(--egrra-space-4);
    flex-wrap: wrap;
}

.process-quote-btn,
.process-contact-btn {
    padding: var(--egrra-space-4) var(--egrra-space-8);
    font-size: var(--egrra-text-lg);
    font-weight: 600;
    border-radius: var(--egrra-radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
}

.process-quote-btn {
    background: linear-gradient(135deg, var(--egrra-accent) 0%, var(--egrra-accent-dark) 100%);
    border: 2px solid var(--egrra-accent);
    color: var(--egrra-white);
    box-shadow: 0 4px 16px var(--brand-shadow-medium);
}

.process-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--brand-shadow-dark);
    background: linear-gradient(135deg, var(--egrra-accent-dark) 0%, var(--egrra-accent) 100%);
}

.process-contact-btn {
    background: var(--egrra-white);
    border: 2px solid var(--egrra-accent);
    color: var(--egrra-accent);
}

.process-contact-btn:hover {
    background: var(--egrra-accent);
    color: var(--egrra-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--brand-shadow-medium);
}

/* 響應式設計優化 */
@media (max-width: 768px) {
    .printex-process-section {
        padding: var(--egrra-space-12) 0;
    }

    .process-title {
        font-size: var(--egrra-text-3xl);
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: var(--egrra-space-4);
    }

    .process-step {
        padding: var(--egrra-space-4);
    }

    .step-content p {
        padding-right: var(--egrra-space-4);
    }

    .process-actions {
        flex-direction: column;
        align-items: center;
    }

    .process-quote-btn,
    .process-contact-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .process-step::before {
        width: 28px;
        height: 28px;
        font-size: var(--egrra-text-xs);
    }

    .step-icon {
        width: 48px;
        height: 48px;
    }

    .step-icon svg {
        width: 24px;
        height: 24px;
    }

    .step-content h4 {
        font-size: var(--egrra-text-lg);
    }

    .step-content p {
        font-size: var(--egrra-text-sm);
    }
}

/* ===== 產品特色區域樣式 ===== */
.product-features-section {
    background: linear-gradient(135deg, var(--egrra-gray-50) 0%, var(--egrra-white) 100%);
    padding: var(--egrra-space-16) 0;
    margin: var(--egrra-space-8) 0;
}

.features-header {
    text-align: center;
    margin-bottom: var(--egrra-space-12);
}

.features-title {
    font-size: var(--egrra-text-3xl);
    font-weight: 700;
    color: var(--egrra-secondary);
    margin-bottom: var(--egrra-space-4);
    letter-spacing: -0.02em;
}

.features-subtitle {
    font-size: var(--egrra-text-lg);
    color: var(--brand-text-primary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--egrra-space-8);
    margin-bottom: var(--egrra-space-12);
}

.feature-item {
    background: var(--egrra-white);
    border-radius: var(--egrra-radius-xl);
    padding: var(--egrra-space-6);
    box-shadow: 0 4px 20px var(--brand-shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: var(--egrra-space-4);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--brand-shadow-medium);
    border-color: var(--egrra-accent);
}

.feature-icon {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    border-radius: var(--egrra-radius-lg);
    overflow: hidden;
    background: var(--egrra-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--egrra-space-2);
}

.feature-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 100%;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: var(--egrra-text-xl);
    font-weight: 600;
    color: var(--egrra-secondary);
    margin-bottom: var(--egrra-space-2);
    line-height: 1.3;
}

.feature-content p {
    font-size: var(--egrra-text-base);
    color: var(--brand-text-primary);
    line-height: 1.6;
    margin: 0;
}

.features-cta {
    text-align: center;
    background: var(--egrra-white);
    border-radius: var(--egrra-radius-xl);
    padding: var(--egrra-space-8);
    box-shadow: 0 4px 15px var(--brand-shadow-light);
    border: 2px solid var(--egrra-border-light);
}

.cta-text {
    font-size: var(--egrra-text-lg);
    color: var(--egrra-secondary);
    font-weight: 600;
    margin-bottom: var(--egrra-space-6);
}

.cta-buttons {
    display: flex;
    gap: var(--egrra-space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: var(--egrra-space-3) var(--egrra-space-6);
    font-size: var(--egrra-text-base);
    font-weight: 600;
    border-radius: var(--egrra-radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-buttons .primary-btn {
    background: var(--egrra-accent);
    color: var(--egrra-white);
    border: 2px solid var(--egrra-accent);
}

.cta-buttons .primary-btn:hover {
    background: var(--egrra-secondary);
    border-color: var(--egrra-secondary);
    transform: translateY(-2px);
}

.cta-buttons .secondary-btn {
    background: transparent;
    color: var(--egrra-secondary);
    border: 2px solid var(--egrra-secondary);
}

.cta-buttons .secondary-btn:hover {
    background: var(--egrra-secondary);
    color: var(--egrra-white);
    transform: translateY(-2px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .product-features-section {
        padding: var(--egrra-space-12) 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--egrra-space-6);
    }

    .feature-item {
        padding: var(--egrra-space-4);
        flex-direction: column;
        text-align: center;
        gap: var(--egrra-space-3);
    }

    .feature-icon {
        width: 100px;
        height: 50px;
        margin: 0 auto;
    }

    .features-title {
        font-size: var(--egrra-text-2xl);
    }

    .features-subtitle {
        font-size: var(--egrra-text-base);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .features-cta {
        padding: var(--egrra-space-6);
    }

    .feature-content h3 {
        font-size: var(--egrra-text-lg);
    }

    .feature-content p {
        font-size: var(--egrra-text-sm);
    }
}

/* ===== 對比表格區域樣式 ===== */
.comparison-section {
    margin: var(--egrra-space-12) 0;
    padding: var(--egrra-space-8) 0;
    background: linear-gradient(135deg, var(--brand-bg-tertiary) 0%, var(--brand-white) 100%);
    border-radius: var(--egrra-radius-xl);
    border: 2px solid var(--egrra-border-light);
}

.comparison-header {
    text-align: center;
    margin-bottom: var(--egrra-space-8);
}

.comparison-title {
    font-size: var(--egrra-text-2xl);
    font-weight: 700;
    color: var(--egrra-secondary);
    margin-bottom: var(--egrra-space-2);
}

.comparison-subtitle {
    font-size: var(--egrra-text-base);
    color: var(--brand-text-primary);
    font-weight: 500;
}

.comparison-table-container {
    overflow-x: auto;
    margin: 0 var(--egrra-space-4);
    border-radius: var(--egrra-radius-lg);
    box-shadow: 0 4px 20px var(--brand-shadow-light);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--egrra-white);
    border-radius: var(--egrra-radius-lg);
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--egrra-secondary) 0%, var(--brand-primary-dark) 100%);
}

.comparison-table th {
    padding: var(--egrra-space-4);
    text-align: center;
    font-weight: 600;
    color: var(--egrra-white);
    font-size: var(--egrra-text-base);
    border-bottom: 3px solid var(--egrra-accent);
}

.comparison-table .criteria-col {
    width: 10%;
    min-width: 60px;
}

.comparison-table .requirement-col {
    width: 25%;
    min-width: 120px;
}

.comparison-table .egrra-col,
.comparison-table .competitor-col {
    width: 32.5%;
    min-width: 160px;
}

.product-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--egrra-space-2);
    padding: var(--egrra-space-2) var(--egrra-space-3);
    border-radius: var(--egrra-radius-md);
    font-weight: 600;
}

.product-badge.egrra {
    background: linear-gradient(135deg, var(--egrra-accent) 0%, var(--brand-accent-dark) 100%);
    color: var(--egrra-white);
}

.product-badge.competitor {
    background: linear-gradient(135deg, var(--brand-text-muted) 0%, var(--brand-primary) 100%);
    color: var(--egrra-white);
}

.badge-icon {
    font-size: var(--egrra-text-lg);
}

.comparison-table tbody tr {
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--brand-bg-tertiary);
}

.comparison-table tbody tr:hover {
    background: var(--brand-bg-secondary);
}

.comparison-table td {
    padding: var(--egrra-space-4);
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--egrra-border-light);
}

.criteria {
    font-weight: 700;
    font-size: var(--egrra-text-lg);
    color: var(--egrra-secondary);
    background: var(--brand-bg-secondary);
}

.requirement {
    font-weight: 600;
    color: var(--egrra-secondary);
    text-align: left;
    padding-left: var(--egrra-space-4);
}

.egrra-advantage {
    background: linear-gradient(135deg, var(--brand-success-lighter) 0%, var(--brand-success-light) 100%);
    border-left: 4px solid var(--brand-success);
}

.competitor-disadvantage {
    background: linear-gradient(135deg, var(--brand-error-lighter) 0%, var(--brand-error-light) 100%);
    border-left: 4px solid var(--brand-error);
}

.advantage-icon,
.disadvantage-icon {
    font-size: var(--egrra-text-lg);
    margin-bottom: var(--egrra-space-1);
    display: block;
}

.advantage-text,
.disadvantage-text {
    font-size: var(--egrra-text-sm);
    line-height: 1.4;
}

.advantage-text strong {
    color: var(--brand-success-dark);
    font-weight: 700;
}

.disadvantage-text {
    color: var(--brand-error-dark);
    font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .comparison-section {
        margin: var(--egrra-space-8) 0;
        padding: var(--egrra-space-6) 0;
    }

    .comparison-table-container {
        margin: 0 var(--egrra-space-2);
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--egrra-space-2);
        font-size: var(--egrra-text-sm);
    }

    .comparison-title {
        font-size: var(--egrra-text-xl);
    }

    .product-badge {
        flex-direction: column;
        gap: var(--egrra-space-1);
        padding: var(--egrra-space-2);
    }

    .badge-icon {
        font-size: var(--egrra-text-base);
    }

    .advantage-text,
    .disadvantage-text {
        font-size: var(--egrra-text-xs);
    }
}

@media (max-width: 480px) {
    .comparison-table-container {
        margin: 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--egrra-space-1);
    }

    .product-badge span:not(.badge-icon) {
        font-size: var(--egrra-text-xs);
    }
}