/**
 * TAOT Theme - 首頁專用樣式
 */

/* ==========================================================================
   共用設定
   ========================================================================== */

.front-page {
    overflow-x: hidden;
}

/* 首頁移除 header 下方間距 */
.home .site-header {
    margin-bottom: 0;
}

.front-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.front-page .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.front-page .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.front-page .section-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin: 0;
}

.front-page .section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Hero 區域
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg,
        rgba(86, 108, 161, 0.08) 0%,
        rgba(86, 108, 161, 0.15) 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

/* 裝飾背景圓形 */
.hero-section::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(217, 162, 112, 0.2) 0%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(86, 108, 161, 0.15) 0%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    margin-left: auto;
    display: block;
}

/* ==========================================================================
   按鈕樣式
   ========================================================================== */

.front-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

/* CTA 按鈕（明亮橘色） */
.front-page .btn-cta {
    background: linear-gradient(135deg,
        #E8985D 0%,
        #D4874E 100%);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(232, 152, 93, 0.4);
}

.front-page .btn-cta:hover {
    background: linear-gradient(135deg,
        #D4874E 0%,
        #C07842 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 152, 93, 0.55);
    color: var(--color-white);
}

/* 外框按鈕（藍色） */
.front-page .btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.front-page .btn-outline:hover {
    background: var(--brand-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 108, 161, 0.35);
}

/* ==========================================================================
   精選課程區域（橫向卡片）
   ========================================================================== */

.featured-picks-section {
    padding: 64px 0;
    background: linear-gradient(180deg,
        #faf8f5 0%,
        #f5f0e8 100%);
    position: relative;
    overflow: hidden;
}

/* 裝飾背景 */
.featured-picks-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(217, 162, 112, 0.15) 0%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.featured-picks-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle,
        rgba(217, 162, 112, 0.1) 0%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.featured-picks-section .section-header {
    position: relative;
    z-index: 1;
}

.featured-picks-section .section-badge {
    display: inline-block;
    background: var(--brand-secondary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.featured-picks-section .section-title {
    color: var(--color-text);
}

.featured-picks-section .section-subtitle {
    color: var(--color-text-muted);
}

.featured-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.featured-pick-card {
    background: var(--color-white);
    border-radius: var(--radius-brand);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(217, 162, 112, 0.15);
    border: 1px solid rgba(217, 162, 112, 0.2);
    transition: all 0.3s ease;
}

.featured-pick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(217, 162, 112, 0.25);
    border-color: var(--brand-secondary);
}

.featured-pick-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-pick-image {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
    background: var(--color-bg-light);
}

.featured-pick-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-pick-card:hover .featured-pick-image img {
    transform: scale(1.08);
}

.featured-pick-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-primary, #566CA1);
    color: var(--color-white, #ffffff);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(86, 108, 161, 0.3);
}

.featured-pick-content {
    padding: 20px;
}

.featured-pick-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-pick-card:hover .featured-pick-title {
    color: var(--brand-primary);
}

.featured-pick-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-pick-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.featured-pick-price {
    font-size: 16px;
    font-weight: 700;
}

.featured-pick-price.price-paid {
    color: var(--brand-secondary-dark);
}

.featured-pick-price.price-free {
    color: #38a169;
}

.featured-pick-action {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    transition: all 0.2s ease;
}

.featured-pick-card:hover .featured-pick-action {
    color: var(--brand-secondary);
    transform: translateX(4px);
}

/* ==========================================================================
   課程分類區域
   ========================================================================== */

.categories-section {
    padding: 64px 0;
    background: linear-gradient(180deg,
        #f0f4fa 0%,
        #f8f9fc 100%);
    position: relative;
}

/* 課程分類區域裝飾 */
.categories-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(86, 108, 161, 0.15) 50%,
        transparent 100%);
}

.categories-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(86, 108, 161, 0.15) 50%,
        transparent 100%);
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-brand);
    text-decoration: none;
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary-light);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(86, 108, 161, 0.1) 0%,
        rgba(86, 108, 161, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    color: var(--brand-primary);
    transition: all 0.25s ease;
}

.category-card:hover .category-icon {
    background: var(--brand-primary);
    color: var(--color-white);
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   精選課程區域
   ========================================================================== */

.featured-courses-section {
    padding: 64px 0;
    background: linear-gradient(180deg,
        var(--color-bg-light) 0%,
        var(--color-white) 100%);
}

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

.course-card {
    background: var(--color-white);
    border-radius: var(--radius-brand);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.course-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--color-bg-light);
}

