/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主要配色 - 現代化媽祖紅主軸 */
    --primary-red: #C0392B;        /* 主色：媽祖旗袍紅 30-40% */
    --secondary-red: #C25B2B;      /* 輔色1：磚紅/陶瓦橘 */
    --tertiary-red: #D35400;       /* 輔色1變化：更偏橘的磚紅 */
    --golden: #D4AF37;             /* 輔色2：金色 - 守護與財富 */
    --golden-light: #F4C542;       /* 輔色2變化：亮金色 */
    --warm-white: #FAF3E0;         /* 中性色：象牙白背景 50% */
    --tech-blue: #34495E;          /* 科技點綴色：靛藍 */
    --tech-blue-dark: #2C3E50;     /* 科技點綴色變化：深藍 */
    
    /* 語義化顏色 */
    --faith-red: #B22222;          /* 信念紅 - 更深的媽祖紅 */
    --temple-orange: #D35400;      /* 廟宇橘 - 香爐神轎色 */
    --blessing-gold: #F4C542;      /* 祝福金 - hover和icon使用 */
    --trust-white: #FAF3E0;        /* 信任白 - 溫潤背景 */
    --wisdom-blue: #2C3E50;        /* 智慧藍 - 專業穩定 */
    
    /* 輔助色彩 */
    --light-gray: #F8F9FA;
    --medium-gray: #ECF0F1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-muted: #95A5A6;
    
    /* 字體 */
    --font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    
    /* 間距 */
    --container-padding: 0 20px;
    --section-padding: 80px 0;
    --border-radius: 12px;
    --border-radius-small: 8px;
    
    /* 陰影 - 加入溫暖色調 */
    --shadow-light: 0 2px 10px rgba(196, 57, 43, 0.08);
    --shadow-medium: 0 4px 20px rgba(196, 57, 43, 0.12);
    --shadow-heavy: 0 8px 30px rgba(196, 57, 43, 0.15);
    --shadow-golden: 0 4px 20px rgba(212, 175, 55, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--golden));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Buttons - 紅底白字，Hover時轉為金底紅字 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--golden);
    border-color: var(--golden);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-golden);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Navigation - 暖白背景 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 243, 224, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--golden);
}

.navbar.scrolled {
    background: rgba(250, 243, 224, 0.98);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}


.logo-img {
    height: 100%;
    /* width: auto; */
    filter: drop-shadow(2px 2px 4px rgba(196, 57, 43, 0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--golden));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--golden));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--warm-white) 0%, #F8F9FA 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.hero-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-red), var(--temple-orange));
    border-radius: 50%;
    color: white;
    font-size: 6rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-heavy);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--golden), var(--blessing-gold));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    animation: orbit 10s linear infinite;
    box-shadow: var(--shadow-golden);
}

.element-1 {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: -3.3s;
}

.element-3 {
    top: 60%;
    right: 10%;
    animation-delay: -6.6s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    transform: rotate(45deg);
}

/* Services Overview */
.services-overview {
    padding: var(--section-padding);
    background: white;
    position: relative;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--golden), var(--primary-red));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--golden));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--golden);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--temple-orange));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--golden), var(--blessing-gold));
    color: var(--primary-red);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
}

.service-link:hover {
    background: var(--golden);
    color: white;
    transform: translateX(5px);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--medium-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-story {
    margin-bottom: 2rem;
}

.about-story p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-story blockquote {
    background: linear-gradient(135deg, var(--primary-red), var(--temple-orange));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    font-style: italic;
    font-size: 1.1rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: var(--shadow-medium);
}

.about-story blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--blessing-gold);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
}

.about-story blockquote::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 20px solid var(--temple-orange);
    border-bottom: 20px solid transparent;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-top: 4px solid var(--golden);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-golden);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.video-container {
    display: flex;
    justify-content: center;
}

.video-placeholder {
    width: 100%;
    max-width: 400px;
    height: 250px;
    background: linear-gradient(135deg, var(--tech-blue-dark), var(--tech-blue));
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--golden);
}

.video-placeholder:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--temple-orange));
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--blessing-gold);
}

/* Services Accordion */
.services {
    padding: var(--section-padding);
    background: white;
}

.services-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--golden);
}

.accordion-header {
    background: var(--warm-white);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--golden);
}

.accordion-header:hover {
    background: var(--medium-gray);
}

.accordion-item.active .accordion-header {
    background: linear-gradient(135deg, var(--primary-red), var(--temple-orange));
    color: white;
    border-left-color: var(--blessing-gold);
}

