/* ===== 基礎設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: #1F2937;
    line-height: 1.6;
}

/* ===== 色票（改為更清爽的天藍／青色系，搭配淡橘輔色） ===== */
:root {
    --primary: #d8f9fe;          /* Sky 400 */
    --primary-dark: #0EA5E9;     /* Sky 500 */
    --secondary: #d8f9fe;        /* Cyan 400 */
    --secondary-dark: #06B6D4;   /* Cyan 500 */
    --accent: #000033;           /* Orange 300 (柔和) */
    --accent-strong: #fca319;    /* Amber 500 */
    --bg-soft-a: #E0F2FE;        /* Sky 100 */
    --bg-soft-b: #CFFAFE;        /* Cyan 100 */
    --text-main: #1F2937;
    --text-muted: #6B7280;
}

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

/* ===== 按鈕樣式 ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #1f3945;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.36);
}

.btn-secondary {
    background: #F3F4F6;
    color: #1F2937;
}

.btn-secondary:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(14, 165, 233, 0.12);
    transition: all 0.3s;
}

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

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

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 30px;
    background: linear-gradient(135deg, var(--text-main), var(--text-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #1F2937;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: var(--primary-dark);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* ===== Hero Carousel Section ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.82) 0%, rgba(34, 211, 238, 0.82) 100%);
    z-index: 1;
}

.carousel-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
    padding: 40px 20px 80px;
}

.hero-carousel .hero-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-carousel .hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.hero-carousel .hero-badge {
    animation: fadeInDown 0.8s ease-out;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-carousel .hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-carousel .hero-stats {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 痛點圖標 */
.pain-point-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out;
    display: inline-block;
}

.pain-point-text {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 輪播控制按鈕 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: bold;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* 輪播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
    border-color: white;
}

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

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

/* ===== Features ===== */
/* ===== 計畫緣起 ===== */
.project-origin {
    padding: 100px 0;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F9FAFB 100%);
    position: relative;
}

.origin-content {
    max-width: 1100px;
    margin: 50px auto 0;
    display: grid;
	grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.origin-item {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 1px solid #E5E7EB;
    border-radius: 14px;
	padding: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.origin-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(14,165,233,0.12);
    border-color: var(--bg-soft-a);
}

.origin-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
    padding-bottom: 10px;
    position: relative;
}

.origin-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.origin-text {
    color: #374151;
    line-height: 1.8;
    font-size: 15px;
    padding-left: 0;
}

.origin-text p {
    margin-bottom: 15px;
}

.origin-text p:last-child {
    margin-bottom: 0;
}

.origin-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.features {
    padding: 100px 0;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F9FAFB 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #1F2937;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #6B7280;
    margin-top: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #F3F4F6;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.16);
    border-color: var(--bg-soft-a);
}

.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.feature-icon-wrapper .icon {
    font-size: 56px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s;
}

.feature-icon-wrapper .icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-soft-a), var(--bg-soft-b));
    border-radius: 50%;
    opacity: 0.6;
    transition: transform 0.4s;
}

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

.feature-item:hover .icon-bg {
    transform: translate(-50%, -50%) scale(1.2);
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1F2937;
    font-weight: 600;
}

.feature-item p {
    color: #6B7280;
    line-height: 1.8;
    font-size: 15px;
}

.feature-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2563EB, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-item:hover .feature-highlight {
    opacity: 1;
}

/* ===== Search Section ===== */
.search-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #F9FAFB 0%, #FFFFFF 100%);
}

.search-section .section-header {
    margin-bottom: 50px;
}

/* ===== 推薦區域 ===== */
.recommendation-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.recommendation-tabs {
    display: flex;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-bottom: 2px solid #E5E7EB;
}

.tab-btn {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    transition: all 0.3s;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary-dark);
}

.tab-btn.active {
    color: var(--primary-dark);
    background: white;
    border-bottom-color: var(--primary-dark);
}

.tab-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.recommendation-mode {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s;
}

.recommendation-mode.active {
    display: block;
}

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

.mode-header {
    text-align: center;
    margin-bottom: 35px;
}

.mode-header h3 {
    font-size: 26px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-main), var(--text-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.mode-header p {
    color: #6B7280;
    font-size: 16px;
    margin-top: 8px;
}

.selection-counter {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--bg-soft-a), var(--bg-soft-b));
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #0C4A6E;
}

.selection-counter span {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    transition: transform 0.2s;
}

/* ===== 快速問答選擇表單 ===== */
.quick-select-form {
    max-width: 1000px;
    margin: 0 auto;
}

