:root {
    /* 專業 POS 系統配色 - 藍綠科技感 */
    --primary: #0066FF;
    --primary-bright: #3D8BFF;
    --primary-dark: #0052CC;
    --secondary: #00C9A7;
    --secondary-bright: #00E5B8;
    --accent: #FF6B6B;
    --accent-orange: #FF9F43;
    --dark: #0A0E27;
    --dark-surface: #141B3D;
    --dark-card: #1A2347;
    --dark-glass: rgba(20, 27, 61, 0.85);
    --light: #F8FAFC;
    --gray: #8B95B0;
    --gray-light: #B4BDCF;
    --text-main: #E8EDF5;
    --text-bright: #FFFFFF;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);

    /* 漸層效果 */
    --gradient-hero: linear-gradient(135deg, #0066FF 0%, #00C9A7 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 35, 71, 0.9) 0%, rgba(20, 27, 61, 0.95) 100%);
    --gradient-surface: linear-gradient(180deg, rgba(26, 35, 71, 0.6) 0%, rgba(20, 27, 61, 0.9) 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B6B 0%, #FF9F43 100%);

    /* 動畫 */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* 陰影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--dark);
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 6px;
    border: 2px solid var(--dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-bright) 0%, var(--secondary-bright) 100%);
}

/* 選取文字顏色 */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

body {
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    /* 精緻的背景漸層 */
    background-image:
        radial-gradient(circle at 15% 25%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(0, 201, 167, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.03) 0%, transparent 60%);
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

body.loaded {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 動態背景光暈 */
.blob {
    position: fixed;
    width: 900px;
    height: 900px;
    filter: blur(180px);
    border-radius: 50%;
    z-index: -2;
    opacity: 0.18;
    pointer-events: none;
    animation: blobMorph 35s infinite alternate ease-in-out;
}

.blob-1 {
    top: -350px;
    left: -250px;
    background: radial-gradient(circle, #0066FF 0%, #00C9A7 100%);
}

.blob-2 {
    bottom: -250px;
    right: -250px;
    background: radial-gradient(circle, #00C9A7 0%, #0066FF 100%);
    animation-delay: -10s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #FF6B6B 0%, #FF9F43 100%);
    opacity: 0.08;
    animation-delay: -20s;
}

@keyframes blobMorph {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    33% {
        transform: scale(1.15) translate(80px, 120px) rotate(120deg);
    }

    66% {
        transform: scale(0.95) translate(-60px, 80px) rotate(240deg);
    }

    100% {
        transform: scale(1.05) translate(40px, -100px) rotate(360deg);
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 按鈕設計 - 現代專業風格 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-hero);
    color: var(--text-bright);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 102, 255, 0.5);
}

.btn-primary.white-bg {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-primary.white-bg:hover {
    background: var(--light);
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-bright);
    border: 2px solid var(--border-bright);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.2);
}

/* 導航欄 - 玻璃擬態設計 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 28px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: var(--transition-slow);
}

nav.scrolled {
    padding: 18px 8%;
    background: var(--dark-glass);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    width: 55px;
    height: 55px;
    object-fit: contain;
    flex-shrink: 0;
    /* 去除假透明背景：將暗色 logo 轉白，亮色背景轉黑，再透過 screen 模式過濾 */
    filter: invert(1) grayscale(1) contrast(15) brightness(1.2);
    mix-blend-mode: screen;
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.1);
    filter: invert(1) grayscale(1) contrast(15) brightness(1.5);
    opacity: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-bright);
    letter-spacing: -1.5px;
    line-height: 1;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-light);
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 45px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-bright);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu UI - Re-imagined */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 35px;
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(2) {
    width: 0;
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--primary-bright);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--primary-bright);
}

/* Hero 主視覺區 */
.hero {
    min-height: 100vh;
    padding: 180px 8% 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 680px;
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 35px;
    letter-spacing: -3px;
    font-weight: 900;
    color: var(--text-bright);
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 span {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-hero);
    opacity: 0.3;
    border-radius: 3px;
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--gray-light);
    margin-bottom: 50px;
    max-width: 620px;
    line-height: 1.75;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 700px;
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: 30px;
    bottom: 30px;
    background: var(--gradient-hero);
    opacity: 0.15;
    border-radius: 50px;
    filter: blur(60px);
    z-index: -1;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-slow);
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 區塊設計 */
.section {
    padding: 140px 8%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 28px;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
}

.section-title p {
    color: var(--gray-light);
    font-size: 1.35rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 功能卡片 - 精緻設計 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.feature-card {
    padding: 55px 45px;
    border-radius: 24px;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-bright);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 102, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 201, 167, 0.15) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 2.4rem;
    color: var(--secondary-bright);
    box-shadow: inset 0 0 20px rgba(0, 201, 167, 0.2);
    transition: var(--transition);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-hero);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-bright);
    line-height: 1.3;
}

.feature-card>p {
    color: var(--gray-light);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-top: 14px;
    color: var(--gray-light);
    font-size: 1.05rem;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-bright);
    font-weight: 900;
    font-size: 1.2rem;
}

/* 展示區塊 - 左右排版 */
.showcase {
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 120px 8%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 201, 167, 0.02) 100%);
    margin: 120px 0;
    border-radius: 40px;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.showcase.reverse {
    flex-direction: row-reverse;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.03) 0%, rgba(0, 102, 255, 0.02) 100%);
}

.showcase.reverse::before {
    background: radial-gradient(circle at 70% 50%, rgba(0, 201, 167, 0.08) 0%, transparent 60%);
}

