/* ===== 響應式設計 ===== */

/* 平板 (768px - 1024px) */
@media (max-width: 1024px) {
    .origin-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid,
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-item.filter-buttons {
        grid-column: span 3;
    }
    
    /* 推薦區域平板優化 */
    .recommendation-mode {
        padding: 30px 25px;
    }
    
    .select-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recommend-workshops {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-templates {
        gap: 8px;
    }
    
    .template-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* 手機 (最大 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 14px;
    }
    
    /* Hero Carousel */
    .hero-carousel {
        height: 500px;
    }
    
    .hero-content {
        padding: 30px 15px 60px !important;
    }
    
    .hero-carousel .hero-content h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .hero-carousel .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
        padding-top: 20px;
        margin-top: 15px;
    }
    
    .hero-stat-number {
        font-size: 28px;
    }
    
    .hero-stat-label {
        font-size: 12px;
    }
    
    .pain-point-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .pain-point-text {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 24px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        padding-top: 30px;
    }
    
    .hero-stat-number {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* 計畫緣起 */
    .project-origin {
        padding: 60px 0;
    }
    
    .origin-content {
        padding: 30px 20px;
        margin-top: 30px;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .origin-item {
        padding: 18px;
    }
    
    .origin-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .origin-text {
        font-size: 15px;
        line-height: 1.8;
    }
    
    /* Features */
    .features {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Search Section */
    .search-section {
        padding: 50px 0;
    }
    
    .ai-chatbot,
    .quick-filter {
        padding: 20px;
    }
    
    .ai-chatbot h3,
    .quick-filter h3 {
        font-size: 20px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 推薦區域響應式 */
    .recommendation-section {
        margin-bottom: 20px;
    }
    
    .recommendation-mode {
        padding: 25px 20px;
    }
    
    .mode-header h3 {
        font-size: 22px;
    }
    
    .mode-header p {
        font-size: 14px;
    }
    
    .selection-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .selection-counter span {
        font-size: 16px;
    }
    
    .quick-templates {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .template-label {
        font-size: 13px;
    }
    
    .template-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* 快速問答選擇表單 */
    .quick-select-form {
        max-width: 100%;
    }
    
    .select-group {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .select-group-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .select-icon {
        font-size: 24px;
    }
    
    .select-group-header h4 {
        font-size: 18px;
    }
    
    .select-hint {
        font-size: 12px;
    }
    
    .select-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .select-option {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .select-option input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    .recommend-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .btn-large {
        width: 100%;
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .recommend-actions .btn {
        width: 100%;
    }
    
    /* 推薦結果響應式 */
    .recommend-result {
        margin-top: 25px;
        padding: 20px 15px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-header h4 {
        font-size: 20px;
    }
    
    .recommend-reason {
        font-size: 12px;
        padding: 6px 12px;
        width: 100%;
        text-align: center;
    }
    
    .recommend-workshops {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recommend-workshop-card {
        padding: 18px;
    }
    
    .recommend-card-title {
        font-size: 16px;
    }
    
    .recommend-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .recommend-card-actions .btn {
        width: 100%;
    }
    
    /* Workshops */
    .workshops-list {
        padding: 40px 0;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .list-header h3 {
        font-size: 24px;
    }
    
    .list-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .list-stat-item {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        padding: 12px;
    }
    
    .list-stat-item:nth-child(2n) {
        border-left: 1px solid #E5E7EB;
    }
    
    .list-stat-item:nth-child(3),
    .list-stat-item:nth-child(4) {
        border-bottom: none;
    }
    
    .list-stat-number {
        font-size: 28px;
    }
    
    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .card-footer .btn {
        width: 100%;
    }
    
    /* Stats */
    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 小手機 (最大 480px) */
@media (max-width: 480px) {
    .hero-carousel {
        height: 500px;
    }
    
    .hero-carousel .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-carousel .hero-content p {
        font-size: 14px;
    }
    
    .pain-point-icon {
        font-size: 50px;
        margin-bottom: 12px;
    }
    
    .pain-point-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .list-stats {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 15px;
    }
    
    .list-stat-item {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #E5E7EB;
        padding: 15px;
    }
    
    .list-stat-item:last-child {
        border-bottom: none;
    }
    
    .list-stat-item:nth-child(2n) {
        border-left: none;
    }
    
    .list-stat-number {
        font-size: 24px;
    }
    
    .list-stat-label {
        font-size: 13px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-stat-number {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* 推薦區域小手機優化 */
    .recommendation-mode {
        padding: 20px 15px;
    }
    
    .mode-header h3 {
        font-size: 20px;
    }
    
    .tab-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .select-group {
        padding: 18px 12px;
    }
    
    .select-group-header h4 {
        font-size: 16px;
    }
    
    .select-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .select-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .select-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    /* 推薦結果小手機優化 */
    .recommend-result {
        padding: 18px 12px;
    }
    
    .result-header h4 {
        font-size: 18px;
    }
    
    .recommend-reason {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .recommend-workshop-card {
        padding: 15px;
    }
    
    .recommend-card-title {
        font-size: 15px;
    }
    
    .recommend-card-info {
        font-size: 13px;
    }
    
    .selection-counter {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .selection-counter span {
        font-size: 14px;
    }
    
    .quick-templates {
        padding: 10px;
    }
    
    .template-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 14px;
        padding: 12px 18px;
    }
}

/* ===== Detail Page Responsive ===== */
@media (max-width: 768px) {
    .detail-container {
        padding: 30px 15px;
    }
    
    .detail-header {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .detail-header h1 {
        font-size: 24px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-meta-item {
        font-size: 14px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-section {
        padding: 25px 20px;
    }
    
    .info-section h3 {
        font-size: 20px;
    }
    
    .ai-tools-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .registration-section {
        padding: 25px 20px;
    }
    
    .registration-section .btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .detail-header h1 {
        font-size: 20px;
    }
    
    .detail-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .ai-tools-list {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

