/* STEM獎勵計劃靜態網站樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans HK', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f8fafc;
}

/* 導航欄樣式 */
.navbar {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo-main {
    height: 40px;
    width: auto;
}

.nav-logo-secondary {
    height: 40px;
    width: auto;
}

@media (max-width: 640px) {
    .nav-logo-secondary {
        display: none;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover {
    color: #9333ea;
}

/* 下拉選單 */
.dropdown-toggle::after {
    content: '▼';
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    color: #334155;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: #f1f5f9;
    color: #667eea;
    padding-left: 24px;
}

/* 手機選單開關 */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #334155;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 主要內容區域 */
.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* 英雄區域 */
.hero-section {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.nowtv.now.com/page/stemawards/images/hero/home-2025.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.8) 0%, rgba(236, 72, 153, 0.7) 50%, rgba(249, 115, 22, 0.8) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 1280px;
    max-height: calc(100% - 4rem);
    margin: -4rem auto 0 auto;
    padding: 0 2rem;
    text-align: left;
    justify-content: space-between;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-align: left;
}

/* 內容區塊 */
.content-section {
    padding: 60px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: left;
    margin-bottom: 50px;
    color: #1e293b;
}

.section-title:after {
    content: '';
    display: block;
    margin: 0 auto 0 0;
    width: 96px;
    height: 4px;
    margin-top: 20px;
    background-color: #9333ea;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
    color: #9333ea;
    max-width: 600px;
}

/* 頁腳 */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-text {
    color: #94a3b8;
    margin-bottom: 10px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        color: white;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: white;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin: 10px 0;
    }

    .dropdown-link {
        color: white;
        text-align: center;
    }

    .dropdown-link:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        padding-left: 20px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

/* 獲獎條件動畫樣式 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 300px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 300px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

.award-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.award-card:nth-child(1) { animation-delay: 0.1s; }
.award-card:nth-child(2) { animation-delay: 0.2s; }
.award-card:nth-child(3) { animation-delay: 0.3s; }

.collapsible-content {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.collapsible-content.expanded {
    max-height: 300px;
    opacity: 1;
}

.toggle-button {
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.toggle-button:hover {
    opacity: 0.9;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

/* 響應式水平捲動 */
.award-cards-container {
    position: relative;
}

.scroll-hint {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    40% {
        transform: translateY(-50%) translateX(-5px);
    }
    60% {
        transform: translateY(-50%) translateX(-3px);
    }
}

@media (max-width: 1084px) {
    .award-cards-container .scroll-hint {
        display: block;
    }
    
    .award-cards-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 40px;
    }
    
    .award-cards-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .award-cards-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .award-cards-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .award-cards-grid::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .award-card {
        min-width: 320px;
        flex-shrink: 0;
    }
}

/* 比賽項目容器樣式 */
.competitions-container {
    position: relative;
}

.competitions-grid {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.competitions-grid::-webkit-scrollbar {
    height: 6px;
}

.competitions-grid::-webkit-scrollbar-track {
    background: transparent;
}

.competitions-grid::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

.competitions-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.8);
}

/* 比賽卡片樣式 */
.competition-card {
    transition: all 0.3s ease;
    min-width: 0; /* 防止內容溢出 */
}

.competition-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* 手機版水平滾動 - 比賽項目 */
@media (max-width: 1024px) {
    .competitions-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 40px;
        scroll-snap-type: x mandatory;
    }
    
    .competition-card {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
}

/* 為比賽項目隱藏桌面版滾動提示 */
@media (min-width: 1025px) {
    .competitions-container .scroll-hint {
        display: none;
    }
}

/* 附加自選比賽項目響應式設計 */
/* 桌面版：顯示輪播，隱藏手機版格子和標題 */
@media (min-width: 1025px) {
    #additional-competitions .mobile-title {
        display: none;
    }
    
    #additional-competitions .desktop-layout {
        display: grid !important;
        grid-template-columns: 1fr 2fr;
        gap: 60px;
        align-items: center;
    }
    
    #additional-competitions .mobile-grid {
        display: none !important;
    }
    
    .competition-carousel {
        position: relative;
    }
    
    .carousel-container {
        overflow: hidden;
        border-radius: 20px;
    }
    
    .carousel-track {
        display: flex;
        transition: transform 0.5s ease;
        width: 200%; /* 4張卡片，每次顯示2張，總寬度為200% */
    }
    
    .carousel-slide {
        width: 50%; /* 每張卡片佔50%寬度，這樣一次顯示2張 */
        flex-shrink: 0;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        z-index: 2;
    }
    
    .carousel-btn:hover {
        background: #f9fafb;
        border-color: #9333ea;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .carousel-btn:hover span {
        color: #9333ea !important;
    }
    
    .carousel-prev {
        left: -25px;
    }
    
    .carousel-next {
        right: -25px;
    }
    
    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .indicator.active {
        background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #f97316 100%);
        transform: scale(1.2);
    }
    
    .indicator:hover {
        transform: scale(1.1);
    }
}

/* 手機版：隱藏輪播，顯示格子布局 */
@media (max-width: 1024px) {
    #additional-competitions .desktop-layout {
        display: none !important;
    }
    
    #additional-competitions .mobile-title {
        display: block;
    }
    
    #additional-competitions .mobile-grid {
        display: block !important;
    }
}

