* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}
.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}
.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}
.logo-text span {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu-btn:hover { opacity: 0.9; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu ul {
    list-style: none;
    text-align: center;
}
.mobile-menu li {
    margin: 1rem 0;
}
.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.2s;
    display: block;
    padding: 0.75rem 2rem;
    border-radius: 12px;
}
.mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
}
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.2); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px 0 60px;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0369a1 100%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.3) 0%, transparent 50%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}
.hero-text {
    max-width: 800px;
    width: 100%;
}
.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.hero-text h1 {
    font-size: clamp(2rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin: 2rem 0 1.5rem;
}
.hero-text h1 span {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p {
    font-size: clamp(1rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: clamp(1.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}
.section-header .line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto 1rem;
    border-radius: 2px;}
.section-header p {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Fraud Types Grid */
.fraud-types {
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}
.fraud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.fraud-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    text-align: center;
}
.fraud-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
    border-color: var(--primary-light);
}
.fraud-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}
.fraud-card:hover .fraud-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}
.fraud-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}
.fraud-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Regions Section */
.regions-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
}
.regions-section .section-header h2 { color: white; }
.regions-section .section-header p { color: rgba(255,255,255,0.7); }
.regions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.region-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.region-tag:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0369a1 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.12);
}
.stat-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: #fbbf24;
}
.stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.stat-card .label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* Explore Section */
.explore-section { background: white; }
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.explore-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.explore-card:hover {
    border-color: var(--primary-light);
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
}
.explore-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.explore-card:hover .explore-icon { transform: scale(1.1); }
.explore-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.explore-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}
.explore-arrow {
    color: var(--primary);
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto;
}
.explore-card:hover .explore-arrow { transform: translateX(5px); }

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 4px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.footer-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
}
.footer-logo-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.footer-logo-text span {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.footer-about p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 350px;
}
.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a:hover { color: white; }
.footer-contact h4 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.contact-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.contact-text p, .contact-text a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-text a:hover { color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 600;
}
.footer-bottom-links {
    display: flex;
    gap: 2rem;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.footer-bottom-links a:hover { color: white; }

/* 諮詢彈窗 */
.consult-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.consult-modal.active { display: flex; }
.consult-modal-content {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.consult-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.2s;
}
.consult-modal-close:hover { background: #e2e8f0; }
.consult-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}
.consult-modal p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}
.consult-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.consult-btn-whatsapp, .consult-btn-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.consult-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.consult-btn-line {
    background: linear-gradient(135deg, #06C755 0%, #059644 100%);
}
.consult-btn-whatsapp:hover, .consult-btn-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 編輯模式樣式 */
.section-wrapper {
    position: relative;
    transition: all 0.3s ease;
}
.section-wrapper:hover {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}
.edit-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}
.edit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    transition: all 0.2s;
}
.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* ============ 手機端響應式 ============ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    
    /* 隱藏桌面端菜單，顯示手機端按鈕 */
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    
    /* Hero 區域 */
    .hero { padding: 120px 0 50px; min-height: auto; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
    
    /* Section 內邊距 */
    .section { padding: 3.5rem 0; }
    .section-header h2 { font-size: 1.75rem; }
    
    /* Stats 卡片 */
    .stat-card { padding: 1.5rem 1rem; }
    .stat-card .number { font-size: 2rem; }
    
    /* 團隊頭像 */
    .fraud-grid, .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    /* 聯繫按鈕 */
    .consult-modal-content { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .logo-icon { width: 44px; height: 44px; font-size: 1.25rem; }
    .logo-text h1 { font-size: 1rem; }
    .logo-text span { font-size: 0.65rem; }
    
    .hero-text h1 { font-size: 1.75rem; }
    .hero-text .badge { font-size: 0.75rem; padding: 0.5rem 1rem; }
    
    .fraud-grid, .explore-grid { grid-template-columns: 1fr; }
    
    .stat-card .number { font-size: 1.75rem; }
    
    .regions-grid { gap: 0.5rem; }
    .region-tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }
}
