@font-face {
    font-family: 'iconfont';  /* Project id 4915613 */
    src: url('//at.alicdn.com/t/c/font_4915613_21lotjp1p2vh.woff2?t=1748187724151') format('woff2'),
         url('//at.alicdn.com/t/c/font_4915613_21lotjp1p2vh.woff?t=1748187724151') format('woff'),
         url('//at.alicdn.com/t/c/font_4915613_21lotjp1p2vh.ttf?t=1748187724151') format('truetype');
  }
  .iconfont{
      font-family:"iconfont" !important;
      font-size:16px;font-style:normal;
      -webkit-font-smoothing: antialiased;
      -webkit-text-stroke-width: 0.2px;
      -moz-osx-font-smoothing: grayscale;}
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 5px;
  }

  @media (max-width: 768px) {
	body{
		width: 99%;
		overflow-x: hidden;
	}
    .main-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 网站头部导航样式 - 使用更高优先级覆盖Bootstrap */
body .navbar.navbar-expand-lg.navbar-dark.bg-primary {
    background-color: #5ACFC9 !important;
    border-bottom: 2px solid #5ACFC9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body .navbar .navbar-brand {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

body .navbar .navbar-brand:hover {
    color: #f8f9fa !important;
    transform: scale(1.02);
}

body .navbar .navbar-nav .nav-link {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: white !important;
    padding: 0.75rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

body .navbar .navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transform: translateY(-1px);
}

body .navbar .navbar-nav .nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #f8f9fa !important;
    font-weight: 700 !important;
}

/* 登录/注册按钮样式 */
body .navbar .navbar-nav .login-btn {
    background: linear-gradient(135deg, #5ACFC9 0%, #4AB8B2 100%);
    color: white !important;
    border-radius: 20px;
    padding: 0.6rem 1.2rem !important;
    margin-left: 15px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(90, 207, 201, 0.3);
}

body .navbar .navbar-nav .login-btn:hover {
    background: linear-gradient(135deg, #4AB8B2 0%, #3AA7A1 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 207, 201, 0.4);
    text-decoration: none;
}

/* 已登录状态样式 */
body .navbar .navbar-nav .user-status {
    color: white !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    margin-left: 15px;
    background-color: transparent;
    border-radius: 20px;
    border: none;
}

body .navbar .navbar-toggler {
    border: 2px solid black;
    padding: 0.5rem 0.75rem;
}

body .navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body .navbar .navbar-brand {
        font-size: 1.4rem !important;
    }
    
    body .navbar .navbar-nav .nav-link {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    body .navbar .navbar-nav .login-btn {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        width: 100%;
        max-width: 120px;
    }
    
    body .navbar .navbar-nav .user-status {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        width: 100%;
        max-width: 120px;
    }
}

/* 购物车悬浮按钮样式 */
.cart-float-btn {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-float-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.cart-icon {
    background: linear-gradient(135deg, #5ACFC9 0%, #4AB8B2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(90, 207, 201, 0.4);
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* 购物车模态框样式 */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.cart-item-price {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-total {
    font-weight: 600;
    color: #5ACFC9;
    min-width: 80px;
    text-align: right;
}

.cart-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

.cart-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5ACFC9;
}

/* Toast通知样式 */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #5ACFC9;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式购物车按钮 */
@media (max-width: 768px) {
    .cart-float-btn {
        right: 15px;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* 通用页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer h4 {
    color: #5ACFC9;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer i {
    margin-right: 10px;
    color: #5ACFC9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #5ACFC9;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    color: white !important;
}

.social-link:hover {
    background-color: #4AB8B2;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.social-link:hover i {
    color: white !important;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* 页脚响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
        margin-top: 30px;
    }
    
    .footer h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .social-links {
        gap: 10px;
        margin-top: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 0.9rem;
    }
}

/* 从 main.ftl 移动过来的样式 */

/* 購物車懸浮按鈕樣式 */
.cart-float-btn {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-float-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.cart-icon {
    background: linear-gradient(135deg, #5ACFC9 0%, #4AB8B2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(90, 207, 201, 0.3);
    position: relative;
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Toast通知样式 */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #5ACFC9;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 已登錄狀態樣式 */
.user-status {
    background: transparent;
    color: white !important;
    border-radius: 25px;
    padding: 10px 20px !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
}

.user-status:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8f9fa !important;
    transform: translateY(-1px);
}

.user-status i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* 登錄按鈕樣式 */
.login-btn {
    background: linear-gradient(135deg, #5ACFC9 0%, #4AB8B2 100%);
    color: white !important;
    border-radius: 20px;
    padding: 8px 16px !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(90, 207, 201, 0.3);
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #4AB8B2 0%, #3AA7A1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 207, 201, 0.4);
    color: white !important;
}

/* 下拉菜單樣式 */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #5ACFC9;
}

.dropdown-item i {
    color: #6c757d;
}

/* 導航欄品牌文字樣式 */
body .navbar .navbar-brand .brand-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white !important;
    text-decoration: none;
}

.brand-main {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.9;
    white-space: nowrap;
}

/* 導航欄字體樣式 */
body .navbar .navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
    transform: translateY(-1px);
}

body .navbar .navbar-nav .nav-item.active .nav-link {
    color: white !important;
    font-weight: 700;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .brand-text {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-main {
        font-size: 1.2rem;
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .brand-sub {
        display: none;
    }
    
    .cart-float-btn {
        right: 20px;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .user-status,
    .login-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem;
    }
    
    .user-status i {
        font-size: 1rem;
    }
}