.select-group {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.select-group:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.16);
}

.select-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E5E7EB;
}

.select-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.select-group-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    flex: 1;
}

.select-hint {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
}

.select-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    user-select: none;
}

.select-option:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, #F0FDFF 0%, var(--bg-soft-a) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.18);
}

.select-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-dark);
    flex-shrink: 0;
}

.select-option input[type="checkbox"]:checked + span {
    color: var(--primary-dark);
    font-weight: 600;
}

.select-option:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, #F0FDFF 0%, var(--bg-soft-a) 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.22);
}

.select-option span {
    flex: 1;
    transition: all 0.3s;
}

/* 快速模板 */
.quick-templates {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 12px;
    flex-wrap: wrap;
}

.template-label {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

.template-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
}

.template-btn:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.22);
}

.template-btn:active {
    transform: translateY(0);
}

/* 推薦操作按鈕 */
.recommend-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #E5E7EB;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

/* ===== 推薦結果 ===== */
.recommend-result {
    margin-top: 35px;
    padding: 30px;
    background: linear-gradient(135deg, #F0FDFF 0%, var(--bg-soft-a) 100%);
    border-radius: 16px;
    border: 2px solid #BAE6FD;
    animation: slideDown 0.4s;
}

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

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-header h4 {
    font-size: 22px;
    color: #1E40AF;
    font-weight: 700;
    margin: 0;
}

.result-count {
    font-size: 16px;
    font-weight: 500;
    color: #6B7280;
}

.recommend-reason {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #1E40AF;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

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

.recommend-workshop-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    animation: cardSlideIn 0.5s ease-out backwards;
}

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

.recommend-workshop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.22);
    border-color: var(--primary-dark);
}

.recommend-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.recommend-card-header > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.match-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommend-card-type {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.recommend-card-type.type-tool {
    background: linear-gradient(135deg, var(--bg-soft-a), var(--bg-soft-b));
    color: #0C4A6E;
}

.recommend-card-type.type-industry {
    background: linear-gradient(135deg, #FEF3C7, #FFF7ED);
    color: #92400E;
}

.recommend-card-city {
    font-size: 13px;
    color: #6B7280;
}

.recommend-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.recommend-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6B7280;
}

.recommend-card-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

.recommend-no-result {
    text-align: center;
    padding: 30px;
}

.recommend-no-result p {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 20px;
}

/* ===== AI對話模式 ===== */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 2px solid #E5E7EB;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: messageSlide 0.3s;
}

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

.chat-message:last-child {
    margin-bottom: 0;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
}

.message-content {
    flex: 1;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.6;
}

.user-message .message-content {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: white;
}

.message-content p {
    margin: 0 0 10px 0;
    color: inherit;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
    color: inherit;
}

.message-content li {
    margin-bottom: 5px;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.chat-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Noto Sans TC', sans-serif;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.chat-send-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.36);
}

.send-icon {
    font-size: 18px;
}

.chat-suggestions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.suggestion-btn {
    padding: 8px 16px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-btn:hover {
    background: #E5E7EB;
    border-color: #2563EB;
    color: #2563EB;
}

.chat-recommend-workshops {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.chat-workshop-item {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
}

.chat-workshop-item:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.chat-workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-workshop-header strong {
    font-size: 16px;
    color: #1F2937;
}

.chat-workshop-badge {
    background: linear-gradient(135deg, #DBEAFE, #EDE9FE);
    color: #1E40AF;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.chat-workshop-info {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6B7280;
    flex-wrap: wrap;
}

.chat-workshop-actions {
    margin-top: 10px;
}

.chat-link-btn {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chat-link-btn:hover {
    color: var(--primary);
    gap: 8px;
}

.quick-filter {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #E5E7EB;
    transition: box-shadow 0.3s;
}

.quick-filter:hover {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.14);
}

.quick-filter h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 600;
}

.filter-row {
    display: flex;

    /* 2. 啟用自動換行功能！這是關鍵！ */
    flex-wrap: wrap;
    /*display: grid;*/
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.filter-item select,
.filter-item input[type="date"],
.filter-item input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans TC', sans-serif;
    background: white;
    transition: border-color 0.3s;
}

.filter-item select:focus,
.filter-item input[type="date"]:focus,
.filter-item input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.filter-item .btn {
    width: 100%;
    margin-bottom: 10px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-buttons .btn {
    flex: 1;
    margin-bottom: 0;
}

/* ===== Workshop Cards ===== */
.workshops-list {
    padding: 60px 0;
    background: #F9FAFB;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.list-header h3 {
    font-size: 28px;
    color: #1F2937;
    font-weight: 700;
}

.result-count {
    color: #6B7280;
    font-size: 16px;
}

.result-count span {
    color: #2563EB;
    font-weight: 600;
}

/* 列表統計信息 */
.list-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.list-stat-item {
    text-align: center;
    padding: 15px;
    border-right: 1px solid #E5E7EB;
}

.list-stat-item:last-child {
    border-right: none;
}

.list-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 8px;
    line-height: 1.2;
}

.list-stat-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.workshop-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #F3F4F6;
    position: relative;
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.workshop-card:hover::before {
    transform: scaleX(1);
}

.workshop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
    border-color: #DBEAFE;
}

.card-header {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
}

.card-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.type-tool {
    background: #DBEAFE;
    color: #1E40AF;
}

.type-industry {
    background: #EDE9FE;
    color: #6B21A8;
}

.card-city {
    color: #6B7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1F2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-company {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #374151;
    flex: 1;
}

.card-info div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: #F3F4F6;
    border-radius: 4px;
    font-size: 12px;
    color: #4B5563;
}

