/* ============================================
   Zhang Wanying's World - Lifestyle Blogger Style
   CSS Prefix: zww-
   ============================================ */

/* --- CSS Variables --- */
:root {
    --zww-pink: #ff96a8;
    --zww-pink-light: #ffd4db;
    --zww-pink-dark: #e8788a;
    --zww-bg: #fffaf8;
    --zww-bg-alt: #fff5f2;
    --zww-text: #3d3535;
    --zww-text-light: #8a7e7e;
    --zww-text-muted: #b5a8a8;
    --zww-white: #ffffff;
    --zww-border: #f0e4e4;
    --zww-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --zww-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
    --zww-radius: 16px;
    --zww-radius-sm: 8px;
    --zww-font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --zww-font-heading: 'Georgia', 'Noto Serif SC', serif;
    --zww-max-width: 1200px;
    --zww-header-h: 64px;
    --zww-transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--zww-font-body);
    background: var(--zww-bg);
    color: var(--zww-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--zww-pink-dark); text-decoration: none; transition: var(--zww-transition); }
a:hover { color: var(--zww-pink); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Jammer Block (hidden) --- */
.insta-jammer-block { display: none !important; }

/* --- Container --- */
.zww-container {
    width: 100%;
    max-width: var(--zww-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navigation (Sticky) --- */
#zww-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--zww-white);
    border-bottom: 1px solid var(--zww-border);
    height: var(--zww-header-h);
    backdrop-filter: blur(10px);
}
.zww-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--zww-header-h);
}
.zww-logo img { height: 36px; width: auto; }
.zww-nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
}
.zww-nav-menu li a {
    font-size: 0.9rem;
    color: var(--zww-text);
    padding: 6px 0;
    position: relative;
    font-weight: 500;
}
.zww-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--zww-pink);
    transition: width 0.3s ease;
}
.zww-nav-menu li a:hover::after,
.zww-nav-menu li a.zww-active::after {
    width: 100%;
}
.zww-nav-menu li a.zww-active { color: var(--zww-pink-dark); }

/* Hamburger */
.zww-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.zww-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--zww-text);
    transition: var(--zww-transition);
    border-radius: 2px;
}

/* Mobile Menu */
.zww-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.zww-overlay.zww-show { display: block; opacity: 1; }
.zww-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--zww-white);
    z-index: 1200;
    transition: right 0.3s ease;
    padding: 60px 30px 30px;
    overflow-y: auto;
}
.zww-mobile-menu.zww-show { right: 0; }
.zww-mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--zww-text);
    line-height: 1;
}
.zww-mobile-menu ul { display: flex; flex-direction: column; gap: 0; }
.zww-mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--zww-text);
    border-bottom: 1px solid var(--zww-border);
}
.zww-mobile-menu ul li a:hover { color: var(--zww-pink); padding-left: 8px; }

/* --- Hero Banner --- */
.zww-hero {
    position: relative;
    overflow: hidden;
}
.zww-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.zww-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
}
.zww-hero-overlay h1 {
    font-family: var(--zww-font-heading);
    font-size: 2.2rem;
    color: var(--zww-text);
    text-align: center;
    margin-bottom: 12px;
}
.zww-hero-overlay p {
    font-size: 1rem;
    color: var(--zww-text-light);
    text-align: center;
}

/* --- Section Common --- */
.zww-section {
    padding: 60px 0;
}
.zww-section:nth-child(even) { background: var(--zww-bg-alt); }
.zww-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.zww-section-header h2 {
    font-family: var(--zww-font-heading);
    font-size: 1.6rem;
    color: var(--zww-text);
    margin-bottom: 8px;
}
.zww-section-header p {
    color: var(--zww-text-light);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Card Grid --- */
.zww-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.zww-card {
    background: var(--zww-white);
    border-radius: var(--zww-radius);
    overflow: hidden;
    box-shadow: var(--zww-shadow);
    transition: var(--zww-transition);
}
.zww-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zww-shadow-hover);
}
.zww-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.zww-card-body {
    padding: 16px;
}
.zww-card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--zww-text);
}
.zww-card-body p {
    font-size: 0.85rem;
    color: var(--zww-text-light);
    line-height: 1.6;
}
.zww-card-meta {
    font-size: 0.78rem;
    color: var(--zww-text-muted);
    margin-top: 8px;
}

/* --- Masonry / Waterfall Grid --- */
.zww-masonry {
    columns: 3;
    column-gap: 20px;
}
.zww-masonry .zww-card {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* --- Square Grid (Instagram style) --- */
.zww-square-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.zww-square-grid .zww-square-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}
.zww-square-grid .zww-square-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.zww-square-grid .zww-square-item:hover img { transform: scale(1.05); }
.zww-square-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--zww-white);
    font-size: 0.9rem;
}
.zww-square-item:hover .zww-square-overlay { opacity: 1; }

