/* ============================================================
   BlueICQ Front CSS — Bootstrap 4 base
   ============================================================ */

:root {
    --f-navy-dark: #0f2340;
    --f-navy:      #1e3a5f;
    --f-blue:      #2563eb;
    --f-blue-lt:   #3b82f6;
    --f-green:     #16a34a;
    --f-green-lt:  #22c55e;
    --f-gray-bg:   #f8fafc;
    --f-gray-bd:   #e2e8f0;
    --f-text:      #1e293b;
    --f-text-mute: #64748b;
    --f-white:     #ffffff;
    --f-radius:    8px;
    --f-shadow:    0 2px 12px rgba(0,0,0,.08);
    --f-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--f-text);
    background: var(--f-white);
    padding-top: 64px; /* navbar height */
}
a { color: var(--f-blue); text-decoration: none; }
a:hover { color: var(--f-blue-lt); text-decoration: underline; }
img { max-width: 100%; }

/* ── Navbar ── */
.f-navbar {
    background: var(--f-navy-dark);
    height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.f-navbar .navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--f-white) !important;
    letter-spacing: .02em;
}
.f-navbar .navbar-brand span {
    color: var(--f-blue-lt);
}
.f-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-size: .93rem;
    padding: .5rem .9rem !important;
    transition: color .2s;
}
.f-navbar .nav-link:hover,
.f-navbar .nav-link.active {
    color: var(--f-white) !important;
}
.f-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.3);
}
.f-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Cart badge in nav */
.cart-nav-link { position: relative; }
.cart-nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 99px;
    display: none;
}
.cart-nav-badge.visible { display: inline-block; }

/* Dropdown */
.f-navbar .dropdown-menu {
    background: var(--f-navy);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--f-radius);
    margin-top: 4px;
    min-width: 200px;
}
.f-navbar .dropdown-item {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    padding: .5rem 1rem;
}
.f-navbar .dropdown-item:hover {
    background: rgba(255,255,255,.1);
    color: var(--f-white);
}