.showcase-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.showcase-content h2 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 28px;
    font-weight: 900;
    color: var(--text-bright);
    letter-spacing: -1.5px;
}

.showcase-content h2 span {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 8px;
}

.showcase-content>p {
    font-size: 1.2rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 35px;
}

.showcase-list {
    margin-top: 35px;
}

.showcase-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-bright);
    transform: translateX(8px);
}

.showcase-item i {
    font-size: 1.8rem;
    color: var(--secondary-bright);
    min-width: 40px;
    margin-top: 4px;
}

.showcase-item strong {
    color: var(--text-bright);
    font-size: 1.1rem;
}

.showcase-item div {
    color: var(--gray-light);
    line-height: 1.7;
}

.showcase-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.showcase-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-slow);
}

.showcase-image img:hover {
    transform: scale(1.02);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 20px;
    border: 1px solid var(--border-subtle);
}

.glass-card img {
    border-radius: 20px;
}

.rounded-lg {
    border-radius: 20px;
}

/* 圖庫展示區 */
.gallery-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 255, 0.02) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

/* 使用手冊區 */
.manual-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.manual-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.manual-item {
    text-align: center;
}

.manual-item img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 15px;
}

.manual-item img:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.manual-item p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

.manual-cta {
    display: flex;
    justify-content: center;
}

.download-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 50px 60px;
    text-align: center;
    max-width: 500px;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.download-card i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.8rem;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.download-card p {
    color: var(--gray-light);
    margin-bottom: 30px;
}

/* 價格方案 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--gradient-card);
    padding: 60px 45px;
    border-radius: 28px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-slow);
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    background: linear-gradient(145deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 201, 167, 0.1) 100%);
    border: 2px solid var(--primary-bright);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-12px);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-hero);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.pricing-card h3 {
    font-size: 2rem;
    color: var(--text-bright);
    margin-bottom: 20px;
    font-weight: 800;
}

.price {
    font-size: 4.5rem;
    color: var(--text-bright);
    display: block;
    font-weight: 900;
    margin-bottom: 35px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price span {
    font-size: 1.4rem;
    color: var(--gray-light);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
    text-align: left;
}

.pricing-card ul li {
    padding: 14px 0;
    color: var(--gray-light);
    border-bottom: 1px solid var(--border-subtle);
    padding-left: 30px;
    position: relative;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-bright);
    font-weight: 900;
}

/* CTA 行動呼籲區 */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 201, 167, 0.08) 100%);
    border-radius: 40px;
    border: 1px solid var(--border-subtle);
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
}

.cta-card h2 {
    font-size: 3.5rem;
    color: var(--text-bright);
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.cta-card p {
    font-size: 1.3rem;
    color: var(--gray-light);
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer 頁尾 */
footer {
    background: linear-gradient(180deg, var(--dark) 0%, #050814 100%);
    padding-top: 120px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding: 0 8%;
    margin-bottom: 60px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--text-bright);
    font-weight: 800;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-col p,
.footer-col li {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-bright);
    padding-left: 5px;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--secondary-bright);
    font-size: 1.1rem;
}

.address-list {
    list-style: none;
    padding: 0;
}

.address-list li {
    margin-bottom: 18px;
    padding-left: 20px;
    position: relative;
}

.address-list li::before {
    content: '📍';
    position: absolute;
    left: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-bright);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-hero);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding: 35px 8%;
    border-top: 1px solid var(--border-subtle);
    color: var(--gray);
    font-size: 0.95rem;
}

/* 回到頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* 載入動畫 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--dark-card);
    color: white;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

/* 脈衝動畫 */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 閃爍效果 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

    .showcase {
        gap: 60px;
        padding: 100px 6%;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 200px;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

    .showcase {
        flex-direction: column !important;
        gap: 50px;
    }

    .section-title h2 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        padding: 20px 6%;
    }

    nav.scrolled {
        padding: 15px 6%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        gap: 30px;
        transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 2000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        transform: translateX(50px);
        opacity: 0;
        transition: 0.4s ease;
    }

    .nav-links.active li {
        transform: translateX(0);
        opacity: 1;
    }

    /* 階梯式動畫 */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links a {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -1px;
        color: var(--text-bright);
    }

    .nav-links a::after {
        bottom: -5px;
        height: 3px;
    }

    .nav-actions {
        display: none;
    }

    .section {
        padding: 100px 6%;
    }

    .section-title {
        margin-bottom: 60px;
    }

    .section-title h2 {
        font-size: 2.8rem;
    }

    .section-title p {
        font-size: 1.15rem;
    }

    .hero {
        padding: 160px 6% 80px;
    }

    .hero-content h1 {
        font-size: 3.2rem;
        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card {
        padding: 40px 30px;
    }

    .showcase {
        padding: 80px 6%;
        margin: 80px 0;
        gap: 40px;
    }

    .showcase-content h2 {
        font-size: 2.5rem;
    }

    .showcase-item {
        flex-direction: column;
        text-align: center;
    }

    .showcase-item i {
        margin-top: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .manual-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-12px);
    }

    .cta-card h2 {
        font-size: 2.5rem;
    }

    .cta-card p {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 6%;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    .logo-main {
        font-size: 1.6rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .showcase-content h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .manual-gallery {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 40px 30px;
    }

    .price {
        font-size: 3.5rem;
    }

    .cta-card {
        padding: 60px 30px;
    }

    .cta-card h2 {
        font-size: 2rem;
    }
}