/* 探索頁面樣式 — Group 1 深空夜，背景由 .page-background utility (common.css) 提供 */

main {
    background: var(--bg-group-1);
}

body {
    color: var(--text-on-light);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(101, 199, 208, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(143, 185, 139, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 60% 20%, rgba(227, 219, 116, 0.08) 0%, transparent 50%),
        conic-gradient(from 45deg at 40% 80%, transparent, rgba(255, 230, 167, 0.06), transparent);
    pointer-events: none;
    z-index: 1;
    animation: atmosphereShift 30s ease-in-out infinite;
}

@keyframes atmosphereShift {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.explore-wrapper {
    padding-top: 2rem;
    width: 100%;
    max-width: 100%;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    overflow-x: hidden;
}

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

.explore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* 標題區域樣式 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
    padding: 2rem 2rem 0 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 40px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        #e3db74 20%, 
        #8fb98b 50%, 
        #65c7d0 80%, 
        transparent);
    background-size: 300% 100%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(101, 199, 208, 0.4);
    animation: decorativeLineFlow 4s ease-in-out infinite;
}

@keyframes decorativeLineFlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(101, 199, 208, 0.4);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(227, 219, 116, 0.6);
    }
}

.section-header img {
    width: 75px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(227, 219, 116, 0.4));
    animation: logoBreathing 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes logoBreathing {
    0%, 100% {
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(227, 219, 116, 0.4));
    }
    50% {
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(227, 219, 116, 0.7));
    }
}

.section-header img:hover {
    transform: scale(1.08) rotate(8deg);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(227, 219, 116, 0.8));
    animation: logoSpin 2s ease-in-out;
}

@keyframes logoSpin {
    0% { transform: scale(1.08) rotate(8deg); }
    50% { transform: scale(1.12) rotate(-5deg); }
    100% { transform: scale(1.08) rotate(8deg); }
}

.explore-title {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        #e3db74 0%, 
        #d4c347 25%,
        #8fb98b 50%, 
        #7ba085 75%,
        #65c7d0 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.18em;
    animation: advancedGradientShift 5s ease-in-out infinite;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(101, 199, 208, 0.2));
    position: relative;
}

@keyframes advancedGradientShift {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    33% {
        background-position: 50% 0%;
        transform: scale(1.02);
    }
    66% {
        background-position: 100% 100%;
        transform: scale(1.01);
    }
}

/* 描述區域 */
.explore-section-desc-container {
    margin-bottom: 4rem;
}

.main-desc {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 230, 167, 0.08) 0%, 
        rgba(227, 219, 116, 0.05) 50%,
        rgba(255, 230, 167, 0.08) 100%);
    border-radius: 25px;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 230, 167, 0.15);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.main-desc::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.08), 
        transparent);
    animation: shimmerEffect 6s ease-in-out infinite;
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.desc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(232, 151, 106, 0.3));
}

.desc-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-on-light);
    margin-bottom: 1rem;
    text-shadow: none;
}

.desc-content {
    font-size: 1.1rem;
    color: var(--text-on-light);
    line-height: 2.2;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.05em;
}

/* 步驟流程 */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8fb98b, #65c7d0);
    color: var(--text-on-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 15px rgba(143, 185, 139, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(143, 185, 139, 0.5);
}

.step-text {
    color: var(--text-on-light);
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: none;
}

.step-connector {
    color: #4a6e58;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 1rem;
    text-shadow: 0 0 10px rgba(143, 185, 139, 0.8);
}

/* 卡片佈局 */
.explore-cards-wrapper {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    grid-template-rows: auto auto auto;
    gap: 2.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

/* 卡片特定位置 */
.quiz-card {
    grid-column: 1;
    grid-row: 1;
    width: 100%; /* 數位人文素養測驗 */
}

.mbti-card {
    grid-column: 2;
    grid-row: 1;
    width: 100%; /* MBTI在數位人文素養測驗的右邊 */
    height: fit-content; /* MBTI高度縮小 */
    align-self: start; /* 對齊到頂部 */
    margin-top: 10rem; /* MBTI往下移動 */
}

.holland-card {
    grid-column: 1;
    grid-row: 2;
    width: 80%; /* Holland在數位人文素養測驗的下方 */
}

/* 卡片基礎樣式 */
.explore-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(240, 248, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 2.5rem 1.5rem 2rem;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.2),
        0 5px 20px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(101, 199, 208, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg);
}

.explore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15) 30%, 
        rgba(101, 199, 208, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 70%,
        transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.explore-card::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        rgba(227, 219, 116, 0.3), 
        rgba(143, 185, 139, 0.3), 
        rgba(101, 199, 208, 0.3),
        rgba(227, 219, 116, 0.3));
    background-size: 400% 400%;
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: cardBorderFlow 8s ease infinite;
}

@keyframes cardBorderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.explore-card:hover::after {
    opacity: 1;
}

.explore-card:hover {
    transform: perspective(1000px) translateY(-12px) scale(1.03) rotateX(5deg) rotateY(2deg);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 50px rgba(101, 199, 208, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.03);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(248, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    border-color: rgba(44, 62, 80, 0.45);
}

.explore-card:hover::before {
    left: 100%;
}

/* 主卡片特殊樣式 */
.main-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(240, 248, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.12) 100%);
}

