/* ===== JOIN AND COOPERATE PAGE STYLES ===== */
body{
    background-color: #262626;
}
/* ===== HERO SECTION ===== */
.hero-wrapper {
    position: relative;
    margin-bottom: 0;
}

.hero {
    position: relative;
    height: 50vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    margin-top: 65px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/public/images/merchants_join/bg.webp') center/cover;
}

.hero-torch {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(-25deg);
    width: 250px;
    height: 5px;
    background: linear-gradient(90deg, #8b5a1e, #c47a2e, #e8923a);
    border-radius: 3px;
    z-index: 3;
}

.hero-torch::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -2px;
    width: 10px;
    height: 10px;
    background: #e8923a;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(232, 146, 58, 0.8);
}

.hero-stickers {
    position: absolute;
    right: 5%;
    top: 10%;
    width: 200px;
    height: 300px;
    opacity: 0.15;
    z-index: 1;
}

.sticker {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sticker:nth-child(1) {
    top: 0;
    left: 20px;
}

.sticker:nth-child(2) {
    top: 50px;
    left: 80px;
}

.sticker:nth-child(3) {
    top: 100px;
    left: 10px;
}

.sticker:nth-child(4) {
    top: 150px;
    left: 70px;
}

.sticker:nth-child(5) {
    top: 200px;
    left: 30px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

}

.hero-text h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 64px;
    color: var(--orange);
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
}

