/* ---- Dropdown menu ---- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 160px;
    overflow: hidden;
    z-index: 99;
    text-align: center;
}

.dropdown-content a {
    display: flex !important;               /* 使用 flex 對齊 */
    align-items: center !important;         /* 垂直置中 */
    justify-content: center !important;     /* 水平置中 */
    padding: 10px 16px;          /* 用 padding 控制高度，響應式 */
    color: #007bff !important;
    text-decoration: none;
    line-height: 1.4;            /* 保持文字自然高度 */
    white-space: nowrap;
    width: 100%;                 /* 讓 flex 正常填滿 dropdown */
    box-sizing: border-box;
}

.dropdown-content a:hover {
    background: #f5f5f5 !important;
}

/* ---- Hover trigger ---- */
.dropdown:hover .dropdown-content {
    display: block !important;
}

/* ---- Caret: pure CSS pseudo-element ---- */
.dropdown > .dropbtn::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
}

/* Rotate caret when open */
.dropdown:hover > .dropbtn::after {
    transform: rotate(180deg);
}

/* --- FIX Microsoft Store button truncation --- */
.gradient-button {
    position: relative;
    z-index: 3;
}

#account-menu a:hover {
    color: #007bff !important;
}

/* main banner */
.main-banner .left-content {
  padding-bottom: 20px;
}

.main-banner .right-image img {
  max-height: 350px;
  width: auto;
}

.main-banner + .services {
  padding-top: 0;
}

#features {
  padding-top: 20px;
}

.main-banner p {
  margin-bottom: 20px;
}

.main-banner h1,
.main-banner h2 {
  margin-bottom: 15px;
}

/* Footer 付款方式區塊：共用 */
.footer-widget .payment-methods {
    margin: 15px 0;
}

.payment-logo-container {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    display: inline-block;
    max-width: 80%;
}

.payment-logo-container img {
    width: 100%;
    height: auto;
    max-width: 220px;
}