/* 主辦單位及支持機構響應式設計 */
@media (max-width: 768px) {
    /* 手機版調整間距和字型大小 */
    .sponsors-section {
        padding: 40px 0 !important;
    }
    
    .sponsors-category {
        margin-bottom: 30px !important;
    }
    
    /* 手機版三欄變為單欄 */
    .three-column-sponsors {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* 手機版合作單位改為垂直布局 */
    .sponsors-category div[style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .sponsors-category div[style*="flex-wrap: wrap"] a {
        margin: 5px !important;
    }
}

@media (max-width: 480px) {
    /* 小螢幕進一步調整 */
    .sponsors-section {
        padding: 30px 0 !important;
    }
    
    .sponsors-category {
        margin-bottom: 25px !important;
    }
    
    /* 小螢幕字體調整 */
    .sponsors-category p {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }
    
    /* 小螢幕圖片大小調整 */
    .sponsors-category img {
        height: 35px !important;
        max-width: 80px !important;
    }
    
    /* 小螢幕主辦單位圖片 */
    .sponsors-section img[alt="Now TV"] {
        height: 40px !important;
        max-width: 150px !important;
    }
}

/* 工作紙進度說明對話框樣式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.dialog-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 672px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dialog-header {
    flex-shrink: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.dialog-description {
    color: #6b7280;
    font-size: 0.9rem;
}

.dialog-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 0;
    color: #111827;
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.dialog-close:hover {
    background-color: #f3f4f6;
}

.dialog-tabs {
    flex-shrink: 0;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-navigation {
    display: flex;
    gap: 16px;
    margin-bottom: -1px;
}

.tab-button {
    background: none;
    border: none;
    padding: 8px 4px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-button.active {
    border-bottom-color: #9333ea;
    color: #9333ea;
    font-weight: bold;
}

.tab-button:hover:not(.active) {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    min-height: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-title {
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.content-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #374151;
}

.tip-box {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #f97316 100%);
    color: white;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    margin: 20px 0;
}

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

.requirement-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.requirement-list {
    font-size: 0.9rem;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.requirement-list li {
    margin-bottom: 4px;
}

.requirement-box {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tip-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tip-icon {
    padding: 8px;
    background: white;
    border-radius: 50%;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-text {
    flex: 1;
}

.tip-title {
    font-weight: bold;
    margin: 0 0 4px 0;
}

.tip-description {
    font-size: 0.9rem;
    margin: 0;
}

.status-card {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid;
}

.status-card.gray {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.status-card.yellow {
    background: #fffbeb;
    border-color: #fed7aa;
}

.status-card.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.status-card.red {
    background: #fef2f2;
    border-color: #fecaca;
}

.status-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.status-icon {
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.status-card.gray .status-icon {
    background: #f3f4f6;
}

.status-card.yellow .status-icon {
    background: #fef3c7;
}

.status-card.green .status-icon {
    background: #dcfce7;
}

.status-card.red .status-icon {
    background: #fee2e2;
}

.status-text {
    flex: 1;
}

.status-title {
    font-weight: bold;
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.status-card.gray .status-title {
    color: #4b5563;
}

.status-card.yellow .status-title {
    color: #d97706;
}

.status-card.green .status-title {
    color: #16a34a;
}

.status-card.red .status-title {
    color: #dc2626;
}

.status-description {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.status-card.gray .status-description {
    color: #4b5563;
}

.status-card.yellow .status-description {
    color: #d97706;
}

.status-card.green .status-description {
    color: #16a34a;
}

.status-card.red .status-description {
    color: #dc2626;
}

.medal-requirement {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid;
}

.medal-requirement.bronze {
    background: #fff7ed;
    border-color: #fed7aa;
}

.medal-requirement.silver {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.medal-requirement.gold {
    background: #fffbeb;
    border-color: #fed7aa;
}

.medal-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.medal-icon {
    height: 32px;
    width: 32px;
    margin-right: 8px;
}

.medal-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.medal-number {
    font-size: 1.875rem;
    font-weight: bold;
}

.bronze-color {
    color: #ea580c;
}

.silver-color {
    color: #4b5563;
}

.gold-color {
    color: #d97706;
}

.medal-note {
    font-size: 0.9rem;
    margin: 20px 0 0 0;
    color: #374151;
}

a {
    color: #9333ea;
    text-decoration: none;
}

a:hover {
    font-weight: bold;
}

.dialog-footer {
    flex-shrink: 0;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* 手機版對話框調整 */
@media (max-width: 768px) {
    .dialog-overlay {
        padding: 10px;
    }
    
    .dialog-header,
    .dialog-body,
    .dialog-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .dialog-title {
        font-size: 1.5rem;
    }
    
    .tab-navigation {
        gap: 8px;
    }
    
    .tab-button {
        font-size: 0.8rem;
        padding: 6px 2px;
    }
}

/* 觀看影片按鈕樣式 */
.watch-video-btn {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #f97316 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.watch-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.watch-video-btn:active {
    transform: translateY(0);
}

/* QR Code 對話框樣式 */
.qr-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.qr-dialog-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.qr-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.qr-dialog-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.qr-dialog h3 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.qr-dialog p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.qr-code-container {
    margin: 24px 0;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-dialog-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.qr-dialog-footer p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}

/* 響應式設計 */
@media (max-width: 480px) {
    .qr-dialog-content {
        padding: 24px;
        margin: 16px;
    }
    
    .qr-code-image {
        width: 160px;
        height: 160px;
    }
    
    .watch-video-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* App Loading Overlay 樣式 */
#app-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease-out;
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid;
    border-image: linear-gradient(135deg, #9333ea, #ec4899, #f97316) 1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #9333ea, #ec4899, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}
