:root {
    --primary-color: #1a365d;   /* 質感深藍 */
    --accent-color: #06c755;    /* LINE 綠色 */
    --accent-hover: #05b34c;
    --text-dark: #2d3748;      /* 深灰文字 */
    --text-light: #718096;     /* 淺灰文字 */
    --bg-light: #f7fafc;       /* 淺灰背景 */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img { max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.bg-light { background-color: var(--bg-light); }

.margin-top-30 { margin-top: 30px; }
.margin-top-40 { margin-top: 40px; }
.margin-bottom-30 { margin-bottom: 30px; }
.margin-bottom-40 { margin-bottom: 40px; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* Banner Header for Inner Pages */
.page-header {
    background: linear-gradient(135deg, #1a365d, #0f172a);
    color: white;
    padding: 130px 0 50px 0;
    text-align: center;
}
.page-header h1 { font-size: 2.3rem; margin-bottom: 10px; }
.page-header p { color: #cbd5e1; font-size: 1.1rem; }

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
    padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-btn {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}
.nav-btn:hover { background-color: var(--accent-hover); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-line { background-color: var(--accent-color); color: white; }
.btn-line:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary-color); transform: translateY(-2px); }

.link-btn {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95), rgba(15, 23, 42, 0.85)), 
                url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: white;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 15px; font-weight: 700; }
.hero .subtitle { font-size: 1.3rem; color: #e2e8f0; margin-bottom: 25px; }
.hero .target-audience {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}
.btn-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* Grid Components */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-box {
    background: white; padding: 35px 25px; border-radius: 8px;
    border: 1px solid var(--border-color); text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.feature-box i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.feature-box h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-box p { color: var(--text-light); font-size: 0.95rem; }

.grid-7 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cap-card {
    background: var(--bg-white); padding: 30px 20px; border-radius: 8px; text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid var(--border-color); transition: transform 0.3s;
}
.cap-card:hover { transform: translateY(-5px); }
.cap-card i { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 15px; }
.cap-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cap-card p { font-size: 0.9rem; color: var(--text-light); }

.cap-summary {
    text-align: center; font-size: 1.2rem; font-weight: 500; color: var(--primary-color);
    background: #ebf8ff; padding: 20px; border-radius: 8px; border-left: 4px solid var(--primary-color);
}

.eggar-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.eggar-text h3 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 20px; }
.eggar-text p { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 25px; line-height: 1.8; }
.eggar-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.eggar-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.why-card {
    background: white; padding: 30px; border-radius: 8px; border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03); border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.why-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); }
.why-card p { color: var(--text-light); font-size: 0.95rem; }

.why-slogan {
    text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--primary-color);
    background: var(--bg-light); padding: 25px; border-radius: 8px;
}

.b2b-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.step-item { background: white; padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.step-num { font-size: 2.5rem; font-weight: 700; color: rgba(26, 54, 93, 0.15); margin-bottom: 10px; }
.step-item h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary-color); }
.step-item p { color: var(--text-light); font-size: 0.95rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.photo-item { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.photo-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.3s; }
.photo-item:hover img { transform: scale(1.05); }
.photo-caption {
    position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0, 0, 0, 0.7);
    color: white; padding: 10px; text-align: center; font-size: 0.9rem; font-weight: 500;
}

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.provide-list { list-style: none; margin-top: 20px; }
.provide-list li { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.provide-list i { color: var(--accent-color); }

.line-card { background: #ebf8ff; border: 1px solid #bee3f8; padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; }
.line-icon { font-size: 2.5rem; color: var(--accent-color); }
.contact-action { background: var(--bg-light); padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); }

.cta-section { background: linear-gradient(135deg, #1a365d, #0f172a); color: white; text-align: center; padding: 80px 0; }
.cta-section h2 { font-size: 2rem; margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; color: #cbd5e1; max-width: 700px; margin: 0 auto 30px auto; }

.float-line {
    position: fixed; bottom: 25px; right: 25px; background-color: var(--accent-color); color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4); z-index: 9999; transition: transform 0.3s;
}
.float-line:hover { transform: scale(1.1); }

footer { background-color: #0f172a; color: #64748b; text-align: center; padding: 25px 20px; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .nav-container { min-height: 70px; padding: 10px 16px; gap: 10px; }
    .logo { min-width: 0; font-size: 1.05rem; line-height: 1.25; }
    .logo span { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; }
    .nav-btn { margin-left: auto; padding: 8px 12px; white-space: nowrap; }
    .nav-links {
        display: grid;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        gap: 0;
        padding: 8px 16px 16px;
        background: rgba(255, 255, 255, 0.99);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 12px 20px rgba(15, 23, 42, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border-color); }
    .nav-links li:last-child a { border-bottom: 0; }
    .nav-links a:hover, .nav-links a.active { border-bottom-color: var(--border-color); }
    .hero { min-height: 100svh; padding: 130px 0 64px; display: flex; align-items: center; }
    .hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); line-height: 1.2; }
    .hero .subtitle { font-size: 1.1rem; }
    .hero .target-audience { margin-bottom: 30px; }
    .page-header { padding: 110px 0 38px; }
    .page-header h1 { font-size: 1.85rem; line-height: 1.3; }
    .page-header p { font-size: 1rem; }
    .eggar-box, .contact-wrapper { grid-template-columns: 1fr; }
    .eggar-box, .contact-wrapper { gap: 30px; }
    .eggar-gallery { gap: 8px; }
    .eggar-gallery img { height: 130px; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header { margin-bottom: 30px; }
    .grid-3, .grid-7, .grid-4, .b2b-steps, .photo-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-box, .cap-card, .why-card, .step-item { padding: 25px 20px; }
    .photo-item img { height: 240px; }
    .contact-action { padding: 26px 20px; }
    .line-card { align-items: flex-start; }
    .cta-section { padding: 56px 0; }
    .cta-section h2 { font-size: 1.65rem; line-height: 1.35; }
    .btn-group { flex-direction: column; }
    .btn-group .btn, .cta-section .btn { width: 100%; }
    .btn-lg { padding: 14px 20px; font-size: 1rem; }
    .float-line { width: 54px; height: 54px; right: 16px; bottom: 16px; font-size: 27px; }
    footer { padding: 24px 70px 24px 16px; text-align: left; }
}

@media (max-width: 380px) {
    .nav-btn { font-size: 0; width: 44px; height: 44px; padding: 0; justify-content: center; }
    .nav-btn i { font-size: 1.25rem; }
    .hero-badge { font-size: 0.78rem; padding: 6px 12px; }
    .eggar-gallery { grid-template-columns: 1fr; }
    .eggar-gallery img { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .nav-links, .btn, .cap-card, .photo-item img, .float-line { transition: none; }
}