/* Product Title Wrapper */
.product-title-wrapper {
    max-width: 1400px;
    position: absolute;
    bottom: 0;
    left: max(0px, calc((100% - 1400px) / 2));
    right: max(0px, calc((100% - 1400px) / 2));
    transform: translateY(50%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.product-title-right-info {
    text-align: right;
    justify-content: flex-end;
}

.product-title-right-info p {
    max-width: 55ch;
}

.product-title-right-info h3 {
    font-size: 50px;
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-weight: 600;
}

.product-title-card {
    background: var(--orange);
    padding: 40px;
    max-width: 520px;
    height: 260px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-title-card h2 {
    max-width: 15ch;
    font-size: 40px;
    font-family: 'Playfair Display', serif;
    color: #fff;
}

.product-title-card p {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
}

.product-title-card .divider {
    width: 40px;
    height: 2px;
    background: #fff;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.breadcrumb-container {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 12px 0;
    position: relative;
    margin-left: 10px;
}

.breadcrumb-item {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 30px;
    margin: 0 -10px;
    background: #333;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}

.breadcrumb-parnav {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-subnav {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-subnav.active {
    background: var(--orange);
    color: #fff;
    font-weight: 600;
}

.breadcrumb-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin: 0 5px;
}

.breadcrumb-item:hover {
    color: var(--orange);
}

.breadcrumb-subnav.active:hover {
    color: #fff;
}

.breadcrumb-article {
    background: rgba(232, 146, 58, 0.2);
    color: var(--orange);
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-article.active {
    background: var(--orange);
    color: #fff;
}

.breadcrumb-article:hover {
    color: #fff;
}

.breadcrumb-icon {
    vertical-align: middle;
}

.breadcrumb-icon-item {
    background: #111;
    padding-top: 9px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 23px;
    width: auto;
    clip-path: polygon(0px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    margin-right: -10px;

}

.breadcrumb-icon-item img {
    filter: brightness(1.5);
    height: 20px;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    max-width: 1400px;
    margin: -55px auto 0;
    display: flex;
    position: relative;
    z-index: 10;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    min-width: 0;
    background-color: #262626;
}

#mobileSidebarToggle {
    display: none;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar-wrapper {
    width: 250px;
    flex-shrink: 0;
    padding-top: 0;
}

.left-sidebar {
    width: 100%;
    background: var(--darker-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-title-link {
    display: block;
    text-decoration: none;
    padding: 8px 10px;
    margin: 0 -10px;

    transition: all 0.3s ease;
}

.sidebar-title-link:hover .sidebar-title {
    color: #fff;
    border-bottom: 1px solid var(--orange);
    border-left-color: var(--orange);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}


.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(232, 146, 58, 0.3) 0%, rgba(232, 146, 58, 0.1) 100%);
    font-weight: 600;
    border-left-color: var(--orange);
}

.sidebar-link.active::before,
.sidebar-link:hover::before {
    transform: scaleY(1);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.sidebar-contact {
    padding: 0 5px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 12px;
}

.sidebar-contact-item img {
    width: 12px;


}

.sidebar-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: var(--orange);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.sidebar-btn:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

/* Sidebar WeChat QR Code */
.sidebar-wechat {
    margin-top: 20px;
    text-align: center;
}

.sidebar-wechat h6 {
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sidebar-qr-code {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 4px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-qr-code::before {
    content: '';
    width: 56px;
    height: 56px;
    background:
        linear-gradient(90deg, #000 2px, transparent 2px) 0 0 / 8px 8px,
        linear-gradient(0deg, #000 2px, transparent 2px) 0 0 / 8px 8px;
    opacity: 0.8;
}

.sidebar-qr-code::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--orange);
    border-radius: 2px;
}

/* ===== MERCHANTS SECTION ===== */
.merchants-section {
    position: relative;
    padding: 80px 0;
    min-height: 100vh;
    background: var(--darker-bg);
}

.merchants-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('/public/images/merchants_join/bg.webp') center/cover; */
    opacity: 0.1;
    z-index: 0;
}

.merchants-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.merchants-header {
    text-align: center;
    margin-bottom: 60px;
}

.merchants-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.merchants-header .divider {
    width: 60px;
    height: 3px;
    background: var(--orange);
    margin: 20px auto;
}

.merchants-header p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.8;
}

.merchants-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.merchant-card {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.merchant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.merchant-card:hover,
.merchant-card.expanded {
    transform: translateY(-10px);
    background: rgba(55, 55, 55, 0.9);
    border-color: var(--orange);
}

.merchant-card:hover::before,
.merchant-card.expanded::before {
    transform: scaleX(1);
}

.merchant-card .icon {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchant-card .icon img {
    max-width: 64px;
    height: auto;
    transition: transform 0.3s ease;
}

.merchant-card:hover .icon img {
    transform: scale(1.1);
}

.merchant-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.4;
}

.merchant-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease;
    margin-top: 0;
}

.merchant-card.expanded .merchant-detail,
.merchant-card:hover .merchant-detail {
    max-height: 150px;
    margin-top: 15px;
}

.merchant-detail p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
    background: var(--card-bg);
    padding: 80px 0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.contact-form-header .divider {
    width: 50px;
    height: 3px;
    background: var(--orange);
    margin: 15px auto;
}

.contact-form-header p {
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.contact-form {
    background: rgba(30, 30, 30, 0.5);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    padding: 16px 50px;
    background: var(--orange);
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.btn-submit:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(232, 146, 58, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar-wrapper {
        width: 100%;
        position: relative;
    }

    .left-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 20px;
        gap: 15px;
    }

    .sidebar-section {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 0;
    }

    .sidebar-title {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar-nav li {
        margin-bottom: 0;
    }

    .sidebar-divider {
        display: none;
    }

    .sidebar-contact {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .sidebar-contact-item {
        margin-bottom: 0;
    }

    .sidebar-btn {
        margin-top: 0;
    }

    .merchants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .merchants-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .merchants-section {
        padding: 50px 0;
    }

    .merchants-container {
        padding: 0 20px;
    }

    .merchants-header h2 {
        font-size: 32px;
    }

    .merchants-header p {
        font-size: 14px;
    }

    .merchants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .merchant-card {
        padding: 20px 15px;
    }

    .merchant-card .icon {
        height: 60px;
    }

    .merchant-card .icon img {
        max-width: 48px;
    }

    .merchant-card h4 {
        font-size: 13px;
    }

    .contact-form-container {
        padding: 0 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-header h2 {
        font-size: 28px;
    }

    /* ===== MOBILE HERO OPTIMIZATION ===== */
    .hero {
        height: 200px;
        min-height: 200px;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .hero-content {

        width: 100%;
        padding: 0 15px;

    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 12px;
        max-width: 80%;
        color: #fff;
    }

    /* ===== MOBILE SIDEBAR MENU ===== */
    .sidebar-wrapper {
        position: relative;
    }

    .left-sidebar {
        display: none;
    }

    .left-sidebar.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
        padding: 10px;
    }

    .sidebar-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
        display: block;
    }

    .sidebar-title-link {
        display: none !important;
    }

    .sidebar-section:last-child {
        border-bottom: none;
    }

    /* Hide 2nd and 3rd 4th sidebar-section */
    .sidebar-section:nth-child(2),
    .sidebar-section:nth-child(3),
    .sidebar-section:nth-child(4) {
        display: none !important;
    }

    .sidebar-section .sidebar-title {
        display: none;
    }

    .sidebar-title-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 10px;
        text-decoration: none;
        color: #fff;
    }

    .sidebar-title-link::after {
        content: '+';
        font-size: 18px;
        font-weight: bold;
        color: var(--orange);
        transition: transform 0.3s ease;
    }

    .sidebar-section.expanded .sidebar-title-link::after {
        content: '−';
    }

    .sidebar-nav {
        display: none;
        padding: 0 0 10px 0;
        margin: 0;
        list-style: none;
    }

    .sidebar-section.expanded .sidebar-nav {
        display: block;
    }

    .sidebar-link {
        display: block;
        padding: 8px 20px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
        color: var(--orange);
    }

    /* ===== MOBILE BREADCRUMB ===== */
    .breadcrumb-nav {
        display: none;
    }

    /* ===== MOBILE CONTENT LIST ===== */
    .content-list-section {
        padding: 0 !important;
    }

    .content-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .content-item-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content-item-subtitle {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .content-item-date {
        align-self: flex-end;
    }

    /* ===== MOBILE PAGE LAYOUT ===== */
    .page-layout {
        flex-direction: column;
        padding-top: 50px;
    }

    .main-content {
        width: 100%;
        padding: 5px 15px 10px !important;
        margin-bottom: 10px;/* mobile to top 预留位置*/
    }



    /* Mobile sidebar toggle button */
    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 5px 20px;
        background: rgba(20, 20, 25, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--orange);
        font-size: 14px;
        cursor: pointer;
        margin-bottom: 0px;
        text-align: left;
        justify-content: space-between;
        justify-items: self-start;
        font-weight: bold;
    }

    .mobile-sidebar-toggle::after {
        content: '+';
        color: var(--orange);
        font-size: 28px;
        font-weight: 500;
    }

    .mobile-sidebar-toggle.active::after {
        content: '-';
        font-size: 28px;
        font-weight: 500;

    }

    .pagination {
        margin-bottom: 10px;
    }

    .content-item-content h4 {
        font-size: 12px;
        text-overflow: ellipsis;
        text-align: left;
        max-height: 13px;
        max-width: 220px;
    }

    .content-item-content p {
        display: none;
    }

    .content-list-item {
        gap: 0px !important;
        padding: 10px 5px !important;

        flex-direction: row;

    }

    #mobileSidebarToggle {
        display: flex;
    }


}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ===== CONTENT LIST SECTION ===== */
.content-list-section {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

.content-list-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 146, 58, 0.3);
    transform: translateX(5px);
}

.content-item-content {
    flex: 1;
}

.content-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.content-list-item:hover .content-item-title {
    color: var(--orange);
}

.content-item-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.content-item-date {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--orange);
    white-space: nowrap;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-top: 10px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--orange);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.pagination-item.active {
    background: var(--orange-dark);
    font-weight: 700;
}