/* LingoSpark Website Styles */
/* 愛因創新官網樣式表 */

/* ===== 基礎設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #10B981;
    --secondary-emerald: #059669;
    --success-green: #34D399;
    --accent-green: #ECFDF5;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-400: #9CA3AF;
    --gray-700: #374151;
    --white: #FFFFFF;
}

body {
    font-family: 'Noto Sans TC', 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

body[lang="en"] {
    font-family: 'Inter', 'Noto Sans TC', -apple-system, sans-serif;
}

/* ===== 導航列 ===== */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.logo-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease-in-out;
    font-size: 16px;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--gray-100);
    padding: 8px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== 按鈕樣式 ===== */
.btn-primary {
    background: var(--primary-green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--secondary-emerald);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: all 0.3s ease-in-out;
    font-size: 16px;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent-green);
}

.btn-white {
    background: white;
    color: var(--primary-green);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}

/* ===== 手機選單 ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 24px;
    z-index: 999;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 16px;
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    background: var(--accent-green);
    color: var(--primary-green);
}

.mobile-nav .lang-switcher {
    margin: 16px 0;
}

.mobile-nav .btn-primary {
    width: 100%;
    text-align: center;
    display: block;
}

/* ===== Hero 區塊 ===== */
.hero {
    padding: 160px 24px 96px;
    background: linear-gradient(135deg, #F0F7FF 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ===== 聊天 Demo ===== */
.chat-demo {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 420px;
    animation: float 3s ease-in-out infinite;
}

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

.chat-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-avatar {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.brand-info {
    flex: 1;
}

.brand-name {
    font-weight: 700;
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    padding: 20px;
    background: var(--gray-50);
    max-height: 500px;
    overflow-y: auto;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-items: flex-end;
}

.ai-message {
    align-items: flex-start;
}

.message-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message .message-bubble {
    background: var(--primary-green);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message .message-bubble {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
    padding: 0 8px;
}

.ai-thinking {
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-start;
}

.typing-indicator {
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: inline-flex;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: auto;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.product-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
    display: flex;
    gap: 12px;
    border: 1px solid #E5E7EB;
}

.product-image {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
}

.product-info-mini {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 14px;
}

.product-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 6px;
    line-height: 1.4;
}

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

.chat-input-demo {
    padding: 16px;
    background: white;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 8px;
}

.chat-input-demo input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    background: var(--gray-50);
}

.send-btn {
    width: 44px;
    height: 44px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.send-btn:hover {
    background: var(--secondary-emerald);
    transform: scale(1.05);
}

/* ===== 共用區塊 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-gray);
}

/* ===== 功能特色 ===== */
.features {
    padding: 96px 24px;
    background: white;
}

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

.feature-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 15px;
}

/* ===== 分散式語意網路區塊 ===== */
.architecture {
    padding: 96px 24px;
    background: white;
}

.architecture-content {
    max-width: 1200px;
    margin: 0 auto;
}

.architecture-intro {
    text-align: center;
    margin-bottom: 64px;
}

.architecture-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto 16px;
}

.architecture-intro strong {
    color: var(--primary-green);
    font-weight: 600;
}

.architecture-diagram-section {
    margin-bottom: 80px;
}

.architecture-diagram-section h3,
.architecture-benefits h3,
.architecture-flow h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.layer-card {
    background: var(--gray-50);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
    border: 3px solid transparent;
}

.layer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.core-card {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #F0FDF4 0%, var(--gray-50) 100%);
}

.client-card {
    border-color: var(--secondary-emerald);
    background: linear-gradient(135deg, #ECFDF5 0%, var(--gray-50) 100%);
}

.widget-card {
    border-color: var(--success-green);
    background: linear-gradient(135deg, #F0FDF4 0%, var(--gray-50) 100%);
}

.layer-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.layer-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.layer-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
}

.layer-card strong {
    color: var(--primary-green);
    font-weight: 600;
}

.architecture-benefits {
    margin-bottom: 80px;
}

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

.benefit-item {
    background: var(--gray-50);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.benefit-item:hover {
    background: var(--accent-green);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.benefit-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

.architecture-flow {
    margin-bottom: 64px;
    padding: 48px;
    background: linear-gradient(135deg, #F0F7FF 0%, var(--gray-100) 100%);
    border-radius: 24px;
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.flow-step {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
}

.flow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.flow-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.flow-step p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

.flow-step strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.flow-arrow {
    font-size: 32px;
    color: var(--primary-green);
    font-weight: bold;
}

.architecture-cta {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    border-radius: 20px;
    color: white;
}

.architecture-cta p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.architecture-cta strong {
    font-size: 22px;
    display: block;
    margin-bottom: 8px;
}

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

.architecture-cta .btn-primary:hover {
    background: var(--gray-100);
}

/* ===== 產品方案 ===== */
.products {
    padding: 96px 24px;
    background: linear-gradient(135deg, #F0F7FF 0%, var(--gray-100) 100%);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 32px;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
    color: var(--text-gray);
}

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

.tab-btn:hover:not(.active) {
    border-color: var(--primary-green);
    background: var(--accent-green);
    color: var(--primary-green);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.product-info h3 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.product-info ul {
    list-style: none;
    margin: 24px 0;
}

.product-info li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
}

.product-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.product-visual {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ===== 運作方式 ===== */
.how-it-works {
    padding: 96px 24px;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h4 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.step p {
    color: var(--text-gray);
}

/* ===== CTA 區塊 ===== */
.cta {
    padding: 96px 24px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
}

.cta p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== Footer ===== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 64px 24px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-weight: 600;
}

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

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

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    color: var(--gray-400);
}

/* ===== 聯絡彈窗 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-modal {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    padding: 32px;
    text-align: center;
    color: white;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.modal-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 16px;
    opacity: 0.95;
}

.modal-body {
    padding: 40px 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.contact-item:hover {
    background: var(--accent-green);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-emerald));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-item-content {
    flex: 1;
}

.contact-item-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-item-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-item-value a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-item-value a:hover {
    color: var(--primary-green);
}

.modal-footer {
    padding: 0 32px 32px;
    text-align: center;
}

.modal-footer p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== 語言切換 ===== */
[data-lang="zh"],
[data-lang="en"] {
    display: none;
}

body[lang="zh-TW"] [data-lang="zh"] {
    display: block;
}

body[lang="en"] [data-lang="en"] {
    display: block;
}

span[data-lang="zh"],
span[data-lang="en"] {
    display: none;
}

body[lang="zh-TW"] span[data-lang="zh"] {
    display: inline;
}

body[lang="en"] span[data-lang="en"] {
    display: inline;
}

/* ===== 響應式設計 ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .product-content {
        grid-template-columns: 1fr !important;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons, 
    .cta-buttons {
        flex-direction: column;
    }

    .chat-demo {
        max-width: 100%;
    }

    .contact-modal {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 24px;
    }

    .modal-header h3 {
        font-size: 24px;
    }

    .modal-body {
        padding: 24px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item-value {
        font-size: 16px;
    }

    .product-tabs {
        flex-direction: column;
        gap: 12px;
    }

    .tab-btn {
        width: 100%;
        padding: 12px 24px;
    }
}