/* --- Food Grid --- */
.zww-food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.zww-food-card {
    position: relative;
    border-radius: var(--zww-radius);
    overflow: hidden;
    cursor: pointer;
}
.zww-food-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.zww-food-card:hover img { transform: scale(1.05); }
.zww-food-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--zww-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.zww-food-card:hover .zww-food-info { transform: translateY(0); }
.zww-food-info h3 { font-size: 1rem; margin-bottom: 4px; }
.zww-food-info p { font-size: 0.8rem; opacity: 0.9; }

/* --- Flatlay Grid (Favorites) --- */
.zww-flatlay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.zww-flatlay-card {
    background: var(--zww-white);
    border-radius: var(--zww-radius);
    overflow: hidden;
    box-shadow: var(--zww-shadow);
    transition: var(--zww-transition);
    text-align: center;
    padding-bottom: 16px;
}
.zww-flatlay-card:hover { transform: translateY(-3px); box-shadow: var(--zww-shadow-hover); }
.zww-flatlay-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.zww-flatlay-card h3 { font-size: 0.95rem; margin: 12px 0 4px; color: var(--zww-text); }
.zww-flatlay-card p { font-size: 0.8rem; color: var(--zww-text-light); padding: 0 12px; }

/* --- Fan Interaction --- */
.zww-fan-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.zww-fan-video {
    border-radius: var(--zww-radius);
    overflow: hidden;
    box-shadow: var(--zww-shadow);
}
.zww-fan-video img { width: 100%; }
.zww-fan-comments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.zww-comment-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--zww-white);
    border-radius: var(--zww-radius-sm);
    box-shadow: var(--zww-shadow);
}
.zww-comment-card img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.zww-comment-text h4 { font-size: 0.85rem; color: var(--zww-text); }
.zww-comment-text p { font-size: 0.8rem; color: var(--zww-text-light); }

/* --- Live Streaming --- */
.zww-live-section {
    position: relative;
    border-radius: var(--zww-radius);
    overflow: hidden;
}
.zww-live-section img { width: 100%; }
.zww-live-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}
.zww-live-badge {
    background: #ff3b5c;
    color: var(--zww-white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: zww-pulse 2s infinite;
}
@keyframes zww-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.zww-countdown {
    display: flex;
    gap: 16px;
}
.zww-countdown-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--zww-radius-sm);
    padding: 12px 20px;
    text-align: center;
    min-width: 70px;
}
.zww-countdown-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--zww-text);
    line-height: 1;
}
.zww-countdown-label {
    font-size: 0.7rem;
    color: var(--zww-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* --- Business / Collab --- */
.zww-collab-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.zww-collab-info h3 { font-size: 1.2rem; margin-bottom: 12px; }
.zww-collab-info p { color: var(--zww-text-light); margin-bottom: 16px; }
.zww-collab-brands img { width: 100%; border-radius: var(--zww-radius); }

/* --- Merch Grid --- */
.zww-merch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.zww-merch-card {
    background: var(--zww-white);
    border-radius: var(--zww-radius);
    overflow: hidden;
    box-shadow: var(--zww-shadow);
    transition: var(--zww-transition);
    text-align: center;
}
.zww-merch-card:hover { transform: translateY(-3px); box-shadow: var(--zww-shadow-hover); }
.zww-merch-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.zww-merch-card h3 { font-size: 0.9rem; padding: 10px 0 4px; color: var(--zww-text); }
.zww-merch-card .zww-price { font-size: 0.85rem; color: var(--zww-pink-dark); padding-bottom: 12px; font-weight: 600; }

/* --- APP Section --- */
.zww-app-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.zww-app-info h3 { font-size: 1.3rem; margin-bottom: 12px; }
.zww-app-info p { color: var(--zww-text-light); margin-bottom: 20px; }
.zww-app-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.zww-app-mockup img { border-radius: var(--zww-radius); }

/* --- About Me --- */
.zww-about-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}
.zww-about-photo img { border-radius: var(--zww-radius); }
.zww-about-text h3 { font-size: 1.3rem; margin-bottom: 12px; font-family: var(--zww-font-heading); }
.zww-about-text p { color: var(--zww-text-light); margin-bottom: 12px; line-height: 1.8; }

/* --- Button --- */
.zww-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--zww-pink);
    color: var(--zww-white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--zww-transition);
    border: none;
    cursor: pointer;
}
.zww-btn:hover { background: var(--zww-pink-dark); color: var(--zww-white); transform: translateY(-2px); }
.zww-btn-outline {
    background: transparent;
    border: 2px solid var(--zww-pink);
    color: var(--zww-pink-dark);
}
.zww-btn-outline:hover { background: var(--zww-pink); color: var(--zww-white); }
.zww-btn-dark {
    background: var(--zww-text);
}
.zww-btn-dark:hover { background: #555; }

/* --- Breadcrumb --- */
.zww-breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--zww-text-muted);
}
.zww-breadcrumb a { color: var(--zww-text-light); }
.zww-breadcrumb span { margin: 0 6px; }

