/**
 * Photo Guidance System - CSS 樣式
 * 相片指導系統的完整樣式設計
 * 
 * @package LineLoginPush
 * @subpackage PhotoGuidanceSystem
 * @since 2.2
 */

/* ==========================================================================
   基本容器樣式
   ========================================================================== */

.photo-guidance-container {
    max-width: 1000px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.photo-guidance-container.compact-mode {
    max-width: 800px;
    margin: 20px auto;
}

.guidance-error {
    background: #ffeaa7;
    color: #d63031;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin: 20px;
}

/* ==========================================================================
   進度指示器
   ========================================================================== */

.guidance-progress {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    color: white;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.progress-step {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    opacity: 0.7;
}

.progress-step:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.progress-step.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.progress-step.completed {
    opacity: 1;
}

.progress-step.completed .step-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 4px 6px;
}

.step-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}

.step-title {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* 緊湊模式的進度樣式 */
.compact-mode .guidance-progress {
    padding: 15px 20px;
}

.compact-mode .progress-steps {
    flex-wrap: wrap;
    gap: 8px;
}

.compact-mode .progress-step {
    flex: 0 1 auto;
    min-width: 60px;
    padding: 6px;
}

/* ==========================================================================
   指導內容區域
   ========================================================================== */

.guidance-content {
    padding: 40px;
}

.guidance-header {
    text-align: center;
    margin-bottom: 40px;
}

.guidance-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guidance-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.guidance-steps-container {
    margin-bottom: 40px;
}

.guidance-step {
    display: none;
}

.guidance-step.active {
    display: block;
    animation: slideInUp 0.3s ease;
}

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.step-icon-large {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.step-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.step-content {
    min-height: 200px;
}

.step-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
}

.step-error {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #e74c3c;
    background: #ffeaa7;
    border-radius: 8px;
}

/* ==========================================================================
   步驟內容元素
   ========================================================================== */

/* 提示區域 */
.step-tips {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.step-tips h5 {
    color: #0c5460;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.step-tips ul {
    margin: 0;
    padding-left: 20px;
}

.step-tips li {
    color: #0c5460;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 範例對比 */
.step-examples {
    margin-bottom: 30px;
}

.step-examples h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.examples-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.examples-good,
.examples-bad {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.examples-label {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.examples-label.good {
    background: #d4edda;
    color: #155724;
}

.examples-label.bad {
    background: #f8d7da;
    color: #721c24;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 15px;
}

.example-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 3/4;
}

.example-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.example-image:hover {
    transform: scale(1.05);
}

.example-annotation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px 8px 8px;
    font-size: 11px;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.example-item:hover .example-annotation {
    opacity: 1;
}

/* 檢查清單 */
.step-checklist {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.step-checklist h5 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.checklist-items {
    display: grid;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checklist-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-item.completed {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.checklist-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checklist-label {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    color: #333;
}

.checklist-item.completed .checklist-label {
    color: #155724;
}

/* FAQ 區域 */
.step-faq {
    margin-bottom: 25px;
}

.step-faq h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.faq-items {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #f8f9fa;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-item.expanded .faq-question {
    background: #e3f2fd;
}

.question-text {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.question-toggle {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.expanded .question-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 15px;
    color: #666;
    line-height: 1.5;
}

/* 步驟操作按鈕 */
.step-actions {
    text-align: center;
    margin-top: 25px;
}

.step-completed-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid #c3e6cb;
}

/* ==========================================================================
   導航按鈕
   ========================================================================== */

.guidance-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.guidance-navigation .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-secondary:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ==========================================================================
   完成畫面
   ========================================================================== */

.guidance-complete {
    text-align: center;
    padding: 60px 40px;
}

.complete-content {
    max-width: 400px;
    margin: 0 auto;
}

.complete-icon {
    font-size: 72px;
    margin-bottom: 20px;
    display: block;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.guidance-complete h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.guidance-complete p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 30px 0;
}

.start-upload-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================================================
   FAQ 系統樣式
   ========================================================================== */

.guidance-faq-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 20px 0;
}

.faq-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
}

.faq-header h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.faq-search {
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.faq-search-input::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
}

.faq-content {
    padding: 30px;
}

.faq-category {
    margin-bottom: 30px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   圖片燈箱
   ========================================================================== */

.guidance-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    padding: 15px 20px;
    background: #f8f9fa;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* ==========================================================================
   動畫場景樣式
   ========================================================================== */

/* 光線動畫場景 */
.lighting-animation-container {
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.lighting-scene {
    padding: 25px;
}

.scene-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.scene-content {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.light-source {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
}

.light-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.light-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.subject {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
}

.person-silhouette {
    width: 40px;
    height: 80px;
    background: #333;
    border-radius: 20px 20px 5px 5px;
    position: relative;
}

.person-silhouette::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
}

.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light-ray {
    position: absolute;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    width: 2px;
    height: 100%;
    animation: lightRayMove 3s ease-in-out infinite;
}

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

.light-ray.ray-0 { left: 15%; animation-delay: 0s; }
.light-ray.ray-1 { left: 25%; animation-delay: 0.2s; }
.light-ray.ray-2 { left: 35%; animation-delay: 0.4s; }
.light-ray.ray-3 { left: 65%; animation-delay: 0.6s; }
.light-ray.ray-4 { left: 75%; animation-delay: 0.8s; }

.scene-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.scene-controls .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* 光線類型樣式 */
.scene-content.natural-light {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe082 100%);
}

.scene-content.artificial-light {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%);
}

.scene-content.mixed-light {
    background: linear-gradient(135deg, #ffebee 0%, #ef5350 100%);
}

.lighting-tip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    color: #333;
}

/* 角度動畫場景 */
.angle-animation-container {
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.angle-scene {
    padding: 25px;
}

.camera-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.camera-icon {
    font-size: 48px;
}

.viewfinder {
    width: 200px;
    height: 150px;
    border: 3px solid #333;
    border-radius: 8px;
    position: relative;
    background: #e0e0e0;
    transition: transform 0.3s ease;
}

.person-in-frame {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 20px;
    height: 60px;
    background: #667eea;
    border-radius: 10px 10px 3px 3px;
    transition: transform 0.3s ease;
}

.person-in-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

.frame-guides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.guide-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
}

.guide-line.horizontal {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.guide-line.vertical {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.angle-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.angle-slider-container,
.distance-slider-container {
    text-align: center;
}

.angle-slider-container label,
.distance-slider-container label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.angle-slider,
.distance-slider {
    width: 100%;
    margin-bottom: 8px;
}

.angle-value,
.distance-value {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
}

.angle-feedback {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-top: 15px;
}

.feedback-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 姿勢動畫場景 */
.pose-animation-container {
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.pose-scene {
    padding: 25px;
}

.pose-demonstration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    position: relative;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pose-avatar {
    position: relative;
    transform-origin: center bottom;
    transition: all 0.5s ease;
}

/* 頭部 */
.avatar-head {
    width: 30px;
    height: 30px;
    background: #667eea;
    border-radius: 50%;
    margin: 0 auto 5px;
}

/* 身體 */
.avatar-body {
    width: 40px;
    height: 80px;
    background: #667eea;
    border-radius: 20px 20px 5px 5px;
    margin: 0 auto;
    position: relative;
}

/* 手臂 */
.avatar-arm-left,
.avatar-arm-right {
    position: absolute;
    width: 8px;
    height: 40px;
    background: #667eea;
    border-radius: 4px;
    top: 10px;
    transition: all 0.3s ease;
}

.avatar-arm-left {
    left: -12px;
}

.avatar-arm-right {
    right: -12px;
}

/* 腿部 */
.avatar-leg-left,
.avatar-leg-right {
    position: absolute;
    width: 10px;
    height: 50px;
    background: #667eea;
    border-radius: 5px 5px 3px 3px;
    bottom: -50px;
    transition: all 0.3s ease;
}

.avatar-leg-left {
    left: 8px;
}

.avatar-leg-right {
    right: 8px;
}

/* 姿勢變化 */
.pose-avatar.pose-natural {
    /* 預設姿勢 */
}

.pose-avatar.pose-confident .avatar-arm-left {
    transform: rotate(-20deg);
    left: -8px;
}

.pose-avatar.pose-confident .avatar-arm-right {
    transform: rotate(20deg);
    right: -8px;
}

.pose-avatar.pose-relaxed {
    transform: rotate(-3deg);
}

.pose-avatar.pose-relaxed .avatar-leg-left {
    transform: rotate(-10deg);
}

.pose-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pose-point {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 10;
}

.pose-point:hover {
    transform: scale(1.2);
    background: #ff5252;
}

.pose-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pose-controls .btn.active {
    background: #667eea;
    color: white;
}

.pose-tips {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.tip-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.pose-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10001;
    pointer-events: none;
}

.pose-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

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

/* 平板版 */
@media (max-width: 1024px) {
    .photo-guidance-container {
        margin: 20px;
        border-radius: 12px;
    }
    
    .guidance-content {
        padding: 30px 25px;
    }
    
    .examples-comparison {
        gap: 15px;
    }
    
    .examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .angle-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 手機版 */
@media (max-width: 768px) {
    .photo-guidance-container {
        margin: 15px;
        border-radius: 8px;
    }
    
    .guidance-progress {
        padding: 20px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .progress-step {
        flex: 1 1 60px;
        min-width: 60px;
        padding: 6px;
    }
    
    .step-icon {
        font-size: 16px;
    }
    
    .step-title {
        font-size: 10px;
    }
    
    .guidance-content {
        padding: 25px 20px;
    }
    
    .guidance-title {
        font-size: 24px;
    }
    
    .guidance-subtitle {
        font-size: 14px;
    }
    
    .step-header {
        padding: 20px 15px;
    }
    
    .step-icon-large {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .examples-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
        padding: 10px;
    }
    
    .guidance-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .guidance-navigation .btn {
        width: 100%;
        justify-content: center;
    }
    
    .faq-header {
        padding: 20px;
    }
    
    .faq-content {
        padding: 20px;
    }
    
    .faq-category {
        margin-bottom: 20px;
    }
    
    /* 動畫場景響應式 */
    .camera-view {
        flex-direction: column;
        gap: 15px;
    }
    
    .viewfinder {
        width: 160px;
        height: 120px;
    }
    
    .pose-demonstration {
        height: 200px;
    }
    
    .scene-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .scene-controls .btn {
        flex: 1 1 auto;
        min-width: 80px;
    }
}

/* 小手機版 */
@media (max-width: 480px) {
    .photo-guidance-container {
        margin: 10px;
    }
    
    .guidance-progress {
        padding: 15px;
    }
    
    .guidance-content {
        padding: 20px 15px;
    }
    
    .step-header {
        padding: 15px 10px;
    }
    
    .guidance-title {
        font-size: 20px;
    }
    
    .step-icon-large {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 8px;
    }
    
    .viewfinder {
        width: 140px;
        height: 105px;
    }
    
    .pose-demonstration {
        height: 180px;
    }
    
    .scene-controls .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   無障礙設計
   ========================================================================== */

/* 高對比模式 */
@media (prefers-contrast: high) {
    .photo-guidance-container {
        border: 2px solid #000;
    }
    
    .guidance-progress {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .examples-label.good {
        background: #000;
        color: #fff;
    }
    
    .examples-label.bad {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* 動畫縮減模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-fill::after {
        animation: none;
    }
    
    .light-ray {
        animation: none;
    }
    
    .complete-icon {
        animation: none;
    }
}

/* 聚焦樣式 */
.guidance-navigation .btn:focus,
.faq-question:focus,
.checklist-item:focus,
.pose-point:focus,
.scene-controls .btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ==========================================================================
   列印樣式
   ========================================================================== */

@media print {
    .photo-guidance-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .guidance-progress {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .guidance-navigation {
        display: none;
    }
    
    .lighting-animation-container,
    .angle-animation-container,
    .pose-animation-container {
        display: none;
    }
}

/* ==========================================================================
   工具類別
   ========================================================================== */

.highlight-upload {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    }
    50% { 
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
        transform: translateY(-2px);
    }
}