.course-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

/* 價格標籤 - 浮在縮圖上 */
.course-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.course-price-badge.price-paid {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(217, 162, 112, 0.4);
}

.course-price-badge.price-free {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.4);
}

.course-content {
    padding: 16px;
}

/* 講師名稱 */
.course-instructor {
    font-size: 12px;
    color: var(--brand-primary);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card:hover .course-title {
    color: var(--brand-primary);
}

/* 課程元資訊 */
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.course-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.course-meta svg {
    flex-shrink: 0;
}

/* 評分星星 */
.course-rating {
    color: var(--brand-secondary);
}

.course-rating svg {
    color: var(--brand-secondary);
}

.course-rating .rating-count {
    color: var(--color-text-muted);
}

/* 時長和學員數 */
.course-duration,
.course-students {
    color: var(--color-text-muted);
}

.no-courses-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   特色說明區域
   ========================================================================== */

.features-section {
    padding: 64px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border-light);
}

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

.feature-item {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(217, 162, 112, 0.15) 0%,
        rgba(217, 162, 112, 0.05) 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--brand-secondary);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

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

/* 平板 */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 400px;
        margin: 0 auto;
    }

    .featured-picks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* 手機 */
@media (max-width: 767px) {
    .front-page .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 16px;
    }

    .front-page .section-header {
        margin-bottom: 32px;
    }

    .front-page .section-title {
        font-size: 24px;
    }

    .featured-picks-section,
    .categories-section,
    .featured-courses-section,
    .features-section {
        padding: 48px 0;
    }

    .featured-picks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-pick-title {
        font-size: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        padding: 20px 16px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
    }

    .category-icon svg {
        width: 24px;
        height: 24px;
    }

    .category-name {
        font-size: 16px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .feature-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* 小手機 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 16px 12px;
    }

    .front-page .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ==========================================================================
   2026-01-25 首頁 UI/UX 改進
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero CTA 按鈕增強 - 添加脈動動畫吸引注意力
   -------------------------------------------------------------------------- */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(232, 152, 93, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(232, 152, 93, 0.6), 0 0 0 8px rgba(232, 152, 93, 0.1);
    }
}

.front-page .btn-cta {
    animation: pulse-glow 2.5s ease-in-out infinite;
    font-size: 18px !important;
    padding: 18px 40px !important;
}

.front-page .btn-cta:hover {
    animation: none;
}

/* --------------------------------------------------------------------------
   2. 課程分類圖標差異化
   -------------------------------------------------------------------------- */

/* 第一個分類 - 星星 (Featured) */
.category-card:nth-child(1) .category-icon svg {
    display: none;
}

.category-card:nth-child(1) .category-icon::before {
    content: "";
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23566CA1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.category-card:nth-child(1):hover .category-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}

/* 第二個分類 - 心臟 (Health & Fitness) */
.category-card:nth-child(2) .category-icon svg {
    display: none;
}

.category-card:nth-child(2) .category-icon::before {
    content: "";
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23566CA1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.category-card:nth-child(2):hover .category-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'%3E%3C/path%3E%3C/svg%3E");
}

/* 第三個分類 - 畫筆 (Design) */
.category-card:nth-child(3) .category-icon svg {
    display: none;
}

.category-card:nth-child(3) .category-icon::before {
    content: "";
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23566CA1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08'%3E%3C/path%3E%3Cpath d='M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.category-card:nth-child(3):hover .category-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08'%3E%3C/path%3E%3Cpath d='M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z'%3E%3C/path%3E%3C/svg%3E");
}

/* 第四個分類 - 程式碼 (Development) */
.category-card:nth-child(4) .category-icon svg {
    display: none;
}

.category-card:nth-child(4) .category-icon::before {
    content: "";
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23566CA1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'%3E%3C/polyline%3E%3Cpolyline points='8 6 2 12 8 18'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.category-card:nth-child(4):hover .category-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'%3E%3C/polyline%3E%3Cpolyline points='8 6 2 12 8 18'%3E%3C/polyline%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. 特色說明區域增強 - 添加漸層背景和 hover 效果
   -------------------------------------------------------------------------- */

.features-section {
    padding: 80px 0 !important;
    background: linear-gradient(180deg,
        #f8f9fc 0%,
        #f0f4fa 50%,
        var(--color-white) 100%) !important;
    border-top: none !important;
    position: relative;
}

/* 裝飾背景 */
.features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(86, 108, 161, 0.2) 50%,
        transparent 100%);
}

