/* Trading Tech Machine 網站樣式 - 模擬 emerline.com 風格 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

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

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

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

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

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* 導航欄 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.ai-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

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

/* ========================================
   Copy Trading 頁面專用樣式
   ======================================== */

/* Hero */
.hero-copy {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    overflow: hidden;
}

.hero-copy .hero-content {
    flex: 1.2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero-copy .hero-title {
    color: #f8fafc;
    font-size: 44px;
    margin-bottom: 20px;
}

.hero-copy .hero-subtitle {
    color: #94a3b8;
    font-size: 18px;
    max-width: 540px;
    margin-bottom: 30px;
}

.hero-copy .highlight {
    color: #60a5fa;
}

.hero-copy .hero-buttons {
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #60a5fa;
}

.hero-stat-label {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual i {
    font-size: 100px;
    color: rgba(96, 165, 250, 0.15);
}

.hero-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(96, 165, 250, 0.1);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

/* 兩種參與方式 */
.ways-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.ways-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.way-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.way-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.way-card-alt {
    border-top: 4px solid var(--secondary-color);
}

.way-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.way-card-alt .way-number {
    background: var(--secondary-color);
}

.way-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.way-desc {
    color: var(--gray-color);
    margin-bottom: 24px;
}

.way-steps {
    text-align: left;
    margin-bottom: 28px;
}

.way-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.way-step:last-child {
    border-bottom: none;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 分配方式 */
.allocation-section {
    padding: 100px 0;
}

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

.alloc-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.alloc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.alloc-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.alloc-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.alloc-card p {
    color: var(--gray-color);
    font-size: 14px;
    line-height: 1.6;
}

/* 高級功能 */
.features-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

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

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

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

.feature-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    font-size: 14px;
    line-height: 1.6;
}

.feature-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* 業務轉化 */
.business-section {
    padding: 100px 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.business-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-5px);
}

.business-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.business-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.business-card p {
    color: var(--gray-color);
    font-size: 14px;
}

/* 比較表 */
.compare-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.compare-table-wrapper {
    overflow-x: auto;
    max-width: 900px;
    margin: 0 auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.compare-table th {
    background: var(--dark-color);
    color: white;
    font-weight: 600;
}

.compare-table .col-brand {
    background: var(--primary-color);
}

.compare-table tbody tr:hover {
    background-color: #f8fafc;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table td:first-child {
    font-weight: 500;
}

.compare-table td:nth-child(2) {
    color: var(--primary-color);
    font-weight: 500;
}

/* FAQ */
.faq-section {
    padding: 100px 0;
}

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

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    background: white;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--gray-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    background: white;
}

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

.faq-answer p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* CTA 底部 */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    color: #f8fafc;
    margin-bottom: 16px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-content .btn-outline {
    border-color: #f8fafc;
    color: #f8fafc;
}

.cta-content .btn-outline:hover {
    background: #f8fafc;
    color: #0f172a;
}

.cta-support {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.support-item i {
    color: #60a5fa;
    font-size: 18px;
}

/* 響應式設計 */

/* 區段標題 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

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

/* 服務項目 */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.service-features li {
    padding: 8px 0;
    color: var(--dark-color);
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 解決方案 */
.solutions {
    padding: 100px 0;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.tab-pane p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.tab-pane ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.tab-pane li {
    padding: 10px;
    background-color: var(--light-color);
    border-radius: 6px;
    color: var(--dark-color);
}

/* 技術能力 */
.technologies {
    padding: 100px 0;
    background-color: var(--light-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.tech-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tech-item p {
    color: var(--gray-color);
    font-size: 14px;
}

/* 關於我們 */
.about {
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    color: var(--gray-color);
    font-size: 14px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.team-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

.person {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
}

.person-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.person-2 {
    bottom: 0;
    left: 20%;
}

.person-3 {
    bottom: 0;
    right: 20%;
}

.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

/* 聯絡我們 */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 40px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-item p {
    color: var(--gray-color);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 頁尾 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .about-content {
        flex-direction: column;
    }

    .nav-menu {
        display: none;
    }

    .hamburger,
    .nav-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 5px;
    }

    .hero-copy .hero-stats {
        justify-content: center;
    }

    .allocation-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .ways-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy .hero-title {
        font-size: 32px;
    }

    .hero-copy .hero-subtitle {
        font-size: 16px;
    }

    .hero-copy .hero-content {
        text-align: center;
    }

    .hero-copy .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .services,
    .solutions,
    .technologies,
    .about,
    .contact {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    .tab-content {
        padding: 20px;
    }

    .contact-content {
        gap: 30px;
    }

    .allocation-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 20px;
        justify-content: center;
    }

    .hero-stat-number {
        font-size: 22px;
    }

    .cta-support {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }
}