 
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* body {
line-height: 1.6;
color: #4a4a4a;
} */
body  {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    color: #4a4a4a;
    padding: 0px;
    background-color: #ffffff;
    
}

/* Main Container */
.main-container {
max-width: 800px;
margin: 80px auto 2rem;
padding: 2rem;
background: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-title {
font-family: 'Noto Serif TC', serif;
font-size: 2rem;
color: #2d3436;
text-align: center;
margin-bottom: 2rem;
}

.intro-text {
color: #4a5568;
margin: 1rem 0 2rem;
font-size: 1rem;
line-height: 1.6;
text-align: center;
}

/* Upload Area */
.upload-area {
border: 2px dashed #cbd5e0;
border-radius: 8px;
padding: 2rem;
text-align: center;
cursor: pointer;
transition: border-color 0.2s ease;
background-color: #f8fafc;
margin-bottom: 1.5rem;
}

.upload-area:hover {
border-color: #4a5568;
}

.upload-text {
color: #4a5568;
margin: 1rem 0;
font-size: 1rem;
}

.file-info {
font-size: 0.875rem;
color: #718096;
margin-top: 0.5rem;
}

/* Form Elements */
.form-group {
margin-bottom: 1.5rem;
}

.form-group label {
display: block;
font-size: 0.875rem;
font-weight: 500;
color: #4a5568;
margin-bottom: 0.5rem;
}

select {
width: 100%;
padding: 0.75rem;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 1rem;
background-color: white;
}

/* Result Area */
.result {
margin-top: 2rem;
display: none;
}

.result.show {
display: block;
}

textarea {
width: 100%;
min-height: 200px;
padding: 1rem;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 1rem;
line-height: 1.5;
resize: vertical;
}

/* Loading Animation */
.loading {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.8);
z-index: 1001;
justify-content: center;
align-items: center;
}

.loading.show {
display: flex;
}

.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #e17055;
border-radius: 50%;
animation: spin 1s linear infinite;
}
 

.tool-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.tool-info h2 {
    color: #2d3436;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-info h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: #2d3436;
}

.tool-info p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.tool-info ul, .tool-info ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tool-info li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Convert Button */
.conver-button {
width: 100%;
padding: 0.75rem;
background-color: #e17055;
color: white;
border: none;
border-radius: 6px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease;
}

.conver-button:hover {
background-color: #d63031;
}

/* Progress Bar */
.progress {
width: 100%;
height: 4px;
background-color: #e2e8f0;
border-radius: 2px;
overflow: hidden;
margin-top: 1rem;
display: none;
}

.progress.show {
display: block;
}

.progress-bar {
height: 100%;
background-color: #e17055;
width: 0;
transition: width 0.3s ease;
}

/* Navigation */
nav {
height: 60px;
background: rgba(255, 255, 255, 0.98);
padding: 1rem;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}

.nav-links {
display: flex;
justify-content: flex-end;
margin: 0 auto;
width: 100%;
}

.nav-links a {
color: #2d3436;
text-decoration: none;
padding: 0.5rem 1rem;
transition: color 0.3s;
font-weight: 500;
}

.nav-links a:hover {
color: #e17055;
}

.logo-image {
height: 32px;
}

button.menu-toggle {
all: unset;
display: none;
position: absolute ;
left: 1rem ;
background: none;
border: none;
color: #2d3436;
font-size: 1.5rem;
cursor: pointer;
z-index: 1001;
}

/* Nav Dropdown */
.nav-item {
position: relative;
display: inline-flex;
align-items: center;
height: 100%
}

.nav-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
background: white;
min-width: 160px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
border-radius: 4px;
z-index: 1001;
}

.nav-item:hover .nav-dropdown {
display: block;
}

.nav-dropdown a {
display: block;
padding: 0.8rem 1rem;
color: #2d3436;
text-decoration: none;
white-space: nowrap;
}

.nav-dropdown a:hover {
background: #f8f9fa;
color: #e17055;
}

/* Footer */
footer {
background: white;
color: #4a4a4a;
text-align: center;
padding: 2rem;
margin-top: 2rem;
border-top: 1px solid #eee;
}

/* Social Links */
.social-links {
margin-top: 1rem;
display: flex;
justify-content: center;
gap: 1.5rem;
}

.social-links a {
color: #4a4a4a;
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5rem;
transition: color 0.3s ease;
}

.social-links a:hover {
color: #e17055;
}

.social-icon {
width: 24px;
height: 24px;
object-fit: contain;
}

/* Headers */
h2 {
font-size: 1.5rem;
color: #2d3436;
margin-bottom: 1rem;
font-family: 'Noto Serif TC', serif;
}

.related-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: left;
}

.related-content h2, .related-content h3 {
    text-align: left;
    font-weight: 600;
    padding-bottom: 0.8rem; /* 增加底部間距 */
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: 1.75rem !important; /* 增加標題文字大小 */
    color: #1a1a1a;
}

/* 標題下方的裝飾線 */
.related-content h2:after, .related-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%; /* 增加裝飾線寬度 */
    height: 3px; /* 增加裝飾線粗細 */
    background-color: #2563eb;
}

.related-apps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0;
}

.app-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0;
}

.app-item a {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #333;
    width: 100%;
    max-width: 600px;
}

.app-item img {
    width: 35px; /* 稍微增加圖片尺寸 */
    height: 35px;
    border-radius: 50% !important; /* 改為圓形 */
    object-fit: cover;
    justify-self: start;
}

.app-item span {
    font-size: 1.1rem; /* 稍微增加文字大小 */
    line-height: 1.4;
    color: #444;
    text-align: left;
    justify-self: start;
}

.app-item:hover {
    background-color: #f8f9fa;
}

.app-item:hover span {
    color: #2563eb;
}

.related-content p {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
    text-align: left;
    padding: 1rem 0;
}
/* Responsive Design */
@media (max-width: 768px) {
.adsense-container{
    width: 100% !important;
}
.nav-links {
padding: 1rem 0;
}

.nav-item {
display: block;
width: 100%;
height: auto;
}

.nav-item > a {
display: block;
padding: 1rem;
width: 100%;
}

.nav-dropdown {
position: static;
box-shadow: none;
background: #f8f9fa;
display: none;
width: 100%;
}

.nav-item.active .nav-dropdown {
display: block;
}

.nav-dropdown a {
padding: 0.8rem 2rem;
}

.nav-links a {
display: block;
width: 100%;
text-align: left;
}

/* Mobile Navigation */
.logo-image {
height: 50%;
width: auto;
object-fit: contain;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 1000;
}

button.menu-toggle {
display: block;
}

.nav-links {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
left: 0;
background: white;
padding: 1rem;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links.active {
display: flex;
}
}
 