/* ── Hero ── */
.f-hero {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1.6px) 0 0 / 24px 24px,
        radial-gradient(40% 55% at 88% 8%, rgba(96,165,250,.20), transparent 70%),
        radial-gradient(45% 55% at 8% 96%, rgba(96,165,250,.12), transparent 70%),
        linear-gradient(135deg, var(--f-navy-dark) 0%, var(--f-navy) 100%);
    color: var(--f-white);
    padding: 90px 0 80px;
    text-align: center;
}
.f-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.f-hero h1 span { color: var(--f-blue-lt); }
.f-hero .lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.f-hero .badge-audience {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: .8rem;
    padding: .3rem .8rem;
    border-radius: 99px;
    margin-bottom: 1.2rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ── Section ── */
.f-section {
    padding: 70px 0;
}
.f-section-alt {
    background: var(--f-gray-bg);
    padding: 70px 0;
}
.f-section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--f-navy-dark);
    margin-bottom: .5rem;
}
.f-section-sub {
    color: var(--f-text-mute);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ── Product cards on homepage ── */
.f-product-card {
    background: var(--f-white);
    border: 1px solid var(--f-gray-bd);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    height: 100%;
}
.f-product-card:hover {
    box-shadow: var(--f-shadow-lg);
    transform: translateY(-3px);
}
.f-product-card-head {
    padding: 28px 28px 20px;
}
.f-product-card-head.blue { border-left: 4px solid var(--f-blue); }
.f-product-card-head.green { border-left: 4px solid var(--f-green); }
.f-product-card-icon {
    font-size: 2.2rem;
    margin-bottom: .6rem;
}
.f-product-card-icon.blue { color: var(--f-blue); }
.f-product-card-icon.green { color: var(--f-green); }
.f-product-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--f-navy-dark);
}
.audience-tag {
    display: inline-block;
    font-size: .73rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .8rem;
}
.audience-tag.blue-tag { background: #dbeafe; color: #1d4ed8; }
.audience-tag.green-tag { background: #dcfce7; color: #15803d; }
.f-product-card p {
    font-size: .9rem;
    color: var(--f-text-mute);
    line-height: 1.6;
    margin-bottom: 0;
}
.f-product-card-foot {
    padding: 20px 28px;
    border-top: 1px solid var(--f-gray-bd);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.f-product-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--f-navy-dark);
}
.f-product-card-price small {
    font-size: .8rem;
    font-weight: 400;
    color: var(--f-text-mute);
}

/* ── Buttons ── */
.btn-f-blue {
    background: var(--f-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .55rem 1.4rem;
    font-weight: 600;
    font-size: .93rem;
    transition: background .2s;
}
.btn-f-blue:hover { background: var(--f-blue-lt); color: #fff; text-decoration: none; }
.btn-f-green {
    background: var(--f-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .55rem 1.4rem;
    font-weight: 600;
    font-size: .93rem;
    transition: background .2s;
}
.btn-f-green:hover { background: var(--f-green-lt); color: #fff; text-decoration: none; }
.btn-f-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.6);
    color: #fff;
    border-radius: 6px;
    padding: .5rem 1.4rem;
    font-weight: 600;
    font-size: .93rem;
    transition: all .2s;
}
.btn-f-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}
.btn-f-navy {
    background: var(--f-navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .55rem 1.4rem;
    font-weight: 600;
    font-size: .93rem;
    transition: background .2s;
}
.btn-f-navy:hover { background: var(--f-navy-dark); color: #fff; text-decoration: none; }

/* ── Feature list ── */
.f-feature-list { list-style: none; padding: 0; margin: 0; }
.f-feature-list li {
    padding: .45rem 0;
    font-size: .93rem;
    color: var(--f-text);
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
.f-feature-list li i {
    margin-top: 2px;
    flex-shrink: 0;
}
.f-feature-list li i.blue { color: var(--f-blue); }
.f-feature-list li i.green { color: var(--f-green); }

/* ── Stats ── */
.f-stats {
    background: var(--f-navy-dark);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.f-stats .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--f-blue-lt);
}
.f-stats .stat-label {
    font-size: .87rem;
    color: rgba(255,255,255,.7);
    margin-top: .2rem;
}

/* ── Shop / Product listing ── */
.f-shop-header {
    background: var(--f-navy-dark);
    color: #fff;
    padding: 50px 0 40px;
}
.f-shop-header h1 { font-size: 2rem; font-weight: 700; }
.f-shop-header p { color: rgba(255,255,255,.75); font-size: 1rem; }

.f-plan-card {
    background: var(--f-white);
    border: 2px solid var(--f-gray-bd);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.f-plan-card:hover {
    box-shadow: var(--f-shadow-lg);
    border-color: var(--f-blue);
}
.f-plan-card.featured {
    border-color: var(--f-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.f-plan-card.freight-plan:hover { border-color: var(--f-green); }
.f-plan-card.freight-plan.featured {
    border-color: var(--f-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.f-plan-head {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--f-gray-bd);
}
.f-plan-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .6rem;
}
.f-plan-badge.blue { background: #dbeafe; color: #1d4ed8; }
.f-plan-badge.green { background: #dcfce7; color: #15803d; }
.f-plan-badge.hot { background: #fef9c3; color: #854d0e; }
.f-plan-name { font-size: 1.1rem; font-weight: 700; color: var(--f-navy-dark); margin-bottom: .2rem; }
.f-plan-price { font-size: 2rem; font-weight: 800; color: var(--f-navy-dark); }
.f-plan-price span { font-size: .85rem; font-weight: 400; color: var(--f-text-mute); }
.f-plan-body { padding: 20px 24px; flex: 1; }
.f-plan-foot { padding: 16px 24px 20px; }
.f-plan-foot .btn { width: 100%; }

/* Add-to-cart feedback */
.btn-add-cart {
    position: relative;
    overflow: hidden;
}
.btn-add-cart .btn-text { transition: opacity .2s; }
.btn-add-cart.loading .btn-text { opacity: 0; }
.btn-add-cart .spinner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
.btn-add-cart.loading .spinner { display: block; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── Cart page ── */
.f-cart-header {
    background: var(--f-navy-dark);
    color: #fff;
    padding: 40px 0 30px;
}
.f-cart-header h1 { font-size: 1.8rem; font-weight: 700; }

.f-cart-table { width: 100%; border-collapse: collapse; }
.f-cart-table th {
    background: var(--f-gray-bg);
    border-bottom: 2px solid var(--f-gray-bd);
    padding: .75rem 1rem;
    font-size: .85rem;
    color: var(--f-text-mute);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}
.f-cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--f-gray-bd);
    vertical-align: middle;
}
.f-cart-product-name { font-weight: 600; color: var(--f-navy-dark); }
.f-cart-product-meta { font-size: .82rem; color: var(--f-text-mute); }
.f-cart-price { font-weight: 700; color: var(--f-navy-dark); font-size: 1.05rem; }
.btn-remove-cart {
    background: none;
    border: none;
    color: var(--f-text-mute);
    cursor: pointer;
    padding: .25rem .5rem;
    border-radius: 4px;
    transition: color .2s, background .2s;
}
.btn-remove-cart:hover { color: #ef4444; background: #fee2e2; }

.f-cart-summary {
    background: var(--f-gray-bg);
    border: 1px solid var(--f-gray-bd);
    border-radius: 12px;
    padding: 24px;
}
.f-cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: .45rem 0;
    font-size: .93rem;
    color: var(--f-text);
}
.f-cart-summary-row.total {
    border-top: 2px solid var(--f-gray-bd);
    margin-top: .5rem;
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--f-navy-dark);
}
.f-cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--f-text-mute);
}
.f-cart-empty i { font-size: 3.5rem; color: var(--f-gray-bd); margin-bottom: 1rem; }

/* ── Checkout ── */
.f-checkout-header {
    background: var(--f-navy-dark);
    color: #fff;
    padding: 40px 0 30px;
}
.f-checkout-header h1 { font-size: 1.8rem; font-weight: 700; }

.f-form-card {
    background: var(--f-white);
    border: 1px solid var(--f-gray-bd);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 1.5rem;
}
.f-form-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--f-navy-dark);
    margin-bottom: 1.2rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--f-gray-bd);
}

.pay-method-list { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-method-opt { display: none; }
.pay-method-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.1rem;
    border: 2px solid var(--f-gray-bd);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    color: var(--f-text);
    transition: border-color .2s, background .2s;
    user-select: none;
}
.pay-method-opt:checked + .pay-method-label {
    border-color: var(--f-blue);
    background: #eff6ff;
    color: var(--f-blue);
}
.pay-method-label i { font-size: 1.2rem; }

/* ── Complete / success page ── */
.f-success-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--f-gray-bg);
}
.f-success-card {
    background: var(--f-white);
    border-radius: 16px;
    padding: 52px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--f-shadow-lg);
}
.f-success-icon {
    font-size: 3.5rem;
    color: var(--f-green);
    margin-bottom: 1rem;
}
.f-success-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--f-navy-dark);
    margin-bottom: .5rem;
}
.f-success-card p { color: var(--f-text-mute); font-size: .95rem; }