/* 卡片標題 */
.card-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.explore-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-on-light);
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    text-shadow: none;
}

.explore-card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #e3db74, #8fb98b);
    border-radius: 1px;
}

.explore-card:hover .explore-card-title {
    color: var(--text-on-light);
    text-shadow: none;
    transform: translateY(-2px);
}

/* 卡片圖片 */
.explore-card-img-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.explore-card-img-element {
    width: 80px;
    height: 80px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.25)) brightness(1.05) saturate(1.1);
    position: relative;
    z-index: 2;
    animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-5px) rotate(2deg);
    }
    75% { 
        transform: translateY(-3px) rotate(-2deg);
    }
}

.explore-card:hover .explore-card-img-element {
    transform: scale(1.15) rotate(8deg) translateY(-5px);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35)) brightness(1.15) saturate(1.2);
}

/* 測驗詳情 */
.test-info-integrated {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fafbfd;
    border-radius: 12px;
    border-left: 3px solid #8fb98b;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #2e7a85;
}

.detail-icon {
    font-size: 1.3rem;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--text-on-light);
}

.detail-content strong {
    color: var(--text-on-light);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.detail-content p {
    color: var(--text-on-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: none;
}

/* 表單元素 */
.card-instruction {
    color: var(--text-on-light);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: none;
}

.select-wrapper {
    margin-bottom: 1rem;
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--text-on-light);
    font-size: 0.8rem;
    pointer-events: none;
    text-shadow: none;
}

.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: 2px solid #d8dee8;
    border-radius: 12px;
    color: var(--text-on-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #a4b494;
    box-shadow: 0 0 0 3px rgba(164, 180, 148, 0.2);
    background: #ffffff;
}

.form-select option {
    background: #ffffff;
    color: var(--text-on-light);
    padding: 10px;
    font-weight: 400;
    border: none;
}

.form-select optgroup {
    background: #f1f4ef;
    color: var(--text-on-light);
    font-weight: 600;
    font-style: normal;
    padding: 8px;
}

/* 外部連結 */
.external-link {
    text-align: center;
    margin-top: 1.5rem;
}

.test-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-on-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.5rem 1.2rem;
    border: 2px solid rgba(255, 230, 167, 0.5);
    border-radius: 16px;
    background: rgba(255, 230, 167, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    text-shadow: none;
}

.test-link:hover {
    background: rgba(255, 230, 167, 0.25);
    border-color: var(--text-on-light);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 230, 167, 0.3);
    text-shadow: none;
}

/* 按鈕樣式 */
.explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.6rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.explore-btn:hover::before {
    left: 100%;
}

