@charset "UTF-8";

 
        :root {
            --primary-blue: #33ACF0;
            --primary-green: #7FB246;
            --primary-orange: #F39228;
            --primary-red: #F92B2B;
            --dark: #003366;
            --light: #EFEBE5;
            --gold: #D4AF37;
            --border-radius: 20px;
            --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
            
     
        }
        
        /* Define the JhengHei font-family, prioritizing the local version */
        @font-face {
            font-family: 'Microsoft JhengHei';
            font-style: normal;
            font-weight: 400;
            src: local('Microsoft JhengHei'), local('Microsoft JhengHei UI');
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft JhengHei', Muli, sans-serif;
            color: var(--dark);
            background-color: var(--light);
            line-height: 1.8;

        }
        
        .mymain {
            padding-left: 50px;
            padding-right: 50px;
            padding-bottom: 50px;
            
        }
        
        h1, h2, h3 {
            font-family: Muli, 'Microsoft JhengHei', sans-serif;
            font-weight: 700;
        }
        
        /* Header & Navigation */
        header {
            background-color: white;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .container {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: 0 5px;
        }
        
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-icon {
            font-size: 32px;
            color: var(--primary-red);
        }
        
        .logo-text {
            font-size: 28px;
            font-weight: 900;
            background: linear-gradient(45deg, var(--primary-red), var(--primary-orange));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
            gap: 30px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 50px;
            transition: var(--transition);
            position: relative;
        }
        
        .nav-links a:hover {
            color: var(--primary-red);
            background-color: rgba(253, 87, 87, 0.05);
        }
        
        .nav-links a.active {
            color: var(--primary-red);
            background-color: rgba(253, 87, 87, 0.1);
        }
        
        .nav-links a.active::after {
            content: '';
            position: absolute;
            width: 6px;
            height: 6px;
            background-color: var(--primary-red);
            border-radius: 50%;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Search Button Styles */
        .search-container {
            display: flex;
            align-items: center;
            margin-left: 20px;
        }
        
        .search-btn {
            background-color: var(--primary-orange);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }
        
        .search-btn:hover {
            background-color: #6ea038;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(127, 178, 70, 0.3);
        }
        
        .search-btn i {
            font-size: 14px;
        }
        
        .mobile-toggle {
            display: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark);
            background: none;
            border: none;
            padding: 5px;
            z-index: 1001;
        }
        
        /* Hero Section */
        .hero {
            padding: 80px 0;
            background: linear-gradient(rgba(249, 245, 240, 0.0), rgba(249, 245, 240, 0.0)), url('img/HK_Family1b.jpg');
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .hero-content {
            display: flex;
            align-items: center;
            gap: 60px;
        }
        
        .hero-text {
            flex: 1;
            font-family: 'Noto Sans TC', sans-serif;
            font-weight: 500;
        }
        
        .hero-title {
            font-size: 57px;
            font-weight: 900;
            margin-bottom: 20px;
            line-height: 1.3;
            color: #ffffff;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
        }
        
        .hero-subtitle {
            font-size: 20px;
            color: #666;
            margin-bottom: 30px;
            max-width: 600px;
            color: #ffffff;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
        }
        
        .hero-image {
            flex: 1;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transform: rotate(2deg);
            transition: var(--transition);
        }
        
        .hero-image:hover {
            transform: rotate(0deg);
        }
        
        .hero-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .btn {
            display: inline-block;
            padding: 14px 32px;
            background-color: var(--primary-red);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            font-size: 16px;
        }
        
        .btn:hover {
            background-color: #e64c4c;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(253, 87, 87, 0.2);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary-red);
            color: var(--primary-red);
        }
        
        .btn-outline:hover {
            background-color: rgba(253, 87, 87, 0.1);
        }
        
        /* Features Section */
        .features {
            padding: 80px 0;
            background-color: white;
        }
        
        .section-title {
            text-align: center;
            font-size: 36px;
            font-weight: 900;
            margin-bottom: 0px;
            color: var(--dark);
        }
        
        .section-subtitle {
            text-align: center;
            color: #666;
            max-width: 700px;
            margin: 0 auto 50px;
            font-size: 18px;
        }
        
   
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }
        
        /* 统一使用 feature-card 类名 */
        .feature-card {
            background-color: var(--light);
            padding: 0px 30px;
            border-radius: var(--border-radius);
            text-align: justify;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            z-index: 1;
            overflow: hidden;
            min-height: 450px;
            display: flex;
            flex-direction: column;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
        }
        
   
        
        /* 为所有卡片添加渐变覆盖层，确保文字可读 */
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height:  100%;
            
            border-radius: var(--border-radius);
            z-index: -1;
        }
        
        /* 确保卡片内容在背景之上 */
        .feature-card > * {
            position: relative;
            z-index: 2;
        }
        
        .feature-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }
        
        .feature-title {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 15px;
        }
        
        /* 修改免疫食譜和精選食譜的樣式 - 縮小到1/3大小 */
        .compact-recipes-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            padding: 0;
            margin-top: 20px;
        }
        
        .compact-recipe-card {
            min-width: auto;
            background-color: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            flex-shrink: 0;
        }
        
        .compact-recipe-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }
        
        .compact-recipe-image {
            height: 120px;
            overflow: hidden;
        }
        
        .compact-recipe-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .compact-recipe-card:hover .compact-recipe-image img {
            transform: scale(1.05);
        }
        
        .compact-recipe-content {
            padding: 15px;
        }
        
        .compact-recipe-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--dark);
            line-height: 1.4;
        }
        
        .compact-recipe-description {
            color: #666;
            font-size: 13px;
            margin-bottom: 10px;
            line-height: 1.5;
        }
        
        .compact-recipe-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
        }
        
        .compact-tag {
            padding: 3px 8px;
            background-color: rgba(51, 172, 240, 0.1);
            border-radius: 50px;
            font-size: 11px;
            font-weight: 500;
            color: var(--primary-blue);
        }
        
        .compact-tag.health {
            background-color: rgba(169, 236, 96, 0.1);
            color: var(--primary-green);
        }
        
        .compact-tag.season {
            background-color: rgba(255, 174, 85, 0.1);
            color: var(--primary-orange);
        }
        
        .compact-tag.featured {
            background-color: rgba(253, 87, 87, 0.1);
            color: var(--primary-red);
        }
        
        .compact-btn {
            padding: 6px 12px;
            font-size: 12px;
            width: 100%;
        }
        
        /* Immune Recipes Section */
        .immune-recipes {
            padding: 80px 0;
            background: linear-gradient(rgba(169, 236, 96, 0.05), rgba(169, 236, 96, 0.1));
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .section-header .section-title {
            margin-bottom: 0;
            text-align: left;
        }
        
        .section-tag {
            display: inline-block;
            padding: 8px 20px;
            background-color: var(--primary-green);
            color: white;
            border-radius: 50px;
            font-weight: 600;
            margin-left: 15px;
            font-size: 14px;
        }
        
        /* 移除原有的滑動樣式 */
        .recipes-slider {
            display: none;
        }
        
        .recipe-slide {
            display: none;
        }
        
        /* Featured Recipes Section */
        .featured-recipes {
            padding: 80px 0;
            background-color: #F9F5F0;
        }
        
        .featured-tag {
            background-color: var(--primary-orange) !important;
        }
        
        /* Recipes Preview */
        .recipes-preview {
            padding: 80px 0;
            background-color: white;
        }
        
        .recipes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .recipe-card {
            background-color: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        
        .recipe-card:hover {
            transform: translateY(-10px);
        }
        
        .recipe-image {
            height: 200px;
            overflow: hidden;
        }
        
        .recipe-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .recipe-card:hover .recipe-image img {
            transform: scale(1.05);
        }
        
        .recipe-content {
            padding: 25px;
        }
        
        .recipe-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .recipe-description {
            color: #666;
            font-size: 15px;
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .recipe-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .tag {
            padding: 5px 12px;
            background-color: rgba(51, 172, 240, 0.1);
            border-radius: 50px;
            font-size: 13px;
            font-weight: 500;
            color: var(--primary-blue);
        }
        
        .tag.health {
            background-color: rgba(169, 236, 96, 0.1);
            color: var(--primary-green);
        }
        
        .tag.season {
            background-color: rgba(255, 174, 85, 0.1);
            color: var(--primary-orange);
        }
        
        .tag.featured {
            background-color: rgba(253, 87, 87, 0.1);
            color: var(--primary-red);
        }
        
        /* Footer */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 60px 0 30px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-logo {
            font-size: 28px;
            font-weight: 900;
            margin-bottom: 20px;
            color: white;
        }
        
        .footer-description {
            color: #aaa;
            margin-bottom: 20px;
            line-height: 1.7;
        }
        
        .footer-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 25px;
            position: relative;
        }
        
        .footer-title::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            background-color: var(--primary-red);
            bottom: -8px;
            left: 0;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: #aaa;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: var(--primary-red);
            padding-left: 5px;
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .social-icon:hover {
            background-color: var(--primary-red);
            transform: translateY(-5px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #aaa;
            font-size: 14px;
        }
        
        /* Page Content */
        .page-header {
            padding: 40px 0;
            
            text-align: center;
            
            background-size: cover;
            background-position: center;
            
        }
        
        .page-content {
            padding: 40px 0;
        }
        
        /* About Page */
        .about-section {
            margin-bottom: 60px;
        }
        
        .about-content {
            display: flex;
            align-items: center;
            gap: 50px;
            margin-bottom: 60px;
        }
        
        .about-image {
            flex: 1;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .about-text {
            flex: 1;
        }
        
        .about-title {
            font-size: 32px;
            font-weight: 900;
            margin-bottom: 20px;
            color: var(--dark);
        }
        
        /* Contact Page */
        .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 50px;
        }
        
        .contact-info {
            background-color: white;
            padding: 40px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .contact-icon {
            width: 60px;
            height: 60px;
            background-color: rgba(51, 172, 240, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
            font-size: 24px;
            color: var(--primary-blue);
        }
        
        .contact-form {
            background-color: white;
            padding: 40px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .team-section {
            padding: 80px 0;
            background-color: var(--light);
        }
        
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .team-card {
            text-align: center;
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        }
        
        .team-img {
            height: 500px;
            width: 100%;
            background-size: cover;
            background-position: center;
        }
        
        .team-img-tag {
            width: 100%;
            height: 250px;
            object-fit: cover;
            object-position: center;
        }
        
        .team-content {
            padding: 0px;
        }
        
        .team-name {
            font-family: 'Microsoft JhengHei', Muli, sans-serif;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--dark);
        }
        
        .team-title {
            color: var(--primary-green);
            font-size: 1.3rem;
            margin-bottom: 15px;
            font-weight: 500;
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }
        
        .form-control {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-family: 'Noto Serif TC', serif;
            font-size: 16px;
            transition: var(--transition);
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(51, 172, 240, 0.1);
        }
        
        /* Recipes List Page */
        .recipes-filter {
            background-color: white;
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-bottom: 40px;
        }
        
        .filter-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .filter-btn {
            padding: 10px 20px;
            background-color: var(--light);
            border: none;
            border-radius: 50px;
            font-family: Muli, 'Microsoft JhengHei', sans-serif;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-btn.active {
            background-color: var(--primary-red);
            color: white;
        }
        
        .filter-btn:hover:not(.active) {
            background-color: rgba(253, 87, 87, 0.1);
        }
        
        /* Chinese Elements */
        .chinese-border {
            position: relative;
            padding: 20px;
        }
        
        .chinese-border::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(to right, var(--primary-red), var(--primary-orange), var(--primary-green), var(--primary-blue));
        }
        
        .chinese-pattern {
            background-image: url("");
            background-size:  110% 100%;
            background-repeat: no-repeat;
            width: 100%;
            height: 100%;
        }
        
 

        /* Recipe Detail Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal {
            background-color: white;
            border-radius: var(--border-radius);
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 40px;
            position: relative;
            transform: translateY(50px);
            transition: var(--transition);
        }
        
        .modal-overlay.active .modal {
            transform: translateY(0);
        }
        
        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark);
        }
        
        .modal-title {
            font-size: 28px;
            font-weight: 900;
            margin-bottom: 20px;
            color: var(--dark);
        }
        
        .weather-widget {
            background-color: #EFEBE5;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        
        .weather-row {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .weather-section-title {
            font-size: 24px;
            color: #C00000;
            font-weight: bold;
            margin-right: 5px;
        }
        
        .weather-section-tag {
            display: inline-block;
            padding: 8px 20px;
            background-color: var(--primary-green);
            color: white;
            border-radius: 50px;
            font-weight: 600;
            font-size: 14px;
        }
        
        .weather-tag {
            display: inline-block;
            padding: 8px 20px;
            color: white;
            border-radius: 50px;
            font-weight: 600;
            font-size: 14px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .temp-tag {
            background-color: #0D6BA9;
        }
        
        .humidity-tag {
            background-color: #0D6BA9;
        }
        
        .loading {
            font-style: italic;
            color: #7f8c8d;
            padding: 20px;
        }
        
        .error {
            color: #e74c3c;
            background-color: #fdf0f0;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #e74c3c;
        }
        
        .update-time {
            font-size: 11px;
            color: #7f8c8d;
            margin-top: 8px;
            font-style: italic;
        }
        
        /* Traditional Chinese Typography */
        .tcm-principle {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-red);
            margin-bottom: 15px;
            position: relative;
            padding-left: 20px;
        }
        
        .tcm-principle::before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--primary-red);
            font-size: 30px;
        }
        
        .ingredient-list {
            list-style-type: none;
            margin: 20px 0;
        }
        
        .ingredient-list li {
            padding: 8px 0;
            border-bottom: 1px dashed #ddd;
            position: relative;
            
        }
        
        .ingredient-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--primary-green);
            font-weight: bold;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-title {
                font-size: 40px;
            }
            
            .about-content {
                flex-direction: column;
            }
            
            .section-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .section-header .section-title {
                text-align: center;
                width: 100%;
            }
            
            .compact-recipes-container {
                grid-template-columns: repeat(2, 1fr);
            }
            
            /* 在平板设备上调整feature-card背景图片大小 */
            .feature-card {
                background-size: 140px auto;
            }
        }
        
        @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background-color: white;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding-top: 100px;
                box-shadow: var(--shadow);
                transform: translateX(-100%);
                opacity: 0;
                transition: var(--transition);
                z-index: 999;
                visibility: hidden;
                overflow-y: auto;
            }
            
            .nav-links.active {
                transform: translateX(0);
                opacity: 1;
                visibility: visible;
            }
            
            .search-container {
                margin-left: 0;
                margin-top: 15px;
                width: 100%;
                justify-content: center;
            }
            
            .search-btn {
                width: 90%;
                justify-content: center;
                padding: 12px 20px;
            }
            
            .mobile-toggle {
                display: block;
            }
            
            .nav-links li {
                width: 100%;
                text-align: center;
                margin-bottom: 10px;
            }
            
            .nav-links a {
                display: block;
                width: 90%;
                margin: 0 auto;
                padding: 15px 0;
                border-radius: 50px;
                border: 1px solid rgba(253, 87, 87, 0.1);
            }
            
            .nav-links a.active::after {
                display: none;
            }
            
            .nav-links a.active {
                background-color: rgba(253, 87, 87, 0.15);
                color: var(--primary-red);
                border-color: rgba(253, 87, 87, 0.3);
            }
            
            .hero-title {
                font-size: 36px;
            }
            
            .section-title {
                font-size: 32px;
            }
            
            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .nav-links.active + .mobile-toggle i {
                transform: rotate(90deg);
            }
            
            .compact-recipes-container {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            /* 在手机上调整feature-card背景图片大小 */
            .feature-card {
                background-size: 120px auto;
                min-height: 400px;
            }
        }
        
        @font-face {
            font-family: 'Sun Yat-sen Hsingshu';
            src: url('/fonts/SunYatsenHsingshu.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }
        
        @media (max-width: 576px) {
            .hero-title {
                font-size: 32px;
            }
            
            .btn {
                padding: 12px 24px;
            }
            
            .filter-options {
                justify-content: center;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .nav-links {
                padding-top: 80px;
            }
            
            .compact-recipe-content {
                padding: 12px;
            }
            
            .compact-recipe-title {
                font-size: 15px;
            }
            
            .compact-recipe-description {
                font-size: 12px;
            }
            
            /* 在小手机上调整feature-card背景图片大小 */
            .feature-card {
                background-size: 100px auto;
                min-height: 380px;
            }
        }
        
        /* ========== 從 2.html 合併的樣式 ========== */
        
        /* Search Page Styles */
        .search-page {
            font-family: 'Microsoft JhengHei', sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            margin: 0;
            padding: 40px 0;
        }
        
        .search-container-large {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 40 0px;
        }
        
        .search-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #D84C4B;
        }
        
        .search-header h1 {
            color: #D84C4B;
            margin-bottom: 10px;
        }
        
        .search-section {
            background: white;
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            justify-content: center;

        }
        
        .search-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
        }
        
        .form-group label {
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
        }
        
        .search-select, .search-input[type="number"] {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            font-family: inherit;
        }
        
        .form-actions {
            grid-column: 1 / -1;
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 10px;
        }
        
        .search-page-btn {
            padding: 12px 30px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .search-page-btn.search {
            background-color: #D84C4B;
            color: white;
        }
        
        .search-page-btn.search:hover {
            background-color: #F75E5D;
        }
        
        .search-page-btn.reset {
            background-color: #f5f5f5;
            color: #666;
        }
        
        .search-page-btn.reset:hover {
            background-color: #e0e0e0;
        }
        
        .results-section {
            display: none;
            margin-top: 20px;
        }
        
        .results-count {
            margin-bottom: 20px;
            font-size: 18px;
            color: #666;
        }
        
        .search-recipe-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 25px;
        }
        
        .search-recipe-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            position: relative;
        }
        
        .search-recipe-card:hover {
            transform: translateY(-5px);
        }
        
        .search-recipe-header {
            color: white;
            padding: 15px;
        }
        
        .search-recipe-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .search-recipe-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 14px;
            opacity: 0.9;
        }
        
        .search-recipe-meta span {
            background: rgba(255,255,255,0.2);
            padding: 2px 8px;
            border-radius: 20px;
        }
        
        .search-recipe-body {
            padding: 20px;
            
        }
        
        .search-recipe-detail {
            margin-bottom: 15px;
        }
        
        .search-detail-label {
            font-weight: 600;
            display: inline-block;
            width: 120px;
            vertical-align: top;
        }
        


        /* =================================================== */
        /* width: calc(100% - 15px);                           */
        /* =================================================== */
        .search-detail-content {
            display: inline-block;
            width: 100%;
            vertical-align: top;
            text-align: justify;
        }
        
        .search-recipe-footer {
            background: #f9f9f9;
            padding: 20px;
            border-top: 1px solid #eee;
            font-size: 14px;
            color: #666;
        }
        
        .no-results {
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            display: none;
        }

        .search-loading {
            text-align: center;
            padding: 40px;
            font-size: 18px;
            color: #666;
        }

        .search-error-message {
            text-align: center;
            padding: 40px;
            background: #ffebee;
            border-radius: 10px;
            color: #c62828;
            margin: 20px 0;
        }

        .search-status-message {
            text-align: center;
            padding: 15px;
            background: #e3f2fd;
            border-radius: 5px;
            margin-bottom: 20px;
            display: none;
        }

        .detail-collapsible {
            margin: 10px 0;
        }

        .collapsible-header {
            background: #E8E7E7;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
        }

        .collapsible-header:hover {
            background: #F6F6F6;
        }

        .collapsible-content {
            padding: 15px;
            background: #fafafa;
            border-radius: 5px;
            margin-top: 5px;
            display: none;
        }

        .collapsible-content.show {
            display: block;
        }

        .arrow {
            transition: transform 0.3s ease;
        }

        .arrow.rotated {
            transform: rotate(90deg);
        }

        .reference-link {
            color: #2196F3;
            text-decoration: none;
            word-break: break-all;
        }

        .reference-link:hover {
            text-decoration: underline;
        }

        .ingredients-list {
            list-style-type: disc;
            padding-left: 20px;
            margin: 8px 0;
        }

        .ingredients-list li {
            margin-bottom: 5px;
        }

        .steps-list {
            list-style-type: decimal;
            padding-left: 20px;
            margin: 8px 0;
        }

        .steps-list li {
            margin-bottom: 8px;
        }

        .medicine-tag {
            display: inline-block;
            background: #e8f5e9;
            color: #2e7d32;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 14px;
            margin: 2px 4px 2px 0;
        }
        
        /* 五行標籤樣式 - 更新顏色 */
        .five-elements-tag {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 120px;
            font-size: 14px;
            margin: 2px 4px 2px 0;
            font-weight: 600;
            color: white;
        }
        
        .five-elements-gold {
            background: linear-gradient(135deg, #ffffff, #E0E0E0); /* 金色漸變 */
            color: #333; /* 深色文字提高可讀性 */
            border: 1px solid #D4AF37;
        }
        
        .five-elements-wood {
            background: linear-gradient(135deg, #4CAF50, #2E7D32); /* 綠色漸變 */
            border: 1px solid #2E7D32;
        }
        
        .five-elements-water {
            background: linear-gradient(135deg, #333333, #000000); /* 黑色漸變 */
            border: 1px solid #666666;
        }
        
        .five-elements-fire {
            background: linear-gradient(135deg, #F44336, #C62828); /* 紅色漸變 */
            border: 1px solid #C62828;
        }
        
        .five-elements-earth {
            background: linear-gradient(135deg, #FFC107, #FF9800); /* 黃色漸變 */
            color: #333; /* 深色文字提高可讀性 */
            border: 1px solid #FF9800;
        }
        
        /* Heart Icon Styles */
        .heart-container {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 10;
        }
        
        .heart-icon {
            width: 32px;
            height: 32px;
            cursor: pointer;
            transition: all 0.3s ease;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        }
        
        .heart-icon:hover {
            transform: scale(1.1);
        }
        
        .heart-icon svg {
            width: 100%;
            height: 100%;
            fill: rgba(255, 255, 255, 0.7);
            stroke: #fff;
            stroke-width: 2;
        }
        
        .heart-icon.active svg {
            fill: #ff4757;
            stroke: #ff4757;
            animation: heartbeat 0.5s ease-in-out;
        }
        
        @keyframes heartbeat {
            0% { transform: scale(1); }
            25% { transform: scale(1.1); }
            50% { transform: scale(1); }
            75% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* Favorites Styles */
        .favorites-count {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #D84C4B;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(216, 76, 75, 0.3);
            z-index: 1000;
            transition: all 0.3s ease;
        }
        
        .favorites-count:hover {
            transform: scale(1.1);
            background: #F75E5D;
        }
        
        .favorites-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 380px;
            height: 100vh;
            background: white;
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            z-index: 999;
            transition: right 0.3s ease;
            padding: 20px;
            overflow-y: auto;
        }
        
        .favorites-sidebar.active {
            right: 0;
        }
        
        .favorites-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #D84C4B;
        }
        
        .favorites-header h3 {
            color: #D84C4B;
            margin: 0;
        }
        
        .close-sidebar {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            padding: 5px 10px;
        }
        
        .close-sidebar:hover {
            color: #D84C4B;
        }
        
        .favorite-item {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border-left: 4px solid #D84C4B;
        }
        
        .favorite-item-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }
        
        .favorite-item-title {
            font-weight: 600;
            color: #333;
            flex: 1;
            margin-right: 10px;
        }
        
        .remove-favorite {
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            font-size: 18px;
            padding: 2px 6px;
        }
        
        .remove-favorite:hover {
            color: #D84C4B;
        }
        
        .favorite-item-meta {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .no-favorites {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }
        
        .clear-favorites {
            background: #f5f5f5;
            color: #666;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 20px;
            width: 100%;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .clear-favorites:hover {
            background: #e0e0e0;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 998;
            display: none;
        }
        
        .overlay.active {
            display: block;
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #4CAF50;
            color: white;
            padding: 12px 24px;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1001;
            animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
        }
        
        .notification-info {
            background: #2196F3;
        }
        
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes fadeOut {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }
        
        /* 顏色圖例樣式 */
        .color-legend {
            margin-top: 20px;
            padding: 15px;
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .legend-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }
        
        .color-box {
            width: 16px;
            height: 16px;
            border-radius: 3px;
            border: 1px solid #ddd;
        }
        
        /* 類型統計樣式 */
        .type-stats-container {

            padding: 15px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        
        .type-stats-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #555;
        }
        
        .type-stat-item {
            display: inline-flex;
            align-items: center;
            padding: 8px 15px;
            background: #f5f5f5;
            border: 1px solid #ddd;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 5px;
            
            
            
        }
        
        .type-stat-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .type-stat-color {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .type-stat-name {
            margin-right: 8px;
            font-weight: 600;
        }
        
        .type-stat-count {
            font-weight: bold;
            color: #333;
        }
        
        .type-stat-percentage {
            margin-left: 5px;
            font-size: 12px;
            color: #666;
        }
        
        @media (max-width: 768px) {
            .search-form {
                grid-template-columns: 1fr;
            }
            
            .search-recipe-grid {
                grid-template-columns: 1fr;
            }
            
            .search-detail-label {
                width: 100px;
            }
            
            
        /* =================================================== */
        /* width: calc(100% - 10px);                           */
        /* =================================================== */
            .search-detail-content {
                width: 100%;
                text-align: justify;
            }
            
            .search-recipe-meta {
                flex-direction: column;
                gap: 5px;
            }
            
            .favorites-sidebar {
                width: 100%;
                right: -100%;
            }
            
            .favorites-sidebar.active {
                right: 0;
            }
            
            .heart-icon {
                width: 28px;
                height: 28px;
            }
            
            .favorites-count {
                bottom: 70px;
                right: 15px;
                width: 45px;
                height: 45px;
                font-size: 16px;
            }
            
            .legend-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }
            
            .type-stat-item {
                padding: 6px 12px;
                font-size: 14px;
                
            }
        }
    
    
    