/* ── Contact page ── */
.f-contact-header {
    background: linear-gradient(135deg, var(--f-navy-dark), var(--f-navy));
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}
.f-contact-header h1 { font-size: 2rem; font-weight: 700; }
.f-contact-header p { color: rgba(255,255,255,.75); }

.f-contact-card {
    background: var(--f-white);
    border: 1px solid var(--f-gray-bd);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    height: 100%;
    transition: box-shadow .25s;
}
.f-contact-card:hover { box-shadow: var(--f-shadow-lg); }
.f-contact-card i {
    font-size: 2.5rem;
    color: var(--f-blue);
    margin-bottom: .9rem;
}
/* 按钮内的图标不应套用上面的大号卡片图标样式 */
.f-contact-card .btn i {
    font-size: inherit;
    color: inherit;
    margin-bottom: 0;
}
.f-contact-card h5 {
    font-weight: 700;
    color: var(--f-navy-dark);
    margin-bottom: .4rem;
}
.f-contact-card p {
    font-size: .9rem;
    color: var(--f-text-mute);
    margin-bottom: .3rem;
}
.f-contact-card .contact-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--f-navy-dark);
}

/* ── Software page hero ── */
.f-sw-hero {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1.6px) 0 0 / 24px 24px,
        radial-gradient(40% 55% at 88% 8%, rgba(96,165,250,.20), transparent 70%),
        radial-gradient(45% 55% at 8% 96%, rgba(96,165,250,.12), transparent 70%),
        linear-gradient(135deg, var(--f-navy-dark) 0%, #1a3a70 100%);
    color: #fff;
    padding: 80px 0 70px;
}
.f-sw-hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; }
.f-sw-hero h1 span { color: var(--f-blue-lt); }
.f-sw-hero .lead { color: rgba(255,255,255,.8); font-size: 1.1rem; }

