/* ============================================
   蓝蝴蝶俱乐部 · 品牌视觉系统
   Blue Butterfly Club · Brand Visual System
   Tattoo Wing Aesthetic
   ============================================ */

/* ===== HERO BANNER ===== */
.hero-banner {
    padding-top: 80px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}
.hero-banner img {
    display: block;
    width: 100%;
    height: auto;
}
.hero-video {
    position: relative;
    z-index: 0;
    max-width: 900px;
    margin: 0 auto;
}
.hero-video video {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 1024px) {
    .hero-banner { padding-top: 70px; }
}
@media (max-width: 480px) {
    .hero-banner { padding-top: 70px; }
}

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

* {
    font-family: 'Noto Sans SC', 'Cormorant Garamond', 'Playfair Display', serif !important;
}

/* ===== GLOBAL BACKGROUND ===== */
body {
    background: linear-gradient(135deg, #060B18 0%, #0A1628 30%, #0D1F3C 60%, #0A1628 100%) !important;
    background-attachment: fixed !important;
    color: #C8D6E5 !important;
}

/* Subtle pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(30, 144, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(24, 119, 204, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(33, 150, 243, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#wrapper {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* ===== MAIN CONTENT AREA ===== */
#main, .content-area, .site-main {
    background: transparent !important;
}

/* ===== HEADER / NAVIGATION ===== */
#masthead {
    background: linear-gradient(180deg, rgba(10, 26, 47, 0.98) 0%, rgba(13, 31, 60, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(30, 144, 255, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(30, 144, 255, 0.1) !important;
}

header.transparent #masthead,
header.has-transparent #masthead {
    background: linear-gradient(180deg, rgba(10, 26, 47, 0.75) 0%, rgba(13, 31, 60, 0.6) 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

#masthead.nav-dark {
    background: linear-gradient(180deg, rgba(6, 11, 24, 0.98) 0%, rgba(10, 22, 40, 0.97) 100%) !important;
}

/* Navigation links */
.nav-top-link {
    color: #A0B8D0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    font-size: 15px !important;
}

.nav-top-link:hover,
.current-menu-item .nav-top-link {
    color: #4DA8FF !important;
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.4) !important;
}

/* Mobile nav toggle */
.nav-icon i {
    color: #4DA8FF !important;
}

/* Logo area */
#logo img {
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(30, 144, 255, 0.3));
}

