:root {
    --primary-color: #F5B700;  /* 保持原有的金色 */
    --secondary-color: #E8A100;  /* 暗金色 */
    --background-color: #0F0F13;  /* 深色背景 */
    --text-color: #FFFFFF;  /* 純白色文字 */
    --accent-color: #F5B700;  /* 金色強調 */
    --card-bg: rgba(29, 29, 38, 0.85);  /* 半透明卡片背景 */
    --hover-color: #FFD54F;  /* 懸停時的金色 */
    --gradient-start: #13131A;  /* 漸變起始色 */
    --gradient-end: #0A0A12;  /* 漸變結束色 */
    --glass-bg: rgba(255, 255, 255, 0.06);  /* 毛玻璃效果背景 */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.18);
    --shadow-strong: 0 12px 40px rgba(245, 183, 0, 0.25);
    --font-heading: 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 導航欄樣式 */
.header {
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header:hover {
    background: rgba(15, 15, 19, 0.95);
}

.nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(245, 183, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 修改背景紋理，保持金色色調 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 10%, rgba(245, 183, 0, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+CiAgPGRlZnM+CiAgICA8cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHBhdGggZD0iTSAwIDEwIEwgNDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0Y1QjcwMCIgc3Ryb2tlLXdpZHRoPSIwLjMiIHN0cm9rZS1vcGFjaXR5PSIwLjA1Ii8+CiAgICAgIDxwYXRoIGQ9Ik0gMTAgMCBMIDEwIDQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNGNUI3MDAiIHN0cm9rZS13aWR0aD0iMC4zIiBzdHJva2Utb3BhY2l0eT0iMC4wNSIvPgogICAgPC9wYXR0ZXJuPgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIiAvPgo8L3N2Zz4=');
    opacity: 0.6;
    z-index: -2;
    pointer-events: none;
}

/* 優化主視覺區域背景 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at top right, #242432 0%, var(--gradient-start) 50%, var(--gradient-end) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(245, 183, 0, 0.15) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+CiAgPGRlZnM+CiAgICA8cGF0dGVybiBpZD0iZG90cyIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIj4KICAgICAgPGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9IiNGNUI3MDAiIGZpbGwtb3BhY2l0eT0iMC4xIiAvPgogICAgPC9wYXR0ZXJuPgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2RvdHMpIiAvPgo8L3N2Zz4=');
    opacity: 0.2;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: moveParticle 15s linear infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-duration: 20s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(2) {
    top: 60%;
    left: 15%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-duration: 18s;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    top: 75%;
    left: 80%;
    animation-duration: 22s;
    width: 4px;
    height: 4px;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-duration: 28s;
    width: 5px;
    height: 5px;
    animation-delay: 1.5s;
}

.particle:nth-child(6) {
    top: 85%;
    left: 30%;
    animation-duration: 19s;
    width: 4px;
    height: 4px;
    animation-delay: 2.5s;
}

@keyframes moveParticle {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(100px, 50px);
    }
    50% {
        transform: translate(50px, 100px);
    }
    75% {
        transform: translate(-50px, 50px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), #C850C0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 30px rgba(65, 88, 208, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    color: var(--text-color);
    font-weight: 300;
    letter-spacing: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
    background: linear-gradient(45deg, var(--primary-color), #C850C0);
    color: #0F0F13;
    text-decoration: none;
    border-radius: 32px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
    box-shadow: 0 8px 30px rgba(65, 88, 208, 0.3);
    border: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(65, 88, 208, 0.4);
}

.cta-button:hover::after {
    transform: translateX(100%);
}

.hero-logo-container {
    position: relative;
    margin-bottom: 2.5rem;
    display: inline-block;
}

.hero-logo {
    max-width: none;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(245, 183, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65, 88, 208, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    animation: glow 4s ease-in-out infinite;
}

/* 滚动指示器位置调整 */
.hero-scroll-indicator {
    position: relative;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

/* 關於我們樣式 */
.about {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-content p {
    color: var(--text-color);
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--text-color);
    border: 1px solid rgba(245, 183, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(245, 183, 0, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-strong);
}

.stat-item:hover::before {
    transform: translateX(100%);
}

.number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.label {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* 服務項目樣式 */
.services {
    padding: 8rem 2rem;
    background: var(--gradient-start);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48ZyBmaWxsPSIjRjVCNzAwIiBmaWxsLW9wYWNpdHk9IjAuMDIiPjxjaXJjbGUgY3g9IjEuNSIgY3k9IjEuNSIgcj0iMS41Ii8+PC9nPjwvc3ZnPg==');
    opacity: 0.5;
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-size: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(245, 183, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
}

.service-card p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 3rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(65, 88, 208, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(65, 88, 208, 0.2);
    box-shadow: 0 0 30px rgba(65, 88, 208, 0.3);
}

.service-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--hover-color);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 作品集樣式 */
.portfolio {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-size: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.portfolio h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background-size: 110% !important;
    background-position: center !important;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 19, 0.9), rgba(15, 15, 19, 0.2));
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.portfolio-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
    background-size: 100% !important;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-content {
    display: none;
}

/* 作品集工作流程动画 */
.portfolio::before {
    content: '';
    position: absolute;
    top: 12%;
    right: -40%;
    width: 60%;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 183, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: float 15s ease-in-out infinite alternate;
}

.portfolio::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: -20%;
    width: 40%;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 183, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: float 12s ease-in-out infinite alternate-reverse;
}

/* 作品查看按钮 */
.portfolio-view {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(245, 183, 0, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.portfolio-item:hover .portfolio-view {
    transform: scale(1);
    opacity: 1;
}

.portfolio-view:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-item:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* 聯絡表單樣式 */
.contact {
    padding: 8rem 2rem;
    background: var(--gradient-start);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--card-bg), transparent);
    opacity: 0.5;
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-size: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-layout {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-soft);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-strong);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 88, 208, 0.1);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-item:hover .contact-icon {
    background: rgba(65, 88, 208, 0.2);
    transform: scale(1.1);
}

.contact-item p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

.contact-social {
    display: none;
}

/* 頁尾樣式 */
.footer {
    padding: 3rem 2rem;
    background: rgba(15, 15, 19, 0.8);
    color: var(--text-color);
    border-top: 1px solid rgba(245, 183, 0, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    gap: 0.5rem;
}

.footer-copyright {
    opacity: 0.7;
}

/* 動畫 */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); filter: blur(30px); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); filter: blur(20px); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); filter: blur(30px); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 1.2rem 2.5rem;
    }
    
    .service-card {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        max-width: 180px;
    }
    
    .about h2, .services h2, .portfolio h2, .contact h2 {
        font-size: 2.5rem;
    }
    
    .contact-layout {
        flex-direction: column;
    }
}

/* 滚动动画类 */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate.fadeInLeft {
    transform: translateX(-30px);
}

.animate.fadeInRight {
    transform: translateX(30px);
}

.animate.active {
    opacity: 1;
    transform: translate(0);
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-circle:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--hover-color);
    animation: spin 1.2s linear infinite reverse;
}

.loader-circle:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

.loader-logo {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 全屏圖片查看器 */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.fullscreen-viewer.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* 服務卡片布局調整為三個 */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
} 