@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Noto+Sans+TC:wght@300;400;700&display=swap');

/* 基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: 
        linear-gradient(135deg, rgba(248,249,250,0.7) 0%, rgba(233,236,239,0.7) 50%, rgba(222,226,230,0.7) 100%),
        url('../images/geometric-background.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 頁面容器 */
.page {
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    height: calc(100vh - 88px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    overflow-y: auto;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景動畫 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(45deg, transparent 40%, rgba(0,0,0,0.02) 50%, transparent 60%);
    animation: abstractFlow 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes abstractFlow {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(10px) translateY(-5px) rotate(1deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-5px) translateY(10px) rotate(-1deg);
        opacity: 0.4;
    }
    75% {
        transform: translateX(-10px) translateY(-10px) rotate(0.5deg);
        opacity: 0.6;
    }
}

/* 主頁面樣式 */
.content {
    text-align: center;
    max-width: 600px;
}

.main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a5568, transparent);
}

.subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
}

.start-button {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Noto Sans TC', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.start-button::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.5s ease;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.start-button:hover::before {
    left: 100%;
}

/* 測驗頁面樣式 */
.question-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.question-number {
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 1rem;
    font-weight: 300;
}

.question-title {
    font-family: 'Source Han Serif SC', serif;
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.3;
}

.question-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-weight: 300;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.option-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.option-card:hover {
    border-color: #4a5568;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.option-card.selected {
    border-color: #2d3748;
    background: #f7fafc;
    transform: translateY(-3px);
}

.option-letter {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #4a5568;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.option-text {
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.option-artist {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

/* 結果頁面樣式 */
.result-page .container {
    min-height: auto;
    padding-bottom: 3rem;
    padding-top: 2rem;
}

.artist-result {
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.result-title {
    font-family: 'Source Han Serif SC', serif;
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 300;
}

.artist-name {
    font-family: 'Source Han Serif SC', serif;
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.artist-type {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 300;
}

.artist-description {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: left;
}

.artist-features {
    text-align: left;
    margin-bottom: 2rem;
}

.artist-features h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 500;
}

.artist-features ul {
    list-style: none;
    padding-left: 0;
}

.artist-features li {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.artist-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a5568;
    font-weight: bold;
}

.artist-quote {
    background: #f7fafc;
    border-left: 4px solid #4a5568;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.artist-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #2d3748;
    font-style: italic;
    margin: 0;
}

/* 動作按鈕 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.share-button, .retake-button, .explore-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-family: 'Noto Serif TC', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.share-button {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
}

.retake-button {
    background: white;
    color: #4a5568;
    border: 2px solid #4a5568;
}

.explore-button {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
}

.share-button:hover, .retake-button:hover, .explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.retake-button:hover {
    background: #4a5568;
    color: white;
}

/* 社交分享 */
.social-share {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #4a5568;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: bold;
}

.social-icon:hover {
    background: #2d3748;
    transform: scale(1.1);
}

/* 結果圖片樣式 */
.result-image {
    max-width: 80%;
    height: auto;
    margin: 40px auto 20px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* 所有設備都只顯示結果圖片 */
.artist-info {
    display: none !important;
}

.result-title {
    margin-bottom: 30px;
}

/* 桌面版圖片樣式 */
@media (min-width: 769px) {
    .result-image {
        max-width: 60%;
        margin: 30px auto 40px auto;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page {
        top: 88px;
        height: calc(100vh - 88px);
    }
    
    .container {
        padding: 1rem;
        min-height: calc(100vh - 88px);
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .question-title {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .question-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .options-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .option-card {
        padding: 1.2rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-button, .retake-button, .explore-button {
        width: 100%;
        max-width: 250px;
    }
    
    /* 手機版結果圖片樣式 */
    .result-image {
        max-width: 95% !important;
        width: 100% !important;
        margin: 20px auto 15px auto !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
}