:root {
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #000000;
    --accent-hover: #333333;
    --border-color: #e5e5e5;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    --nav-blur: rgba(255, 255, 255, 0.85);
    --star-color: #FFD700;
    --font-main: 'Inter', 'Noto Sans TC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.floating-nav-container { position: fixed; top: 20px; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: center; padding: 0 20px; }
.pill-nav { background: var(--nav-blur); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 10px 24px; border-radius: 50px; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 900px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid rgba(255,255,255,0.5); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-logo { display: flex; align-items: center; text-decoration: none; color: var(--text-primary); font-weight: 700; gap: 10px; }
.nav-logo img { width: 32px; height: 32px; border-radius: 50%; }
.nav-logo span { font-size: 1.1rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.btn-login { background: var(--accent-color); color: white; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.3s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.zk-auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    max-width: 210px;
    padding: 6px 14px 6px 7px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.zk-auth-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,0.16);
    background: #fff;
}
.zk-auth-chip img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}
.zk-auth-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; cursor: pointer;}
.menu-toggle { display: none; cursor: pointer; color: var(--text-primary); font-size: 1.2rem; }
.mobile-menu { position: absolute; top: 70px; background: white; width: 90%; max-width: 300px; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); display: none; flex-direction: column; gap: 15px; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; }
.mobile-menu.active { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a { text-decoration: none; color: var(--text-primary); font-weight: 500; padding: 10px; border-bottom: 1px solid #f0f0f0; }

.hero-section { padding: 160px 0 100px; min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge-pill { background: var(--bg-secondary); color: var(--text-secondary); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-block; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.hero-text h1 { font-size: 3.35rem; line-height: 1.12; font-weight: 800; margin-bottom: 20px; letter-spacing: 0; background: linear-gradient(135deg, #000 0%, #444 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--text-secondary); font-size: 1.25rem; margin-bottom: 40px; max-width: 500px; }
.hero-btns { display: flex; gap: 15px; }
.btn { padding: 12px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem; }
.btn-black { background: var(--accent-color); color: white; }
.btn-black:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border: 1px solid #e0e0e0; color: var(--text-primary); background: transparent; }
.btn-outline:hover { border-color: var(--text-primary); }
.btn-outline-black { border: 1px solid var(--text-primary); color: var(--text-primary); background: transparent; padding: 12px 40px; border-radius: 30px;}
.btn-outline-black:hover { background: var(--text-primary); color: white; }

.hero-visual { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.ecosystem-container { position: relative; width: 400px; height: 400px; }
.connection-line { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; transform: scale(1.2); }
.icon-node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; transition: transform 0.3s ease; }
.icon-box { width: 60px; height: 60px; background: white; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--text-primary); }
.icon-node span { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); opacity: 0; transform: translateY(10px); transition: all 0.5s ease; }
.hero-visual:hover .icon-node span { opacity: 1; transform: translateY(0); }
.node-1 { top: 50%; left: 0; transform: translate(-50%, -50%); }
.node-2 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.node-3 { top: 50%; right: 0; transform: translate(50%, -50%); }
.node-4 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.center-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; background: white; border-radius: 50%; box-shadow: 0 0 40px rgba(0,0,0,0.1); z-index: 3; display: flex; justify-content: center; align-items: center; animation: pulse-core 3s infinite; }
.center-core img { width: 60px; }
@keyframes pulse-core { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.05); } 70% { box-shadow: 0 0 0 20px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

.stats-section { padding: 40px 0; border-bottom: 1px solid var(--border-color); }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); }
.stat-item p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 5px; }
.section { padding: 100px 0; }
.bg-grey { background-color: var(--bg-secondary); }
.section-header { text-align: left; margin-bottom: 60px; }
.section-header.text-center { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; letter-spacing: -1px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.product-card { background: white; border-radius: 24px; padding: 30px; border: 1px solid #f0f0f0; transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--hover-shadow); transform: translateY(-5px); border-color: #e0e0e0; }
.product-badge { position: absolute; top: 20px; right: 20px; background: black; color: white; padding: 4px 12px; font-size: 0.75rem; border-radius: 12px; font-weight: 600; }
.product-info h3 { font-size: 1.5rem; margin-bottom: 20px; }
.product-specs { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.product-specs li { margin-bottom: 10px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.product-specs li i { color: var(--text-primary); font-size: 0.8rem; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #f5f5f5; }
.price { font-weight: 700; font-size: 1.1rem; }
.btn-icon { width: 40px; height: 40px; border-radius: 50%; border: none; background: #f5f5f7; color: black; cursor: pointer; transition: 0.2s; }
.btn-icon:hover { background: black; color: white; }
.btn-link { color: black; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.view-all-container { text-align: center; }

.reviews-container-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.review-summary { background: white; padding: 40px; border-radius: 24px; box-shadow: var(--card-shadow); text-align: center; border: 1px solid var(--border-color); }
.rating-overview { margin-bottom: 30px; }
.average-rating { font-size: 4.5rem; font-weight: 800; line-height: 1; display: block; color: var(--text-primary); }
.rating-stars-static { color: var(--star-color); font-size: 1.5rem; margin: 10px 0; letter-spacing: 2px; }
.total-reviews-count { color: var(--text-secondary); font-size: 0.9rem; }

.rating-bars { text-align: left; }
.rating-bar-row { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.bar-container { flex-grow: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--star-color); border-radius: 4px; transition: width 1s ease-in-out; }

.review-list-featured { display: flex; flex-direction: column; gap: 20px; }
.review-card-vertical { background: white; padding: 25px; border-radius: 16px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.review-card-vertical:hover { transform: translateY(-3px); box-shadow: var(--hover-shadow); }
.review-card-header { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; }
.review-product-tag { background: var(--bg-secondary); padding: 4px 10px; border-radius: 10px; font-weight: 600; font-size: 0.8rem; }
.review-stars { color: var(--star-color); letter-spacing: 1px; }
.review-quote { font-size: 1rem; color: var(--text-primary); line-height: 1.5; font-style: italic; }
.review-date { display: block; margin-top: 15px; font-size: 0.8rem; color: var(--text-secondary); text-align: right; }
.action-center.mt-40 { margin-top: 40px; }
.review-loading-placeholder { text-align: center; color: var(--text-secondary); padding: 20px; }


.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.payment-card { background: white; padding: 30px; border-radius: 20px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.payment-card:hover { transform: translateY(-5px); box-shadow: var(--hover-shadow); border-color: var(--text-primary); }
.animation-container { height: 120px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.payment-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.payment-card p { font-size: 0.9rem; color: var(--text-secondary); }


.modern-footer { background: #f9f9f9; padding: 80px 0 30px; border-top: 1px solid var(--border-color); }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 60px; }
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 15px; }
.footer-brand p { color: var(--text-secondary); max-width: 300px; margin-bottom: 20px; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--text-primary); font-size: 1.5rem; transition: 0.2s; }
.social-links a:hover { color: #666; }
.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.link-col h4 { font-size: 0.9rem; text-transform: uppercase; margin-bottom: 20px; color: var(--text-primary); letter-spacing: 1px; }
.link-col a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 12px; font-size: 0.95rem; transition: 0.2s; }
.link-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px; border-top: 1px solid #e5e5e5; font-size: 0.9rem; color: var(--text-secondary); }
#back-to-top { color: var(--text-primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); z-index: 2000; opacity: 0; visibility: hidden; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-card { background: white; width: 90%; max-width: 500px; padding: 40px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform: scale(0.9); transition: 0.3s; }
.modal-overlay.visible .modal-card { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.close-modal { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-primary); transition: 0.2s;}
.close-modal:hover { color: var(--accent-color); transform: rotate(90deg); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; }
.input-group input, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-main); font-size: 1rem; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: black; }
.modal-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; }
.star-rating-input span { font-size: 1.5rem; color: #ddd; cursor: pointer; margin-right: 5px; transition: color 0.2s; }
.star-rating-input span.selected, .star-rating-input span:hover { color: var(--star-color); }

.full-screen-modal .modal-card { max-width: 800px; height: 80vh; display: flex; flex-direction: column; padding: 0; overflow: hidden;}
.full-screen-card .modal-header.sticky-header { padding: 25px 30px; margin-bottom: 0; border-bottom: 1px solid var(--border-color); background: white; position: sticky; top: 0; z-index: 10; }
.scrollable-body { padding: 30px; overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }
.filter-controls select { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-color); font-family: var(--font-main); cursor: pointer; }

.view-more-container {
    margin-top: 50px;
    text-align: center;
}
.btn-wide {
    padding: 15px 50px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 75px; 
    left: 15%;
    right: 15%;
    height: 2px;
    background: repeating-linear-gradient(to right, #e0e0e0 0, #e0e0e0 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

.process-step {
    text-align: center;
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 1; 
}

.step-animation {
    background: white; 
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #e0e0e0;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.cta-section {
    padding: 60px 0 100px;
}
.cta-box {
    background: black;
    color: white;
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.cta-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}
.btn-white {
    background: white;
    color: black;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-white:hover {
    background: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.cta-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.reveal-on-scroll { opacity: 1; transform: none; transition: all 0.8s ease; }
.reveal-enabled .reveal-on-scroll { opacity: 0; transform: translateY(30px); }
.reveal-enabled .reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; }
.fade-in-delay { animation: fadeInUp 1s ease 0.3s forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) {
    .hero-section {
        padding: 110px 0 60px; 
        min-height: auto;      
        height: auto;
        display: block;      
    }
    .hero-grid {
        display: flex;
        flex-direction: column; 
        gap: 30px;
        text-align: center;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .process-grid::before {
        display: none;
    }
    .cta-box {
        padding: 60px 20px;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .hero-text h1 {
        font-size: 2.45rem;
        letter-spacing: 0;
    }
    .hero-sub {
        margin: 0 auto 30px;
        font-size: 1.1rem;
    }
    .hero-btns {
        justify-content: center;
        margin-bottom: 10px;
    }

    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .footer-top { grid-template-columns: 1fr; }
    
    .reviews-container-grid { grid-template-columns: 1fr; gap: 40px; }
    .review-summary { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .hero-text h1 { 
        font-size: 2rem;
        letter-spacing: 0;
    }
    
    .badge-pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .btn-login {
        white-space: nowrap; 
        padding: 6px 14px;   
        font-size: 0.85rem; 
        min-width: auto; 
    }

    .nav-actions {
        gap: 8px; 
    }

    .zk-auth-chip {
        max-width: 150px;
        min-height: 38px;
        padding: 5px 10px 5px 5px;
        font-size: 0.82rem;
    }

    .zk-auth-chip img {
        width: 28px;
        height: 28px;
    }

    .lang-switch {
        margin-left: 5px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .nav-logo span {
        display: none;
    }

    .hero-visual {
        height: 280px;
        margin-top: 0;
        overflow: hidden;
    }

    .ecosystem-container { 
        transform: scale(0.6); 
        transform-origin: center 20%; 
        margin: 0 auto; 
    }

    .stats-grid { flex-direction: column; gap: 30px; }
    .pill-nav { padding: 8px 16px; }
    .nav-logo img { width: 28px; height: 28px; }
    .nav-logo span { font-size: 1rem; }
    
    .average-rating { font-size: 3.5rem; }
    .full-screen-modal .modal-card { width: 95%; height: 90vh; }
}


.user-profile {
    position: relative;
    cursor: pointer;
}

#user-avatar {
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-profile:hover #user-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--border-color);
}

.user-dropdown {
    position: absolute;
    top: 50px; 
    right: -10px; 
    width: 200px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-main);
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f5f7;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.dropdown-item.danger {
    color: #ff3b30;
}
.dropdown-item.danger:hover {
    background: #fff0f0;
}
.dropdown-item.danger i {
    color: #ff3b30;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 2px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--text-primary);
}

.service-anim-box {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    position: relative;
}

.icon-animate {
    font-size: 3rem;
    color: var(--text-primary);
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* --- 語言切換 --- */
.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 15px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.lang-switch:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
}

.lang-switch i {
    margin-right: 6px;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .lang-switch {
        margin: 10px 0;
        justify-content: center;
        width: 100%;
        border: 1px solid #eee;
    }
}

/* --- Toast Notification --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none; 
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 5px solid #5865F2; 
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%); 
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto; 
}

.toast.success { border-left-color: #00b84c; }
.toast.error { border-left-color: #ff3b30; } 

.toast-icon {
    font-size: 1.5rem;
    color: #5865F2;
}
.toast.success .toast-icon { color: #00b84c; }
.toast.error .toast-icon { color: #ff3b30; }

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}


.service-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color, #000); 
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.service-btn-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.payment-grid {
}

.css-anim-box {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    font-size: 3.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.payment-card:hover .css-anim-box {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
    color: #000;
}


.anim-robux i {
    animation: floatY 3s ease-in-out infinite;
    color: #00a2ff; 
}

.anim-card i {
    animation: flipCard 4s ease-in-out infinite;
    color: #e67e22;
}

.anim-mobile i {
    animation: shakePhone 3s ease-in-out infinite;
    color: #2ecc71;
}

.anim-store i {
    animation: bounceStore 2s infinite;
    color: #e74c3c;
}

.anim-bank i {
    animation: pulseBank 3s infinite;
    color: #9b59b6;
}

.anim-crypto i {
    animation: spinCoin 4s linear infinite;
    color: #f1c40f; 
}


@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes flipCard {
    0%, 100% { transform: perspective(400px) rotateY(0); }
    50% { transform: perspective(400px) rotateY(20deg) rotateX(10deg); }
}

@keyframes shakePhone {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-3deg); }
    20%, 40%, 60%, 80% { transform: rotate(3deg); }
}

@keyframes bounceStore {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulseBank {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spinCoin {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

body.modal-open { overflow: hidden; }
.reviews-modal .modal-card { max-width: 920px; height: min(82vh, 760px); }
.reviews-modal-header { gap: 22px; }
.reviews-modal-header h3 { margin: 0 0 6px; font-size: 1.4rem; }
.reviews-modal-subtitle { margin: 0; color: var(--text-secondary); font-size: .92rem; line-height: 1.5; }
.reviews-modal-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reviews-modal-controls label { color: var(--text-secondary); font-size: .88rem; font-weight: 700; }
.reviews-modal-controls select { min-height: 42px; padding: 0 42px 0 14px; border: 1px solid var(--border-color); border-radius: 12px; background: #fff; color: var(--text-primary); font-family: var(--font-main); font-weight: 700; cursor: pointer; }
.reviews-modal-body { background: #f5f5f7; gap: 16px; }
.review-card-modal { box-shadow: none; }
.review-meta-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 15px; }
.review-meta-row .review-date { margin-top: 0; }

@media (max-width: 768px) {
    .reviews-modal .modal-card { width: 94%; height: 88vh; }
    .reviews-modal-header { align-items: flex-start; flex-direction: column; }
    .reviews-modal-controls { width: 100%; justify-content: space-between; }
    .reviews-modal-controls select { flex: 1; min-width: 0; }
}
