/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --primary: #888;
}

/* Prefer local Rockwell Extra Bold if installed */
@font-face {
    font-family: 'Rockwell Extra Bold';
    src: local('Rockwell Extra Bold'), local('RockwellExtraBold'), local('Rockwell Bold'), local('Rockwell');
    font-weight: 800;
    font-style: normal;
}

/* Global site typography set to Rockwell Extra Bold (falls back to serif) */
body,
button,
input,
textarea,
select,
.btn,
a,
h1,
h2,
h3,
h4,
h5,
h6,
p,
label {
    font-family: 'Rockwell Extra Bold', Rockwell, 'Rockwell Bold', serif;
    font-weight: 800;
}

/* Make all h2 match the Contact heading style by default (typography only) */
h2 {
    font-family: 'Rockwell Extra Bold', Rockwell, 'Rockwell Bold', serif;
    font-size: 96px;
    font-weight: 900;
    color: rgba(34, 34, 34, 0.7);
    margin-bottom: 6px;
}

html,
body {
    height: 100%
}

body {
    /* Rockwell fallback stack applied via global selector above */
    color: #333;
    background: #f0f0f0;
}

/* page container */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-stage {
    position: relative;
    margin-bottom: 12px;
}

.about-frame {
    width: 48%;
    border: 2px solid rgba(0, 0, 0, 0.12);
    padding: 28px 22px;
    position: absolute;
    left: 40px;
    top: 10px;
    height: 240px;
    z-index: 1;
}

.about-frame h2 {
    position: absolute;
    left: 50%;
    top: -44px;
    transform: translateX(-50%);
    background: #efefef;
    padding: 0 14px;
    /* typography inherits global h2 (matches Contact) */
    letter-spacing: 2px;
}

/* Header */
.site-header {
    /* 从深灰到浅灰的顶部渐变 */
    background: linear-gradient(to bottom, #2b2b2b 0%, #bfbfbf 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    /* 更高的 header */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right .login {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}


.main-nav a {
    padding: 6px 14px;
    border-radius: 2px;
    margin-left: 18px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 800;
    /* prefer Rockwell for nav as well */
    font-family: 'Rockwell Extra Bold', Rockwell, 'Rockwell Bold', serif;
    /* 更衬线感 */
    font-size: 30px;
    /* larger nav per reference */
    letter-spacing: 1px;
}

.main-nav a.active {
    background: #fff;
    color: #2b2b2b;
    padding: 8px 18px;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.logo img {
    height: 72px;
    /* larger logo like the screenshot */
}

/* compact header on small screens */
@media (max-width:900px) {
    .main-nav a {
        font-size: 18px
    }

    .logo img {
        height: 56px
    }
}

/* Hero */
.hero {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #ffffff54;
    position: relative;
}

/* fallback background and sizing */
.hero {
    background-image: url('../assets/images/backgrounds/bg-main.png')
}

.hero {
    min-height: 420px
}

.hero-inner {
    position: relative;
    z-index: 2
}

/* background image as an <img> element */
.hero-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-bottom: 8px solid rgba(0, 0, 0, 0.05)
}

.hero-inner {
    background: rgba(255, 255, 255, 0.06);
    padding: 48px 60px;
    border-radius: 4px;
    max-width: 600px;
    margin-left: auto;
    /* push to right */
    margin-right: 40px;
}

/* subtle overlay on hero to match reference */
.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none
}

.hero-title {
    font-size: 84px;
    margin-bottom: 8px;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-sub {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    background: #222;
    color: #fff;
    border-radius: 20px;
    text-decoration: none
}

.btn.ghost {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #222
}

/* Portfolio */
.portfolio {
    padding: 48px 0
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 22px;
    /* force Rockwell Extra Bold for the portfolio heading */
    font-family: 'Rockwell Extra Bold', Rockwell, 'Rockwell Bold', serif;
    font-weight: 900;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center
}

.carousel-viewport {
    overflow: hidden;
    flex: 1
}

.portfolio-track {
    display: flex;
    gap: 20px;
    padding: 12px;
    align-items: flex-start;
    transition: transform 400ms ease
}

.card {
    background: #fff;
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    width: 220px;
    flex: 0 0 220px;
    position: relative
}

.card.wide {
    width: 320px;
    flex: 0 0 320px
}

.card.tall {
    height: auto;
}

.card.small {
    width: 160px;
    flex: 0 0 160px
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 4px
}

.card .meta {
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.card .meta h3 {
    font-size: 13px
}

/* floating / staggered effect */
.portfolio-track .card:nth-child(7n+1) {
    transform: translateY(0)
}

.portfolio-track .card:nth-child(7n+2) {
    transform: translateY(32px)
}

.portfolio-track .card:nth-child(7n+3) {
    transform: translateY(-18px)
}

.portfolio-track .card:nth-child(7n+4) {
    transform: translateY(6px)
}

.portfolio-track .card:nth-child(7n+5) {
    transform: translateY(26px)
}

.portfolio-track .card:nth-child(7n+6) {
    transform: translateY(-8px)
}

.portfolio-track .card:nth-child(7n+7) {
    transform: translateY(12px)
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.08);
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.12)
}

/* position arrows outside viewport */
.carousel .prev {
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel .next {
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
}

/* cart badge */
.card .cart-badge {
    position: absolute;
    right: 8px;
    bottom: 46px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 8px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

/* explore more */
.explore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px
}

.btn.explore {
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    text-decoration: none
}

/* small indicators (optional) */
.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: 0
}

.carousel-indicators button.active {
    background: #333
}

@media (max-width:900px) {
    .portfolio-track {
        gap: 12px
    }

    .card {
        width: 180px;
        flex: 0 0 180px
    }
}

@media (max-width:600px) {
    .carousel-btn {
        display: none
    }

    .card {
        width: 260px;
        flex: 0 0 260px
    }
}

/* About */
.about {
    padding: 48px 0
}

.about-inner {
    display: flex;
    gap: 24px;
    align-items: center
}

/* push contact further down so it doesn't sit too close to the about section */
#contact {
    margin-top: 120px;
}

