/* 全局樣式 */
:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2d62a3;
    --secondary-color: #00d2d3;
    --accent-color: #f9ca24;
    --dark-color: #2c3e50;
    --light-color: #f5f6fa;
    --grey-color: #8395a7;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gradient-primary: linear-gradient(135deg, #3a7bd5, #00d2d3);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.section-header p {
    color: var(--grey-color);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.cta-buttons .btn {
    margin-left: 10px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--grey-color);
    max-width: 500px;
}

.hero-cta .btn {
    margin-right: 16px;
    margin-bottom: 16px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

.hero-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    animation: float 3s ease-in-out infinite;
}

.hero-icon i {
    font-size: 60px;
    color: var(--primary-color);
    margin: 0 15px;
}

.hero-icon i:nth-child(2) {
    color: var(--secondary-color);
}

.hero-icon i:nth-child(3) {
    color: var(--accent-color);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Stats Section */
.stats {
    padding: 30px 0;
    background: white;
    margin-top: -50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--grey-color);
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--grey-color);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.pricing-card {
    border: 1px solid #e1e8ed;
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    min-height: 550px;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
    box-shadow: var(--box-shadow);
}

.popular-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 16px;
    font-weight: normal;
    color: var(--grey-color);
}

.pricing-features {
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.pricing-features ul li i {
    margin-right: 10px;
    font-size: 16px;
    margin-top: 3px;
}

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

.pricing-note {
    text-align: center;
    color: var(--grey-color);
    font-size: 14px;
}

/* Integration Section */
.integration {
    padding: 100px 0;
    background: var(--light-color);
}

.integration-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.integration-text {
    flex: 1;
}

.integration-step {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--grey-color);
}

.integration-code {
    flex: 1;
    background: #2d3748;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.code-header {
    background: #1a202c;
    padding: 12px 20px;
    display: flex;
}

.code-lang {
    color: #a0aec0;
    margin-right: 15px;
    font-size: 14px;
    cursor: pointer;
}

.code-lang.active {
    color: white;
    position: relative;
}

.code-lang.active:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.integration-code pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.integration-code code {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.integration-code .code-block {
    display: none;
}

.integration-code #javascript-code {
    display: block;
}

.code-content {
    max-height: 400px;
    overflow-y: auto;
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background: white;
}

.client-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.client-logo {
    padding: 20px;
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover {
    opacity: 1;
}

.client-logo img {
    max-width: 120px;
    height: auto;
}

.text-client-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--grey-color);
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    text-align: center;
    transition: var(--transition);
}

.client-logo:hover .text-client-logo {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--light-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e1e8ed;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
}

.faq-toggle i {
    transition: var(--transition);
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e8ed;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--grey-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark-color);
}

.login-form {
    margin-top: 20px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
}

.login-form button {
    width: 100%;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    margin: 20px 0;
    color: #a0aec0;
    line-height: 1.8;
}

.footer-logo {
    height: 40px;
}

.footer-social {
    display: flex;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #a0aec0;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 14px;
}

.footer-certifications {
    display: flex;
}

.footer-certifications img {
    height: 30px;
    margin-left: 15px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-certifications img:hover {
    opacity: 1;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-left: 15px;
    transition: var(--transition);
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Text Logo Styles */
.text-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin: 0;
}

.text-logo span {
    color: var(--secondary-color);
}

.text-logo.light {
    color: white;
}

.text-logo.light span {
    color: var(--accent-color);
}

/* Fee Rate Table Section */
.fee-table {
    padding: 100px 0;
    background: var(--light-color);
}

.rate-tables {
    max-width: 1100px;
    margin: 0 auto;
}

.table-title {
    text-align: center;
    margin: 40px 0 20px;
    color: var(--dark-color);
    font-size: 26px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.table-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.innovation-title {
    margin-top: 60px;
    color: var(--primary-color);
}

.table-wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.table-wrapper h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.rate-table th, 
.rate-table td {
    padding: 15px 10px;
    border: 1px solid #e1e8ed;
}

.rate-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.rate-table td {
    color: var(--dark-color);
    vertical-align: middle;
}

.fee-details {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    border-top: 1px dashed #e1e8ed;
    padding-top: 15px;
}

.fee-details.multi-column {
    flex-wrap: wrap;
}

.fee-item {
    flex: 1;
    min-width: 200px;
}

.fee-item h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.fee-item p {
    font-size: 14px;
    color: var(--grey-color);
    line-height: 1.5;
}

.fee-item p small {
    font-size: 12px;
    opacity: 0.8;
}

.fees-notes {
    background: rgba(249, 202, 36, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.fees-notes p {
    font-size: 14px;
    color: var(--dark-color);
    line-height: 1.6;
}

.innovation-table {
    background: linear-gradient(to right bottom, white, #f5f6fa);
    border: 1px solid rgba(58, 123, 213, 0.2);
}

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.popular {
        grid-row: 1;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    nav.open {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats .container {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
        margin-bottom: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .integration-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form form {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-certifications {
        margin-top: 20px;
    }
    
    .fee-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .table-responsive {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }
    
    .table-wrapper {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .client-logo {
        width: 50%;
    }
}