/* Header elements (phone, email) */
.header-button a,
.header-button .button {
    background: linear-gradient(135deg, #1E90FF 0%, #0D5FA8 100%) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    box-shadow: 0 2px 15px rgba(30, 144, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.header-button a:hover,
.header-button .button:hover {
    background: linear-gradient(135deg, #4DA8FF 0%, #1E90FF 100%) !important;
    box-shadow: 0 4px 25px rgba(30, 144, 255, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* ===== HERO / PAGE HEADER ===== */
.page-title, 
.shop-page-title {
    background: linear-gradient(135deg, #0A1628 0%, #0D1F3C 50%, #132540 100%) !important;
    border-bottom: 1px solid rgba(30, 144, 255, 0.1) !important;
}

.page-title h1,
.shop-page-title h1 {
    color: #E8EEF4 !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

.breadcrumbs a {
    color: #5A7DA8 !important;
}

.breadcrumbs .divider {
    color: rgba(30, 144, 255, 0.4) !important;
}

.breadcrumbs .current {
    color: #4DA8FF !important;
}

/* ===== SECTION HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif !important;
    color: #E0EAF5 !important;
}

h2 {
    font-size: 2rem !important;
    letter-spacing: 0.5px !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.section-title span,
.section-title-main {
    color: #4DA8FF !important;
    font-family: 'Playfair Display', serif !important;
}

/* Decorative butterfly accent on section titles */
.section-title-main::after {
    content: ' ◆';
    color: rgba(30, 144, 255, 0.5);
    font-size: 0.5em;
}

/* ===== PRODUCT CARDS (伴游名单) ===== */
.product-small,
.box-image,
.product-box {
    background: rgba(13, 31, 60, 0.7) !important;
    border: 1px solid rgba(30, 144, 255, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.product-small:hover,
.box-image:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 144, 255, 0.1) !important;
    border-color: rgba(30, 144, 255, 0.25) !important;
}



/* Product image */
.product-small img,
.box-image img {
    border-radius: 6px 6px 0 0 !important;
    transition: transform 0.6s ease !important;
}

.product-small:hover img,
.box-image:hover img {
    transform: scale(1.05) !important;
}

/* Product title */
.product-title a,
.product-small .title-wrapper a,
.box-text .title-wrapper a {
    color: #C8D6E5 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
    transition: color 0.3s ease !important;
}

.product-title a:hover {
    color: #4DA8FF !important;
}

.box-text {
    background: rgba(10, 22, 40, 0.9) !important;
    padding: 15px !important;
}

/* ===== PRODUCT DETAIL PAGE (伴游详情) ===== */
.product-main {
    background: transparent !important;
}

.product-gallery {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(30, 144, 255, 0.1) !important;
}

.product-info {
    background: rgba(13, 31, 60, 0.5) !important;
    border-radius: 8px !important;
    padding: 25px !important;
    border: 1px solid rgba(30, 144, 255, 0.08) !important;
}

.product-title {
    color: #E8EEF4 !important;
    font-size: 1.6rem !important;
    font-family: 'Playfair Display', serif !important;
}

.product-section-title {
    color: #4DA8FF !important;
    border-bottom: 2px solid rgba(30, 144, 255, 0.2) !important;
    padding-bottom: 8px !important;
}

/* ===== BUTTONS ===== */
.button,
button,
.btn,
.woocommerce-Button,
.wp-block-button__link {
    background: linear-gradient(135deg, #1E90FF 0%, #0D5FA8 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    text-transform: none !important;
    box-shadow: 0 2px 15px rgba(30, 144, 255, 0.25) !important;
    transition: all 0.3s ease !important;
    font-family: 'Noto Sans SC', sans-serif !important;
}

.button:hover,
button:hover,
.btn:hover {
    background: linear-gradient(135deg, #4DA8FF 0%, #1E90FF 100%) !important;
    box-shadow: 0 4px 25px rgba(30, 144, 255, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* Primary CTA button */
.button.primary,
.btn-primary,
.is-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1E90FF 50%, #1565C0 100%) !important;
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.4) !important;
    font-size: 16px !important;
    padding: 12px 30px !important;
}

.button.primary:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 50%, #1E90FF 100%) !important;
    box-shadow: 0 6px 30px rgba(30, 144, 255, 0.6) !important;
}

/* Ghost / outline button */
.button.is-outline,
.button.secondary {
    background: transparent !important;
    border: 2px solid #1E90FF !important;
    color: #4DA8FF !important;
    box-shadow: none !important;
}

.button.is-outline:hover {
    background: rgba(30, 144, 255, 0.1) !important;
    border-color: #4DA8FF !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3) !important;
}

/* ===== BLOG ===== */
.entry-header-text {
    background: rgba(10, 22, 40, 0.9) !important;
    padding: 20px !important;
}

.entry-title a {
    color: #C8D6E5 !important;
    font-family: 'Playfair Display', serif !important;
    transition: color 0.3s ease !important;
}

.entry-title a:hover {
    color: #4DA8FF !important;
}

/* ===== FOOTER ===== */
footer#footer,
.footer-wrapper {
    background: linear-gradient(180deg, #0A1628 0%, #060B18 100%) !important;
    border-top: 1px solid rgba(30, 144, 255, 0.12) !important;
}

footer .widget-title {
    color: #4DA8FF !important;
    font-family: 'Playfair Display', serif !important;
    letter-spacing: 1px !important;
}

footer a {
    color: #A0B8D0 !important;
    transition: color 0.3s ease !important;
}

footer a:hover {
    color: #4DA8FF !important;
}

/* ===== FORMS & INPUTS ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    background: rgba(10, 26, 47, 0.8) !important;
    border: 1px solid rgba(30, 144, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #C8D6E5 !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1E90FF !important;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.15) !important;
    outline: none !important;
    background: rgba(13, 31, 60, 0.9) !important;
}

::placeholder {
    color: #5A7DA8 !important;
    opacity: 0.7 !important;
}

/* ===== PAGINATION ===== */
.woocommerce-pagination {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
.woocommerce-pagination .page-numbers {
    flex-wrap: wrap !important;
    justify-content: center !important;
}
a.page-numbers:focus,
a.page-numbers:active,
.page-numbers,
.woocommerce-pagination a,
.woocommerce-pagination span {
    outline: none !important;
    background: rgba(13, 31, 60, 0.7) !important;
    border: 1px solid rgba(30, 144, 255, 0.1) !important;
    color: #A0B8D0 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.page-numbers.current,
.woocommerce-pagination .current {
    background: #1E90FF !important;
    border-color: #1E90FF !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.3) !important;
}

.page-numbers:hover {
    background: linear-gradient(135deg,#1E90FF,#0A1A2F) !important;
    border-color: transparent !important;
    color: #fff !important;
    outline: none !important;
}

/* Pagination mobile responsive */
@media (max-width: 600px) {
    .woocommerce-pagination .page-numbers {
        gap: 3px !important;
    }
    .woocommerce-pagination .page-numbers li a,
    .woocommerce-pagination .page-numbers li span {
        padding: 6px 9px !important;
        font-size: 13px !important;
        min-width: 32px !important;
        text-align: center !important;
    }
    .woocommerce-pagination .page-numbers .current {
        padding: 6px 12px !important;
    }
}

/* ===== TABS & ACCORDIONS ===== */
.tabbed-content .tab a,
.accordion-title {
    color: #A0B8D0 !important;
    background: rgba(13, 31, 60, 0.6) !important;
    border: 1px solid rgba(30, 144, 255, 0.08) !important;
}

.tabbed-content .tab.active a,
.accordion-title.active {
    color: #4DA8FF !important;
    border-bottom-color: #1E90FF !important;
}

/* ===== DIVIDERS & SEPARATORS ===== */
hr,
.divider,
.is-divider {
    border-color: rgba(30, 144, 255, 0.15) !important;
}

.is-divider.small {
    background: linear-gradient(90deg, transparent, #1E90FF, transparent) !important;
    height: 2px !important;
    max-width: 60px !important;
}

/* ===== BADGES & TAGS ===== */
.badge,
.tag {
    background: rgba(30, 144, 255, 0.15) !important;
    color: #4DA8FF !important;
    border: 1px solid rgba(30, 144, 255, 0.3) !important;
    border-radius: 3px !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1E90FF, #0D5FA8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4DA8FF, #1E90FF);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 849px) {
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.2rem !important; }
    
    .product-small {
        margin-bottom: 15px !important;
    }
    
    #masthead {
        background: rgba(10, 26, 47, 0.98) !important;
    }
}

/* ===== LOADING & TRANSITION OVERRIDES ===== */
img {
    transition: all 0.3s ease !important;
}

a {
    transition: color 0.3s ease !important;
}

/* ===== SPECIAL: Butterfly Wing Top Border ===== */
.page-header,
.section-title-container {
    position: relative !important;
}

.page-header::before,
.section-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1E90FF, #4DA8FF, #1E90FF, transparent);
}

/* ===== CONTENT SECTIONS ===== */
.entry-content,
.entry-summary {
    color: #B0C4D8 !important;
    line-height: 1.8 !important;
}

.entry-content p {
    margin-bottom: 1.2em !important;
}

/* ===== TABLE STYLES ===== */
table {
    background: rgba(13, 31, 60, 0.5) !important;
    border: 1px solid rgba(30, 144, 255, 0.1) !important;
}

th {
    background: rgba(30, 144, 255, 0.1) !important;
    color: #4DA8FF !important;
    border-color: rgba(30, 144, 255, 0.15) !important;
}

td {
    border-color: rgba(30, 144, 255, 0.08) !important;
    color: #B0C4D8 !important;
}

/* ===== MODAL / LIGHTBOX ===== */
.pswp__bg {
    background: #060B18 !important;
}

/* ===== MOBILE MENU OVERLAY (fallback when Flatsome JS not loaded) ===== */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    backdrop-filter: blur(2px);
}
.mobile-menu-backdrop.active { display: block; }

#main-menu.mm-active {
    display: block !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    overflow-y: auto;
    background: linear-gradient(180deg, #0A1A2F 0%, #0D1F3C 50%, #0A1A2F 100%) !important;
}
#main-menu .sidebar-menu {
    padding: 60px 20px 40px 20px !important;
}
#main-menu .nav-sidebar {
    max-width: 340px;
    margin: 0 auto;
}
#main-menu .nav-sidebar li {
    margin: 4px 0 !important;
    border-bottom: 1px solid rgba(30, 144, 255, 0.15) !important;
}
#main-menu .nav-sidebar li a {
    display: block !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #A0B8D0 !important;
    text-align: center !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}
#main-menu .nav-sidebar li.current-menu-item a,
#main-menu .nav-sidebar li.active a {
    color: #4DA8FF !important;
    background: rgba(30, 144, 255, 0.12) !important;
}
#main-menu .nav-sidebar li a:hover {
    color: #fff !important;
    background: rgba(30, 144, 255, 0.2) !important;
}
#main-menu .mm-close-btn {
    position: fixed;
    top: 14px; right: 16px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
#main-menu .mm-close-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* Hamburger icon styling */
.nav-icon .icon-menu {
    font-size: 22px !important;
    color: #4DA8FF !important;
    transition: color 0.2s;
}
.nav-icon:hover .icon-menu {
    color: #fff !important;
}

@media (max-width: 768px) {
    #main-menu .nav-sidebar li a {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(30, 144, 255, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(30, 144, 255, 0.3);
    color: #fff;
}

/* ===== BLOG NEWS LIST (资讯列表) ===== */
.blog-news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
}
.blog-news-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    text-align: left;
}
.blog-news-item .blog-news-thumb {
    display: block;
    width: 100%;
}
.blog-news-item .blog-news-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 8px;
    display: block;
}
.blog-news-item .blog-news-body {
    width: 100%;
}
.blog-news-item .blog-news-body > a[href] {
    display: inline-block;
    margin-top: 6px;
}
@media (max-width: 849px) {
    .blog-news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 549px) {
    .blog-news-list {
        grid-template-columns: 1fr;
        gap: 26px;
        max-width: 420px;
    }
}

