/* 自定義樣式 - 新主題色彩 */
:root {
    --primary-color: #303841;
    --secondary-color: #00adb5;
    --light-color: #eeeeee;
    --accent-color: #ff5722;
    --primary-gradient: linear-gradient(135deg, #303841 0%, #00adb5 100%);
    --secondary-gradient: linear-gradient(135deg, #00adb5 0%, #ff5722 100%);
    --success-gradient: linear-gradient(135deg, #00adb5 0%, #303841 100%);
    --warning-gradient: linear-gradient(135deg, #ff5722 0%, #303841 100%);
}

/* 全局樣式 */
body {
    font-family: 'Noto Sans TC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* 按鈕樣式 */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.4);
    background: var(--secondary-gradient);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
    background: #e64a19;
}

/* 卡片樣式 */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

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

/* 導航欄樣式 */
.navbar {
    backdrop-filter: blur(10px);
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary-color) !important;
}

.navbar .nav-link {
    color: var(--light-color) !important;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar .dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.navbar .dropdown-item {
    color: var(--light-color);
}

.navbar .dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 英雄區域樣式 */
.hero-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

/* 動畫效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-image {
    animation: float 6s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

/* 步驟卡片樣式 */
.step-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, transparent);
    transform: translateY(-50%);
}

.step-card:last-child .step-number::after {
    display: none;
}

/* 優勢卡片樣式 */
.advantage-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 統計數據樣式 */
.stats-counter {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* FAQ樣式 */
.faq-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.faq-button {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: none;
    padding: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
}

.faq-button:focus {
    box-shadow: none;
}

/* 時間軸樣式 */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    padding-bottom: 15px;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #667eea;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-item:last-child {
    border-left: none;
    padding-bottom: 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .step-number::after {
        display: none;
    }
    
    .stats-counter {
        font-size: 2rem;
    }
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 載入動畫 */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* 圖片樣式 */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* 表單樣式 */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 警告框樣式 */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}
