/* ===== Petoko 商城頁面樣式 - Instagram 風格設計 ===== */
/* 使用全域 CSS 變數，這裡只定義頁面特定樣式 */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-bottom: 90px;
}


/* ===== 店家標題區 ===== */
.merchant-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.merchant-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.merchant-avatar {
    position: relative;
    flex-shrink: 0;
}

.merchant-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 3px solid white;
}

.merchant-details {
    flex: 1;
    min-width: 300px;
}

.merchant-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.merchant-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.merchant-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.merchant-actions {
    display: flex;
    gap: 1rem;
}

.merchant-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.merchant-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== 搜尋與篩選區 ===== */
.search-filter-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box .search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box .search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
}

.search-btn {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.05);
}

.filter-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 25px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: #e9ecef;
    color: #495057;
}

.filter-tag.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ===== 內容區域 ===== */
.content-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== 載入狀態 ===== */
.loading-section {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 1rem;
}

.loading-spinner i {
    font-size: 1.2rem;
}

/* ===== 店家卡片樣式 ===== */
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.merchant-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.merchant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.merchant-image {
    position: relative;
    margin-bottom: 1rem;
    text-align: center;
}

.merchant-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.merchant-card .verified-badge {
    position: absolute;
    bottom: 5px;
    right: calc(50% - 40px + 5px);
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid white;
}

.merchant-info {
    text-align: center;
}

.merchant-card .merchant-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
}

.merchant-card .merchant-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.merchant-card .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.merchant-card .stat-item i {
    font-size: 0.8rem;
}

.merchant-card .merchant-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merchant-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.merchant-tags .tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.merchant-tags .tag.verified {
    background: #d4edda;
    color: #155724;
}

.merchant-tags .tag.featured {
    background: #fff3cd;
    color: #856404;
}

/* ===== 商品卡片增強樣式 ===== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.action-btn.wishlist-btn:hover {
    color: #e74c3c;
}

.action-btn.cart-btn:hover {
    color: #27ae60;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.product-price {
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-sales {
    margin-bottom: 0.75rem;
}

.sales-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-item {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-item.in-stock {
    background: #d4edda;
    color: #155724;
}

.tag-item.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .merchant-header {
        padding: 1.5rem 0;
    }
    
    .merchant-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .merchant-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .merchant-name {
        font-size: 1.8rem;
    }
    
    .merchant-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .merchant-actions {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .merchants-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .merchant-card {
        padding: 1rem;
    }
    
    .merchant-card .merchant-stats {
        gap: 1rem;
    }
}

/* 開發中遮罩 */
.development-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 50%;
}

/* 當遮罩顯示時禁止頁面滾動 */
body.overlay-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.development-content {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.development-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.development-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    letter-spacing: -0.5px;
}

.development-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.development-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    gap: 1rem;
}

.development-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.development-features .feature-item i {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.development-features .feature-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.development-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.development-cta .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
}

.development-cta .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.development-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.development-note {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.development-note i {
    color: var(--info);
}

/* 商城頂部 */
.shop-header {
    background: var(--white);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--bg-secondary);
    box-shadow: 0 1px 3px var(--shadow-light);
    transition: all 0.3s ease;
}

.shop-header.header-scrolled {
    box-shadow: 0 2px 12px var(--shadow-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.shop-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.3px;
}

.shop-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    align-items: center;
}

.notification-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.notification-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    min-width: 12px;
    text-align: center;
    line-height: 1;
}

/* 搜尋區域 */
.search-section {
    margin-top: 0.5rem;
}