.accordion-header h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.accordion-toggle {
    transition: transform 0.3s ease;
    color: var(--golden);
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
    color: var(--blessing-gold);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.service-detail {
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    border-top: 2px solid var(--golden);
}

.service-description ul {
    list-style: none;
    margin-top: 1rem;
}

.service-description li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    border: 2px solid var(--golden);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: white;
    box-shadow: var(--shadow-golden);
    transform: scale(1.05);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--temple-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: var(--medium-gray);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 250px;
    background: var(--tech-blue-dark);
    transition: all 0.3s ease;
    border: 3px solid var(--golden);
    box-shadow: var(--shadow-light);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--blessing-gold);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 57, 43, 0.9), rgba(211, 84, 0, 0.9));
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--blessing-gold);
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-link {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    color: var(--blessing-gold);
    transform: scale(1.2);
}

/* Process Section */
.process {
    padding: var(--section-padding);
    background: white;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-red), var(--golden), var(--primary-red));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--temple-orange));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid var(--golden);
    box-shadow: var(--shadow-medium);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 0 60px;
    width: calc(50% - 60px);
    border: 2px solid var(--golden);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-golden);
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 60px;
}

.timeline-content h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--medium-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--golden);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-golden);
    border-left-color: var(--primary-red);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-red);
    width: 30px;
    text-align: center;
}

.contact-method h4 {
    color: var(--primary-red);
    margin-bottom: 0.3rem;
}

.contact-method p {
    color: var(--text-light);
    margin: 0;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 2px solid var(--golden);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--tech-blue);
    border-radius: var(--border-radius-small);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--warm-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 57, 43, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 2px solid var(--golden);
}

.calendar-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.calendar-nav {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: var(--golden);
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--medium-gray);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.calendar-day {
    background: white;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.calendar-day.header {
    background: var(--primary-red);
    color: white;
    font-weight: 600;
    cursor: default;
}

.calendar-day.other-month {
    color: var(--text-muted);
    background: var(--light-gray);
}

.calendar-day.available:hover {
    background: var(--golden);
    color: white;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: var(--primary-red);
    color: white;
    border-color: var(--golden);
}

.calendar-day.unavailable {
    background: var(--medium-gray);
    color: var(--text-muted);
    cursor: not-allowed;
}

.time-slots {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-slot {
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--tech-blue);
    border-radius: var(--border-radius-small);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.time-slot.available:hover {
    background: var(--golden);
    color: white;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--primary-red);
    color: white;
    border-color: var(--golden);
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.disabled:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    transform: none;
}

.time-slot.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #ccc;
    transform: translateY(-50%);
}

.time-slot.unavailable {
    background: var(--medium-gray);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--text-muted);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Booking Form Styles */
.booking-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--primary-red);
}

.booking-summary {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 1.5rem;
    border: 2px solid var(--golden);
    text-align: center;
}

.booking-summary .selected-datetime {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.booking-summary .booking-note {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.booking-details-form .form-group {
    margin-bottom: 1.5rem;
}

.booking-details-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.booking-details-form input,
.booking-details-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--tech-blue);
    border-radius: var(--border-radius-small);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.booking-details-form input:focus,
.booking-details-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 57, 43, 0.1);
}

.booking-details-form textarea {
    resize: vertical;
    min-height: 80px;
}

.booking-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.booking-actions .btn {
    flex: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--tech-blue-dark), var(--tech-blue));
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--golden), var(--primary-red));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
    height: 50px;
}

.footer-logo .logo-text {
    background: linear-gradient(135deg, white, var(--blessing-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--blessing-gold);
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--blessing-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-list a:hover {
    color: var(--blessing-gold);
    padding-left: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    width: 20px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: var(--blessing-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--blessing-gold);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.footer-cta {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--blessing-gold);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--warm-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        border-top: 2px solid var(--golden);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        white-space: nowrap;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-graphic {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calendar-wrapper {
        max-width: 100%;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        padding: 0.8rem 0.3rem;
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: center;
    }

    .timeline-content {
        width: 80%;
        margin: 2rem 0 0 0 !important;
    }

    .process-timeline::before {
        left: 30px;
    }

    .timeline-number {
        left: 30px;
        transform: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* 載入和錯誤狀態 */
.loading, .no-slots, .error {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.error {
    color: var(--primary-red);
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
}

.no-slots {
    color: var(--text-light);
    background-color: #f5f5f5;
    border-radius: 8px;
} 