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

:root {
    --primary-color: #4682B4;      /* 深藍灰 (Slate Blue) */
    --secondary-color: #F4A7A7;     /* 柔和珊瑚色 (Soft Coral) */
    --accent-color: #ADD8E6;        /* 淺藍色 (Light Blue) */
    --beige: #F5F5DC;              /* 米色 (Beige) */
    --warm-gray: #D3D3D3;          /* 暖灰色 (Warm Gray) */
    --text-color: #333333;         /* 深灰 (Dark Gray) */
    --light-bg: #F5F5DC;           /* 米色背景 */
    --border-color: #D3D3D3;       /* 暖灰色邊框 */
    --white: #FFFFFF;              /* 純白 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* 頂部聯絡資訊欄 */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

/* 導航欄 */
.navbar {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.nav-brand .subtitle {
    font-size: 12px;
    color: #666;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    background: transparent;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

/* 簡潔的導航樣式 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
    background: rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* 下拉菜單樣式 */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-toggle .material-icons {
    font-size: 20px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 主下拉菜單 */
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(139, 69, 19, 0.1);
    color: var(--accent-color) !important;
}

/* 子菜單樣式 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover .submenu-arrow {
    transform: translateX(5px);
}

.submenu-items {
    position: absolute;
    left: 100%;
    top: -8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
}

.dropdown-submenu:hover .submenu-items {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-items li {
    margin: 0;
}

.submenu-items a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color) !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu-items a:hover {
    background: rgba(139, 69, 19, 0.1);
    color: var(--accent-color) !important;
}

.breed-menu li {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(173, 216, 230, 0.2);
}

.breed-menu li:last-child {
    border-bottom: none;
}

.breed-menu a {
    font-size: 13px;
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.breed-menu a:hover {
    color: var(--accent-color) !important;
}

/* 主要橫幅 */
.hero {
    background: linear-gradient(135deg, rgba(70,130,180,0.9), rgba(100,149,237,0.8));
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 新按鈕樣式 - From Uiverse.io by TCdesign-dev */
button {
    all: unset;
}

.btn-primary,
.btn-secondary {
    align-items: center;
    appearance: none;
    background-color: #fcfcfd;
    border-radius: 4px;
    border-width: 0;
    box-shadow:
        rgba(45, 35, 66, 0.2) 0 2px 4px,
        rgba(45, 35, 66, 0.15) 0 7px 13px -3px,
        #d6d6e7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #36395a;
    cursor: pointer;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition:
        box-shadow 0.15s,
        transform 0.15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow, transform;
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft JhengHei", sans-serif;
    font-weight: 600;
}

.btn-primary:focus,
.btn-secondary:focus {
    box-shadow:
        #d6d6e7 0 0 0 1.5px inset,
        rgba(45, 35, 66, 0.4) 0 2px 4px,
        rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
        #d6d6e7 0 -3px 0 inset;
}

.btn-primary:hover,
.btn-secondary:hover {
    box-shadow:
        rgba(45, 35, 66, 0.3) 0 4px 8px,
        rgba(45, 35, 66, 0.2) 0 7px 13px -3px,
        #d6d6e7 0 -3px 0 inset;
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active {
    box-shadow: #d6d6e7 0 3px 7px inset;
    transform: translateY(2px);
}

/* 移除 span 元素的舊樣式 */
.btn-primary span,
.btn-secondary span {
    all: unset;
}

/* 區塊標題 */
.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* 區塊標題圖片響應式設計 */
.section-title img {
    max-width: 100%;
    height: auto;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* 關於我們 */
.about-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.features {
    list-style: none;
    margin-top: 30px;
}

.features li {
    padding: 10px 0;
    font-size: 16px;
}

.features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--border-color);
}

/* 犬隻展示 */
.dogs-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dogs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(173, 216, 230, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 167, 167, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(70, 130, 180, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.dog-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn {
    background-color: var(--warm-gray);
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-color);
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.dogs-section .container {
    position: relative;
    z-index: 1;
}

/* 滑動寵物卡片容器 */
.dogs-slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.dogs-slider {
    display: flex;
    gap: 30px;
    animation: slideRightToLeft 40s linear infinite;
    width: fit-content;
}

/* 右至左滑動動畫 - 無縫循環 */
@keyframes slideRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 暫停動畫當滑鼠懸停 */
.dogs-slider:hover {
    animation-play-state: paused;
}

/* 寵物卡片在滑動中的樣式 */
.dogs-slider .dog-card {
    flex: 0 0 280px;
    min-width: 280px;
}

/* 犬型頁面的網格佈局 */
.dogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 確保犬型頁面的寵物卡片大小與首頁一致 */
.dogs-grid .dog-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.dog-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.dog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.dog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(173, 216, 230, 0.8);
    background: rgba(255, 255, 255, 0.7);
}

.dog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dog-info {
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.dog-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.dog-info p {
    color: #666;
    margin-bottom: 10px;
}

.dog-info .breed {
    color: #007cba;
    font-weight: 600;
    font-size: 24px; /* 原本是16px，調整為24px與名稱一致 */
    margin-bottom: 12px;
}

.dog-info .description {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    padding: 0 5px;
}

.category-tag {
    display: inline-block;
    background: rgba(173, 216, 230, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(173, 216, 230, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dog-card:hover .category-tag {
    background: rgba(173, 216, 230, 0.7);
    border-color: rgba(173, 216, 230, 0.5);
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* 查看更多按鈕區 */
.view-more-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
}

.view-more-section h3 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.view-more-section p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.dog-type-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-dog-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn-dog-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.btn-dog-type:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(173, 216, 230, 0.6);
}

.btn-dog-type i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-dog-type:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.dog-type-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
}

.dog-type-desc {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

/* 不同犬型的特色顏色 */
.btn-dog-type.large-dog:hover {
    border-color: rgba(255, 165, 0, 0.6);
}

.btn-dog-type.large-dog:hover i {
    color: #ff6b35;
}

.btn-dog-type.medium-dog:hover {
    border-color: rgba(70, 130, 180, 0.6);
}

.btn-dog-type.medium-dog:hover i {
    color: var(--primary-color);
}

.btn-dog-type.small-dog:hover {
    border-color: rgba(255, 192, 203, 0.6);
}

.btn-dog-type.small-dog:hover i {
    color: #ff69b4;
}

/* 品種篩選標籤 */
.breed-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.breed-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(173, 216, 230, 0.3);
    border-radius: 25px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.breed-btn:hover,
.breed-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(70, 130, 180, 0.3);
}

/* 無資料提示 */
.no-pets-message {
    text-align: center;
    padding: 80px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 健康專區 */
.health-section {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* 健康專區背景圖案 */
.health-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(173, 216, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(173, 216, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(173, 216, 230, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.health-section .container {
    position: relative;
    z-index: 1;
}

.health-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.health-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.health-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(173, 216, 230, 0.1) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(173, 216, 230, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.health-card:hover::before {
    opacity: 1;
}

.health-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(173, 216, 230, 0.8);
}

.health-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.8), rgba(173, 216, 230, 0.6));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.health-card:hover .health-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(173, 216, 230, 1), rgba(173, 216, 230, 0.8));
}

.health-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.health-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.health-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.health-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.health-card li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.health-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.health-card .btn-secondary {
    margin-top: auto;
    align-self: flex-start;
}

.health-notice {
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.health-notice p {
    margin: 0;
    color: var(--primary-color);
    font-size: 16px;
}

.health-notice i {
    margin-right: 10px;
}

/* 相簿 */
.gallery-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

/* 相簿分類篩選 */
.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-category-btn {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.gallery-category-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.gallery-category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 圖片疊加效果 */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* 圖片燈箱 */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

#lightbox-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.lightbox-info {
    padding: 20px;
    background: var(--white);
}

.lightbox-info h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 20px;
}

.lightbox-info p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* 燈箱導航按鈕 */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

/* 淡入動畫 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 隱藏動畫 */
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* 客戶評價 */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    min-height: 100px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 2px;
    font-size: 16px;
}

.author-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.testimonial-note {
    text-align: center;
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.testimonial-note p {
    color: var(--primary-color);
    margin: 0;
    font-size: 16px;
}

.testimonial-note i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* 聯絡我們 */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-full {
    max-width: 600px;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form {
    text-align: center;
}

.contact-form h3,
.contact-form-full h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-form > p,
.contact-form-full > p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.contact-alternatives {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.contact-alternatives p {
    color: #666;
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--light-bg);
    border-radius: 25px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s;
    font-weight: 500;
}

.contact-method:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-list {
    list-style: none;
    margin-bottom: 30px;
}

.contact-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.contact-list i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.license-info {
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(70,130,180,0.1);
}

/* 頁尾 */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 5px 0;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-list i {
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.footer-contact-list a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact-list a:hover {
    text-decoration: underline;
}

.license-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.license-info p {
    margin: 5px 0;
    color: var(--white);
    opacity: 1;
}

.license-info p strong {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 頁腳地圖區域 */
.footer-map-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-map-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.footer-map-title {
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.footer-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 寵物詳細資訊彈窗 */
.pet-modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-info {
    margin: 20px 0;
}

.modal-info p {
    margin: 10px 0;
    line-height: 1.6;
}

.modal-contact {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--accent-color);
    border-radius: 10px;
}

.modal-contact h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-contact .btn-primary {
    margin: 10px 0;
    display: inline-block;
    background-color: #00B900 !important;
    color: white !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.3);
}

.modal-contact .btn-primary:hover {
    background-color: #009900 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.4);
}

.modal-contact .btn-primary i {
    margin-right: 8px;
    font-size: 18px;
}

.modal-contact p {
    margin: 10px 0;
    color: #666;
}

.modal-info .contact-info {
    background: rgba(173, 216, 230, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid rgba(173, 216, 230, 0.3);
}

.modal-info .contact-info p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.modal-info .contact-info p:first-child {
    font-weight: 600;
    color: #007cba;
    margin-bottom: 12px;
}

/* 新增的寵物資訊樣式 */
.dog-info .age,
.dog-info .gender,
.dog-info .color,
.dog-info .price,
.dog-info .health {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    padding: 2px 0;
}

.dog-info .price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.dog-info .health {
    font-size: 12px;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* LINE 綠色按鈕樣式 */
.btn-line-green {
    background: linear-gradient(135deg, #00B900 0%, #00A300 100%) !important;
    color: white !important;
    border: none !important;
    transform: scale(1.2) !important;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-line-green:hover {
    background: linear-gradient(135deg, #00A300 0%, #009100 100%) !important;
    transform: scale(1.25) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.4) !important;
    color: white !important;
}

.btn-line-green:active {
    transform: scale(1.18) translateY(0px) !important;
    box-shadow: 0 3px 10px rgba(0, 185, 0, 0.3) !important;
}

.btn-line-green i {
    color: white !important;
    margin-right: 8px;
    font-size: 1.1em;
}

/* 公告欄 */
.announcement-bar {
    position: relative;
    padding: 12px 0;
    text-align: center;
    font-size: 15px;
    z-index: 1001;
}

.announcement-bar.announcement-info {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.announcement-bar.announcement-promotion {
    background-color: var(--secondary-color);
    color: white;
}

.announcement-bar.announcement-warning {
    background-color: #ff9800;
    color: white;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.announcement-content strong {
    font-weight: 600;
}

.announcement-content a {
    color: inherit;
    text-decoration: underline;
    margin-left: 10px;
}

.announcement-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.announcement-close:hover {
    opacity: 1;
}

/* 社群媒體懸浮選單 */
.social-float-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.social-float-toggle {
    width: 65px;
    height: 65px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    border: 2px solid var(--accent-color);
    overflow: hidden;
    padding: 0;
}

.social-float-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.social-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    display: block;
}

.social-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 24px;
    color: var(--primary-color);
}

.social-float-menu.active .social-logo {
    opacity: 0;
}

.social-float-menu.active .social-close {
    opacity: 1;
}

.social-float-menu.active .social-float-toggle {
    background-color: var(--light-bg);
}

/* 社群按鈕容器 */
.social-float-buttons {
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

.social-float-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

/* 各社群平台顏色 */
.line-btn {
    background-color: #00B900;
}

.tiktok-btn {
    background-color: #000000;
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* 展開時的位置 */
.social-float-menu.active .social-float-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.social-float-menu.active .line-btn {
    bottom: 80px;
    right: 7px;
    transition-delay: 0.1s;
}

.social-float-menu.active .tiktok-btn {
    bottom: 65px;
    right: 65px;
    transition-delay: 0.2s;
}

.social-float-menu.active .instagram-btn {
    bottom: 7px;
    right: 80px;
    transition-delay: 0.3s;
}

/* 懸停效果 */
.social-float-btn:hover {
    transform: scale(1.15);
}

/* 工具提示 */
.social-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.social-float-btn:hover .social-tooltip {
    opacity: 1;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid rgba(0,0,0,0.8);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* 健康卡片動作區域 */
.health-card-action {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.btn-health-info {
    background: linear-gradient(135deg, var(--primary-color), #5a9bd4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
    min-width: 120px;
    justify-content: center;
}

.btn-health-info:hover {
    background: linear-gradient(135deg, #5a9bd4, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

.btn-health-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(70, 130, 180, 0.3);
}

.btn-health-info i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-health-info:hover i {
    transform: scale(1.1);
}

/* 疫苗接種和健康手冊彈窗樣式 */
.vaccine-timeline {
    margin-top: 20px;
}

.vaccine-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.vaccine-item:hover {
    transform: translateX(5px);
}

.vaccine-age {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-right: 20px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(70, 130, 180, 0.3);
}

.vaccine-info h4 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.vaccine-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-item h4 {
    color: #2c3e50;
    margin: 10px 0;
    font-size: 16px;
}

.benefit-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.vaccine-guarantee ul {
    list-style: none;
    padding: 0;
}

.vaccine-guarantee li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(70, 130, 180, 0.1);
    border-radius: 8px;
}

.vaccine-guarantee li i {
    color: #28a745;
    margin-right: 12px;
    font-size: 16px;
}

/* 健康手冊樣式 */
.handbook-sections {
    margin-top: 20px;
}

.handbook-section {
    display: flex;
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.handbook-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.section-icon {
    background: linear-gradient(135deg, var(--primary-color), #5a9bd4);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.section-icon i {
    font-size: 24px;
}

.section-content h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.section-content p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
}

.section-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-content li {
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.section-content li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-3px);
}

.service-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.service-item h4 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.service-item p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .contact-info span {
        margin-right: 10px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--primary-color) !important;
        width: 280px;
        height: 100vh;
        padding: 80px 30px;
        transition: 0.3s;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        z-index: 1000;
        list-style: none;
        gap: 0;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-menu a {
        color: white !important;
        padding: 15px 20px;
        margin: 5px 0;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateX(10px);
    }

    .nav-menu a.active::after {
        display: none;
    }
    
    /* 移動端下拉菜單樣式 */
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0;
        margin-left: 20px;
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-dropdown .dropdown-menu li {
        background: rgba(255, 255, 255, 0.05);
        margin: 5px 0;
        border-radius: 8px;
    }
    
    .nav-dropdown .dropdown-menu a {
        color: white !important;
        padding: 12px 20px;
    }
    
    .nav-dropdown .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-toggle .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-submenu .submenu-items {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0;
        margin-left: 20px;
        display: none;
    }
    
    .dropdown-submenu.active .submenu-items {
        display: block;
    }
    
    .dropdown-submenu .submenu-items li {
        background: rgba(255, 255, 255, 0.03);
        margin: 3px 0;
        border-radius: 6px;
    }
    
    .dropdown-submenu .submenu-items a {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .dropdown-submenu .submenu-items a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white !important;
    }
    
    .dropdown-submenu .submenu-arrow {
        transition: transform 0.3s ease;
    }
    
    .dropdown-submenu.active .submenu-arrow {
        transform: rotate(90deg);
    }
    

    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin-bottom: 20px;
    }
    
    .nav-menu a {
        color: var(--white) !important;
        font-size: 18px;
        font-weight: 500;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--accent-color) !important;
    }
    
    .dropdown-menu a {
        color: var(--text-color) !important;
    }
    
    .dropdown-menu a:hover {
        color: var(--accent-color) !important;
    }
    
    .dropdown-menu {
        position: absolute;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        background: var(--white);
        display: none;
        z-index: 1200;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 5px;
        min-width: 180px;
    }

    .expandable.active .dropdown-menu {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* 移動端section title圖片調整 */
    .section-title img {
        max-width: 90%;
        width: auto;
    }
    
    .dogs-slider .dog-card {
        flex: 0 0 250px;
        min-width: 250px;
    }

    /* 手機端犬型頁面雙排佈局 */
    .dogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .dogs-grid .dog-card {
        max-width: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .gallery-categories {
        gap: 10px;
    }

    .gallery-category-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-info {
        padding: 15px;
    }

    .lightbox-info h3 {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-contact-list {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-map {
        height: 300px;
    }
    
    .footer-map-title {
        font-size: 20px;
    }
    
    .contact-content {
        padding: 20px;
    }
    
    .contact-form-full {
        padding: 30px 20px;
    }
    
    .social-float-menu {
        bottom: 20px;
        right: 20px;
    }
    
    .social-float-toggle {
        width: 55px;
        height: 55px;
    }
    
    .social-float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .social-float-menu.active .line-btn {
        bottom: 70px;
        right: 5px;
    }
    
    .social-float-menu.active .tiktok-btn {
        bottom: 55px;
        right: 55px;
    }
    
    .social-float-menu.active .instagram-btn {
        bottom: 5px;
        right: 70px;
    }
    
    .social-tooltip {
        display: none;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .btn-health-info {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 110px;
    }

    .vaccine-item {
        flex-direction: column;
        text-align: center;
    }
    
    .vaccine-age {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .handbook-section {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        margin: 0 auto 20px auto;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
}

/* 歡迎彈跳視窗樣式 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(70, 130, 180, 0.85);
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--white);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s ease-out;
    border: 3px solid var(--accent-color);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    border: 2px solid var(--border-color);
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.popup-cta {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-radius: 0 0 12px 12px;
    border-top: 2px solid var(--border-color);
}

.popup-line-btn {
    font-size: 18px;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #00c853;
    color: white;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.popup-line-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
    background: #00b248;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 響應式設計 */
@media (max-width: 480px) {
    .popup-content {
        width: 95%;
        margin: 10px;
    }
    
    .popup-cta {
        padding: 20px;
    }
    
    .popup-line-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    /* 小螢幕section title圖片調整 */
    .section-title img {
        max-width: 85%;
        width: auto;
    }
}

/* 寵物詳情彈窗新增樣式 */
.pet-basic-info {
    background: rgba(173, 216, 230, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.service-highlights, .service-guarantee {
    margin: 20px 0;
}

.service-highlights h3, .service-guarantee h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-highlights ul, .service-guarantee ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-highlights li, .service-guarantee li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-highlights li:last-child, .service-guarantee li:last-child {
    border-bottom: none;
}

.license-info {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(173, 216, 230, 0.1));
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid rgba(139, 69, 19, 0.2);
}

.license-info p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.contact-info {
    background: rgba(0, 185, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #00B900;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-info p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

/* 寵物詳情彈窗圖片輪播樣式 */
.modal-pet-image.single-image img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-pet-image.carousel {
    margin-bottom: 20px;
}

.carousel-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.image-thumbnails {
    margin-top: 15px;
}

.thumbnail-label {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.thumbnails-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .modal-pet-image.single-image img,
    .carousel-slides {
        height: 200px;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .thumbnail {
        width: 50px;
        height: 38px;
    }

    .thumbnails-container {
        gap: 6px;
    }
}

/* 分頁導航樣式 */
.pagination-container {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.pagination-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 8px;
    color: #999;
    font-weight: 500;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 手機版分頁樣式 */
@media (max-width: 768px) {
    .pagination-container {
        margin-top: 30px;
        padding: 15px 0;
    }

    .pagination {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .pagination-info {
        font-size: 13px;
        margin-top: 8px;
    }

    /* 手機版隱藏部分頁碼按鈕 */
    .pagination-btn:not(.active):not(:first-child):not(:last-child):nth-child(n+5):nth-last-child(n+5) {
        display: none;
    }

    /* 手機版調整dogs-grid為2x2 */
    .dogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}