.text-block {
    margin: 40px auto;
    padding: 30px 40px;
    max-width: 1200px;
    line-height: 1.8;
    letter-spacing: 0.8px;
    font-size: 16px;
    color: #333;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #ddebec;
}

.text-block h2, .text-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.text-block h2 {
    font-size: 24px;
    border-bottom: 2px solid #ddebec;
    padding-bottom: 10px;
}

.text-block h3 {
    font-size: 20px;
    margin-top: 30px;
}

.text-block p {
    margin-bottom: 16px;
    text-align: justify;
}

.text-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .text-block, .text-block-gradient {
        margin: 20px 15px;
        padding: 20px 25px;
        font-size: 14px;
        line-height: 1.7;
        letter-spacing: 0.5px;
    }
    
    .text-block h2 {
        font-size: 20px;
    }
    
    .text-block h3 {
        font-size: 18px;
    }
}

/* 浮動條樣式 */
.float-bar-wrap {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 999;
    padding-top: 20px; 
}

.float-bar-wrap.sticky {
    position: fixed;
    top: 80px; 
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
    padding-top: 0; /* 固定時取消上方內邊距 */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.fake-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #ddebec 100%);
    color: white;
}

.fake-bar p {
    margin: 0;
    font-weight: bold;
}

.input {
    background: rgba(255,255,255,0.2);
    padding: 5px;
    border-radius: 5px;
    min-width: 200px;
}

.input input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 14px;
    outline: none;
}

.input input::placeholder {
    color: #666;
}

.send {
    background: #ff6b6b;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.send p {
    font-size: 14px;
    font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .fake-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .input {
        min-width: 250px;
    }
}

.navbar .nav-link {
    font-weight: 600;          
    letter-spacing: 0.05em;    /* 增加字距 */
    transition: all 0.3s ease; /* 平滑效果 */
    padding: 0.5rem 1.2rem;    /* 左右間距加大 */
}

.navbar .nav-link:hover {
    color: gray;           
}

.navbar {
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px darkgray; /* 灰色陰影 */
}

img { 
    height: auto; 
    width: 100%; 
    display: block;
}


.full-width-img {
  margin: 0;
  padding: 0;
}
.full-width-img img {
  display: block;   /* 去掉 inline-block 留白 */
  width: 100%;      /* 滿版 */
  height: auto;     /* 保持比例 */
}


* {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

div {
    background-color: #FDF9F0;
}

.floatButton {
    position: fixed;
    bottom: 4%;
    width: 8%;
    border: 0;
    border-radius: 6px;
    left: 1%;
}

body {
    position: relative;
}

input[type=text], select {
    background-color: white;
    color: #4E5D5D;
    font-size: 16px;
    padding: 6px 28px;
    border: 0.5;
    border-radius: 6px;
}

input[type=submit] {
    background-color: #fdf9f0;
    color: #4E5D5D;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 35px;
    border: 1;
    border-color: #fdf9f0;
    border-radius: 6px;
    cursor: default;
}

.title {
    text-align: center;
    margin: 15px auto 10px auto;
    padding: 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1.2px;
    line-height: 1.4;
    position: relative;
}

.text-block {
    margin: 40px auto;
    padding: 30px 40px;
    max-width: 1200px;
    line-height: 1.8;
    letter-spacing: 0.8px;
    font-size: 16px;
    color: #333;
    background: #fdf9f0;  
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #fdf9f0;
}


.title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #fdf9f0 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .title {
        font-size: 24px;
        margin: 15px auto 10px auto;
        padding: 15px 0;
        letter-spacing: 0.8px;
    }
    
    .title::after {
        width: 40px;
        height: 2px;
        margin: 12px auto 0;
    }
}