/* Freight page hero */
.f-fr-hero {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1.6px) 0 0 / 24px 24px,
        radial-gradient(40% 55% at 88% 8%, rgba(74,222,128,.18), transparent 70%),
        radial-gradient(45% 55% at 8% 96%, rgba(74,222,128,.10), transparent 70%),
        linear-gradient(135deg, #052e16 0%, #14532d 100%);
    color: #fff;
    padding: 80px 0 70px;
}
.f-fr-hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; }
.f-fr-hero h1 span { color: var(--f-green-lt); }
.f-fr-hero .lead { color: rgba(255,255,255,.8); font-size: 1.1rem; }

/* ── Footer ── */
.f-footer {
    background: var(--f-navy-dark);
    color: rgba(255,255,255,.7);
    padding: 50px 0 30px;
}
.f-footer h6 {
    color: var(--f-white);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.f-footer ul { list-style: none; padding: 0; margin: 0; }
.f-footer ul li { margin-bottom: .45rem; }
.f-footer ul li a {
    color: rgba(255,255,255,.6);
    font-size: .87rem;
    text-decoration: none;
    transition: color .2s;
}
.f-footer ul li a:hover { color: var(--f-white); }
.f-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.f-footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .7rem;
}
.f-footer-brand span { color: var(--f-blue-lt); }

/* ── Toast notification ── */
#f-toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.f-toast {
    background: var(--f-navy-dark);
    color: #fff;
    padding: .75rem 1.2rem;
    border-radius: 8px;
    font-size: .9rem;
    box-shadow: var(--f-shadow-lg);
    display: flex;
    align-items: center;
    gap: .6rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    min-width: 220px;
}
.f-toast.show { opacity: 1; transform: translateY(0); }
.f-toast i { font-size: 1.1rem; }
.f-toast.success i { color: var(--f-green-lt); }
.f-toast.error i { color: #f87171; }

/* ── Utilities ── */
.text-blue { color: var(--f-blue) !important; }
.text-green { color: var(--f-green) !important; }
.text-navy { color: var(--f-navy-dark) !important; }
.bg-f-navy { background: var(--f-navy-dark) !important; }
.divider { border: none; border-top: 1px solid var(--f-gray-bd); margin: 2rem 0; }

/* ── Responsive ── */
@media (max-width: 767px) {
    body { padding-top: 56px; }
    .f-hero { padding: 60px 0 50px; }
    .f-hero h1 { font-size: 1.8rem; }
    .f-section, .f-section-alt { padding: 50px 0; }
    .f-section-title { font-size: 1.5rem; }
    .f-stats .stat-num { font-size: 1.8rem; }
    .f-success-card { padding: 36px 20px; }
    .f-footer-bottom { flex-direction: column; text-align: center; }
}
