* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
}

body {
    font-family: 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導覽列 */
.navbar {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-banner:hover {
    transform: scale(1.05);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner::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 1200 120"><path d="M0,50 Q300,100 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 600px 120px;
    background-repeat: repeat-x;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 600px 0; }
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.banner p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: #ff5252;
}

/* 內容區域 */
.content-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.content-left h2,
.content-right h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.content-left p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.card {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.card p {
    color: #666;
}

/* 服務區域 */
.services-section {
    padding: 60px 20px;
    background-color: white;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.services-grid a {
    text-decoration: none;
}

.service-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 聯絡區域 */
.contact-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-left {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.contact-left h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-left p {
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

/* 頁尾 */
.footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 20px;
    margin-top: 3rem;
}

/* 響應式設計 - 平板 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 響應式設計 - 手機 */
@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logo {
        font-size: 1.2rem;
    }

    .banner {
        padding: 50px 20px;
        min-height: 250px;
    }

    .banner h1 {
        font-size: 1.5rem;
    }

    .banner p {
        font-size: 0.9rem;
    }

    .content-section,
    .services-section,
    .contact-section {
        padding: 40px 20px;
    }

    .content-left h2,
    .content-right h2,
    .services-section h2,
    .contact-section h2 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        gap: 20px;
    }

    .contact-content {
        gap: 20px;
    }
}
