/* ==========================================
   style.css - 全站共用極簡白設計樣式表
   ========================================== */

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: "-apple-system", BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; 
}

body { 
    background-color: #fbfaef; /* 歐美高質感燕麥米色底 */
    color: #191919; 
    padding: 40px 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    line-height: 1.6; 
}

.container { 
    max-width: 750px; 
    width: 100%; 
    text-align: center; 
}

/* Premium SaaS Header 導覽列 */
.brand-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    margin-bottom: 40px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #e1dfd5; 
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: #191919; 
    letter-spacing: -0.5px; 
    text-decoration: none; 
}

.badge-pro { 
    background: #191919; 
    color: #fff; 
    font-size: 0.7rem; 
    font-weight: 700; 
    padding: 3px 6px; 
    border-radius: 4px; 
    margin-left: 5px; 
    vertical-align: middle; 
}

h1 { 
    font-size: 2.3rem; 
    font-weight: 800; 
    color: #191919; 
    margin-bottom: 10px; 
    letter-spacing: -0.5px; 
}

.subtitle { 
    color: #6b6b6b; 
    margin-bottom: 40px; 
    font-size: 1rem; 
}

/* 頂部橫幅廣告位 (符合 Google AdSense 標準版面) */
.ad-banner-top { 
    width: 100%; 
    height: 90px; 
    background: #f1f0e8; 
    border: 1px solid #e1dfd5; 
    border-radius: 8px; 
    margin-bottom: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #8c8a80; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* 核心轉檔工作區卡片 */
.main-tool-card { 
    background: #ffffff; 
    border: 1px solid #e1dfd5; 
    border-radius: 16px; 
    padding: 40px 30px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.01); 
    margin-bottom: 40px; 
    text-align: left; 
}

.tool-header { 
    margin-bottom: 25px; 
    border-bottom: 1px solid #f1f0e8; 
    padding-bottom: 15px; 
}

.tool-title { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: #191919; 
}

.tool-tag { 
    font-size: 0.75rem; 
    background: #f1f0e8; 
    padding: 4px 8px; 
    border-radius: 4px; 
    color: #6b6b6b; 
    font-weight: 600; 
    margin-left: 10px; 
}

/* 拖曳上傳盒 */
.upload-box { 
    border: 2px dashed #e1dfd5; 
    border-radius: 12px; 
    padding: 50px 20px; 
    text-align: center; 
    cursor: pointer; 
    transition: border-color 0.2s, background-color 0.2s; 
}

.upload-box:hover { 
    border-color: #191919; 
    background-color: #fafaf5; 
}

.upload-icon { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    display: block; 
}

.btn-browse { 
    background: #191919; 
    color: #ffffff; 
    padding: 10px 20px; 
    border-radius: 6px; 
    font-weight: 600; 
    display: inline-block; margin-top: 15px; 
    font-size: 0.9rem; 
}

#file-input { 
    display: none; 
}

/* 狀態與進度條加載區 (延長廣告視線停留) */
.status-box { 
    margin-top: 25px; 
    padding: 20px; 
    border-radius: 10px; 
    display: none; 
    background: #fafaf5; 
    border: 1px solid #e1dfd5; 
    text-align: center; 
}

.progress-bar { 
    width: 100%; 
    height: 6px; 
    background: #e1dfd5; 
    border-radius: 3px; 
    margin-top: 12px; 
    overflow: hidden; 
}

.progress-fill { 
    width: 0%; 
    height: 100%; 
    background: #22c55e; 
    transition: width 0.2s; 
}

.btn-download { 
    display: none; 
    background: #22c55e; 
    color: white; 
    padding: 12px 24px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 700; 
    margin-top: 15px; 
    box-shadow: 0 4px 12px rgba(34,197,94,0.2); 
}

/* EEAT SEO 長尾文章內文區塊 */
.seo-article { 
    text-align: left; 
    background: #ffffff; 
    border: 1px solid #e1dfd5; 
    border-radius: 16px; 
    padding: 40px 30px; 
    margin-bottom: 40px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.01); 
}

.seo-article h2 { 
    font-size: 1.6rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    color: #191919; 
    border-bottom: 2px solid #191919; 
    padding-bottom: 8px; 
}

.seo-article h3 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin: 25px 0 10px 0; 
    color: #191919; 
}

.seo-article p { 
    font-size: 0.95rem; 
    color: #404040; 
    margin-bottom: 15px; 
    text-align: justify; 
}

.seo-article ol, .seo-article ul { 
    margin-left: 20px; 
    margin-bottom: 20px; 
    color: #404040; 
    font-size: 0.95rem; 
}

.seo-article li { 
    margin-bottom: 8px; 
}

/* pSEO 內部目錄矩陣導覽連結 */
.matrix-title { 
    font-size: 1.1rem; 
    font-weight: 700; 
    text-align: left; 
    margin-bottom: 15px; 
    color: #191919; 
}

.grid-matrix { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-bottom: 40px; 
}

.matrix-card { 
    background: #ffffff; 
    border: 1px solid #e1dfd5; 
    border-radius: 12px; 
    padding: 20px; 
    text-align: left; 
    text-decoration: none; 
    color: inherit; 
    transition: transform 0.15s, border-color 0.15s; 
}

.matrix-card:hover { 
    transform: translateY(-3px); 
    border-color: #191919; 
}

.matrix-card h4 { 
    font-size: 1rem; 
    margin-bottom: 5px; 
    color: #191919; 
}

.matrix-card p { 
    font-size: 0.8rem; 
    color: #6b6b6b; 
    line-height: 1.4; 
}

/* 底部大矩形廣告位 (300x250 黃金點擊版位) */
.ad-footer-box { 
    background: #ffffff; 
    border: 1px solid #e1dfd5; 
    padding: 25px; 
    border-radius: 16px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-top: 20px; 
}

.ad-box-300 { 
    width: 300px; 
    height: 250px; 
    background: #f1f0e8; 
    border: 1px solid #e1dfd5; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #8c8a80; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
}

/* 頁尾合規標記 */
footer { 
    margin-top: 60px; 
    color: #8c8a80; 
    font-size: 0.8rem; 
    padding-bottom: 20px; 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    border-top: 1px solid #e1dfd5; 
    padding-top: 15px; 
}

footer a { 
    color: #6b6b6b; 
    text-decoration: none; 
    margin-left: 15px; 
}

footer a:hover { 
    color: #191919; 
    text-decoration: underline; 
}
