/* 修復配色問題的樣式文件 */

:root {
    --royal-blue: #0052CC;
    --bright-blue: #0066FF;
    --smart-green: #00CC66;
    --pure-white: #FFFFFF;
    --light-gray: #F8FAFC;
    --medium-gray: #64748B;
    --dark-gray: #1E293B;
    --black: #000000;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
    --gradient-blue: linear-gradient(135deg, var(--royal-blue), var(--bright-blue));
    --gradient-mesh: radial-gradient(circle at 20% 20%, rgba(0, 82, 204, 0.1) 0%, transparent 50%),
                     radial-gradient(circle at 80% 80%, rgba(0, 204, 102, 0.08) 0%, transparent 50%);
}

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

/* 修復：使用系統字型，移除自定義游標 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--pure-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: auto; /* 修復：使用系統游標 */
}

/* 移除自定義游標相關樣式 */

/* 容器和佈局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 頁首 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '三';
    position: absolute;
    font-size: 20px;
    animation: float 3s ease-in-out infinite;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray); /* 修復：改為深色，提高對比度 */
    font-weight: 600; /* 修復：加粗字體 */
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--bright-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 修復：按鈕樣式 - 提高對比度 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700; /* 修復：加粗字體 */
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    border: 2px solid var(--bright-blue);
}

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

.btn-outline {
    border: 2px solid var(--bright-blue);
    color: var(--bright-blue);
    background: white;
    font-weight: 700;
}

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

/* 修復：白色按鈕對比度 */
.btn-white {
    background: white;
    color: var(--royal-blue);
    border: 3px solid white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background: var(--royal-blue);
    color: white;
    transform: translateY(-2px);
}

/* 修復：白色輪廓按鈕 */
.btn-outline-white {
    border: 3px solid white;
    color: white;
    background: transparent;
    font-weight: 700;
}

.btn-outline-white:hover {
    background: white;
    color: var(--royal-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 16px;
    font-weight: 700;
}

/* Hero 區塊 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-mesh);
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 20px;
    animation: float-random 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float-random {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-10px, 10px) rotate(180deg); }
    75% { transform: translate(15px, 5px) rotate(270deg); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 204, 102, 0.15);
    color: var(--smart-green);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 2px solid rgba(0, 204, 102, 0.3);
    animation: slideUp 0.8s ease-out;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--black);
    animation: slideUp 0.8s ease-out 0.2s both;
}

.title-highlight {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--dark-gray); /* 修復：改為深色 */
    font-weight: 600;
    margin-bottom: 48px;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    animation: slideUp 0.8s ease-out 0.6s both;
}

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

/* 現代抽象太極背景 */
.taiji-bg {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 1;
}

.taiji-modern {
    width: 300px;
    height: 300px;
    position: relative;
    animation: rotate 30s linear infinite;
    opacity: 0.3;
}

.taiji-modern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg, #00D4FF 0%, transparent 100%);
    border-radius: 150px 150px 0 0;
    top: 0;
}

.taiji-modern::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg, transparent 0%, #FF6B35 100%);
    border-radius: 0 0 150px 150px;
    bottom: 0;
}

@keyframes rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Features 區塊 */
.features {
    padding: 120px 0;
    background: var(--light-gray);
}

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

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

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

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 28px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.feature-desc {
    color: var(--dark-gray);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* About 區塊 */
.about {
    padding: 120px 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 32px;
}

.about-content p {
    font-size: 20px;
    color: var(--dark-gray);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 24px;
}

.highlight {
    color: var(--bright-blue);
    font-weight: 700;
}

/* CTA 區塊 */
.cta {
    padding: 120px 0;
    background: var(--gradient-blue);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.cta-subtitle {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Footer - 修復聯絡資訊顯示 */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: start;
    gap: 32px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.footer-contact {
    text-align: center;
}

.footer-contact p {
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-contact a {
    color: var(--smart-green);
    text-decoration: none;
    font-weight: 600;
}

.footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 響應式設計 */
@media (max-width: 768px) {
    .nav {
        padding: 12px 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .taiji-modern {
        width: 200px;
        height: 200px;
    }
}

/* 安全修復：防止內容溢出 */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 安全修復：隱藏潛在的敏感內容 */
.debug-info,
.dev-tools {
    display: none !important;
}

