/* PortsPURE HK Home - Bootstrap overrides */
:root {
    --pp-green: #23a569;
    --pp-black: #000;
}

body.hk-home {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: var(--pp-black);
    padding-top: 0;
}

/* ========== Header (centered logo + nav) ========== */
.hk-header {
    background: #fff;
    position: relative;
    z-index: 100;
}

.hk-header-inner {
    padding: 28px 0 18px;
    position: relative;
}

.hk-logo {
    margin-bottom: 18px;
}

.hk-logo img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

@media (min-width: 992px) {
    .hk-logo img {
        max-width: 331px;
    }
}

.hk-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.hk-nav-menu > .list-inline-item {
    margin: 0 28px;
    padding: 0;
}

.hk-nav-menu a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pp-black);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.hk-nav-menu a:hover {
    color: var(--pp-black);
    text-decoration: none;
}

.hk-nav-menu a:not(.dropdown-item)::after {
    content: "";
    width: 0;
    height: 1px;
    background: var(--pp-green);
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.hk-nav-menu a:not(.dropdown-item):hover::after {
    width: 100%;
}

.hk-nav-lang {
    margin-left: 4px !important;
    margin-right: 0 !important;
}

.hk-lang-toggle {
    padding: 0;
    border: none;
    background: transparent;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

.hk-lang-toggle svg {
    display: block;
}

.hk-lang-toggle::after {
    display: none;
}

.hk-lang-toggle:hover::after {
    display: none;
}

/* Mobile menu */
.hk-mobile-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .hk-header-inner {
        padding-left: 44px;
        padding-right: 44px;
    }
}

.hk-mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--pp-black);
    width: 100%;
}

.hk-nav-mobile {
    padding: 16px 0 24px;
    border-top: 1px solid #eee;
}

.hk-nav-mobile li {
    margin-bottom: 20px;
}

.hk-nav-mobile a {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pp-black);
    text-decoration: none;
}

.hk-nav-mobile a:hover {
    color: var(--pp-green);
}

/* ========== Buttons ========== */
.hk-home .btn-pp {
    background: var(--pp-green);
    border-color: var(--pp-green);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 0;
}

.hk-home .btn-pp:hover {
    background: #1c8454;
    border-color: #1c8454;
    color: #fff;
}

.hk-home .btn-outline-pp {
    border: 1px solid var(--pp-black);
    color: var(--pp-black);
    background: transparent;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 0;
}

.hk-home .btn-outline-pp:hover {
    background: var(--pp-black);
    color: #fff;
}

/* ========== Hero ========== */
.hk-hero {
    position: relative;
    min-height: 420px;
    background: #f5f5f5;
    overflow: hidden;
}

.hk-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

@media (min-width: 768px) {
    .hk-hero {
        min-height: 520px;
    }
}

.hk-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hk-hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 520px;
    z-index: 2;
}

.hk-hero-caption h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

/* ========== Sections ========== */
.hk-section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hk-section-lead {
    color: #555;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hk-tagline-icon {
    max-width: 48px;
    margin-bottom: 1rem;
}

.hk-img-rounded {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

/* ========== Image gallery (aligned in container) ========== */
.hk-gallery-wrap {
    width: 100%;
    overflow: hidden;
}

.hk-gallery-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
    gap: 16px;
}

/* Desktop: 5 cols fit inside container */
@media (min-width: 992px) {
    .hk-gallery-row {
        justify-content: flex-start;
    }

    .hk-gallery-col {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 0;
        display: flex;
    }
}

/* Tablet/mobile: scroll inside container, no page overflow */
@media (max-width: 991.98px) {
    .hk-gallery-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }

    .hk-gallery-row {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
    }

    .hk-gallery-col {
        flex: 0 0 auto;
        width: 42vw;
        max-width: 200px;
        scroll-snap-align: start;
        display: flex;
    }
}

.hk-gallery-col a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Collections: uniform width & height */
.hk-collections-gallery .hk-gallery-col a {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 20px;
    flex: 1;
}

.hk-collections-gallery .hk-gallery-col img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
    display: block;
}

.hk-collections-gallery .hk-gallery-col a:hover img {
    opacity: 0.92;
}

/* Legacy fallback (collections only) */
.hk-collections-gallery.hk-gallery-wrap .hk-gallery-col > a:not(.hk-seen-link) img,
.hk-gallery-wrap:not(.hk-seen-wrap) .hk-gallery-col img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* As Seen On：统一 3:4 外框，视觉高度一致 */
.hk-seen-wrap .hk-gallery-col {
    display: flex;
    align-items: stretch;
}

.hk-seen-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.hk-seen-img-wrap {
    display: block;
    padding: 0 5px;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

/* 不支持 aspect-ratio 时用 padding 兜底 */
@supports not (aspect-ratio: 3 / 4) {
    .hk-seen-img-wrap {
        height: 0;
        padding-bottom: 133.333%;
    }
}

.hk-seen-wrap img.hk-seen-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 8px;
    background: transparent;
}

.hk-seen-link:hover .hk-seen-img {
    opacity: 0.92;
}

.hk-seen-name {
    display: block;
    margin-top: 0.75rem;
    font-size: 13px;
    line-height: 1.35;
    min-height: 2.6em;
    color: var(--pp-black);
}

.hk-seen-link:hover .hk-seen-name {
    color: var(--pp-green);
}

@media (min-width: 992px) {
    .hk-seen-row .hk-gallery-col {
        flex: 1 1 0;
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .hk-seen-row .hk-gallery-col {
        width: 38vw;
        max-width: 180px;
    }
}

/* ========== Footer ========== */
.hk-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 2.5rem 0 1.5rem;
}

.hk-footer a {
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hk-footer a:hover {
    color: var(--pp-green);
}

.hk-footer .hk-social img {
    height: 22px;
    width: auto;
    opacity: 0.85;
}

.hk-footer .hk-social a:hover img {
    opacity: 1;
}

/* Prevent horizontal page scroll */
.hk-home {
    overflow-x: hidden;
}

.hk-home .container {
    max-width: 1140px;
}
