/**
 * Wuhan Pinfengying E-commerce Co., Ltd
 * Global Stylesheet
 * Design System: Warm Minimal Lifestyle Brand
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --primary: #B79B7A;
    --primary-dark: #9B8266;
    --primary-light: #D4C4B0;
    --secondary: #F6F1E8;
    --secondary-light: #FBF8F4;
    --accent: #D8B08C;
    --accent-dark: #C19A70;
    --text: #222222;
    --text-medium: #555555;
    --text-light: #888888;
    --text-muted: #AAAAAA;
    --white: #FFFFFF;
    --overlay-dark: rgba(0, 0, 0, 0.45);
    --overlay-medium: rgba(0, 0, 0, 0.35);
    --overlay-light: rgba(0, 0, 0, 0.25);
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --font-display: 'Georgia', 'Times New Roman', serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    font-size: 16px;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 200;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.body-text {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
}

.body-text-dark {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text);
    max-width: 720px;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar .navbar-brand {
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--white);
    transition: color var(--transition-fast);
}

.navbar-scrolled .navbar-brand {
    color: var(--text);
}

.navbar .nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1.5rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-scrolled .nav-link {
    color: var(--text-medium);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--white);
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active {
    color: var(--primary);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--white);
    transition: width var(--transition-fast);
}

.navbar-scrolled .nav-link::after {
    background: var(--primary);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--white);
}

.navbar-scrolled .navbar-toggler {
    color: var(--text);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: background var(--transition-fast);
}

.navbar-scrolled .navbar-toggler-icon {
    background: var(--text);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.navbar-scrolled .navbar-toggler-icon::before,
.navbar-scrolled .navbar-toggler-icon::after {
    background: var(--text);
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

/* ============================================
   Full-Screen Sections
   ============================================ */
.full-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.full-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.section-overlay-dark::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.section-overlay-medium::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.section-overlay-light::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.pillars-theme-section .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Hero Section (index.html - Section 1)
   ============================================ */
.hero-section {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
        url('../images/hero.jpg');
}

.hero-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 7rem 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-location {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.hero-center {
    text-align: center;
    position: relative;
    z-index: 3;
    padding-top: 4rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 200;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-description {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.hero-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-pillar-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color var(--transition-fast);
}

.hero-pillar-item:hover {
    border-top-color: var(--primary);
}

.hero-pillar-number {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    display: block;
}

.hero-pillar-title {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ============================================
   Section 2 - Four Column Pillars
   ============================================ */
.pillars-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pillar-column {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.pillar-column::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
    transition: background var(--transition-smooth);
}

.pillar-column:hover::before {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.25) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.pillar-column-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 3.5rem;
    color: var(--white);
}

.pillar-number {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--primary-light);
    margin-bottom: 1rem;
    display: block;
}

.pillar-column-title {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--white);
}

.pillar-column-desc {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.pillar-column:hover .pillar-column-desc {
    opacity: 1;
    max-height: 200px;
}

/* ============================================
   Section 2 - Core Operational Pillars (Theme Style)
   ============================================ */
.pillars-theme-section {
    min-height: 100vh;
    background: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 2rem;
}

.pillars-header {
    text-align: center;
    padding: 2.5rem 0 2.5rem;
    z-index: 5;
    flex-shrink: 0;
}

.pillars-header-title {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    padding: 0.7rem 2.2rem;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    margin: 0;
    text-transform: none;
    background: rgba(183, 155, 122, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-smooth);
    cursor: default;
}

.pillars-header-title:hover {
    background: rgba(183, 155, 122, 0.22);
    border-color: var(--primary-light);
    color: rgba(255, 255, 255, 0.95);
}

.pillars-theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
    width: 100%;
    flex: 1;
}

.pillars-theme-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 50% / 30%;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.pillars-theme-card:not(:last-child) {
    border-right: none;
}

.pillars-theme-tall,
.pillars-theme-short {
    min-height: auto;
}

.pillars-theme-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
    transition: all var(--transition-smooth);
    pointer-events: none;
}

.pillars-theme-card:hover::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(183, 155, 122, 0.10) 50%,
        rgba(0, 0, 0, 0.70) 100%
    );
}

