
.tab-button[data-tab="editor"].active { background: linear-gradient(45deg, #f59e0b, #f5640b); color: #fff; }
.tab-button[data-tab="backtest"].active { background: linear-gradient(45deg, #6c63ff, #ff63f3); color: #fff; }
.tab-button[data-tab="export"].active { background: linear-gradient(45deg, #17b8a6, #53a3f5); color: #fff; }

.feature-text[data-tab-content="editor"].active h3 { color: #f59e0b; }
.feature-text[data-tab-content="backtest"].active h3 { color: #6c63ff; }
.feature-text[data-tab-content="export"].active h3 { color: #17b8a6; }

body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f0f4f8; 
    color: #333;
    line-height: 1.6;
}

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

h1, h2 {
    font-weight: 700;
    color: #2c3e50;
}

section {
    padding: 60px 0;
}

header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.left-nav {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FF6B6B, #53a3f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
    display: block;
}

.cta-nav {
    background: linear-gradient(45deg, #53a3f5, #a361ff);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
}

.cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #f0f4f8, #e0eafc);
    padding: 120px 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.cta-button {
    background: linear-gradient(45deg, #53a3f5, #a361ff);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-image {
    flex: 1;
    max-width: 45%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 功能介紹 (互動式) */
#features {
    text-align: center;
}

#features h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-button {
    background-color: #fff;
    color: #555;
    border: 2px solid #e0eafc;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.feature-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-height: 420px; /* 根據最大內容高度調整，可再微調 */
    transition: min-height 0.3s;
}


.feature-text {
    flex: 1;
    min-height: 260px;
    text-align: left;
    display: none;
    padding-right: 50px;
}

.feature-text.active {
    display: block;
}

.feature-text h3 {
    font-size: 1.8rem;
    color: #53a3f5;
    margin-bottom: 20px;
}

.feature-text ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

.feature-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.feature-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #a361ff;
    font-weight: bold;
}

.feature-image {
    flex: 1;
    max-width: 50%;
}

#feature-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: opacity 0.5s ease-in-out;
}


/* 痛點解決區域 */
#pain-points {
    background: white;
    padding: 80px 0;
    position: relative;
    margin-top: -50px;
    border-radius: 50px 50px 0 0;
}

#pain-points h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
    font-weight: 700;
}

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

.pain-point-card {
    background: linear-gradient(135deg, #2c3e50 0%, #333 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pain-point-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pain-point-card:hover::before {
    opacity: 1;
}

.pain-point-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.pain-point-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pain-point-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* CTA 區塊 */
#cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #bbdefb, #e0eafc);
    text-align: center;
    border-radius: 50px 50px 0 0;
    margin-top: 50px;
}

#cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#cta-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

#waitlist-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

#email-input {
    flex-grow: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

#email-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(83, 163, 245, 0.5);
}

#waitlist-form .cta-button {
    padding: 18px 40px;
}

.message {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: bold;
}

/* 整個區塊的樣式 */
.user-advantage-section {
  text-align: center;
  padding: 30px 50px;
  margin: 20px;
}

/* 標題樣式 */
.section-title {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 50px;
}

/* 卡片容器：使用 Flexbox 實現並排 */
.user-cards-container {
  display: flex;
  justify-content: center;
  gap: 30px; /* 卡片間的間距 */
  flex-wrap: wrap; /* 當螢幕變窄時，卡片會自動換行 */
}

/* 單一卡片的樣式 */
.user-card {
  flex: 1; /* 讓卡片彈性地佔據空間 */
  min-width: 250px; /* 最小寬度，防止卡片過窄 */
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s; /* 增加過渡效果 */
  overflow: hidden; /* 確保內容不會溢出 */
}

/* 卡片內部內容容器 */
.card-container {
  padding: 40px 25px;
}

/* 卡片懸停效果 */
.user-card:hover {
  transform: translateY(-10px); /* 向上移動 */
  box-shadow: 0 0 15px rgba(106, 130, 251, 0.6);
}

/* 圖示的容器 */
.user-icon {
  width: 120px;
  height: 120px;
  background-color: #f0f0f0;
  border-radius: 50%; /* 圓形 */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px; /* 水平居中 */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

/* 懸停時圖示的樣式 */
.user-card:hover .user-icon {
  transform: scale(1.1); /* 放大圖示 */
}

/* 卡片標題樣式 */
.user-card h3 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 15px;
}

/* 卡片內文樣式 */
.user-card p {
  font-size: 1.1em;
  color: #666;
  line-height: 1.6;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

/* 新增 Blockly 區塊的樣式 */
#blockly-demo {
    background: white;
    padding: 80px 0;
    text-align: center;
}

#blockly-demo h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

#blockly-demo p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 50px;
}

.blockly-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 40px;
    max-height: 600px;
}

#blocklyDiv {
    height: 500px;
    width: 100%;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
}

/* RWD 響應式設計 */
@media (max-width: 768px) {
    #hero .container, .feature-content, .community-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image, .feature-text, .feature-image, .community-text, .community-image {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-image, .community-image {
        margin-top: 40px;
    }

    #waitlist-form {
        flex-direction: column;
    }

    #email-input {
        margin-bottom: 15px;
    }

    .cta-button {
        width: 100%;
    }

    .feature-tabs {
        flex-direction: column;
    }

    .feature-content {
        padding: 30px;
    }

    #pain-points li {
        width: 100%;
    }

    