/* --- 基礎設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", Arial, sans-serif;
}

body {
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

/* --- 導航欄：透明浮層，固定在頂部 --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* logo + nav 靠左群組 */
.logo-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.header-btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}



/* 第一個按鈕（夜間模式） */
.icon-btn:nth-child(2),
.icon-btn-green {
    background: #68b1c4;
    border-color: #68b1c4;
    color: #111;
    font-weight: bold;
}

.icon-btn:nth-child(2):hover,
.icon-btn-green:hover {
    background: #68b1c4;
}

/* 登入按鈕 */
.login-btn {
    background: transparent !important;
    border-color: rgba(255,255,255,0.5) !important;
    color: #fff !important;
    font-weight: normal !important;
}

/* 登入視窗 */
/* 彈窗背景遮罩 */
.modal-overlay {
  display: none; /* 預設隱藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px); /* 毛玻璃效果 */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* 彈窗內容盒 */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-out;
}

/* 關閉按鈕 */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

/* 按鈕清單容器 */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* 通用按鈕樣式 */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.auth-btn img {
  width: 20px;
  margin-right: 10px;
}

.auth-btn:hover {
  background: #f8f8f8;
}

/* 特定按鈕顏色 */
.user-btn { background: #333; color: white; border: none; }
.user-btn:hover { background: #000; }

.register-btn { color: #007bff; border-color: #007bff; }
.register-btn:hover { background: #f0f7ff; }

/* 分隔線 */
.divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #eee;
  overflow: visible;
  text-align: center;
}
.divider::after {
  content: "或";
  background: white;
  padding: 0 10px;
  position: relative;
  top: -12px;
  color: #999;
  font-size: 14px;
}

/* 出現動畫 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 第二階段登入樣式 */
.back-link {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  position: absolute;
  top: 30px;
  left: 20px;
}

.login-form {
  margin-top: 20px;
  text-align: left;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box; /* 確保寬度包含 padding */
}

/* 發送按鈕 */
.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #0056b3;
}

/* --- Hero Section：全螢幕暗色背景 --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;

    /* 模擬圖一的暗色人物背景 */
    background: linear-gradient(
        to bottom right,
        rgba(20, 20, 20, 0.85),
        rgba(50, 50, 60, 0.7)
    ), linear-gradient(135deg, #2c2c3e 0%, #1a1a2e 50%, #16213e 100%);
    background-size: cover;
    background-position: center;
}


.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                      url('../images/background.png');
    background-size: cover;
    background-position: center;
}
*/

.hero h3 {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

/* 圖一標題中的強調色文字 */
.hero h1 span {
    color: #68b1c4;
}

.hero p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* CTA 按鈕：「立即使用」 */
.cta-btn {
    background: #68b1c4;
    color: #111;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
    background: #68b1c4;
    transform: translateY(-2px);
}


/* --- Main 內容區 --- */
main {
    background: #ffffff;
    color: #111;
    padding: 60px 5%;
}

/* --- 大型連結按鈕區域 --- */
.feature-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.big-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    min-height: 160px;
    background: #CCE9F3;
    border: none;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
}

.big-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.btn-icon img,
img.btn-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.btn-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    display: block;
}

.btn-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    display: block;
}

/* --- 評價區 --- */
.testimonial-container {
    text-align: center;
    min-height: 80px;
    padding: 20px 0;
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    background: #f0f8fb;
    padding: 36px 5% 24px;
    text-align: center;
    border-top: 1px solid #d6eef5;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-top a {
    color: #68b1c4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-top a:hover {
    color: #2350A2;
}

.footer-divider {
    color: #68b1c4;
    font-size: 0.85rem;
}

.footer-email {
    font-size: 0.85rem;
    color: #68b1c4;
    margin-bottom: 6px;
}

.footer-copy {
    font-size: 0.8rem;
    color: #68b1c4;
}

/* --- 漢堡按鈕（手機版才顯示） --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
}

/* --- 手機版全螢幕選單 --- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.mobile-menu.open {
    display: flex;
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #111;
    cursor: pointer;
    font-weight: 500;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 22px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav a:first-child {
    border-top: 1px solid #e0e0e0;
}

.mobile-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    width: 70%;
}

.mobile-btns .icon-btn {
    width: 100%;
    padding: 12px 0;
    border-radius: 30px;
    font-size: 1rem;
    border: 1.5px solid #111;
    color: #111;
    background: transparent;
}

.mobile-login-btn {
    background: #111 !important;
    color: #fff !important;
}

/* --- 響應式 --- */
@media (max-width: 768px) {
    .nav-links,
    .header-btns {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    header {
        background: rgba(0,0,0,0.3);
        padding: 16px 5%;
    }

    .feature-links {
        flex-direction: column;
        align-items: center;
    }

    .big-btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero h3 {
        font-size: 0.9rem;
    }
}
