/* ============================================
   蓝蝴蝶俱乐部 · 品牌视觉系统
   Blue Butterfly Club · Brand Visual System
   Tattoo Wing Aesthetic
   ============================================ */

/* ===== 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;
}

/* Butterfly wing decoration on hover */
.product-small:hover::after {
    content: '✦';
    position: absolute;
    top: -10px;
    right: -8px;
    font-size: 28px;
    color: #1E90FF;
    opacity: 0.6;
    animation: butterflyWing 1.5s ease-in-out infinite;
}

@keyframes butterflyWing {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* 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 CARDS ===== */
.blog-archive .post-item,
.blog-archive .col-inner,
article.post,
.entry {
    background: rgba(13, 31, 60, 0.6) !important;
    border: 1px solid rgba(30, 144, 255, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.blog-archive .post-item:hover,
article.post:hover {
    border-color: rgba(30, 144, 255, 0.25) !important;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(30, 144, 255, 0.08) !important;
    transform: translateY(-4px) !important;
}

.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 ===== */
.page-numbers,
.woocommerce-pagination a,
.woocommerce-pagination span {
    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: rgba(30, 144, 255, 0.15) !important;
    border-color: rgba(30, 144, 255, 0.3) !important;
    color: #4DA8FF !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;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(30, 144, 255, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(30, 144, 255, 0.3);
    color: #fff;
}
