:root {
    /* 金棕色主色調配色方案 */
    --primary-color: #c29760;           /* 主金棕色 */
    --primary-dark: #a0804d;            /* 深金棕色 */
    --primary-light: #d4ab7a;           /* 淺金棕色 */
    --accent-gold: #e6c89a;             /* 金色強調 */
    --accent-bronze: #8b6f47;           /* 青銅色 */

    /* 奢華補色 */
    --luxury-dark: #2a2a2a;             /* 深灰黑 */
    --luxury-charcoal: #404040;         /* 炭灰色 */
    --luxury-silver: #b8b8b8;           /* 銀灰色 */
    --luxury-cream: #f7f5f2;            /* 奶油色 */

    /* 文字顏色 */
    --text-primary: #2a2a2a;
    --text-secondary: #666666;
    --text-light: #888888;
    --text-luxury: #404040;

    /* 背景顏色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f9f8f6;            /* 溫暖的淺色背景 */
    --bg-accent: #f7f5f2;               /* 奶油色背景 */
    --bg-dark: #2a2a2a;

    /* 邊框與陰影 */
    --border-color: #e6e3df;
    --border-light: #f0ede8;
    --shadow-sm: 0 2px 12px rgba(194, 151, 96, 0.08);
    --shadow-md: 0 4px 20px rgba(194, 151, 96, 0.12);
    --shadow-lg: 0 8px 32px rgba(194, 151, 96, 0.16);
    --shadow-luxury: 0 12px 48px rgba(42, 42, 42, 0.1);

    /* 漸變 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-luxury: linear-gradient(135deg, var(--luxury-dark), var(--luxury-charcoal));
    --gradient-accent: linear-gradient(135deg, var(--accent-gold), var(--primary-light));

    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

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

/* 奢華字體 */
.luxury-font {
    font-family: 'Playfair Display', serif;
}

/* ===================
   Header & Navigation
   =================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--primary-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    flex-wrap: wrap; /* allow CTA row to occupy its own line */
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-luxury);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.6rem 0;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.emergency-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-color);
}

.emergency-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* CTA row under navbar: keep on its own line and right-aligned */
.nav-cta {
    flex: 1 0 100%;
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: .5rem;
}

/* Slightly smaller buttons in header to avoid wrapping */
.nav-cta .emergency-btn {
    padding: .6rem 1.2rem;
    font-size: .9rem;
}

@media (max-width: 640px) {
    .nav-menu { gap: 1rem; }
    .nav-cta { justify-content: center; }
}

/* ===================
   Hero Section
   =================== */
.hero {
    background: linear-gradient(135deg,
    rgba(194, 151, 96, 0.85),
    rgba(160, 128, 77, 0.9)),
    url('/img/救護站.jpg') center center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(230, 200, 154, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(194, 151, 96, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: 0.5px;
}

.hero-text .highlight {
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    height: 320px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-luxury);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0.05;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

/* ===================
   Buttons
   =================== */
.btn-primary {
    background: var(--gradient-accent);
    color: var(--luxury-dark);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

/* ===================
   Sections
   =================== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* ===================
   Trust Indicators
   =================== */
.trust-indicators {
    background: var(--bg-secondary);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    padding: 2.5rem 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.trust-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.trust-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.trust-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ===================
   Services Grid
   =================== */
.services {
    background: var(--bg-primary);
}

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

.service-card {
    background: var(--bg-accent);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-color)10, transparent 70%);
    opacity: 0.05;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
}

.service-card:hover::after {
    opacity: 0.1;
    transform: scale(1.2);
}

.service-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.3px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

/* ===================
   Features Grid
   =================== */
.why-choose {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    color: white;
    font-size: 1.6rem;
    box-shadow: var(--shadow-sm);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.3px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

/* ===================
   Content Pages
   =================== */
.content-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.page-header {
    background: var(--gradient-luxury);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(194, 151, 96, 0.9),
    rgba(42, 42, 42, 0.9));
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 0;
}

.content-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

/* ===================
   Contact Section
   =================== */
.contact {
    background: var(--gradient-luxury);
    color: white;
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(194, 151, 96, 0.9),
    rgba(42, 42, 42, 0.9));
}

.contact > .container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

/* ===================
   Footer
   =================== */
.footer {
    background: var(--luxury-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.3px;
}

.footer-section p,
.footer-section a {
    color: var(--luxury-silver);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--luxury-charcoal);
    padding-top: 2rem;
    text-align: center;
    color: var(--luxury-silver);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* ===================
   Responsive Design
   =================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .emergency-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

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

    .section-header h2 {
        font-size: 1.9rem;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 1.75rem;
    }
}

/* ===================
   Animations
   =================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.elegant-pulse {
    animation: elegantPulse 4s ease-in-out infinite;
}

@keyframes elegantPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--shadow-lg);
    }
}

/* 奢華裝飾元素 */
.luxury-accent {
    position: relative;
}

.luxury-accent::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* ===================
   Utility Classes
   =================== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

.carousel-section {
    margin: 4rem 0;
    text-align: center;
}

.carousel-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.swiper {
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin: auto;
}

.swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