.pillars-theme-card:hover {
    border-color: rgba(183, 155, 122, 0.35);
    transform: translateY(-4px);
}

.pillars-theme-rank {
    position: relative;
    z-index: 2;
    font-size: 1.9rem;
    font-weight: 200;
    color: var(--primary-light);
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 1.5rem;
}

.pillars-theme-text {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.5rem;
}

.pillars-theme-name {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================
   Section 3 - Community (Full Background)
   ============================================ */
.community-section {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('../images/community.jpg');
}

.community-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.community-section .section-title {
    color: var(--white);
    margin-bottom: 2rem;
}

.community-section .body-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Section 4 - Contact (Split Layout)
   ============================================ */
.contact-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info {
    background: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
}

.contact-info-inner {
    max-width: 480px;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 3rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.contact-address {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 2;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.contact-email {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    transition: color var(--transition-fast);
    letter-spacing: 0.02em;
}

.contact-email:hover {
    color: var(--primary);
}

.contact-visual {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../images/workspace.jpg');
    min-height: 100vh;
}

/* ============================================
   About Page Sections
   ============================================ */
.about-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.about-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-section .section-title {
    margin-bottom: 2rem;
}

.about-section .body-text {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================
   Lifestyle Page Sections
   ============================================ */
.lifestyle-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.lifestyle-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lifestyle-section .section-title {
    margin-bottom: 2rem;
}

.lifestyle-section .body-text {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================
   Divider Line
   ============================================ */
.divider-line {
    width: 60px;
    height: 1px;
    background: var(--primary);
    margin: 1.5rem auto;
    opacity: 0.6;
}

.divider-line-left {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================
   Button Styles
   ============================================ */
.btn-outline-light-custom {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-outline-light-custom:hover {
    background: var(--white);
    color: var(--text);
    border-color: var(--white);
}

/* ============================================
   Fade Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.fade-in-delay.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--text);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .pillars-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-column {
        min-height: 50vh;
    }

    .pillars-theme-section {
        padding: 0 1.5rem;
    }

    .pillars-theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        flex: none;
    }

    .pillars-theme-card {
        min-height: 45vh;
        border-radius: 40% / 25%;
    }

    .pillars-theme-card:nth-child(odd),
    .pillars-theme-card:nth-child(even) {
        border-right: none;
    }

    .pillars-theme-card:nth-child(n+3) {
        border-top: none;
    }
}

@media (max-width: 991px) {
    .hero-top-bar {
        padding: 6rem 2rem 0;
    }

    .hero-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 600px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 4rem 2rem;
    }

    .contact-visual {
        min-height: 50vh;
    }

    .navbar .nav-link {
        padding: 0.75rem 0 !important;
        text-align: center;
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem;
        margin-top: 0.75rem;
        border-radius: 8px;
    }

    .navbar-scrolled .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
    }
}

@media (max-width: 767px) {
    .hero-top-bar {
        padding: 5.5rem 1.25rem 0;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-tagline {
        text-align: center;
    }

    .hero-pillars {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-width: 350px;
    }

    .hero-pillar-item {
        padding: 1rem;
    }

    .hero-center {
        padding-top: 1rem;
    }

    .hero-description {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .pillars-section {
        grid-template-columns: 1fr;
    }

    .pillar-column {
        min-height: 60vh;
    }

    .pillar-column-content {
        padding: 2rem 1.5rem 2.5rem;
    }

    .pillars-theme-section {
        padding: 0 1rem;
    }

    .pillars-header {
        padding: 1.25rem 0 1.25rem;
    }

    .pillars-header-title {
        font-size: 0.75rem;
        padding: 0.55rem 1.5rem;
    }

    .pillars-theme-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        flex: none;
    }

    .pillars-theme-card {
        min-height: auto;
        padding: 1.75rem 1.5rem;
        border-radius: 30px;
        border-right: none !important;
    }

    .pillars-theme-rank {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .pillars-theme-text {
        margin-bottom: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-info {
        padding: 3rem 1.5rem;
    }

    .contact-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-pillar-title {
        font-size: 0.8rem;
    }
}
