/* 全局樣式 */
:root {
    --primary-color: #000000;
    --secondary-color: #86868b;
    --accent-color: #0066cc;
    --text-color: #1d1d1f;
    --light-gray: #f5f5f7;
    --white: #ffffff;
    --nav-height: 44px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-color);
    overflow-x: hidden;
}

/* 動畫關鍵幀 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 導航欄樣式 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    animation: fadeIn 0.5s ease-out;
}

.logo img {
    height: 24px;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 500;
    padding: 0 1.5rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 英雄區域樣式 */
.hero {
    height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: var(--nav-height);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.hero-content p {
    font-size: 27px;
    line-height: 1.14815;
    font-weight: 400;
    letter-spacing: 0.008em;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.cta-button {
    display: inline-block;
    padding: 12px 22px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.9s forwards;
}

.cta-button:hover {
    background: #0077ed;
    transform: scale(1.02);
}

/* 關於我們樣式 */
.about {
    padding: 120px 20px;
    background-color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.about.visible {
    opacity: 1;
    transform: translateY(0);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text {
    background: var(--light-gray);
    border-radius: 18px;
    padding: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.about.visible .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-text p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--text-color);
}

/* 服務項目樣式 */
.services {
    padding: 120px 20px;
    background-color: var(--light-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.services.visible {
    opacity: 1;
    transform: translateY(0);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.services.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

.services.visible .service-card:nth-child(1) {
    transition-delay: 0.2s;
}

.services.visible .service-card:nth-child(2) {
    transition-delay: 0.4s;
}

.services.visible .service-card:nth-child(3) {
    transition-delay: 0.6s;
}

.service-card:hover {
    transform: scale(1.02);
}

.service-card h3 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: 0.009em;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--secondary-color);
}

/* 加入我們樣式 */
.join {
    padding: 120px 20px;
    background-color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.join.visible {
    opacity: 1;
    transform: translateY(0);
}

.join h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--primary-color);
}

.join-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.join-card {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.join.visible .join-card {
    opacity: 1;
    transform: translateY(0);
}

.join.visible .join-card:nth-child(1) {
    transition-delay: 0.2s;
}

.join.visible .join-card:nth-child(2) {
    transition-delay: 0.4s;
}

.join-button {
    display: inline-block;
    padding: 12px 22px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.join-button:hover {
    background: #0077ed;
    transform: scale(1.02);
}

/* 聯絡表單樣式 */
.contact {
    padding: 120px 20px;
    background-color: var(--light-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.contact.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.contact.visible .contact-form {
    opacity: 1;
    transform: translateY(0);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.submit-button {
    padding: 12px 22px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 980px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #0077ed;
    transform: scale(1.02);
}

/* Footer 樣式 */
footer {
    background-color: var(--light-gray);
    padding: 3rem 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo img {
    height: 24px;
    opacity: 0.8;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a,
.footer-social a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
    text-align: center;
    color: var(--secondary-color);
    font-size: 12px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .join-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 21px;
    }

    .about h2,
    .services h2,
    .join h2,
    .contact h2 {
        font-size: 32px;
    }
}

/* 語言選擇器樣式 */
.language-selector {
    margin-left: 1rem;
}

.language-selector select {
    padding: 6px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 980px;
    background-color: transparent;
    font-size: 12px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* EDM 區塊樣式 */
.edm {
    padding: 120px 20px;
    background-color: var(--light-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.edm.visible {
    opacity: 1;
    transform: translateY(0);
}

.edm-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.edm-text {
    flex: 1 1 300px;
    min-width: 260px;
}

.edm-images {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex: 1 1 300px;
    min-width: 0;
}

.edm-image-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.edm-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.edm.visible .edm-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.edm-card h3 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: 0.009em;
    margin-bottom: 1rem;
}

.edm-card p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .edm-content {
        flex-direction: column;
        gap: 2rem;
    }
    .edm-images {
        flex-direction: column;
        gap: 1.5rem;
    }
} 