:root {
    --primary-color: #3498db;
    --secondary-color: #e67e22;
    --success-color: #27ae60;
    --bg-color: #f4f7f9;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
}



body {
    font-family: "PingFang HK", "Microsoft JhengHei", sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
/*    border-bottom: 2px dashed #bdc3c7;*/
/*    padding-bottom: 15px;*/
}

h2 {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
    border-left: 6px solid var(--secondary-color);
    padding-left: 15px;
    margin: 40px 0 20px 0;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    /*margin: 20px auto;*/
    border: 1px solid #ddd;
    vertical-align: center;
}

/* 階段一：時間觀念樣式 */
.step-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.step-card {
    background: #fdfaf6;
    border: 1px solid #f3e5ab;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: #d35400;
}

/* 練習區塊通用樣式 */
.content-box {
    background-color: #f8fbff;
    border-radius: 12px;
    padding: 20px 25px;
    border: 1px solid #e1eaf2;
    margin-bottom: 20px;
}

.highlight {
    font-weight: bold;
    color: var(--primary-color);
}

.keyword-box {
    background-color: #ecf0f1;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

ul {
    padding-left: 20px;
    margin: 0;
}

li {
    margin-bottom: 10px;
    list-style-type: "📍 ";
}

/* 階段三：社交認知專屬樣式 */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-item {
    flex: 1;
    min-width: 250px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    padding: 15px;
    border-radius: 10px;
}

/* 影片區域 */
.video-section {
    background: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 50px;
    text-align: center;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #34495e;
}

.footer {
    text-align: center;
    color: #95a5a6;
    font-size: 0.85rem;
    margin-top: 40px;
}

.responsive-table {
    counter-reset: step; 
    width: 100%;
    table-layout: fixed;
    text-align: center;
}

.responsive-table tr {
    display: block;
    margin-bottom: 15px;
}

.responsive-table td {
    position: relative;
}

.responsive-table td::after {
    position: absolute; 
    top: 5px; 
    left: 10px;
    font-weight: 600;
    counter-increment: step;    /* 每遇到一個 td，計數器 +1 */
    content: counter(step); /* 顯示內容，例如 (1), (2)... */
    color: #000;                /* 數字顏色 */
    font-size: 0.8em;           /* 數字縮小一點 */
    text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

@media screen and (max-width: 600px) {
    body {
        padding: 0px;
    }

    .container{
        padding: 20px;
        border-radius: 0px;
    }

    /* 每一行變成一個獨立的區塊 (Card) */
      .responsive-table tr { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 15px;
        border: 2px solid #94a7ae;
        border-radius: 8px;
        overflow: hidden;
      }

      /* 每一個儲存格變成「兩欄」佈局 */
      .responsive-table td {
        display: flex; 
        align-items: center;
        border: none;
        padding: 5px 5px;
        text-align: right; 
      }

      /* 透過 data-label 生成左側的標籤 */
      .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
        text-align: left;
        flex-basis: 40%;
      }

    .responsive-table td::after {
        top: 6px;
    }

    .main-image {
        margin: 0px;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }
}

/*.vocab-card { 
    border: 2px solid #ddd; 
    border-radius: 10px; 
    padding: 15px; 
    background-color: #f9f9f9; 
    margin-bottom: 20px;
    font-family: sans-serif;
  }*/
  /*.vocab-card h2 { 
    color: #2c3e50; 
    font-size: 1.2rem; 
    margin-top: 0; 
    border-bottom: 1px solid #ccc; 
    padding-bottom: 5px; 
  }*/
/*  .vocab-card ul { list-style: none; padding: 0; }
  .vocab-card li { margin-bottom: 8px; font-size: 1rem; }*/
  /*.vocab-card strong { color: #e67e22; }*/