/* ===== BACK TO TOP (返回顶部 - 细箭头圆形描边) ===== */
body #custom-btop {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(15, 20, 30, 0.35) !important;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 0 !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: opacity .3s, visibility .3s, background .25s, border-color .25s, transform .2s !important;
}
body #custom-btop::before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    margin-top: 3px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}
body #custom-btop:hover {
    background: #1E90FF !important;
    border-color: #1E90FF !important;
    transform: translateY(-3px) !important;
}
@media (max-width: 768px) {
    body #custom-btop {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ===== POST PREV/NEXT NAV (文章底部上一篇/下一篇) ===== */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 45px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.post-nav-link {
    flex: 1 1 0;
    max-width: 49%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #E0EAF5 !important;
    text-decoration: none !important;
    transition: background .25s, border-color .25s;
}
.post-nav-prev { align-items: flex-start; text-align: left; }
.post-nav-next { align-items: flex-end; text-align: right; }
.post-nav-link:hover {
    background: rgba(30, 144, 255, 0.12);
    border-color: #1E90FF;
}
.post-nav-label {
    font-size: 13px;
    color: #1E90FF;
    letter-spacing: 0.5px;
}
.post-nav-title {
    font-size: 15px;
    color: #E0EAF5;
    line-height: 1.4;
}
@media (max-width: 549px) {
    .post-nav { flex-direction: column; gap: 12px; }
    .post-nav-link { max-width: 100%; }
    .post-nav-next { align-items: flex-start; text-align: left; }
}

/* ===== CITY TABS (城市标签) ===== */
.city-tabs {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.city-tabs .city-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    transition: all .2s;
}
.city-tabs .city-tab:hover {
    background: #dbeafe;
    color: #0A1A2F;
}
.city-tabs .city-tab.active {
    background: linear-gradient(135deg, #1E90FF, #0A1A2F);
    color: #fff;
}

/* ===== CITY INTRO (城市/全部 文字介绍) ===== */
.city-intro {
    max-width: 960px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    background: #f7f9fc;
    border: 1px solid #e6ecf5;
    border-left: 4px solid #1E90FF;
    border-radius: 8px;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
}
@media (max-width: 549px) {
    .city-intro { font-size: 14px; padding: 14px 16px; line-height: 1.8; }
}