/* --- Article Page --- */
.zww-article-header {
    padding: 50px 0 30px;
    text-align: center;
    background: var(--zww-bg-alt);
}
.zww-article-header h1 {
    font-family: var(--zww-font-heading);
    font-size: 1.8rem;
    color: var(--zww-text);
    margin-bottom: 8px;
}
.zww-article-meta {
    font-size: 0.85rem;
    color: var(--zww-text-muted);
}
.zww-article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.zww-article-content p {
    margin-bottom: 20px;
    line-height: 1.85;
    color: var(--zww-text);
    font-size: 1rem;
}
.zww-article-content picture {
    display: block;
    margin: 24px 0;
    border-radius: var(--zww-radius);
    overflow: hidden;
}
.zww-article-content picture img {
    width: 100%;
    border-radius: var(--zww-radius);
}

/* --- Footer --- */
#zww-footer {
    background: var(--zww-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 0;
}
.zww-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}
.zww-footer-col h4 {
    color: var(--zww-white);
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.zww-footer-col ul li { margin-bottom: 8px; }
.zww-footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: var(--zww-transition);
}
.zww-footer-col ul li a:hover { color: var(--zww-pink-light); padding-left: 4px; }
.zww-social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.zww-social-icons a img { width: 36px; height: 36px; border-radius: 50%; transition: var(--zww-transition); }
.zww-social-icons a:hover img { transform: scale(1.1); }
.zww-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}
.zww-footer-bottom p { margin-bottom: 4px; }

/* --- APP Download Page --- */
.zww-app-page {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--zww-bg-alt) 0%, var(--zww-pink-light) 100%);
    padding: 60px 0;
    display: flex;
    align-items: center;
}
.zww-app-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.zww-app-page-info h2 {
    font-family: var(--zww-font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--zww-text);
}
.zww-app-page-info .zww-subtitle {
    color: var(--zww-text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}
.zww-app-features-list { margin-bottom: 24px; }
.zww-app-features-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--zww-border);
    font-size: 0.9rem;
    color: var(--zww-text);
}
.zww-app-features-list li::before {
    content: '✦ ';
    color: var(--zww-pink);
}
.zww-app-page-mockup img {
    border-radius: var(--zww-radius);
    box-shadow: var(--zww-shadow-hover);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .zww-card-grid, .zww-food-grid, .zww-flatlay-grid { grid-template-columns: repeat(2, 1fr); }
    .zww-merch-grid { grid-template-columns: repeat(2, 1fr); }
    .zww-masonry { columns: 2; }
    .zww-square-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --zww-header-h: 56px; }
    .zww-nav-menu { display: none; }
    .zww-hamburger { display: flex; }
    .zww-hero-overlay h1 { font-size: 1.4rem; }
    .zww-hero-overlay p { font-size: 0.85rem; }
    .zww-section { padding: 40px 0; }
    .zww-section-header h2 { font-size: 1.3rem; }
    .zww-card-grid, .zww-food-grid, .zww-flatlay-grid { grid-template-columns: 1fr; }
    .zww-square-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
    .zww-fan-section { grid-template-columns: 1fr; }
    .zww-collab-content { grid-template-columns: 1fr; }
    .zww-app-section { grid-template-columns: 1fr; }
    .zww-about-section { grid-template-columns: 1fr; }
    .zww-merch-grid { grid-template-columns: repeat(2, 1fr); }
    .zww-masonry { columns: 1; }
    .zww-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .zww-article-header h1 { font-size: 1.4rem; }
    .zww-app-page-layout { grid-template-columns: 1fr; }
    .zww-countdown-item { padding: 8px 14px; min-width: 55px; }
    .zww-countdown-num { font-size: 1.4rem; }
}

@media (max-width: 360px) {
    .zww-container { padding: 0 12px; }
    .zww-section { padding: 30px 0; }
    .zww-card-body { padding: 12px; }
    .zww-countdown { gap: 8px; }
    .zww-countdown-item { padding: 6px 10px; min-width: 48px; }
    .zww-countdown-num { font-size: 1.2rem; }
}