.search-box {
    background: var(--white);
    border: 2px solid var(--bg-secondary);
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--shadow-light);
    position: relative;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-box.search-focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-icon {
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.action-btn.cart-bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

/* 搜尋建議 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 6px 28px var(--shadow-light);
    z-index: 1000;
    margin-top: 0.25rem;
    display: none;
    overflow: hidden;
}

.search-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--bg-secondary);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* 主廣告橫幅 */
.main-banner {
    background: transparent; /* 移除背景色，僅顯示圖片輪播 */
    margin: 1rem 0;
    border-radius: 0; /* 避免容器本身的圓角干擾圖片顯示 */
    overflow: visible;
    box-shadow: none; /* 移除陰影，專注呈現圖片 */
    transition: all 0.4s ease;
}

.main-banner.banner-transition {
    transform: scale(1.02);
}

.banner-content {
    padding: 0; /* 去除內距，避免產生背景區塊 */
    background: transparent; /* 確保無背景色 */
    color: inherit;
}

.banner-header {
    text-align: center;
    margin-bottom: 1rem;
}

.banner-badge-main {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.banner-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.banner-image {
    position: relative;
    margin-bottom: 0; /* 移除底部留白，純圖片呈現 */
}

.banner-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.banner-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.banner-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.banner-badge {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.banner-badge span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.banner-dots {
    display: flex;
    gap: 0.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
}

/* 服務保障區 */
.service-guarantee {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 1rem;
    background: var(--white);
    margin: 1rem 0;
    border-radius: 20px;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.guarantee-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.guarantee-item.service-click {
    animation: serviceClick 0.3s ease;
}

@keyframes serviceClick {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.guarantee-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.guarantee-item:hover .guarantee-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.guarantee-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.guarantee-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* 功能入口區 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item.feature-click {
    animation: featureClick 0.3s ease;
}

@keyframes featureClick {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px var(--shadow-light);
}

.feature-icon.premium {
    background: var(--gradient-warm);
}

.feature-icon.brand {
    background: var(--gradient-primary);
}

.feature-icon.discount {
    background: var(--gradient-error);
}

.feature-icon.calendar {
    background: var(--gradient-secondary);
}

.feature-icon.member {
    background: var(--gradient-cool);
}

.new-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6rem;
    padding: 0.2rem 0.3rem;
    border-radius: 8px;
    font-weight: 600;
}

.feature-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

/* 商品分類區 */
.category-section {
    margin-bottom: 2rem;
}

.category-grid {
    padding: 0 1rem;
}

.category-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.category-row:last-child {
    margin-bottom: 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem 0.5rem;
    border-radius: 16px;
    flex: 1;
    max-width: 120px;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.category-item:hover .category-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(255, 107, 107, 0.2);
}

.category-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

/* 商品促銷區 */
.promotion-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.more-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
}

.promo-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px var(--shadow-light);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.main-promo::before {
    background: var(--gradient-primary);
}

.coupon-promo::before {
    background: var(--gradient-error);
}

.brand-promo::before {
    background: var(--gradient-secondary);
}

.activity-promo::before {
    background: var(--gradient-cool);
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.promo-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.promo-tag {
    background: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
}

.promo-highlight {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.brand-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.promo-image {
    text-align: center;
    margin-top: 0.5rem;
}

.promo-image img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.coupon-stack {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.coupon {
    background: var(--accent);
    color: var(--warning-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px dashed var(--warning);
}

.shop-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.shop-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.extra-promo {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1rem;
    transition: all 0.4s ease;
}

.extra-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px var(--shadow-light);
}

.extra-promo .promo-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.extra-promo .promo-text {
    flex: 1;
}

.extra-promo h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.promo-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.coin-icon {
    color: var(--warning);
    font-size: 1.5rem;
}

/* 商品卡片樣式 - 蝦皮風格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0 0.75rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.product-image {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 1;
}

.discount-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error);
    color: var(--white);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 1;
}

.product-info {
    padding: 0.5rem;
}

.product-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-sales {
    margin-bottom: 0.5rem;
}

.sales-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tag-item {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

/* 熱門商品區 */
.hot-products-section {
    margin-bottom: 1.25rem;
}

/* 列表頁樣式 */
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 0.75rem;
}

.merchant-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.merchant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.merchant-card img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.merchant-info {
    flex: 1;
    min-width: 0;
}

.merchant-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.merchant-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.merchant-description {
    font-size: 0.7rem;
    color: var(--text-light);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .merchants-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .merchant-card {
        padding: 0.75rem;
    }
    
    .merchant-card img {
        width: 48px;
        height: 48px;
    }
}

/* 新品推薦區 */
.new-products-section {
    margin-bottom: 2rem;
}

/* 品牌專區 */
.brand-section {
    margin-bottom: 2rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.brand-item {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px var(--shadow-light);
}

.brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-info {
    flex: 1;
    min-width: 0;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.brand-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.brand-tag {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
}

/* 短影音區 */
.video-section {
    background: var(--white);
    margin: 1rem;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    margin-bottom: 2rem;
}

.video-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.video-grid::-webkit-scrollbar {
    display: none;
}

.video-item {
    position: relative;
    min-width: 100px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
}

.video-item img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.video-info {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.views {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
}

.tag {
    background: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 500;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    color: var(--white);
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 限時特價區 */
.flash-sale-section {
    margin-bottom: 2rem;
}

.flash-sale-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.countdown-time {
    background: var(--error);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.flash-sale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.flash-sale-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.flash-sale-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px var(--shadow-light);
}

.sale-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--error);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 1;
}

.flash-sale-item .product-image {
    height: 160px;
}

.flash-sale-item .product-info {
    padding: 1rem;
}

.flash-sale-item .product-name {
    margin-bottom: 0.75rem;
}

.flash-sale-item .product-price {
    margin-bottom: 1rem;
}

.sale-progress {
    margin-top: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    display: block;
}

/* 動畫效果 */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 招商表單模態框 - 完全依照 form.blade.php 設計風格 */
.business-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    /* 完全白色背景，不透明 */
    z-index: 9999;
    /* 提高 z-index 確保在最上層 */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* 確保完全覆蓋下方內容 */
    pointer-events: auto;
    /* 防止任何穿透 */
    isolation: isolate;
}

.business-modal-content {
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* 確保內容層級正確 */
    position: relative;
    z-index: 10000;
    /* 防止事件穿透 */
    pointer-events: auto;
}

/* 全螢幕模態框進入動畫 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模態框內的容器樣式 */
.business-modal-content .business-form-container {
    max-width: 100%;
    margin: 0;
    background: var(--white);
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.business-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    max-height: 90vh;
    overflow-y: auto;
}

/* 模態框標題樣式 - 完全依照 form.blade.php */
.business-form-page-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--bg-secondary);
    z-index: 10001;
    /* 確保標題在最上層 */
    padding: 0.8rem 1rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* 防止事件穿透 */
    pointer-events: auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* 標題區域 */
.title-section {
    flex: 1;
    text-align: center;
}

.business-form-page-header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* 操作提示 */
.action-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.action-hint i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.hint-text {
    opacity: 0.8;
}

/* 標題列間距元素 */
.header-spacer {
    width: 36px;
    flex-shrink: 0;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 表單容器 */
.business-form-wrapper {
    padding: 1.8rem 1rem;
}

/* 內容區塊 */
.content-section {
    margin-bottom: 2.5rem;
}

/* 聯絡資訊輸入區 */
.contact-input {
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* 表單進度提示 */
.form-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-text {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

/* 選填資訊區 */
.optional-section {
    margin-bottom: 2rem;
}

.optional-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.optional-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.optional-section h4 i {
    color: var(--primary);
}

.optional-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

/* 業務描述區 */
.business-description-section {
    margin-bottom: 2rem;
}

.business-description-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.business-description-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-description-section h4 i {
    color: var(--primary);
}

.description-counter {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 表單樣式 - 完全依照 form.blade.php */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.required {
    color: var(--error);
    font-weight: 600;
}

/* 輸入群組樣式 - 參考註冊頁面 */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0 1rem;
}

/* 電話欄位特殊樣式 */
.country-select {
    border: none;
    outline: none;
    padding: 0.75rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 12px 0 0 12px;
    border-right: 1px solid var(--border-light);
    min-width: 90px;
    max-width: 110px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select:focus {
    background: var(--primary-light);
    color: var(--primary);
}

.phone-input {
    border-radius: 0 12px 12px 0;
    border-left: none;
    flex: 1;
    /* 確保在手機上顯示數字鍵盤 */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* 隱藏數字輸入框的上下箭頭 */
.phone-input::-webkit-outer-spin-button,
.phone-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.phone-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.line-input {
    text-transform: lowercase;
    /* 防止中文輸入 */
    ime-mode: disabled;
    -webkit-ime-mode: disabled;
    -moz-ime-mode: disabled;
    -ms-ime-mode: disabled;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}


.form-input,
.form-textarea {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    box-sizing: border-box;
    min-height: 44px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* 欄位提示 */
.field-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.field-hint i {
    color: var(--primary);
    font-size: 0.7rem;
}

/* 表單區塊樣式 - 完全依照 form.blade.php */
.form-section {
    margin-top: 2rem;
}

/* 表單按鈕區域 - 完全依照 form.blade.php */
.bottom-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.bottom-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
    border: none;
}

.bottom-actions .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.bottom-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* 表單驗證錯誤樣式 - 完全依照 form.blade.php */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.form-group.error .error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group.error .error-message::before {
    content: "⚠️";
    font-size: 0.7rem;
}

/* 成功訊息樣式 - 完全依照 form.blade.php */
.success-message {
    background: rgba(51, 207, 102, 0.1);
    border: 1px solid rgba(51, 207, 102, 0.2);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 響應式設計 - 完全依照 form.blade.php */
@media (max-width: 768px) {
    .business-form-page-header {
        padding: 0.5rem 0.75rem;
    }

    .country-select {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }

    .content-section {
        margin-bottom: 2rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .contact-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .contact-details h3 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .business-form-container {
        max-width: 100%;
        margin: 0;
    }

    .business-form-page-header h1 {
        font-size: 1rem;
    }

    .action-hint {
        font-size: 0.65rem;
    }

    .submit-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.6rem 0.3rem;
        font-size: 0.85rem;
    }

    .field-hint {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* 手機版觸控優化 */
@media (hover: none) and (pointer: coarse) {

    .form-input,
    .form-textarea {
        min-height: 44px;
        touch-action: manipulation;
    }

    .bottom-actions .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .back-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 聯繫模態框樣式 - 從 JavaScript 移入 */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: var(--transition-normal);
}

.contact-modal-overlay.show {
    opacity: 1;
}

.contact-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-2xl);
}

.contact-modal-overlay.show .contact-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: var(--border-light);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--text-light);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-xl);
}

.contact-modal .form-group {
    margin-bottom: var(--space-lg);
}

.contact-modal .form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.contact-modal .form-group input,
.contact-modal .form-group select,
.contact-modal .form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: var(--transition-normal);
    background: var(--white);
    color: var(--text-primary);
}

.contact-modal .form-group input:focus,
.contact-modal .form-group select:focus,
.contact-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-xl);
}

/* 聯繫模態框響應式設計 */
@media (max-width: 768px) {
    .contact-modal {
        width: 95%;
        margin: var(--space-md);
    }

    .modal-header,
    .modal-body {
        padding: var(--space-md);
    }

    .form-actions {
        flex-direction: column;
    }
}


.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}