/* 重置和基本樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導航欄 */
.navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(10px);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.5));
}

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

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.emergency-call {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.emergency-call:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #128C7E 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.emergency-call i {
    font-size: 1.3rem;
    margin-right: 0.6rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要橫幅 */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.85)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%233b82f6" width="1200" height="600"/><path fill="%231d4ed8" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 120px 0 50px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-content h1 .subtitle {
    font-size: 2.2rem;
    font-weight: 500;
    color: #fbbf24;
    display: block;
    margin-top: 0.5rem;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(29, 168, 81, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1DA851 0%, #0F5F3F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(29, 168, 81, 0.7);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.4));
}

.feature span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 服務項目 */
.services {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.services h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-category {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.2);
}

.service-category:hover::before {
    transform: scaleX(1);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #fbbf24, #f59e0b) border-box;
    border-bottom: 3px solid;
}

.category-header i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-right: 1rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.category-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateX(8px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.service-item i {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-right: 1rem;
    margin-top: 0.2rem;
    transition: transform 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.1);
}

.service-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-item p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.price {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.3rem;
}

/* 關於我們 */
.about {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.8rem;
    color: #f59e0b;
    margin-right: 1rem;
    margin-top: 0.2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.feature-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.4;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.5);
}

.stat:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
}

/* 聯絡我們 */
.contact {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.contact-info-only {
    display: flex;
    justify-content: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-only .contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 800px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-item i {
    font-size: 2rem;
    color: #f59e0b;
    margin-right: 1.2rem;
    margin-top: 0.2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.contact-item small {
    color: #666;
    font-size: 0.9rem;
}


/* 頁腳 */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1e40af);
}

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

.footer-section h4 {
    color: #fbbf24;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
    color: #bdc3c7;
}

.footer-section i {
    color: #fbbf24;
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #2c3e50;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

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

    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services h2,
    .about-text h2,
    .contact h2 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-category {
    animation: fadeInUp 0.6s ease-out;
}

.contact-item {
    animation: scaleIn 0.5s ease-out;
}

.feature-item {
    animation: slideInLeft 0.6s ease-out;
}

.stat {
    animation: scaleIn 0.6s ease-out;
}

/* 滾動效果 */
html {
    scroll-behavior: smooth;
}