.feature-item {
    background: var(--color-white);
    border-radius: var(--radius-brand, 16px);
    padding: 40px 32px !important;
    box-shadow: 0 4px 20px rgba(86, 108, 161, 0.08);
    border: 1px solid rgba(86, 108, 161, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(86, 108, 161, 0.15);
    border-color: rgba(86, 108, 161, 0.15);
}

.feature-icon {
    transition: all 0.3s ease !important;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg,
        var(--brand-secondary, #D9A270) 0%,
        var(--brand-secondary-dark, #c08a52) 100%) !important;
    color: var(--color-white) !important;
    transform: scale(1.1);
}

.feature-item:hover .feature-icon svg {
    stroke: var(--color-white);
}

/* --------------------------------------------------------------------------
   4. 課程卡片 hover 效果增強
   -------------------------------------------------------------------------- */

.course-card {
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.course-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 40px rgba(86, 108, 161, 0.18) !important;
    border-color: rgba(86, 108, 161, 0.15);
}

/* --------------------------------------------------------------------------
   5. 精選課程卡片邊框增強
   -------------------------------------------------------------------------- */

.featured-pick-card {
    border: 1px solid rgba(217, 162, 112, 0.15) !important;
}

.featured-pick-card:hover {
    border-color: var(--brand-secondary, #D9A270) !important;
}

/* --------------------------------------------------------------------------
   6. 分類卡片互動強化
   -------------------------------------------------------------------------- */

.category-card {
    border: 2px solid transparent !important;
    background: var(--color-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.category-card:hover {
    transform: translateY(-6px) !important;
    border-color: var(--brand-primary, #566CA1) !important;
    box-shadow: 0 12px 28px rgba(86, 108, 161, 0.15) !important;
}

/* --------------------------------------------------------------------------
   7. 最新課程區塊背景調整
   -------------------------------------------------------------------------- */

.featured-courses-section {
    background: var(--color-white) !important;
    position: relative;
}

.featured-courses-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(86, 108, 161, 0.15) 50%,
        transparent 100%);
}

/* --------------------------------------------------------------------------
   8. Smooth Scroll
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

/* Reduced Motion 支援 */
@media (prefers-reduced-motion: reduce) {
    .front-page .btn-cta {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .course-card,
    .featured-pick-card,
    .category-card,
    .feature-item {
        transition: none !important;
    }
}

/* ==========================================================================
   9. 統一標籤設計系統 (Unified Badge System)

   設計原則：
   - 統一形狀：6px 圓角（專業但不生硬）
   - 統一大小：11px 字體，5px 12px padding
   - 語意化顏色：
     • 精選 = 品牌藍 (#566CA1) - 表示推薦
     • 免費 = 翡翠綠 (#10b981) - 表示價值
     • 付費 = 品牌橘 (#D9A270) - 吸引注意
   ========================================================================== */

/* --------------------------------------------------------------------------
   9.1 精選課程區塊的「精選」標籤
   -------------------------------------------------------------------------- */

.featured-pick-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-primary, #566CA1) !important;
    color: var(--color-white, #ffffff) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(86, 108, 161, 0.35) !important;
    text-transform: none;
}

/* --------------------------------------------------------------------------
   9.2 最新課程區塊的價格標籤
   -------------------------------------------------------------------------- */

.course-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-block;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* 付費課程 - 品牌橘色 */
.course-price-badge.price-paid {
    background: var(--brand-secondary, #D9A270) !important;
    color: var(--color-white, #ffffff) !important;
    box-shadow: 0 2px 8px rgba(217, 162, 112, 0.35) !important;
}

/* 免費課程 - 翡翠綠色 */
.course-price-badge.price-free {
    background: #10b981 !important;
    color: var(--color-white, #ffffff) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
}

/* --------------------------------------------------------------------------
   9.3 精選課程區塊底部的價格文字
   -------------------------------------------------------------------------- */

.featured-pick-price {
    font-size: 14px !important;
    font-weight: 700 !important;
}

.featured-pick-price.price-paid {
    color: var(--brand-secondary-dark, #c08a52) !important;
}

.featured-pick-price.price-free {
    color: #10b981 !important;
}
