/* 基礎設定 - 提升預設字體大小，讓瀏覽器放大時更舒適 */
html {
    font-size: 16px;
}

body {
    overflow-x: hidden;
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        'Microsoft YaHei', sans-serif;
}

@media screen and (min-width: 768px) {
    html {
        font-size: 17px;
    }
}

@media screen and (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}

.nav-bg-color {
    background-color: #a7a7a7;
}

.navbar-nav .nav-item {
    margin-left: 1.5rem;
}

/* 手機版導覽列項目間距 */
@media screen and (max-width: 767px) {
    .navbar-nav .nav-item {
        margin-left: 0;
        margin-bottom: 1.2rem;
    }
}

.btn-trial {
    background-color: #fb7b54;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-trial:hover {
    background-color: #e5663d;
    color: white;
}

/* Mobile First - 預設為手機版樣式 */
#hero {
    width: 100%;
    background: linear-gradient(to bottom, #0c4a6e, #0ea5e9) no-repeat center
        center;
    color: white;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid rgba(0, 211, 243, 0.5);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #00d3f3;
    background-color: rgba(0, 211, 243, 0.1);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    font-size: 1.25rem;
    font-weight: 600;
    background-color: #fb7b54;
    border: none;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.hero-cta:hover {
    background-color: #e5663d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 123, 84, 0.3);
    color: white;
}

.keyword {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.15rem;
    padding: 0;
    margin: 0 auto;
    width: fit-content;
}

.keyword li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.keyword li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #00d3f3;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 平板及以上裝置 */
@media screen and (min-width: 768px) {
    #hero {
        padding: 80px 40px;
    }

    .hero-badge {
        font-size: 1rem;
        padding: 12px 28px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }

    .hero-cta {
        font-size: 1.35rem;
        padding: 18px 56px;
    }

    .keyword {
        flex-direction: row;
        gap: 2rem;
        font-size: 1.35rem;
    }
}

/* 大螢幕裝置 */
@media screen and (min-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Advantages Section */
#advantages {
    padding: 60px 20px;
    background-color: #f0fdf4;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#advantages .row {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

#advantages .col-12 {
    flex: 0 0 auto;
    width: auto;
}

.section-title {
    display: inline-block;
    padding: 16px 32px;
    border: 2px solid #333;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    background-color: #e0f2fe;
    margin-bottom: 3rem;
}

.advantage-card {
    background: white;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    min-width: 280px;
    max-width: 380px;
    overflow: hidden;
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #a8e6cf;
    padding: 1.5rem 1.25rem;
    margin-bottom: 0;
}

.advantage-icon {
    width: 40px;
    height: 40px;
    color: #000000;
    flex-shrink: 0;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
}

.advantage-list {
    list-style: none;
    padding: 1.5rem 1.25rem 0.75rem 1.25rem;
    margin: 0;
}

.advantage-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.advantage-list li:last-child {
    margin-bottom: 0;
}

.advantage-list li::before {
    content: '✓';
    flex-shrink: 0;
    font-weight: bold;
    color: #10b981;
    font-size: 1.05rem;
}

.arrow-down {
    width: 35px;
    height: 35px;
    margin: 0.5rem auto;
    color: #10b981;
    display: block;
}

.result-badge {
    display: inline-block;
    padding: 12px 32px;
    background-color: #a8e6cf;
    color: #000000;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
    #advantages {
        padding: 80px 40px;
    }

    .section-title {
        font-size: 2.5rem;
        padding: 20px 48px;
    }

    .advantage-header {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }

    .advantage-list {
        padding: 2rem 1.5rem;
    }

    .advantage-icon {
        width: 50px;
        height: 50px;
    }

    .advantage-title {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .advantage-list li {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .result-badge {
        font-size: 1.35rem;
        font-weight: 700;
        padding: 16px 48px;
    }
}

/* Challenges Section */
#challenges {
    padding: 60px 20px;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#challenges .row {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

#challenges .col-12 {
    flex: 0 0 auto;
    width: auto;
}

.challenge-card {
    background: white;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 380px;
    overflow: hidden;
}

.challenge-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fbcaca;
    padding: 1.5rem 1.25rem;
    margin-bottom: 0;
}

.challenge-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #000000;
}

.challenge-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

.challenge-list {
    list-style: none;
    padding: 1.5rem 1.25rem;
    margin: 0;
}

.challenge-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.challenge-list li:last-child {
    margin-bottom: 0;
}

.challenge-list li::before {
    content: '→';
    flex-shrink: 0;
    font-weight: bold;
    color: #fb7185;
}

@media screen and (min-width: 768px) {
    #challenges {
        padding: 80px 40px;
    }

    .challenge-header {
        padding: 2rem 1.5rem;
    }

    .challenge-list {
        padding: 2rem 1.5rem;
    }

    .challenge-icon {
        width: 50px;
        height: 50px;
    }

    .challenge-title {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .challenge-list li {
        font-size: 1.15rem;
        font-weight: 700;
    }
}

/* Features Section */
#features {
    padding: 60px 20px;
    background-color: #f3f0ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#features .row {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

#features .col-12 {
    flex: 0 0 auto;
    width: auto;
}

.feature-card {
    background: white;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    min-width: 280px;
    max-width: 380px;
    overflow: hidden;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #9d84e7;
    padding: 1.5rem 1.25rem;
    margin-bottom: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: #ffffff;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 1.5rem 1.25rem;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li::before {
    content: '✓';
    flex-shrink: 0;
    font-weight: bold;
    color: #8b5cf6;
    font-size: 1.05rem;
}

.feature-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 20px 40px;
    background: #0c5279;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    border-radius: 15px;
    margin: 0.5rem 0 0 0;
    box-shadow: 0 8px 20px rgba(12, 82, 121, 0.3);
}

/* 手機版 feature-cta 分成兩行 */
@media screen and (max-width: 767px) {
    .feature-cta {
        flex-direction: column;
        gap: 1.5rem;
        padding: 24px 20px;
    }
}

.trial-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 14px 36px;
    background-color: #fb7b54;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 123, 84, 0.4);
}

.trial-link:hover {
    background-color: #e5663d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 123, 84, 0.5);
    color: white;
}

/* Footer Styles */
.footer {
    background-color: #1a2332;
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-left {
    flex: 1;
}

.footer-brand {
    max-width: 450px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.logo-icon {
    background-color: #4a7cff;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    color: white;
    font-size: 26px;
    font-weight: 700;
}

.footer-description {
    color: #8b93a6;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.footer-links {
    flex: 0 0 auto;
}

.footer-links-title {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #9ca3af;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid #2a3441;
    padding-top: 26px;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

@media screen and (min-width: 768px) {
    #features {
        padding: 80px 40px;
    }

    .feature-header {
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .feature-list {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-title {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .feature-list li {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .feature-cta {
        font-size: 1.5rem;
        padding: 24px 60px;
    }

    .trial-link {
        font-size: 1.2rem;
        padding: 16px 44px;
    }

    .footer-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .footer {
        padding: 80px 0 30px;
    }

    .footer-left {
        max-width: 350px;
    }

    .footer-links ul {
        gap: 18px;
    }

    .footer-links a {
        font-size: 16px;
    }
}

/* 下拉式選單箭頭動畫 */
.dropdown-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown-toggle-link[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}
