* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif; background-color: #ffffff; color: #333333; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; cursor: pointer; transition: 0.3s; }

/* Header & Navbar */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 6%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: all 0.3s ease; }
#cis a { display: block; width: 220px; height: 45px; background-size: contain; background-repeat: no-repeat; background-position: center left; }
#cis img { height: 100%; opacity: 0; }

#main-menu .pc { display: flex; gap: 45px; list-style: none; }
#main-menu .pc > li { position: relative; padding: 10px 0; }
#main-menu .pc > li > a { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: #555555; transition: color 0.3s ease; text-transform: uppercase; }
#main-menu .pc > li:hover > a { color: #754dda; }

/* Subnav 下拉樣式 */
.subnav { position: absolute; top: 100%; left: 0; background: #ffffff; min-width: 200px; padding: 15px 0; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); border: 1px solid rgba(0,0,0,0.05); list-style: none; z-index: 100; }
#main-menu .pc > li:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li a { display: block; padding: 10px 25px; font-size: 14px; color: #666; transition: all 0.3s ease; }
.subnav li a:hover { background: rgba(117, 77, 218, 0.05); color: #754dda; padding-left: 30px; }

/* 漢堡按鈕 */
.menu-toggle { display: none; font-size: 24px; color: #333; cursor: pointer; transition: color 0.3s ease; z-index: 101; }
.menu-toggle:hover { color: #754dda; }

/* Footer Styling (淺灰色大氣空間感) */
.site-footer { background-color: #f8f9fa; color: #333333; padding: 120px 6% 60px; position: relative; overflow: hidden; border-top: 1px solid rgba(0,0,0,0.05); }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, #754dda, #5a39a8); }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 80px; margin-bottom: 80px; }
.footer-col-about .footer-logo { font-size: 32px; font-weight: 900; background: linear-gradient(135deg, #111111 0%, #666666 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 2px; margin-bottom: 25px; display: inline-block; }
.footer-desc { color: #666666; line-height: 2; font-size: 15px; margin-bottom: 35px; max-width: 400px; }
.social-links { display: flex; gap: 15px; }
.social-link { display: flex; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ffffff; color: #555555; font-size: 18px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.social-link:hover { background: #754dda; color: #ffffff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(117, 77, 218, 0.2); }
.footer-title { font-size: 16px; font-weight: 800; margin-bottom: 30px; letter-spacing: 2px; color: #111111; position: relative; padding-bottom: 12px; display: inline-block; text-transform: uppercase; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #754dda; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 18px; }
.footer-links a { color: #666666; text-decoration: none; font-size: 15px; transition: color 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #754dda; }
.footer-links a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: #cccccc; transition: color 0.3s ease, transform 0.3s ease; }
.footer-links a:hover::before { color: #754dda; transform: translateX(3px); }
.footer-contact-info p { color: #666666; font-size: 15px; line-height: 2; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; }
.footer-contact-info i { color: #754dda; margin-top: 5px; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; color: #888888; font-size: 14px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: #754dda; }

/* 懸浮按鈕 */
.floating-actions { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.floating-btn { display: flex; justify-content: center; align-items: center; width: 55px; height: 55px; border-radius: 50%; font-size: 24px; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 5px 20px rgba(0,0,0,0.15); position: relative; background: #fff; }
.floating-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.floating-btn.btn-line { background-color: #00B900; color: #fff; }
.floating-btn.btn-phone { background-color: #754dda; color: #fff; }
.floating-btn.btn-top { color: #333; font-size: 20px; border: 1px solid rgba(0,0,0,0.05); opacity: 0; visibility: hidden; transform: translateY(20px); }
.floating-btn.btn-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-btn::before { content: attr(data-tooltip); position: absolute; right: 100%; top: 50%; transform: translateY(-50%) translateX(-10px); background: rgba(0,0,0,0.8); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; }
.floating-btn:hover::before { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(-5px); }

/* Global Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* RWD 導航修正 */
@media (max-width: 1160px) {
  .menu-toggle { display: block; }
  #main-menu { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; border-bottom: 1px solid rgba(0,0,0,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.05); display: none; z-index: 100; padding: 10px 0; }
  #main-menu.active { display: block; }
  #main-menu .pc { flex-direction: column; gap: 0; width: 100%; }
  #main-menu .pc > li { width: 100%; text-align: left; padding: 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
  #main-menu .pc > li > a { display: block; padding: 18px 6%; font-size: 16px; width: 100%; }
  .subnav { position: static; box-shadow: none; border: none; width: 100%; transform: none; display: none; opacity: 1; visibility: visible; background: #f9f9f9; border-radius: 0; padding: 10px 0; }
  #main-menu .pc > li:hover .subnav { display: block; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 50px; }
}

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .floating-actions { right: 20px; bottom: 20px; gap: 10px; }
  .floating-btn { width: 45px; height: 45px; font-size: 20px; }
  .floating-btn::before { display: none; }
}