/* make contact a positioning context for the more-tab */
#contact {
    position: relative;
}

@media (max-width: 900px) {
    #contact {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    #contact {
        margin-top: 56px;
    }
}

.about-card img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 6px
}

.about-text h3 {
    font-size: 22px;
    margin-bottom: 10px
}

/* Custom ABOUT layout to match reference */
.about {
    position: relative;
    padding: 64px 0;
}

.about-stage {
    position: relative;
    margin-bottom: 12px;
}

.about-frame {
    left: 4%;
    position: absolute;
    top: 20px;
    width: 44%;
    height: 320px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    padding: 36px 28px;
    z-index: 2;
    background: transparent;
}

.about-frame h2 {
    position: absolute;
    left: 50%;
    top: -42px;
    transform: translateX(-50%);
    background: #efefef;
    padding: 0 14px;
    /* restore ABOUT heading visual: use Rockwell but keep the framed small label look */
    font-family: 'Rockwell Extra Bold', Rockwell, 'Rockwell Bold', serif;
    font-size: 72px;
    color: #bdbdbd;
    letter-spacing: 2px;
}

.about-inner {
    position: relative;
    min-height: 320px;
}

.about-frame .about-text {
    position: relative;
    z-index: 100;
    padding-top: 35px;
}

.name-large {
    font-family: 'Rockwell Extra Bold', Rockwell, 'Rockwell Bold', serif;
    font-size: 200px;
    line-height: 2;
    color: rgba(20, 20, 20, 0.98);
    font-weight: 900;
    margin: 0 2 50px 50px;
    /* sit a bit inside the frame */
}

/* image card positioned to overlap frame and partially cover the side watermark */
.about-card {
    position: absolute;
    right: 18%;
    top: 90px;
    /* slightly higher */
    width: 520px;
    height: 360px;
    z-index: 6;
    transform: translateX(-90px);
    /* 向左再移动 30px */
}

.about-card img {
    width: 520px;
    height: 360px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    position: relative;
    z-index: 6;
}

