:root {
    --primary: #0078e1;
    --primary-light: #52a8ff;
    --cta: #10B981;
    --cta-hover: #059669;
    --bg-base: #F8FAFC; /* 改為極淺灰紫底，更能凸顯玻璃質感 */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* 確保響應式體驗良好 */
html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    color: var(--text-main);
}

/* ==================
   Animated Blobs 背景特效
   ================== */
.blobs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #F1F5F9;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #E6F3FF; /* 淺藍 */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #D1FAE5; /* 淺綠 */
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: #E6F3FF; /* 淺藍 */
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==================
   科幻粒子特效 (Particles)
   ================== */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 置於 blobs 之後，玻璃板之前 */
    pointer-events: none;
}

/* ==================
   Layout & Sections
   ================== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
    z-index: 10;
}

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

/* ==================
   Hero Section
   ================== */
.hero {
    margin-top: 5vh;
    margin-bottom: 80px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05) translateY(-5px);
}

.main-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
}

.primary-text {
    color: var(--primary);
}

.dark-text {
    color: #111827; /* 接近純黑的深色 */
}

.sub-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.description {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 48px auto;
}

/* Download CTA */
.download-btn {
    display: inline-flex;
    align-items: center;
    background: var(--text-main);
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(30, 41, 75, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(16, 185, 129, 0.4);
    background: var(--cta);
}

.download-btn:hover::before {
    left: 150%;
}

.download-btn .icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-btn .small-text {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 2px;
}

.download-btn .large-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

/* ==================
   Features Grid (Glass Cards)
   ================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 40px 30px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E6F3FF, #CCE6FF); /* 改為對應主色的漸層藍 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.icon-circle svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-size: 22px;
    margin: 0 0 12px 0;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 15px;
}

/* ==================
   Footer
   ================== */
.home-footer {
    padding: 40px 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.home-footer .links {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.home-footer .links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.home-footer .links a:hover {
    color: var(--primary);
}

.home-footer .divider {
    color: #CBD5E1;
}

.home-footer .copyright {
    color: #94A3B8;
    font-size: 14px;
    margin: 0;
}

/* ==================
   Policy Pages (Glass Panel)
   ================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255, 0.5);
    box-shadow: 0 20px 50px -10px rgba(30, 41, 75, 0.05);
    border-radius: 32px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* 玻璃面板內的微光反射 */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
    opacity: 0.5;
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.policy-header h1 {
    margin: 0;
    font-size: 36px;
    color: var(--text-main);
}

.back-pill {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid #E2E8F0;
}

.back-pill svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.back-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    color: var(--primary);
    border-color: #E0E7FF;
}

.policy-content {
    font-size: 16px;
    color: #334155;
}

.policy-content .lead {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 40px;
}

.policy-content h2 {
    font-size: 22px;
    color: var(--primary);
    margin: 40px 0 16px 0;
    padding-left: 16px;
    border-left: 4px solid var(--primary-light);
}

.policy-content p, .policy-content li {
    margin-bottom: 12px;
}

.policy-content ul, .policy-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.policy-content li {
    padding-left: 8px;
}

.policy-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.policy-content a:hover {
    border-color: var(--primary);
}

.policy-alert {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 16px 20px;
    color: #166534;
    margin: 30px 0 20px 0;
}

/* ==================
   Animations (Fade in up)
   ================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 40px; }
    .sub-title { font-size: 22px; }
    .description { font-size: 16px; }
    .glass-panel { padding: 30px 20px; }
    .policy-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
}