.card-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.card-footer .btn {
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

/* ===== Stats ===== */
.stats {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: 16px;
    transition: all 0.4s;
    border: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.16);
    border-color: var(--bg-soft-a);
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 18px;
    color: #6B7280;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #d8f9fe 0%, #d8f9fe 100%);
    color: white;
    padding: 50px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #1f3945;
    font-weight: 600;
    font-size: 18px;
}

.footer-section p {
    color: #1f3945;
    line-height: 1.8;
    font-size: 15px;
}

.footer-section a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--bg-soft-b);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #1f3945;
    font-size: 14px;
    font-weight: 500;
}

/* ===== Loading & No Result ===== */
.loading {
    text-align: center;
    padding: 60px 0;
    font-size: 18px;
    color: #6B7280;
}

.loading-spinner {
    border: 4px solid #F3F4F6;
    border-top: 4px solid var(--primary-dark);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-result {
    text-align: center;
    padding: 60px 0;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
    max-width: 400px;
    border-left: 4px solid var(--primary-dark);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-info {
    border-left-color: var(--primary-dark);
    color: #0C4A6E;
}

.toast-warning {
    border-left-color: #F59E0B;
    color: #92400E;
}

.toast-success {
    border-left-color: #10B981;
    color: #065F46;
}

.toast-error {
    border-left-color: #EF4444;
    color: #991B1B;
}

.no-result p {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 20px;
}

   /* 列表模式樣式 */
        .workshop-list .workshop-cards { /* 這裡假設你的卡片樣式需要修改以適應列表 */
            display: flex; /* 或 block */
            flex-direction: column;
            gap: 15px; /* 列表模式下卡片間距可以不同 */
        }

        /* 列表模式下，個別卡片樣式的調整 (重要：你可能需要根據你的卡片內容調整這裡) */
        /* 例如：如果你希望列表模式下，卡片是全寬度的，且內容橫向排列 */
        .workshop-list .workshop-cards > .workshop-card-item {
            display: flex;
            /* 這裡加入你列表模式下卡片的佈局 */
            /* 例如：border-bottom: 1px solid #eee; */
            /* 例如：padding: 10px 0; */
        }


        /* --- 按鈕樣式 --- */

        /* 確保按鈕區塊和標題/計數器對齊 */
        .list-header {
            display: flex;
            justify-content: space-between; /* 或 flex-start，取決於你的設計 */
            align-items: center;
            /* 你可能需要調整現有的 list-header 樣式 */
        }

        /* 按鈕容器 */
        .view-toggle {
            display: flex;
            margin-left: auto; /* 將按鈕推到右邊 */
            margin-right: 20px;
        }

        /* 通用按鈕樣式 */
        .toggle-btn {
            background: none;
            border: 1px solid #ccc;
            cursor: pointer;
            padding: 8px 12px;
            margin-left: -1px; /* 讓按鈕邊框重疊 */
            transition: background-color 0.3s, color 0.3s;
            font-size: 18px; /* 調整圖標大小 */
            line-height: 1;
        }

        /* 圓角處理 */
        #gridViewBtn {
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }

        #listViewBtn {
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
        }

        /* 啟用狀態樣式 */
        .toggle-btn.active {
            background-color: #d8f9fe; /* 你的品牌顏色 */
            color: #1f3945;
            border-color: #d8f9fe;
        }

        /* 滑過樣式 */
        .toggle-btn:not(.active):hover {
            background-color: #f0f0f0;
        }