@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap");
/*google font*/

/* ==================== 全局設定 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色 */
    --primary-color: #4F7EF2;
    --primary-gradient: linear-gradient(135deg, #4F7EF2 0%, #9C51DF 100%);
    
    /* 文字顏色 */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    
    /* 背景顏色 */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-section: #F5F7FA;
    
    /* 邊框 */
    --border-color: #E5E5E5;
    
    /* 間距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;
    
    /* 圓角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 陰影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 600;

    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


/* ==================== Hero 區塊 ==================== */
.hero {
    padding: 120px 0 var(--spacing-xxl);
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    margin-top: 54px;
    position: relative;
}

/* ==================== 語言切換按鈕 ==================== */
.lang-switcher-hero {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 10;
}

.lang-switcher-footer {
    position: relative;
    margin-top: var(--spacing-md);
    text-align: center;
    display: inline-block;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-switcher-footer .lang-switcher-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.lang-switcher-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-switcher-footer .lang-switcher-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.lang-current {
    font-size: 14px;
}

.lang-arrow {
    width: 12px;
    height: 8px;
    transition: transform 0.3s ease;
}

.lang-switcher-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.lang-switcher-footer .lang-dropdown {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(10px);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-switcher-footer .lang-dropdown.show {
    transform: translateX(-50%) translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.lang-option:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.lang-option:hover {
    background-color: var(--bg-light);
}

.lang-option.active {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-btn-wrapper {
    margin-top: var(--spacing-lg);
}

.app-store-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-store-img {
    height: 60px;
    width: auto;
    display: block;
}

.app-store-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.app-store-btn .btn-text {
    font-size: 18px;
}

.app-store-btn .badge {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== 區塊標題 ==================== */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* ==================== 核心功能區塊 ==================== */
.features-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-white);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.features-grid .feature-card {
    flex: 0 1 320px;
    max-width: 100%;
}

.feature-card {
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 專業特色區塊 ==================== */
.pro-features-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-section);
}

.pro-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.pro-features-grid .pro-feature-card {
    flex: 0 1 280px;
    max-width: 100%;
}

.pro-feature-card {
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.pro-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.pro-feature-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.pro-feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.pro-feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 特色亮點區塊 ==================== */
.highlights-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-white);
}

.highlight-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xxl);
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item.reverse {
    direction: rtl;
}

.highlight-item.reverse .highlight-content {
    direction: ltr;
}

.highlight-content {
    padding: var(--spacing-md);
}

.highlight-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.highlight-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.highlight-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.highlight-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.highlight-list li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
}

.highlight-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-note {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    font-style: italic;
}

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

.screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: none;
}

/* ==================== CTA 區塊 ==================== */
.cta-section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

/* ==================== 法律條款區塊 ==================== */
.legal-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.legal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    text-align: center;
    margin-top: 50px;
}

.legal-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-height: 600px;
    overflow-y: auto;
}

/* 獨立頁面：移除高度限制，完全展開 */
.legal-content-full {
    max-height: none;
    overflow-y: visible;
}

/* 自訂滾動條樣式 */
.legal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.5;
}

.legal-content::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}


.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content h4 {
    font-size: 17px;
    font-weight: 600;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.legal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

.legal-content ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.legal-content li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}


/* ==================== 響應式設計 (RWD) ==================== */

/* 平板 (768px 以下) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    
    /* Hero 區塊 */
    .hero {
        padding: var(--spacing-xxl) 0 var(--spacing-xl);
        margin-top: 56px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    /* 區塊標題 */
    .section-title {
        font-size: 28px;
    }
    
    /* 功能卡片 */
    .features-grid .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .pro-features-grid .pro-feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    /* 特色亮點 */
    .highlight-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }
    
    .highlight-item.reverse {
        direction: ltr;
    }
    
    .highlight-title {
        font-size: 24px;
    }
    
    .highlight-subtitle {
        font-size: 18px;
    }
    
    .highlight-desc {
        font-size: 15px;
    }
    
    .highlight-list li {
        font-size: 14px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 28px;
    }
    
    /* 法律條款 */
    .legal-section {
        padding: var(--spacing-md) 0;
    }
    
    .legal-title {
        font-size: 26px;
    }

    .legal-content {
        padding: var(--spacing-sm);
        max-height: 500px;
    }
    
    .legal-content-full {
        max-height: none;
    }
    
    .legal-content h3 {
        font-size: 19px;
    }
    
    .legal-content h4 {
        font-size: 16px;
    }
}

/* 手機 (480px 以下) */
@media (max-width: 480px) {
    /* 語言切換按鈕 */
    .lang-switcher-hero {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .lang-switcher-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .lang-dropdown {
        min-width: 100px;
    }
    
    /* Hero 區塊 */
    .app-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .app-store-img {
        height: 50px;
    }
    
    .app-store-btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .app-store-btn .btn-text {
        font-size: 16px;
    }
    
    /* 區塊標題 */
    .section-title {
        font-size: 24px;
    }
    
    /* 功能卡片 */
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-desc {
        font-size: 14px;
    }
    
    .pro-feature-card {
        padding: var(--spacing-md);
    }
    
    .pro-feature-title {
        font-size: 16px;
    }
    
    /* 特色亮點 */
    .highlight-title {
        font-size: 20px;
    }
    
    .highlight-subtitle {
        font-size: 16px;
    }
    
    .highlight-desc {
        font-size: 14px;
    }
    
    .highlight-list li {
        font-size: 13px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 24px;
    }
    
    /* 法律條款 */
    .legal-section {
        padding: var(--spacing-sm) 0;
    }
    
    .legal-title {
        font-size: 22px;
    }
    
    .legal-content {
        padding: var(--spacing-xs) var(--spacing-sm);
        max-height: 400px;
    }
    
    .legal-content-full {
        max-height: none;
    }
    
    .legal-content h3 {
        font-size: 17px;
    }
    
    .legal-content h4 {
        font-size: 15px;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 13px;
    }
}

/* 大螢幕 (1440px 以上) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 42px;
    }
}

