body,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft JhengHei';
    font-size: 18px;
}
.grey {
    color: #828282;
}

body {
    position: relative;
}

header {
    background-color: #143159 !important;
    position: absolute;
    top: 0;
    z-index: 100;
}

.banner-box {
    position: relative;
}
.banner-box > h2 {
    font-size: 48px;
    color: #ffffff;
}

/* 表格樣式 */

table {
    border-collapse: collapse;
    white-space: nowrap;
}

td {
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 20px;
    font-size: 16px;
    max-width: 600px;
    border: #828282 solid 1px;
}
.corporation-container .table-box .text-left {
  word-break: break-word; /* 推薦：優先保持單字完整性 */
  white-space: normal;  /* 確保 white-space 不是 nowrap */
}

.text-left {
    text-align: left;
}

.underline {
    text-decoration: underline;
}
.lightblue {
    color: #4aaecd;
}
.bg-grey {
    background-color: #f5f5f5;
}

.bg-darkgrey {
    background-color: #f4f4f4;
}

.bd-t-blue {
    border-top: #4aaecd solid 3px !important;
    border-collapse: separate;
    white-space: nowrap;
}

.button {
    background: #d9d9d9;
    color: #000000;
    padding: 10px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.5s ease; /* 添加漸變效果 */
}

.button:hover {
    background: #5db430;
}

td > p {
    line-height: 2em;
}

/* ======================================================== */
/*            corporation.css - 手機版 (完整更新)           */
/* ======================================================== */
@media screen and (max-width: 767px) {
	/* --- 全域佈局調整 --- */
	.corporation-container {
		width: 100%;
	}

	.area1 {
		width: 100%;
		margin: 70px 0 0 0;
	}
	.area1 > .content > .banner-box {
		width: 100%;
		height: 400px;
		background-image: url('../images/m-stock-banner.png'); /* 使用相對路徑 */
		background-size: cover;
		background-position: center;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.area1 > .content > .banner-box h2 {
		color: #ffffff;
		font-size: 36px;
	}

	/* 1. 讓內容區塊不要貼邊，解決「表格太寬」的問題 */
	.area2 > .content {
		width: 90%; /* 讓內容區塊寬度為 90%，左右自動留白 */
		margin: 0 auto;
	}
	.area2 > .content > .container {
		margin: 40px 0;
		width: 100%;
	}
	.area2 > .content > .container > span {
		margin-bottom: 30px;
	}
	.area2 > .content > .container > span::after {
		content: '';
		display: block;
		width: 30px;
		height: 5px;
		background-color: #5db430;
		margin-top: 5px;
	}

	/* --- 響應式表格 (核心修正) --- */

	/* 2. 移除表格預設邊框，為卡片式設計做準備 */
	.table-box table,
	.table-box tr,
	.table-box td {
		border: none;
	}

	/* 3. 將每一筆資料變成一個獨立的卡片 */
	.table-box tr {
		display: block;
		margin-bottom: 20px;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
		overflow: hidden; /* 確保圓角效果 */
	}

	/* 4. (核心) 改為垂直堆疊並全部靠左 */
	.table-box td {
		display: block; /* 讓儲存格像 div 一樣垂直排列 */
		text-align: left; /* 強制所有內容靠左對齊 */
		padding: 12px 15px;
		position: static; /* 移除 relative，回歸正常流 */
		border-bottom: 1px solid #f0f0f0; /* 儲存格之間的分隔線 */
	}

	.table-box tr td:last-child {
		border-bottom: none;
	}

	/* 5. (核心) 使用 ::before 偽元素來新增標籤，並讓它獨立成行 */
	.table-box td::before {
		content: attr(data-label); /* 讀取 data-label 屬性的內容 */
		display: block; /* 讓標籤獨立成行 */
		font-weight: 700;
		color: #333;
		margin-bottom: 5px; /* 讓標籤和內容之間有點距離 */
		position: static; /* 移除 absolute，回歸正常流 */
	}

	/* 6. 針對下載連結的特殊處理 */
	.table-box td[colspan='3'] {
		background-color: #f8f9fa;
		padding: 15px;
	}
	.table-box td[colspan='3']::before {
		display: none; /* 下載那一行不需要標籤 */
	}
	.table-box td[colspan='3'] span,
	.table-box td[colspan='3'] a {
		display: block; /* 讓每個下載項目都獨立成行 */
		margin: 0 0 10px 0; /* 統一邊距 */
	}
	.table-box td[colspan='3'] a:last-of-type {
		margin-bottom: 0;
	}

	/* --- 其他 icon 樣式 (保留) --- */
	.icon {
		position: fixed;
		top: 50%;
		right: 20px;
		transform: translateY(-50%);
		display: flex;
		flex-direction: column;
		gap: 20px;
		z-index: 5;
	}
	.icon > a > img {
		max-width: 60px;
	}
}

@media screen and (min-width: 768px) {
    .corporation-container {
        width: 100%;
 
    }

    .icon {
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 5;
    }
    .icon > a > img {
        max-width: 60px;
    }

    .area1 {
        width: 100%;
    }
    .area1 > .content {
        width: 100%;
    }
    .area1 > .content > .banner-box {
        width: 100%;
        height: 500px;
        background-image: url('/images/stock-banner.png');
        background-size: cover; /* 讓圖片覆蓋整個區域 */
        background-position: center; /* 讓圖片居中 */
        background-repeat: no-repeat; /* 防止圖片重複 */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .area1 > .content > .banner-box img {
        width: 100%;
    }
    /* ----- */

    .area2 {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .area2 > .content {
        max-width: 1280px;
        width: calc(100% - 400px);
        font-weight: 700;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .area2 > .content > .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 60px 0 100px 0;
        gap: 10px;
    }
    .area2 > .content > .container > span {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 0 60px 0;
    }

    /* 底線 */
    .area2 > .content > .container > span::after {
        content: '';
        display: block;
        width: 30px;
        height: 5px;
        background-color: #5db430;
        margin-top: 5px;
    }

    .area2 > .content > .container > .item-box {
        /* width: 100%; */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 60px;
    }
    .area2 > .content > .container > .item-box > .item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 40px;
    }

    .area2 > .content > .container > .item-box > .item > a {
        width: fit-content;
        text-align: center;
        background-color: #5db430;
        color: #ffffff;
        padding: 10px 30px;
        border-radius: 20px;
        margin: 0 0 0 10px;
    }

    .area2 > .content > .container > p {
        text-align: center;
    }

    .area2 > .content > .container > a {
        width: fit-content;
        text-align: center;
        background-color: #5db430;
        color: #ffffff;
        padding: 10px 30px;
    }

    /* ----- */

    .area3 {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .area3 > .content {
        max-width: 1280px;
        width: calc(100% - 400px);
        font-weight: 700;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .area3 > .content > .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 100px 0;
        gap: 10px;
    }
    .area3 > .content > .container > span {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 0 30px 0;
    }

    /* 底線 */
    .area3 > .content > .container > span::after {
        content: '';
        display: block;
        width: 30px;
        height: 5px;
        background-color: #5db430;
        margin-top: 5px;
    }

    .area3 > .content > .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 80px 0;
    }
    .area3 > .content > .container > p {
        text-align: center;
    }

    .area3 > .content > .container > .detail {
        width: 700px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 40px;
    }

    .area3 > .content > .container > .detail > ul {
        padding: 0 0 0 20px;
    }

    .area3 > .content > .container > .detail li {
        display: flex;
    }

    .area3 > .content > .container > .detail > div {
        display: flex;
        flex-direction: column;
    }
}