.primary-quiz-btn {
    background: linear-gradient(135deg, #8fb98b, #65c7d0);
    color: var(--text-on-light);
    box-shadow: 0 4px 15px rgba(143, 185, 139, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.primary-quiz-btn:hover {
    background: linear-gradient(135deg, #7ba085, #4f9da6);
    box-shadow: 0 6px 20px rgba(143, 185, 139, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text-on-light);
}

.disabled {
    background: rgba(100, 100, 100, 0.3);
    color: rgba(44, 62, 80, 0.55);
    cursor: not-allowed;
    box-shadow: none;
}

.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 問卷尚未開放按鈕樣式 */
.explore-btn.quiz-closed {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: rgba(44, 62, 80, 0.85);
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.explore-btn.quiz-closed:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.explore-btn.quiz-closed i {
    margin-right: 0.5rem;
}

/* 本時段測驗已完成按鈕樣式 */
.explore-btn.period-completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: rgba(44, 62, 80, 0.92);
    cursor: not-allowed;
    opacity: 0.9;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.explore-btn.period-completed:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.explore-btn.period-completed i {
    margin-right: 0.5rem;
}

/* 確認按鈕 */
.confirm-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-top: 3rem;
}

.confirm-btn {
    background: linear-gradient(135deg, #8fb98b 0%, #65c7d0 50%, #ffe6a7 100%);
    background-size: 200% 200%;
    color: var(--text-on-light);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    text-shadow: none;
}

.confirm-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 25px rgba(143, 185, 139, 0.4);
    transform: translateY(-3px);
    color: var(--text-on-light);
    text-decoration: none;
}


.btn-icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.btn-arrow {
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.confirm-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* 查看上次分析結果按鈕 */
.view-previous-btn {
    background: linear-gradient(135deg, rgba(227, 219, 116, 0.85) 0%, rgba(232, 151, 106, 0.85) 100%);
    color: var(--text-on-light);
    padding: 0.7rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(227, 219, 116, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.25);
    text-shadow: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.view-previous-btn:hover {
    background: linear-gradient(135deg, rgba(212, 195, 71, 0.95) 0%, rgba(217, 132, 91, 0.95) 100%);
    box-shadow: 0 6px 25px rgba(227, 219, 116, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--text-on-light);
    text-decoration: none;
}

/* 已完成分析的卡片 */
.existing-analysis-wrapper {
    margin-top: 2rem;
}

.analysis-summary-card {
    background: linear-gradient(145deg, rgba(143, 185, 139, 0.05), rgba(101, 199, 208, 0.03));
    border: 2px solid rgba(143, 185, 139, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(143, 185, 139, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.analysis-summary-card:hover {
    border-color: rgba(143, 185, 139, 0.3);
    box-shadow: 0 12px 35px rgba(143, 185, 139, 0.15);
    transform: translateY(-2px);
}

.analysis-summary-title {
    color: var(--text-on-light);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: none;
}

.analysis-summary-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.analysis-type,
.analysis-date {
    background: rgba(143, 185, 139, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(143, 185, 139, 0.2);
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.analysis-preview {
    background: #fafbfd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.analysis-preview h4 {
    color: var(--text-on-light);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-shadow: none;
}

.analysis-preview p {
    color: var(--text-on-light);
    line-height: 1.6;
    text-shadow: none;
}

.primary-btn {
    background: linear-gradient(135deg, #8fb98b, #65c7d0);
    color: var(--text-on-light);
    box-shadow: 0 4px 15px rgba(143, 185, 139, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #7ba085, #4f9da6);
    box-shadow: 0 6px 20px rgba(143, 185, 139, 0.4);
    color: var(--text-on-light);
    text-decoration: none;
}

.secondary-btn {
    background: linear-gradient(135deg, #e3db74, #e8976a);
    color: var(--text-on-light);
    box-shadow: 0 4px 15px rgba(227, 219, 116, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #d4c347, #d9845b);
    box-shadow: 0 6px 20px rgba(227, 219, 116, 0.4);
    color: var(--text-on-light);
    text-decoration: none;
}

/* 分析結果按鈕組 - 垂直布局 */
.analysis-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.analysis-actions .explore-btn {
    text-align: center;
}

.analysis-actions .primary-btn {
    width: 320px;
    padding: 0.8rem 2.5rem;
}

.analysis-actions .secondary-btn {
    width: 180px;
    padding: 0.7rem 1.5rem;
}

/* 動畫效果 */
.explore-card {
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.main-card {
    animation-delay: 0.2s;
}

.mbti-card {
    animation-delay: 0.4s;
}

.holland-card {
    animation-delay: 0.3s;
}

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

/* 響應式設計 */
@media (max-width: 900px) {
    .section-header {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .section-header::after {
        bottom: -8px;
    }

    .section-header img {
        width: 55px;
    }

    .explore-container {
        padding: 2rem 1.5rem;
    }

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

    .explore-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 重置所有卡片的 grid 定位 */
    .quiz-card,
    .mbti-card,
    .holland-card {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        margin-top: 0;
    }

    /* 調整卡片順序 */
    .quiz-card { order: 1; }
    .mbti-card { order: 2; }
    .holland-card { order: 3; }

    .steps-container {
        flex-direction: column;
        gap: 1rem;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

@media (max-width: 600px) {
    .section-header img {
        width: 55px;
    }

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

    .desc-title {
        font-size: 1.3rem;
    }

    .desc-content {
        font-size: 1rem;
    }

    .explore-card {
        padding: 1.5rem;
    }

    .main-desc {
        padding: 2rem;
    }

    .confirm-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .confirm-button-wrapper {
        gap: 0.8rem;
    }

    .view-previous-btn {
        padding: 0.65rem 2rem;
        font-size: 0.95rem;
    }
}

/* 角色分析完成提示樣式 */
.analysis-completion-message {
    background: linear-gradient(135deg, 
        rgba(143, 185, 139, 0.12) 0%, 
        rgba(101, 199, 208, 0.08) 50%,
        rgba(227, 219, 116, 0.10) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(143, 185, 139, 0.3);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-shadow: 
        0 15px 40px rgba(143, 185, 139, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: completionFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.analysis-completion-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1) 30%, 
        rgba(143, 185, 139, 0.08) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        transparent);
    animation: completionShimmer 3s ease-in-out infinite;
    z-index: 1;
}

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

@keyframes completionShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.completion-icon {
    font-size: 2.8rem;
    color: #4a6e58;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(143, 185, 139, 0.3));
    animation: completionIconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes completionIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 10px rgba(143, 185, 139, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 6px 15px rgba(143, 185, 139, 0.5));
    }
}

.completion-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-on-light);
    margin-bottom: 0.8rem;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.completion-subtitle {
    font-size: 1.05rem;
    color: var(--text-on-light);
    margin-bottom: 0;
    line-height: 1.5;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.completion-highlight {
    background: linear-gradient(135deg, #8fb98b, #65c7d0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    animation: highlightGradientShift 3s ease-in-out infinite;
}

@keyframes highlightGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 響應式設計 - 完成提示 */
@media (max-width: 600px) {
    .analysis-completion-message {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .completion-icon {
        font-size: 2.8rem;
    }
    
    .completion-title {
        font-size: 1.5rem;
    }
    
    .completion-subtitle {
        font-size: 1rem;
    }
}

/* 額外的互動效果 */
.explore-card-btns {
    text-align: center;
    margin-top: 1.5rem;
}

.explore-form {
    margin-bottom: 1rem;
}