/* Hero Banner - Beacon 風格 */
.hero-banner {
    padding: 120px 0 80px;
    background: var(--gradient-beacon);
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 80px; /* 為固定導覽列留出空間 */
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 245, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-banner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%);
    background-size: 60px 60px;
    animation: backgroundMove 20s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes beaconScan {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-main {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 245, 212, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 245, 212, 0.6);
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-services {
    margin-bottom: 4rem;
}

.services-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.services-row:last-child {
    margin-bottom: 0;
}

.service-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-btn:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.service-btn:hover::before {
    opacity: 0.1;
}

.service-btn .service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-btn:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-btn .service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
    color: white;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* 放大版主要按鈕 */
.btn-primary-large {
    padding: 1.5rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.4);
}

.btn-primary-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 245, 212, 0.5);
}

.btn-primary-large i {
    font-size: 1.1rem;
}

/* 統計數據與專業認證區塊 */
.stats-credentials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 50%, #f0fdfa 100%);
    position: relative;
}

.stats-credentials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, rgba(0, 245, 212, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 245, 212, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.credentials-section {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.credential-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 245, 212, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.credential-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.credential-card:hover::before {
    opacity: 0.05;
}

.credential-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 245, 212, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.credential-card:hover .credential-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.credential-content {
    text-align: center;
}

.credential-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.credential-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credential-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 服務內容區塊 */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, rgba(0, 245, 212, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 245, 212, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.service-category {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 245, 212, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-category:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.service-category:hover::before {
    opacity: 0.05;
}

.service-category .service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.service-category:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--neon-glow);
}

.service-category h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-category p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0;
}

.service-list li i {
    color: var(--primary);
    font-size: 1rem;
    min-width: 20px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

.service-category:hover .service-list li::before {
    height: 20px;
}

/* CTA 區塊樣式已移至共用 cta.css */

/* 滾動提示動畫 */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    animation: bounceDown 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-hint:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 動畫效果 */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 特殊動畫 */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.service-preview:hover .service-icon,
.credential-item:hover .credential-icon {
    animation: iconPulse 1s ease infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

.stat-item:hover .stat-number {
    animation: numberGlow 1s ease infinite alternate;
}

@keyframes numberGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 245, 212, 0.8);
    }
}

/* 背景動畫優化 */
.hero-banner::after {
    opacity: 0.6;
    animation: beaconScan 8s linear infinite;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .services-row {
        gap: 1.5rem;
    }
    
    .service-btn {
        min-width: 160px;
        padding: 1.25rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 100px 0 60px;
        min-height: auto;
        margin-top: 70px; /* 調整小螢幕的導覽列高度 */
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-main {
        margin-bottom: 3rem;
    }
    
    .services-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .services-row:first-child {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .service-btn {
        min-width: 140px;
        padding: 1rem 1.25rem;
    }
    
    .service-btn .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .service-btn .service-title {
        font-size: 1rem;
    }
    
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-credentials-section {
        padding: 3rem 0;
    }

    .services-section {
        padding: 3rem 0;
    }

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

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .service-category {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .service-category .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-category p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .service-list li {
        padding: 0.6rem 0;
        font-size: 0.95rem;
    }

    .service-list li i {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 80px 0 40px;
        margin-top: 60px; /* 調整超小螢幕的導覽列高度 */
    }
    
    .hero-container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-main {
        margin-bottom: 2rem;
    }
    
    .services-row {
        gap: 0.75rem;
    }
    
    .service-btn {
        min-width: 120px;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .service-btn .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-btn .service-title {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-credentials-section {
        padding: 2rem 0;
    }

    .services-section {
        padding: 2rem 0;
    }

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

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .service-category {
        padding: 1.5rem 1rem;
    }

    .service-category .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .service-category h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .service-category p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .service-list li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .service-list li i {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}

/* 服務卡片高亮效果 */
.service-category.highlight {
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
    transform: translateY(-15px);
}

.service-category.highlight::before {
    opacity: 0.1;
}

/* 認證項目浮動動畫 */
.credential-icon.floating {
    animation: credentialFloat 2s ease-in-out infinite;
}

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

/* 服務按鈕特殊效果 */
.service-btn {
    cursor: pointer;
}

.service-btn:active {
    transform: translateY(-5px) scale(0.98);
}

/* 按鈕光流效果 */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

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

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

/* 服務圖標特殊動畫 */
.service-btn:hover .service-icon,
.service-category:hover .service-icon {
    animation: iconPulse 1s ease infinite;
}

/* 統計數據與專業認證區塊特殊效果 */
.stats-credentials-section .section-title {
    animation: titleGlow 4s ease-in-out infinite alternate;
}

.credential-card:hover .credential-badge {
    animation: badgePulse 1s ease infinite alternate;
}

@keyframes badgePulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 245, 212, 0.6);
    }
}

/* 詳細服務內容區塊特殊效果 */
.services-section .section-title {
    animation: titleGlow 4s ease-in-out infinite alternate;
}

.service-category {
    animation: cardFloat 6s ease-in-out infinite;
}

.service-category:nth-child(2) {
    animation-delay: 1s;
}

.service-category:nth-child(3) {
    animation-delay: 2s;
}

.service-category:nth-child(4) {
    animation-delay: 3s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.service-category:hover {
    animation: none;
    transform: translateY(-15px);
}

.service-list li {
    transition: all 0.3s ease;
}

.service-category:hover .service-list li {
    transform: translateX(5px);
}

.service-list li:nth-child(1) { transition-delay: 0.1s; }
.service-list li:nth-child(2) { transition-delay: 0.2s; }
.service-list li:nth-child(3) { transition-delay: 0.3s; }
.service-list li:nth-child(4) { transition-delay: 0.4s; }
.service-list li:nth-child(5) { transition-delay: 0.5s; }
.service-list li:nth-child(6) { transition-delay: 0.6s; }

.service-category .service-icon {
    animation: iconFloat 4s ease-in-out infinite;
}

.service-category:hover .service-icon {
    animation: iconPulse 1s ease infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}
