/* =========================================
   Design System & Variables
   ========================================= */
   :root {
    /* Color Palette */
    --primary-blue: #0A2540;     /* Deep Tech Blue */
    --secondary-blue: #1A3A5F;   /* Lighter Blue for hover/cards */
    --accent-gold: #D4AF37;      /* Tech Gold */
    --accent-gold-hover: #F1C40F;
    --text-main: #333333;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    /* Semantic Colors */
    --success: #2ECC71;
    --error: #E74C3C;
    --warning: #F39C12;

    /* Typography */
    --font-heading: 'Noto Sans TC', sans-serif;
    --font-body: 'Inter', 'Noto Sans TC', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(10, 37, 64, 0.15);
    --shadow-gold: 0 5px 15px rgba(212, 175, 55, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Layout */
    --container-max: 1200px;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Typography Utilities */
.text-gold { color: var(--accent-gold); }
.text-white { color: var(--bg-white); }
.text-dark { color: var(--text-main); }
.text-light { color: rgba(255, 255, 255, 0.8); }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.bg-light-blue {
    background-color: #F0F4F8;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.relative {
    position: relative;
}

/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background-color: #E8F8F5;
    color: #117A65;
    border-left: 4px solid var(--success);
}

.close-btn {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 1rem;
    color: inherit;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-white);
    letter-spacing: 1px;
}

.brand-logo img {

    display: block;        /* 移除圖片下方的微小空隙 */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover {
    color: var(--bg-white);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
}

.mobile-menu-btn {
    display: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

.glow-orb.top-left {
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    top: -100px;
    left: -100px;
}

.glow-orb.bottom-right {
    width: 500px;
    height: 500px;
    background: #3498DB;
    bottom: -150px;
    right: -100px;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* =========================================
   Pain Points Section
   ========================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
}

.pain-card {
    text-align: center;
}

.pain-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

.card-icon.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error);
}

.pain-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.pain-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================================
   Core Services Section
   ========================================= */
.service-showcase {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.feature-list i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.service-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mockups */
.mockup {
    background: linear-gradient(135deg, #1A3A5F 0%, #0A2540 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 8px solid #E2E8F0;
    transition: var(--transition-smooth);
}

.mockup:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.2);
}

.mobile-mockup {
    width: 280px;
    height: 500px;
    border-radius: 40px;
    border-width: 12px;
}

.payment-mockup, .dashboard-mockup {
    width: 100%;
    max-width: 450px;
    height: 300px;
}

.text-green { color: #00C300; } /* LINE Green */
.text-blue { color: #1A1F71; } /* Visa Blue */
.text-orange { color: #EB001B; } /* Mastercard Red/Orange */

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background-color: var(--primary-blue);
    padding: 6rem 0;
    overflow: hidden;
}

.cta-bg-elements .glow-orb.large {
    width: 600px;
    height: 600px;
    background: var(--accent-gold);
    top: -200px;
    right: -200px;
    opacity: 0.2;
}

.cta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    gap: 4rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-info {
    flex: 1;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.method-details {
    display: flex;
    flex-direction: column;
    color: var(--bg-white);
}

.method-details span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.method-details strong {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.cta-form-container {
    flex: 1;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.required {
    color: var(--error);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: #F8FAFC;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #051424; /* Darker than primary */
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .service-item, .service-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .feature-list li {
        justify-content: center;
    }
    
    .cta-card {
        flex-direction: column;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 37, 64, 0.98);
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .cta-form-container {
        padding: 2rem 1.5rem;
    }
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.faq-section {
    background: #f8fafc;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.faq-item h3 {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #0f172a;
    font-weight: 800;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-list {
        gap: 16px;
    }

    .faq-item {
        padding: 20px;
        border-radius: 14px;
    }

    .faq-item h3 {
        font-size: 1.05rem;
    }

    .faq-item p {
        font-size: 0.95rem;
        line-height: 1.85;
    }
}
/* FAQ / 問答區塊優化 */
.faq-list,
.seo-faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item,
.seo-faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.faq-item h3,
.seo-faq-item h3 {
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
    color: #0f2a44;
    font-weight: 800;
}

.faq-item p,
.seo-faq-item p {
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-list,
    .seo-faq-list {
        gap: 16px;
    }

    .faq-item,
    .seo-faq-item {
        padding: 20px;
        border-radius: 14px;
    }

    .faq-item h3,
    .seo-faq-item h3 {
        font-size: 1.05rem;
    }

    .faq-item p,
    .seo-faq-item p {
        font-size: 0.95rem;
        line-height: 1.85;
    }
}
