/* HKT 網上銷售團隊優惠網站 - 樣式文件 */
/* Author: Fishball R&D Officer */

/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WhatsApp 聯絡按鈕 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 導航欄 */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    overflow: hidden;
}

/* 動態浮動圖標效果 - 氣墊球彈跳 */
.header::before {
    content: "📱";
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 50px;
    opacity: 0.12;
    animation: floatIcon1 5.5s ease-in-out infinite;
}

.header::after {
    content: "📺";
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 55px;
    opacity: 0.12;
    animation: floatIcon2 5s ease-in-out infinite;
}

.header .nav::before {
    content: "💻";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    opacity: 0.09;
    animation: floatIcon3 6.5s ease-in-out infinite;
}

.header .logo::after {
    content: "🖥️";
    position: absolute;
    top: 30px;
    right: 120px;
    font-size: 45px;
    opacity: 0.12;
    animation: floatIcon4 6s ease-in-out infinite;
}

/* 氣墊球彈跳動畫 - 邊界反彈 */
@keyframes floatIcon1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(60px, -10px) rotate(10deg);
    }
    50% {
        transform: translate(40px, 40px) rotate(-5deg);
    }
    75% {
        transform: translate(10px, 20px) rotate(8deg);
    }
}

@keyframes floatIcon2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-50px, -15px) rotate(-8deg);
    }
    50% {
        transform: translate(-30px, 30px) rotate(12deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
}

@keyframes floatIcon3 {
    0%, 100% {
        transform: translate(-50%, -50%) translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) translate(30px, -20px) rotate(15deg);
    }
    50% {
        transform: translate(-50%, -50%) translate(-25px, 25px) rotate(-10deg);
    }
    75% {
        transform: translate(-50%, -50%) translate(15px, 10px) rotate(12deg);
    }
}

@keyframes floatIcon4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-40px, 15px) rotate(8deg);
    }
    50% {
        transform: translate(-20px, -25px) rotate(-12deg);
    }
    75% {
        transform: translate(25px, -10px) rotate(10deg);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
}

.logo-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    max-width: 100px;
    max-height: 100px;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 100;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* csl 按鈕專屬配色 - 黃色系 */
.nav-link[href="#csl"]:hover {
    background: rgba(243, 156, 18, 0.3);
    border-color: rgba(243, 156, 18, 0.6);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.nav-link[href="#csl"].active {
    background: rgba(243, 156, 18, 0.4);
    border-color: #f39c12;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* 主要內容 */
.main {
    padding: 2rem 0;
}

/* 分頁 */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

/* 分頁標題 */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-header h2 i {
    color: #667eea;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 優惠卡片網格 */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 優惠卡片 */
.offer-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* 優惠卡片圖標/圖片 */
.offer-icon {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 優惠卡片圖片樣式 */
.offer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.1);
}

/* 圖片尺寸標準規格 */
/* 建議尺寸：400x300像素 (1.33:1比例) */
/* 最小尺寸：300x225像素 */
/* 最大尺寸：600x450像素 */
/* 文件格式：JPEG/PNG/WebP */
/* 文件大小：<200KB */

.offer-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.features li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features i {
    color: #28a745;
    font-size: 0.9rem;
}

/* WhatsApp 按鈕 */
.whatsapp-btn {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* 頁尾 */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #ccc;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: #667eea;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444;
    color: #666;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .offer-info {
        padding: 1rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

/* 動畫效果 */
.offer-card {
    animation: slideUp 0.5s ease;
}

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

/* CSL 頁面專屬配色 - 黃色系 */
.csl-page {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.csl-page .page-header h2 {
    color: #f39c12;
}

.csl-page .page-header h2 i {
    color: #f39c12;
}

.csl-card {
    border-left: 5px solid #f39c12;
}

.csl-card .offer-icon {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.csl-card .price {
    color: #f39c12;
}

/* Now TV 頁面專屬配色 - 橙黃色系 */
.nowtv-page {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
}

.nowtv-page .page-header h2 {
    color: #ff8c00;
}

.nowtv-page .page-header h2 i {
    color: #ff8c00;
}

.nowtv-card {
    border-left: 5px solid #ff8c00;
}

.nowtv-card .offer-icon {
    background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
}

.nowtv-card .price {
    color: #ff8c00;
}

/* Now TV 按鈕專屬配色 - 橙黃色系 */
.nav-link[href="https://nowtv-digitalsales.com"]:hover {
    background: rgba(255, 140, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.nav-link[href="https://nowtv-digitalsales.com"].active {
    background: rgba(255, 140, 0, 0.4);
    border-color: #ff8c00;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

/* 分類按鈕樣式 */
.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-tab {
    padding: 0.75rem 2rem;
    background: rgba(243, 156, 18, 0.1);
    border: 2px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tab:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: rgba(243, 156, 18, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.category-tab.active {
    background: rgba(243, 156, 18, 0.3);
    border-color: #f39c12;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* 分類內容樣式 */
.category-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* 體育優惠 Banner 樣式 */
.sports-banner {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    border: 3px solid #fff;
    position: relative;
    overflow: hidden;
}

.sports-banner::before {
    content: "⚽️";
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 120px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.sports-banner::after {
    content: "🏆";
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.sports-banner h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.sports-banner p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sports-banner .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

.sports-banner .features-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.sports-banner .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.sports-banner .feature-item i {
    color: #fff;
    font-size: 1.2rem;
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 世界杯2026優惠置頂海報樣式 */
.worldcup-banner {
    margin-bottom: 2rem;
}

.worldcup-frame {
    position: relative;
    border: 4px solid #ffd700;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #ffed4e 75%, #ffd700 100%);
    background-size: 200% 200%;
    padding: 1.5rem;
    animation: worldcupShine 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    text-align: center;
    background-color: #fff;
}

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

.worldcup-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffd700;
    animation: worldcupPulse 2s ease-in-out infinite, worldcupShimmer 3s ease-in-out infinite;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9),
                 0 0 20px rgba(255,215,0,0.5),
                 0 0 40px rgba(255,215,0,0.3);
    position: relative;
}

@keyframes worldcupPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes worldcupShimmer {
    0%, 100% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.9),
                     0 0 20px rgba(255,215,0,0.5),
                     0 0 40px rgba(255,215,0,0.3);
        color: #ffd700;
    }
    50% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.9),
                     0 0 30px rgba(255,255,255,0.8),
                     0 0 60px rgba(255,215,0,0.6);
        color: #fff;
    }
}

.worldcup-desc {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #000;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8),
                 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
}

.worldcup-content {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.worldcup-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.worldcup-content:hover .worldcup-image {
    opacity: 1;
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.4));
}

.worldcup-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    color: #000;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
                0 3px 10px rgba(0,0,0,0.3),
                inset 0 1px 0 rgba(255,255,255,0.5);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

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

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

.worldcup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7),
                0 4px 15px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.7);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ffed4e 100%);
}

.worldcup-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
                0 2px 8px rgba(0,0,0,0.3),
                inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .worldcup-overlay h3 {
        font-size: 1.8rem;
    }
    
    .worldcup-desc {
        font-size: 1rem;
    }
    
    .worldcup-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}