/* ensure the card allows visible overflow for the CTA */
.about-card {
    overflow: visible
}

/* Place the About button over the image at the right-bottom corner */
.about-cta {
    position: absolute;
    right: -145px;
    /* distance from image right edge */
    bottom: 30px;
    /* distance from image bottom edge */
    z-index: 12;
    /* sit above watermark and image */
    padding: 12px 18px;
    background: #fff;
    /* solid white background per request */
    color: rgba(34, 34, 34, 0.98);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 0;
    font-weight: 700;
    text-decoration: none;
}

/* small-screen fallback: keep CTA inside flow */
@media (max-width:900px) {
    .about-cta {
        position: static;
        display: inline-block;
        margin-top: 12px
    }
}

/* right-side large gray rectangle that matches the frame size and is partially covered by the image */
.side-watermark {
    position: absolute;
    /* 微调：向右移动一点并向下移动一点以改善对齐 */
    right: 0%;
    /* 更靠近右边缘 */
    top: 180px;
    /* 向下移动 */
    width: 44%;
    height: 320px;
    /* match the about-frame height */
    background: rgba(0, 0, 0, 0.06);
    z-index: 7;
    /* 提升层级，便于让伪元素在图片上方显示 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-watermark::after {
    content: 'A';
    display: block;
    position: relative;
    font-size: 220px;
    /* 再增大 10px */
    color: rgba(0, 0, 0, 0.04);
    /* 保持可读且不突兀 */
    font-weight: 900;
    line-height: 1;
    z-index: 9;
    /* 提升到图片之上，确保不被遮挡 */
    /* 再次向右移动 6%（32% -> 38%）以露出更多 */
    transform: translateX(38%);
}

/* Vertical brand text on the right */
.about-vertical {
    position: absolute;
    /* 把竖排文字更靠右，置于灰色矩形右侧边框外并在图片之上 */
    right: -34px;
    /* 再向右移动 10px */
    top: 152px;
    /* 微调位置以与 A 对齐 */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 900;
    font-size: 110px;
    color: rgba(34, 34, 34, 0.95);
    z-index: 10;
    /* 高于图片，确保可见 */
}

/* For smaller screens collapse layout */
@media (max-width: 900px) {
    .about-inner {
        flex-direction: column;
        align-items: flex-start
    }

    .about-card,
    .about-card img {
        width: 100%;
        height: auto
    }

    .name-large {
        font-size: 42px
    }

    .about-card::after {
        display: none
    }

    .about-vertical {
        display: none
    }

    .about h2 {
        font-size: 48px
    }
}

/* Contact form */
.contact {
    padding: 48px 0
}

/* Contact heading specifics per user spec */
/* Contact heading larger to match reference */
#contact>h2 {
    font-family: 'Rockwell Extra Bold', Rockwell, 'Rockwell Bold', serif;
    font-size: 96px;
    font-weight: 900;
    color: rgba(34, 34, 34, 0.7);
    margin-bottom: 6px;
}

#contact>p {
    font-size: 28px;
    font-weight: 700;
    color: rgba(34, 34, 34, 0.28);
    margin-bottom: 18px;
}

/* contact form container centered */
.contact-form {
    max-width: 960px;
    margin: 0 auto;
    /* center the form container */
    padding: 0 16px;
}

.contact-form .panel {
    background: #fff;
    border-radius: 18px;
    padding: 48px 56px;
    /* larger padding like reference */
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    margin: 0 auto;
    max-width: 1120px;
    /* wider panel to match full-width look */
}

