/**
 * 北斗數位科技 - 服務頁面專用樣式
 * Service Pages Unified Styles v2.0
 * 
 * 統一所有服務頁面的視覺風格
 */

/* ============================================
   服務頁面通用變數
   ============================================ */
:root {
    /* 服務類型配色 */
    --service-blue: #3b82f6;
    --service-blue-light: #60a5fa;
    --service-green: #10b981;
    --service-green-light: #34d399;
    --service-purple: #8b5cf6;
    --service-purple-light: #a78bfa;
    --service-orange: #f59e0b;
    --service-orange-light: #fbbf24;
    --service-red: #ef4444;
    --service-red-light: #f87171;
    --service-cyan: #06b6d4;
    --service-cyan-light: #22d3ee;
}

/* ============================================
   服務 Hero 區塊 - 統一標準
   ============================================ */
.service-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 5;
}

/* Hero 背景光效 */
.service-hero .hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Hero 網格背景 */
.service-hero .hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   服務徽章 - 統一樣式
   ============================================ */
.service-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-section-badge i {
    font-size: 0.8rem;
}

.service-section-badge:hover {
    transform: translateY(-2px);
}

/* 徽章配色變體 */
.service-section-badge.badge-blue {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.service-section-badge.badge-green {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.service-section-badge.badge-purple {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.service-section-badge.badge-orange {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.service-section-badge.badge-gold {
    background: rgba(212, 168, 83, 0.12);
    border: 1px solid rgba(212, 168, 83, 0.3);
    color: #d4a853;
}

.service-section-badge.badge-cyan {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.service-section-badge.badge-red {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ============================================
   服務區塊標題 - 統一樣式
   ============================================ */
.service-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-section-subtitle {
    color: #9ca3af;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   服務特色卡片 - 統一樣式
   ============================================ */
.service-feature-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-feature-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-feature-card .service-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-feature-card .service-feature-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.service-feature-card:hover .service-feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-feature-card h5 {
    color: #f9fafb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-feature-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   服務方案卡片 - 統一樣式
   ============================================ */
.service-plan-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.service-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--plan-color, linear-gradient(90deg, #ffc107, #ff9800));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-plan-card:hover::before {
    transform: scaleX(1);
}

/* 推薦方案 */
.service-plan-card.featured {
    border: 2px solid rgba(212, 168, 83, 0.4);
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.1);
}

.service-plan-card.featured::after {
    content: '推薦';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 2.5rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.service-plan-card .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 1.5rem !important;
    text-align: center;
}

.service-plan-card .card-body {
    padding: 1.5rem !important;
    background: transparent !important;
}

.service-plan-card .plan-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.5rem;
}

.service-plan-card .plan-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4a853, #f5d787);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.service-plan-card .plan-period {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 方案規格列表 */
.service-plan-card .spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-plan-card .spec-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 0.9rem;
}

.service-plan-card .spec-list li:last-child {
    border-bottom: none;
}

.service-plan-card .spec-list li i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.service-plan-card .spec-list li strong {
    color: #f9fafb;
}

/* ============================================
   規格徽章 - Hero 區塊使用
   ============================================ */
.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.spec-badge i {
    font-size: 0.8rem;
}

.spec-badge:hover {
    transform: translateY(-2px);
}

/* ============================================
   3D 視覺卡片 - Hero 區塊使用
   ============================================ */
.hero-visual-card {
    position: relative;
    perspective: 1000px;
}

.hero-visual-card .visual-inner {
    padding: 3rem;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.hero-visual-card:hover .visual-inner {
    transform: rotateY(-5deg) rotateX(5deg);
}

.hero-visual-card .visual-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-card .visual-icon i {
    font-size: 3.5rem;
}

.hero-visual-card .visual-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4a853;
    margin-top: 1.5rem;
    text-align: center;
}

.hero-visual-card .visual-price-suffix {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 400;
}

/* 浮動徽章 */
.hero-visual-card .floating-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    padding: 0.625rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* ============================================
   FAQ 區塊 - 統一樣式
   ============================================ */
.service-faq .accordion-item {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.service-faq .accordion-button {
    background: transparent !important;
    color: #f9fafb !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.service-faq .accordion-button:not(.collapsed) {
    background: rgba(212, 168, 83, 0.08) !important;
    color: #d4a853 !important;
}

.service-faq .accordion-button::after {
    filter: invert(0.6);
    transition: transform 0.3s ease;
}

.service-faq .accordion-button:not(.collapsed)::after {
    filter: invert(0.6) sepia(1) saturate(5) hue-rotate(10deg);
}

.service-faq .accordion-body {
    background: transparent !important;
    color: #9ca3af !important;
    padding: 1rem 1.5rem 1.5rem;
    line-height: 1.7;
}

/* ============================================
   CTA 區塊 - 統一樣式
   ============================================ */
.service-cta {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(212, 168, 83, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.service-cta .cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.service-cta .cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 1rem;
}

.service-cta .cta-subtitle {
    color: #9ca3af;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============================================
   服務比較表格 - 統一樣式
   ============================================ */
.service-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    overflow: hidden;
}

.service-comparison-table thead {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, rgba(212, 168, 83, 0.05) 100%);
}

.service-comparison-table thead th {
    padding: 1.25rem 1rem;
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border-bottom: 2px solid rgba(212, 168, 83, 0.2);
}

.service-comparison-table thead th:first-child {
    text-align: left;
    padding-left: 1.5rem;
}

.service-comparison-table tbody tr {
    transition: background 0.2s ease;
}

.service-comparison-table tbody tr:hover {
    background: rgba(212, 168, 83, 0.08);
}

.service-comparison-table tbody td {
    padding: 1rem;
    color: #9ca3af;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.service-comparison-table tbody td:first-child {
    text-align: left;
    padding-left: 1.5rem;
    font-weight: 500;
    color: #e5e7eb;
}

.service-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格中的勾選標記 */
.service-comparison-table .check-yes {
    color: #22c55e;
    font-size: 1.2rem;
}

.service-comparison-table .check-no {
    color: #6b7280;
    font-size: 1rem;
}

/* ============================================
   響應式優化
   ============================================ */
@media (max-width: 991.98px) {
    .service-hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-visual-card {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .service-hero {
        padding: 3rem 0 2rem;
    }
    
    .service-section-title {
        font-size: 1.75rem;
    }
    
    .service-feature-card {
        padding: 1.5rem;
    }
    
    .service-plan-card .card-header,
    .service-plan-card .card-body {
        padding: 1.25rem !important;
    }
    
    .service-plan-card .plan-price {
        font-size: 1.75rem;
    }
    
    .spec-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .service-comparison-table {
        font-size: 0.85rem;
    }
    
    .service-comparison-table thead th,
    .service-comparison-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .service-section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .service-feature-card .service-feature-icon {
        width: 52px;
        height: 52px;
    }
    
    .service-feature-card .service-feature-icon i {
        font-size: 1.25rem;
    }
    
    .hero-visual-card .visual-inner {
        padding: 2rem;
    }
    
    .hero-visual-card .visual-icon {
        width: 80px;
        height: 80px;
    }
    
    .hero-visual-card .visual-icon i {
        font-size: 2.5rem;
    }
    
    .hero-visual-card .visual-price {
        font-size: 2rem;
    }
}

/* ============================================
   減少動畫偏好
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .service-feature-card,
    .service-plan-card,
    .service-section-badge,
    .spec-badge,
    .hero-visual-card .visual-inner {
        transition: none;
    }
    
    .hero-visual-card:hover .visual-inner {
        transform: none;
    }
    
    .floating-badge {
        animation: none;
    }
}

/* ============================================
   企業級 Cloudflare/Vercel 風格覆蓋
   Version: 2.0 (2026)
   ============================================ */

/* 服務 Hero 區塊 - 企業級深色 */
.service-hero.ent-style {
    background: linear-gradient(180deg, #000814 0%, #001d3d 50%, #000814 100%) !important;
}

.service-hero.ent-style::before {
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 81, 255, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

/* 企業級服務卡片 */
.service-feature-card.ent-style {
    background: linear-gradient(135deg, rgba(0, 21, 61, 0.6) 0%, rgba(0, 8, 20, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.service-feature-card.ent-style:hover {
    border-color: rgba(0, 212, 255, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1) !important;
}

/* 企業級定價卡片 */
.service-plan-card.ent-style {
    background: linear-gradient(135deg, rgba(0, 21, 61, 0.5) 0%, rgba(0, 8, 20, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
}

.service-plan-card.ent-style:hover {
    border-color: rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.15) !important;
}

.service-plan-card.ent-style.recommended {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.2) !important;
}

.service-plan-card.ent-style .card-header {
    background: linear-gradient(135deg, rgba(0, 81, 255, 0.15) 0%, rgba(0, 8, 20, 0.5) 100%) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
}

.service-plan-card.ent-style .plan-price {
    color: #00d4ff !important;
}

/* 企業級按鈕 */
.btn-ent-primary {
    background: linear-gradient(135deg, #0051ff 0%, #00d4ff 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(0, 81, 255, 0.35);
    transition: all 0.3s ease;
}

.btn-ent-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 81, 255, 0.45);
    color: #fff !important;
}

.btn-ent-secondary {
    background: transparent !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    color: #00d4ff !important;
}

.btn-ent-secondary:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: rgba(0, 212, 255, 0.6) !important;
}

/* 企業級區塊標題 */
.ent-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ent-section-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 81, 255, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #67e8f9;
    margin-bottom: 1rem;
}

.ent-section-header .section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #f9fafb;
    margin-bottom: 1rem;
}

.ent-section-header .section-title .gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #0051ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ent-section-header .section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* 企業級特性圖標 */
.ent-feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.ent-feature-icon.blue {
    background: linear-gradient(135deg, rgba(0, 81, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.ent-feature-icon.blue i {
    color: #67e8f9;
}

.ent-feature-icon.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.ent-feature-icon.red i {
    color: #fca5a5;
}

.ent-feature-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.ent-feature-icon.purple i {
    color: #c4b5fd;
}

.ent-feature-icon.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.ent-feature-icon.green i {
    color: #86efac;
}

.ent-feature-icon.orange {
    background: linear-gradient(135deg, rgba(246, 130, 31, 0.2) 0%, rgba(251, 146, 60, 0.1) 100%);
    border: 1px solid rgba(246, 130, 31, 0.25);
}

.ent-feature-icon.orange i {
    color: #fed7aa;
}

/* 企業級區塊背景 */
.ent-bg-dark {
    background: linear-gradient(180deg, #000814 0%, #001d3d 100%) !important;
}

.ent-bg-navy {
    background: linear-gradient(180deg, #001d3d 0%, #000814 100%) !important;
}

.ent-bg-gradient {
    background: linear-gradient(135deg, #000814 0%, #001d3d 50%, #003566 100%) !important;
}