/* QPet 官網樣式 */

:root {
    --primary-color: #F5A9B8;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --bs-primary: #F5A9B8;
    --bs-primary-rgb: 245, 169, 184;
}

/* 全局樣式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* 漸變背景 - 櫻花粉色調 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #F5A9B8 0%, #E88A9E 100%);
}

/* 覆蓋 Bootstrap primary 色 */
.btn-primary {
    background-color: #F5A9B8;
    border-color: #F5A9B8;
    color: #fff;
}

.btn-primary:hover {
    background-color: #E8899A;
    border-color: #E8899A;
    color: #fff;
}

.text-primary {
    color: #F5A9B8 !important;
}

.bg-primary {
    background-color: #F5A9B8 !important;
}

/* Dark mode 支持 */
[data-bs-theme="dark"] .bg-gradient-primary {
    background: linear-gradient(135deg, #9D5A6A 0%, #7D4A5A 100%);
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #B86A7A;
    border-color: #B86A7A;
}

[data-bs-theme="dark"] .btn-primary:hover {
    background-color: #C87A8A;
    border-color: #C87A8A;
}

/* Hero 區域 */
.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

/* 功能特色卡片 */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 下載卡片 */
.download-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 16px;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* 平台下載區塊 */
.platform-block {
    padding: 20px;
}

.platform-label {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--bs-body-color);
}

.platform-label i {
    font-size: 1.5rem;
}

.btn.download-btn {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #F5A9B8 0%, #E88A9E 100%) !important;
}

.btn.download-btn:hover {
    background: linear-gradient(135deg, #E88A9E 0%, #D87080 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

[data-bs-theme="dark"] .btn.download-btn {
    background: linear-gradient(135deg, #B86A7A 0%, #9D5A6A 100%) !important;
}

[data-bs-theme="dark"] .btn.download-btn:hover {
    background: linear-gradient(135deg, #9D5A6A 0%, #7D4A5A 100%) !important;
}

/* 按鈕動畫 */
.btn {
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .download-card {
        margin-top: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }
}

/* 導航欄固定時的間距調整 */
.navbar.fixed-top + section {
    padding-top: 80px;
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 代碼塊樣式 */
code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

[data-bs-theme="dark"] code {
    background-color: #2d3748;
}

/* 徽章樣式 */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 連結樣式 */
a {
    transition: color 0.3s;
}

/* 卡片陰影增強 */
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* 導航欄 */
.navbar {
    backdrop-filter: blur(10px);
}

/* 頁腳 */
footer a:hover {
    color: white !important;
}

/* 暗色主題調整 - 櫻花粉色調 */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #9D5A6A 0%, #5D3A4A 100%);
}

[data-bs-theme="dark"] .feature-card {
    background: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
