﻿/* 晶創網通有限公司 (ICN) - 官方網站完整樣式表
   設計風格：現代化 MSP、水晶通透感、深色調 (Midnight Blue) 搭配青綠色 (Teal)
   版本：v1.2 (聯絡資訊面板優化版)
*/

/* --- 基礎變數與設定 --- */
:root {
    --midnight-blue: #0a192f;        /* 主底色 */
    --midnight-blue-light: #112240;  /* 區塊背景色 */
    --teal: #008080;                 /* 強調色 Teal */
    --teal-glow: #00cccc;            /* 霓虹發光 Teal */
    --text-main: #ccd6f6;            /* 主文字顏色 */
    --text-highlight: #ffffff;       /* 標題文字顏色 */
    --font-main: 'Noto Sans TC', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--midnight-blue);
    color: var(--text-main);
    line-height: 1.8;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-highlight);
    font-weight: 600;
}

/* --- 導覽列 --- */
.navbar {
    background-color: rgba(10, 25, 47, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 128, 128, 0.3);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--teal-glow);
    text-shadow: 0 0 8px var(--teal);
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.8;
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar .nav-links a {
    font-size: 1rem;
    color: var(--text-main);
}

.navbar .nav-links a:hover:not(.btn-small) {
    color: var(--teal-glow);
}

/* --- 按鈕樣式 --- */
.btn-primary, .btn-secondary, .btn-small {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--teal);
    color: #fff;
    border: 2px solid var(--teal);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--teal-glow);
    box-shadow: 0 0 15px var(--teal);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--teal-glow);
    color: var(--teal-glow);
}

.btn-small {
    padding: 8px 20px;
    border: 1px solid var(--teal);
    color: var(--teal-glow) !important;
    font-size: 0.9rem;
}

.btn-small:hover {
    background-color: var(--teal);
    color: var(--midnight-blue) !important;
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    font-size: 1.5rem;
    color: var(--teal-glow);
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 0 15px rgba(0, 204, 204, 0.4));
}

/* --- 服務項目區塊 --- */
.services {
    padding: 100px 0;
    background-color: var(--midnight-blue-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title.align-left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--midnight-blue);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 128, 128, 0.2);
    transition: 0.4s;
}

.service-card.highlight {
    border: 1px solid var(--teal);
    background: linear-gradient(145deg, var(--midnight-blue-light), #162c4e);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--teal-glow);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--teal-glow);
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-list li::before {
    content: "◈";
    color: var(--teal-glow);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* --- 代理銷售區塊 --- */
.sales-section {
    padding: 100px 0;
}

.sales-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.sales-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.sales-tags span {
    padding: 8px 18px;
    background: rgba(0, 128, 128, 0.1);
    border: 1px solid var(--teal);
    color: var(--teal-glow);
    border-radius: 20px;
    font-size: 0.9rem;
}

.sales-image-container img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 128, 128, 0.2);
}

/* --- 為什麼選擇我們 --- */
.why-us {
    padding: 100px 0;
    background-color: var(--midnight-blue-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-list li {
    margin-bottom: 25px;
}

.why-list li strong {
    color: var(--teal-glow);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.why-image img {
    max-width: 100%;
}

/* --- 聯絡資訊面板區塊 --- */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--midnight-blue) 0%, var(--midnight-blue-light) 100%);
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: rgba(17, 34, 64, 0.6);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(0, 128, 128, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-brand {
    text-align: center;
    border-right: 1px solid rgba(204, 214, 246, 0.1);
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-logo {
    height: 80px;
    margin-bottom: 20px;
    <!-- filter: drop-shadow(0 0 10px var(--teal)); -->
}

.contact-brand h3 {
    font-size: 1.8rem;
    color: var(--teal-glow);
    margin-bottom: 5px;
}

.contact-brand p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-highlight);
    letter-spacing: 4px;
    border-top: 1px solid var(--teal);
    padding-top: 15px;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-left: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(0, 128, 128, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 128, 128, 0.5);
}

.info-text label {
    display: block;
    font-size: 0.8rem;
    color: var(--teal-glow);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-text p, .info-text a {
    font-size: 1.1rem;
    color: var(--text-highlight);
    font-weight: 400;
}

.info-text a:hover {
    color: var(--teal-glow);
    text-decoration: underline;
}

.contact-footer-btn {
    text-align: center;
    margin-top: 50px;
}

.reverse-email {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left; /* 確保對齊方向正確 */
    display: inline-block;
}

/* --- 頁尾 --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 128, 128, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- 響應式佈局 --- */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-grid, .sales-content, .why-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-btns, .sales-tags {
        justify-content: center;
    }
    .section-title.align-left {
        text-align: center;
    }
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .contact-brand {
        border-right: none;
        border-bottom: 1px solid rgba(204, 214, 246, 0.1);
        padding-right: 0;
        padding-bottom: 40px;
    }
    .contact-details {
        padding-left: 0;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        gap: 15px;
    }
    .logo-main {
        font-size: 1.4rem;
    }
    .logo-sub {
        display: none;
    }
    .section-title {
        font-size: 2rem;
    }
}