.contact-form .form-row {
    display: flex;
    gap: 48px;
    margin-bottom: 28px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-form label {
    display: block;
}

.contact-form .label-title {
    display: block;
    font-weight: 900;
    font-size: 34px;
    /* larger label */
    color: rgba(34, 34, 34, 0.6);
    margin-bottom: 16px;
    text-align: left; /* labels align left to match inputs */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 26px 32px;
    border-radius: 22px;
    border: 0;
    background: #e9e9e9;
    /* light grey fields */
    resize: vertical;
    display: block;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    font-size: 18px;
}

.contact-form .stacked {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align label-title left and flush with input left */
}

.form-actions {
    position: relative;
}

/* place Send relative to the panel's bottom-right corner */
.form-actions .btn.send {
    position: absolute;
    right: 28px;
    bottom: 28px;
    background: #fff;
    /* white pill */
    color: rgba(34, 34, 34, 0.95);
    padding: 14px 42px;
    border-radius: 28px;
    /* pill */
    font-weight: 900;
    font-size: 28px;
    border: 2px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* vertical more tab on the right */

/* more tab positioned relative to the contact section's bottom-right */
.more-tab {
    position: absolute;
    right: 24px;
    bottom: 24px;
    transform: none;
    background: rgba(34, 34, 34, 0.9);
    color: #fff;
    padding: 10px 16px;
    border-radius: 18px;
    font-weight: 900;
    z-index: 50;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* small-screen tweaks to avoid covering interactive elements */
@media (max-width: 600px) {
    .more-tab {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* email icon & input with icon */
.contact-form label {
    position: relative
}

.contact-form .field-icon {
    position: absolute;
    left: 14px;
    /* align the icon vertically with the label-title text */
    top: 8px;
    font-size: 20px;
    line-height: 1;
    color: var(--primary);
}

.contact-form input.with-icon {
    padding-left: 44px
}

/* make first/last 48% and center their contents (label above + input centered) */
.contact-form .form-row>label {
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align label and input to the left edge */
}

/* make inputs inside the two-column labels a bit shorter to create the centered rounded bars */
.contact-form .form-row>label input,
.contact-form .form-row>label textarea {
    width: 100%;
}

/* textarea min height and subtle inset shadow to match reference */
.contact-form textarea {
    min-height: 340px;
    box-shadow: inset 0 6px 14px rgba(0,0,0,0.04);
    border-radius: 20px;
}

/* responsive: stack the two columns on narrow screens */
@media (max-width: 720px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 12px
    }

    .contact-form .form-row>label {
        flex: 0 0 auto
    }

    .contact-form .panel {
        padding: 28px 20px
    }

    .contact-form .form-row>label input,
    .contact-form .form-row>label textarea {
        flex: 0 0 calc(48% - 24px);
    }

    .btn.send {
        position: static;
        display: inline-block;
        margin-top: 8px
    }
}

/* Footer */
.site-footer {
    background: #333333;
    color: #cfcfcf;
    padding: 48px 0 24px;
    margin-top: 40px;
}

.site-footer .footer-inner {
    display: block
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 200px 260px 160px;
    gap: 36px;
    align-items: start;
    padding-bottom: 18px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    /* logo above text */
    align-items: center;
    /* center horizontally */
    gap: 12px;
    text-align: center;
}

.footer-brand img {
    height: 72px;
    display: block
}

.brand-desc {
    color: #bfbfbf;
    margin: 0;
    max-width: 420px;
    line-height: 1.6
}

@media (max-width: 720px) {
    .footer-brand {
        align-items: center
    }

    .brand-desc {
        max-width: 100%
    }
}

.footer-links h4,
.footer-contact h4,
.footer-follow h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer-links a {
    color: #bdbdbd;
    text-decoration: none;
    display: block;
    margin-bottom: 8px
}

.footer-sep {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 18px 0
}

.footer-bottom {
    text-align: center;
    color: #bdbdbd;
    padding-top: 12px
}

/* social icons in footer */
.socials {
    display: flex;
    gap: 12px
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    text-decoration: none
}

.social .icon {
    width: 20px;
    height: 20px;
    color: #bdbdbd
}

.social:hover .icon,
.social:focus .icon {
    color: #fff
}

/* monochrome inline icons in footer (replace colored emoji) */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bdbdbd
}

.footer-contact .icon-pin {
    width: 18px;
    height: 18px;
    color: #bdbdbd;
    flex: 0 0 18px
}

@media (max-width:900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .about-inner {
        flex-direction: column
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: 34px
    }

    .portfolio-grid {
        grid-template-columns: 1fr
    }
}