/* 平方之泉頁面樣式 */ body.spring-page { background-image: url('guardian.jpg'); } .spring-container { background-color: rgba(0, 0, 0, 0.7); border: 3px solid rgba(255, 140, 0, 0.7); border-radius: 10px; padding: 30px; width: 90%; max-width: 800px; margin: 0 auto; color: white; } .spring-title { color: rgba(255, 165, 0, 0.9); font-size: 2rem; margin-bottom: 30px; text-align: center; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); } .spring-content { line-height: 1.8; font-size: 1.1rem; margin-bottom: 30px; text-align: justify; } .spring-content p { margin-bottom: 15px; } .start-challenge-container { text-align: center; margin-top: 30px; } /* 問答區域樣式 */ .quiz-container { padding: 20px; margin-bottom: 30px; } #question-container { margin-bottom: 30px; } #question-text { font-size: 1.5rem; margin-bottom: 20px; color: rgba(255, 165, 0, 0.9); text-align: center; } #options-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; } .option-btn { padding: 15px; background-color: rgba(255, 140, 0, 0.6); color: white; border: 2px solid rgba(255, 165, 0, 0.8); border-radius: 8px; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; text-align: center; } .option-btn:hover { background-color: rgba(255, 165, 0, 0.8); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4); } .option-btn.correct { background-color: rgba(0, 200, 0, 0.8); border-color: rgba(0, 255, 0, 0.8); } .option-btn.incorrect { background-color: rgba(200, 0, 0, 0.8); border-color: rgba(255, 0, 0, 0.8); } .option-btn.disabled { cursor: not-allowed; opacity: 0.7; } /* 泉水動畫區域 */ .spring-animation { height: 150px; margin: 30px 0; position: relative; overflow: hidden; border-radius: 10px; background-color: rgba(0, 100, 255, 0.3); } .water-ripple { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 0; height: 0; border-radius: 50%; background-color: rgba(0, 200, 255, 0.6); opacity: 0; } .water-ripple.animate { animation: ripple 2s ease-out; } @keyframes ripple { 0% { width: 0; height: 0; opacity: 0.8; } 100% { width: 300px; height: 300px; opacity: 0; } } /* 進度條樣式 */ .progress-container { margin-top: 20px; } .progress-text { text-align: center; margin-bottom: 10px; font-size: 1.1rem; } .progress-bar { height: 15px; background-color: rgba(255, 255, 255, 0.2); border-radius: 10px; overflow: hidden; } #progress-fill { height: 100%; background-color: rgba(255, 165, 0, 0.8); width: 0%; transition: width 0.5s ease; } /* 完成訊息樣式 */ .completion-message { text-align: center; padding: 20px; } .completion-message h2 { color: rgba(255, 215, 0, 0.9); font-size: 1.8rem; margin-bottom: 20px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); } .completion-message p { margin-bottom: 15px; font-size: 1.1rem; } .feedback-container { text-align: center; margin: 20px 0; font-size: 1.2rem; min-height: 30px; } /* 響應式設計 */ @media (max-width: 768px) { .spring-title { font-size: 1.8rem; } #options-container { grid-template-columns: 1fr; } .option-btn { padding: 12px; } } @media (max-width: 480px) { .spring-container { padding: 15px; } .spring-title { font-size: 1.5rem; } .spring-content { font-size: 1rem; } #question-text { font-size: 1.3rem; } }