/* 全域樣式 */
:root {
    --primary-color: #ffcc00;
    --secondary-color: #ffb200;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
}

/* 載入動畫 */
#loading {
    background-color: var(--white);
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 9999;
    margin-top: 0px;
    top: 0px;
}

#loading-center {
    width: 100%;
    height: 100%;
    position: relative;
}

#loading-center-absolute {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.object {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    float: left;
    margin-right: 20px;
    margin-top: 65px;
    border-radius: 50%;
}

#object_one {
    animation: object_one 1.5s infinite;
}

#object_two {
    animation: object_two 1.5s infinite;
    animation-delay: 0.25s;
}

#object_three {
    animation: object_three 1.5s infinite;
    animation-delay: 0.5s;
}

#object_four {
    animation: object_four 1.5s infinite;
    animation-delay: 0.75s;
}

@keyframes object_one {
    75% {
        transform: translateY(-30px);
    }
}

@keyframes object_two {
    75% {
        transform: translateY(-30px);
    }
}

@keyframes object_three {
    75% {
        transform: translateY(-30px);
    }
}

@keyframes object_four {
    75% {
        transform: translateY(-30px);
    }
}

/* 導航欄 */
.navbar {
    padding: 20px 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

.navbar.bg-light {
    background-color: var(--white) !important;
    padding: 15px 0;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    height: 40px;
    transition: all 0.4s ease;
}

.navbar .logo-scrolled {
    display: none;
}

.navbar.bg-light .logo-display {
    display: none;
}

.navbar.bg-light .logo-scrolled {
    display: block;
}

.navbar .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
}

.navbar.bg-light .nav-link {
    color: var(--dark-color);
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 5px;
    left: 15px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover:after,
.navbar .nav-item.active .nav-link:after {
    width: calc(100% - 30px);
}

.navbar .social-links a {
    font-size: 18px;
    margin-left: 15px;
    color: var(--white);
}

.navbar.bg-light .social-links a {
    color: var(--dark-color);
}

.navbar .social-links a:hover {
    color: var(--primary-color);
}

/* Home */
.home {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('../assets/images/bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-text {
    color: var(--white);
    max-width: 600px;
}

.home-text h1 {
    font-size: 96px;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.home-text h2 {
    font-size: 35px;
    margin-bottom: 10px;
    font-weight: 300;
    color: var(--primary-color);
    animation: fadeInUp 1s 0.2s;
    animation-fill-mode: both;
}

.home-text p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s 0.4s;
    animation-fill-mode: both;
}

.home-buttons {
    animation: fadeInUp 1s 0.6s;
    animation-fill-mode: both;
}

.home-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.phone-showcase {
    text-align: center;
    animation: fadeInRight 1s 0.8s;
    animation-fill-mode: both;
}

.phone-showcase img {
    max-height: 600px;
}

/* APP Display */
.app-showcase {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: hidden;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 600px;
    border-radius: 20px;
    border: 10px solid var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
}

/* Feature Box */
.feature-box {
    padding: 30px;
    margin: 20px 0;
    height: 100%;
}

.feature-box h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
}

.feature-box h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-box p small {
    font-size: 16px;
    color: var(--gray);
}


/* User's Rate */
.reviews {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.review-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 200px;
}

.review-item .quote-icon {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.review-item .quote-icon.right {
    left: auto;
    right: 20px;
    top: auto;
    bottom: 10px;
}

.review-item p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.user-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.user-info h5 {
    margin-bottom: 0;
    font-size: 18px;
}

.user-info span {
    color: var(--primary-color);
    margin-left: 10px;
}

/* QA Session */
.qa-section {
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    max-width: inherit;
    margin: auto;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.qa-section > h1 {
    text-align: center;
}

.qa-section > p {
    text-align: center;
}
  
.qa-item {
    border-bottom: 1px solid #eee;
    overflow: hidden;
}
  
.qa-question {
    background: none;
    border: none;
    font-size: 25px;
    font-weight: bold;
    text-align: left;
    width: 100%;
    cursor: pointer;
    padding: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.arrow {
    transition: transform 0.3s ease;
}
  
.qa-question.active .arrow {
    transform: rotate(90deg);
}
  
.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    color: #555;
    font-size: 20px;
}

.qa-answer.open {
    padding: 10px 15px 80px;
}

/* Download */
.download-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
}

.download-buttons a {
    margin-right: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.download-buttons a:hover {
    transform: translateY(-5px);
}

.download-buttons img {
    height: 50px;
}

.download-image {
    text-align: center;
}

.download-image img {
    max-height: 500px;
}

/* BackToTop */
.scroll-top {
    width: 45px;
    height: 45px;
    line-height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    text-align: center;
    color: var(--dark-color);
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    padding: 50px 0 40px;
    color: var(--light-color);
}

.footer-logo {
    margin-bottom: 20px;
    text-align: right;
}

.footer-logo img {
    height: 50px;
    text-align: right;
}

.footer-social {
    margin-bottom: 20px;
    text-align: right;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    margin: 0 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: right;
    align-items: center;
    justify-content: center;
    vertical-align: right;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.footer-text {
    text-align: right;
}

.footer-text p {
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        background-color: var(--white);
        padding: 15px 0;
        box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .logo-display {
        display: none;
    }
    
    .navbar .logo-scrolled {
        padding: 0 0 0 30px;
        display: block;
    }
    
    .navbar .nav-link {
        color: var(--dark-color);
    }
    
    .navbar .social-links {
        display: none;
    }
    
    .home {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .home-text {
        text-align: left;
        margin: 0 auto 50px;
    }
    
    .feature-detail {
        margin-bottom: 60px;
    }
    
    .feature-content {
        text-align: center;
        margin-top: 30px;
    }
    
    .feature-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-detail.reverse .feature-content {
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .download-content {
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
    }

    .footer-text p{
        text-align: center;
    }
    .footer-social {
        text-align: center;
    }
    .footer-logo {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 30px;
    }
    
    .home-text h1 {
        font-size: 36px;
    }
    
    .feature-item {
        margin-bottom: 15px;
    }
    
    .screen-area {
        padding: 80px 0;
    }
    
    .qa-question {
        font-size: 20px;
        font-weight: bold;
        text-align: left;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
      
    .qa-answer {
        font-size: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 15px;
    }

    .footer {
        padding: 40px 0 30px;
    }
    .footer-text p{
        text-align: center;
    }
    .footer-social {
        text-align: center;
    }
    .footer-logo {
        text-align: center;
        margin-top: 30px;
    }
}

/* Animate-on-scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Btn-effect */
.btn-effect {
    position: relative;
    overflow: hidden;
}

.btn-effect:after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-effect:hover:after {
    width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}