/*
Theme Name: QingdaoShop - 青岛优选
Theme URI: https://qingdaoshop.com
Author: QingdaoShop Team
Author URI: https://qingdaoshop.com
Description: 现代简约电商主题，内置博客子站系统，支持内容营销与流量变现。自带SEO优化、广告位管理、CTA转化组件。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qingdaoshop
Tags: e-commerce, blog, woocommerce, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ===== CSS VARIABLES ===== */
:root {
  --ink: #2c2c2c;
  --ink-light: #444;
  --paper: #fffdf9;
  --warm: #f7f3ee;
  --warm-deep: #ede6db;
  --ocean: #3d7f8e;
  --ocean-dark: #2c6370;
  --ocean-light: #e4f0f2;
  --ocean-mist: #f0f7f8;
  --accent: #c06040;
  --accent-hover: #a8533a;
  --accent-light: #f5ddd4;
  --muted: #7c7870;
  --muted-light: #a09a90;
  --border: #e8e3db;
  --border-light: #f0ece6;
  --shadow: rgba(44,44,44,0.05);
  --shadow-md: rgba(44,44,44,0.08);
  --shadow-lg: rgba(44,44,44,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper); color: var(--ink);
  line-height: 1.65; overflow-x: hidden; font-size: 16px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== LAYOUT ===== */
.qs-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.qs-container--wide { max-width: 1440px; }
.qs-container--narrow { max-width: 860px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  line-height: 1.25; letter-spacing: -0.3px; color: var(--ink);
}
h1 { font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -1px; font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
h3 { font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; }
h4 { font-size: 17px; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-weight: 600; }
p { color: var(--muted); line-height: 1.7; }

.qs-highlight { font-style: italic; color: var(--ocean); position: relative; }
.qs-highlight::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 8px; background: var(--ocean-light); opacity: 0.5; border-radius: 4px; z-index: -1;
}

/* ===== BUTTONS ===== */
.qs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: all var(--transition);
  line-height: 1; letter-spacing: 0.3px;
}
.qs-btn--primary { background: var(--ocean); color: #fff; }
.qs-btn--primary:hover { background: var(--ocean-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61,127,142,0.25); }
.qs-btn--accent { background: var(--accent); color: #fff; }
.qs-btn--accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,96,64,0.25); }
.qs-btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.qs-btn--outline:hover { border-color: var(--ocean); color: var(--ocean); transform: translateY(-2px); }
.qs-btn--ghost { background: transparent; color: var(--ocean); padding: 8px 0; }
.qs-btn--ghost:hover { gap: 12px; }
.qs-btn--sm { padding: 11px 22px; font-size: 13px; }
.qs-btn--icon { width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--border); border-radius: 10px; justify-content: center; transition: all 0.2s; }
.qs-btn--icon:hover { background: var(--ocean); color: #fff; border-color: var(--ocean); }

/* ===== HEADER ===== */
.qs-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,253,249,0.9);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-light); transition: box-shadow 0.3s;
}
.qs-header--scrolled { box-shadow: 0 2px 24px var(--shadow); }
.qs-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.qs-logo { display: flex; align-items: center; gap: 10px; }
.qs-logo__icon { width: 36px; height: 36px; background: var(--ocean); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.qs-logo__text { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
.qs-logo__text span { color: var(--ocean); }

.qs-nav { display: flex; gap: 4px; align-items: center; }
.qs-nav a, .qs-nav .menu-item a { padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.qs-nav a:hover, .qs-nav .menu-item a:hover, .qs-nav .current-menu-item a, .qs-nav .current_page_item a { color: var(--ink); background: var(--warm); }

.qs-nav .sub-menu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s; box-shadow: 0 12px 40px var(--shadow-lg); }
.qs-nav .menu-item-has-children { position: relative; }
.qs-nav .menu-item-has-children:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.qs-nav .sub-menu a { display: block; padding: 10px 16px; border-radius: 8px; font-size: 14px; }
.qs-nav .sub-menu a:hover { background: var(--warm); }

.qs-header__actions { display: flex; gap: 10px; align-items: center; }
.qs-cart-count { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qs-mobile-toggle { display: none; }

.qs-lang-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 100px; border: 1.5px solid var(--border); background: transparent; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.qs-lang-toggle:hover { border-color: var(--ocean); color: var(--ocean); background: var(--ocean-mist); }
.qs-lang-toggle svg { flex-shrink: 0; }
.qs-lang-toggle__text { line-height: 1; }

.qs-auth-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 100px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink); transition: all 0.25s; white-space: nowrap; text-decoration: none; }
.qs-auth-btn:hover { border-color: var(--ocean); color: var(--ocean); background: var(--ocean-mist); }
.qs-auth-btn svg { flex-shrink: 0; }
.qs-register-btn { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 100px; background: var(--ocean); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.25s; white-space: nowrap; }
.qs-register-btn:hover { background: var(--ocean-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(61,127,142,0.25); color: #fff; }

/* User Menu */
.qs-user-menu { position: relative; }
.qs-user-btn { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); padding: 0; cursor: pointer; transition: border-color 0.2s; background: var(--warm); display: flex; align-items: center; justify-content: center; }
.qs-user-btn:hover { border-color: var(--ocean); }
.qs-user-btn__avatar, .qs-user-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.qs-user-dropdown { position: absolute; top: calc(100% + 12px); right: 0; width: 280px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 48px var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s; z-index: 110; overflow: hidden; }
.qs-user-menu.open .qs-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.qs-user-dropdown__header { display: flex; align-items: center; gap: 12px; padding: 20px; }
.qs-user-dropdown__avatar, .qs-user-dropdown__header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.qs-user-dropdown__name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.qs-user-dropdown__email { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.qs-user-dropdown__divider { height: 1px; background: var(--border); margin: 0; }
.qs-user-dropdown__item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background 0.15s; }
.qs-user-dropdown__item:hover { background: var(--warm); }
.qs-user-dropdown__item svg { flex-shrink: 0; color: var(--muted); }
.qs-user-dropdown__item:hover svg { color: var(--ocean); }
.qs-user-dropdown__item--danger { color: var(--accent); }
.qs-user-dropdown__item--danger svg { color: var(--accent); }
.qs-user-dropdown__item--danger:hover { background: var(--accent-light); }

.qs-mobile-menu { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--paper); z-index: 99; padding: 20px; overflow-y: auto; }
.qs-mobile-menu.active { display: block; }
.qs-mobile-menu a { display: block; padding: 16px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--border); }

/* ===== HERO ===== */
.qs-hero { padding: calc(var(--header-h) + 60px) 0 80px; position: relative; overflow: hidden; }
.qs-hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, var(--ocean-light) 0%, transparent 70%); opacity: 0.4; pointer-events: none; }
.qs-hero::after { content: ''; position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%); opacity: 0.2; pointer-events: none; }
.qs-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.qs-hero__tag { display: inline-flex; align-items: center; gap: 8px; background: var(--warm); border: 1px solid var(--border); padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--ocean); margin-bottom: 24px; }
.qs-hero__tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ocean); animation: qs-pulse 2s infinite; }
@keyframes qs-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }
.qs-hero h1 { margin-bottom: 20px; }
.qs-hero__desc { font-size: 17px; max-width: 460px; margin-bottom: 36px; }
.qs-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.qs-hero__visual { position: relative; }
.qs-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.qs-mini-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.4s; }
.qs-mini-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px var(--shadow-md); }
.qs-mini-card:nth-child(2) { transform: translateY(30px); }
.qs-mini-card:nth-child(2):hover { transform: translateY(24px); }
.qs-mini-card__img { height: 180px; background: var(--warm); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.qs-mini-card__info { padding: 16px; }
.qs-mini-card__info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; }
.qs-mini-card__price { color: var(--accent); font-weight: 700; font-size: 16px; }
.qs-mini-card__price del { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }

/* Stats */
.qs-stats { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.qs-stats__inner { display: flex; justify-content: space-between; text-align: center; }
.qs-stat h3 { font-size: 36px; color: var(--ocean); }
.qs-stat p { font-size: 13px; font-weight: 500; margin-top: 4px; }

/* Section */
.qs-section { padding: 80px 0; }
.qs-section--warm { background: var(--warm); }
.qs-section__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.qs-section__header a { color: var(--ocean); font-size: 14px; font-weight: 600; }
.qs-section__header a:hover { text-decoration: underline; }

/* Categories */
.qs-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.qs-cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 20px; text-align: center; transition: all 0.35s; }
.qs-cat-card:hover { border-color: var(--ocean); transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-md); }
.qs-cat-card__icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; transition: transform 0.3s; }
.qs-cat-card:hover .qs-cat-card__icon { transform: scale(1.1) rotate(-3deg); }
.qs-cat-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; }
.qs-cat-card p { font-size: 12px; }
.qs-cat-card:nth-child(5n+1) .qs-cat-card__icon { background: #fef3e2; }
.qs-cat-card:nth-child(5n+2) .qs-cat-card__icon { background: var(--ocean-mist); }
.qs-cat-card:nth-child(5n+3) .qs-cat-card__icon { background: var(--accent-light); }
.qs-cat-card:nth-child(5n+4) .qs-cat-card__icon { background: #eef6e8; }
.qs-cat-card:nth-child(5n+5) .qs-cat-card__icon { background: #f3eef8; }

/* Products */
.qs-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.qs-product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.4s; position: relative; }
.qs-product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.07); }
.qs-product-card__badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; z-index: 2; letter-spacing: 0.5px; }
.qs-badge--hot { background: var(--accent); color: #fff; }
.qs-badge--new { background: var(--ocean); color: #fff; }
.qs-badge--sale { background: var(--ink); color: #fff; }
.qs-product-card__img { position: relative; overflow: hidden; }
.qs-product-card__img img, .qs-product-card__img .wp-post-image { width: 100%; height: 260px; object-fit: cover; transition: transform 0.5s; }
.qs-product-card:hover .qs-product-card__img img { transform: scale(1.05); }
.qs-product-card__overlay { position: absolute; inset: 0; background: rgba(44,44,44,0.4); display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.3s; }
.qs-product-card:hover .qs-product-card__overlay { opacity: 1; }
.qs-product-card__overlay button { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qs-product-card__overlay button:hover { background: var(--ocean); color: #fff; transform: scale(1.1); }
.qs-product-card__info { padding: 20px; }
.qs-product-card__cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.qs-product-card__name { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.35; color: var(--ink); }
.qs-product-card__bottom { display: flex; justify-content: space-between; align-items: center; }
.qs-product-card__price { font-size: 18px; font-weight: 700; color: var(--accent); }
.qs-product-card__price del { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.qs-product-card__rating { font-size: 12px; color: var(--muted); }
.qs-product-card__rating .stars { color: #d4a853; }

/* Promo */
.qs-promo { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; }
.qs-promo__content { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.qs-promo__tag { color: var(--accent-light); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.qs-promo__content h2 { color: #fff; margin-bottom: 16px; }
.qs-promo__content p { color: rgba(255,255,255,0.6); font-size: 15px; margin-bottom: 32px; max-width: 380px; }
.qs-promo__visual { position: relative; overflow: hidden; }
.qs-promo__visual img { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.qs-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qs-feature { padding: 32px 24px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s; }
.qs-feature:hover { border-color: var(--ocean); background: #fff; }
.qs-feature__icon { font-size: 32px; margin-bottom: 16px; }
.qs-feature h4 { margin-bottom: 8px; }
.qs-feature p { font-size: 13px; line-height: 1.5; }

/* Newsletter */
.qs-newsletter { text-align: center; }
.qs-newsletter h2 { margin-bottom: 12px; }
.qs-newsletter > p { margin-bottom: 32px; font-size: 15px; }
.qs-newsletter__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.qs-newsletter__form input { flex: 1; padding: 14px 20px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: #fff; outline: none; transition: border-color 0.2s; }
.qs-newsletter__form input:focus { border-color: var(--ocean); }

/* ================================================================
   BLOG STYLES - 博客子站样式 (v2.0)
   ================================================================ */

/* Blog header */
.qs-blog-header {
  padding: calc(var(--header-h) + 52px) 0 64px;
  background: linear-gradient(160deg, #2c4a52 0%, #3d7f8e 45%, #5a9ca8 75%, #7bb8c4 100%);
  color: #fff; position: relative; overflow: hidden;
}
.qs-blog-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(192,96,64,0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.qs-blog-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px; background: var(--paper); border-radius: 40px 40px 0 0; }
.qs-blog-header__inner { position: relative; z-index: 1; text-align: center; }
.qs-blog-header h1 { color: #fff; font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 12px; font-weight: 700; }
.qs-blog-header p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 500px; margin: 0 auto; font-weight: 400; }

/* Blog nav */
.qs-blog-nav { background: var(--paper); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 50; }
.qs-blog-nav__inner { display: flex; gap: 6px; padding: 14px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: center; }
.qs-blog-nav__inner::-webkit-scrollbar { display: none; }
.qs-blog-nav a { padding: 9px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: all 0.25s; border: 1.5px solid transparent; }
.qs-blog-nav a:hover { color: var(--ocean); background: var(--ocean-mist); }
.qs-blog-nav a.active, .qs-blog-nav .current-cat a { background: var(--ocean); color: #fff; border-color: var(--ocean); }

/* Blog grid */
.qs-blog-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 48px 0; }
.qs-blog-main { min-width: 0; }

/* Featured post */
.qs-blog-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; transition: all 0.4s; }
.qs-blog-featured:hover { box-shadow: 0 16px 48px var(--shadow-md); transform: translateY(-3px); }
.qs-blog-featured__img { position: relative; overflow: hidden; min-height: 320px; }
.qs-blog-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.qs-blog-featured:hover .qs-blog-featured__img img { transform: scale(1.04); }
.qs-blog-featured__content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.qs-blog-featured__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.qs-blog-featured__cat { background: var(--ocean); color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; }
.qs-blog-featured__content h2 { font-size: 24px; margin-bottom: 12px; line-height: 1.35; color: var(--ink); }
.qs-blog-featured__content h2:hover { color: var(--ocean); }
.qs-blog-featured__excerpt { font-size: 15px; line-height: 1.7; margin-bottom: 24px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qs-blog-featured__author { display: flex; align-items: center; gap: 10px; }
.qs-blog-featured__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.qs-blog-featured__author-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.qs-blog-featured__author-role { font-size: 12px; color: var(--muted); }

/* Post cards */
.qs-post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.qs-post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.35s; }
.qs-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px var(--shadow-md); }
.qs-post-card__img { position: relative; overflow: hidden; height: 200px; }
.qs-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.qs-post-card:hover .qs-post-card__img img { transform: scale(1.05); }
.qs-post-card__cat { position: absolute; top: 14px; left: 14px; background: var(--ocean); color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.qs-post-card__body { padding: 24px; }
.qs-post-card__meta { font-size: 13px; color: var(--muted-light); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.qs-post-card__title { font-size: 17px; font-weight: 600; line-height: 1.45; margin-bottom: 10px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; transition: color 0.2s; }
.qs-post-card__title:hover { color: var(--ocean); }
.qs-post-card__excerpt { font-size: 14px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.qs-post-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border-light); }
.qs-post-card__read { font-size: 13px; font-weight: 600; color: var(--ocean); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.qs-post-card__read:hover { gap: 8px; }
.qs-post-card__views { font-size: 12px; color: var(--muted-light); display: flex; align-items: center; gap: 4px; }

/* Sidebar */
.qs-sidebar {}
.qs-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.qs-widget__title { font-size: 15px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); position: relative; color: var(--ink); font-family: 'DM Sans', 'Noto Sans SC', sans-serif; letter-spacing: 0.3px; }
.qs-widget__title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 36px; height: 2px; background: var(--ocean); }
.qs-widget--ad { background: linear-gradient(145deg, #3d7f8e 0%, #2c6370 100%); color: #fff; text-align: center; border: none; }
.qs-widget--ad h4 { color: #fff; margin-bottom: 8px; }
.qs-widget--ad p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 16px; }
.qs-widget--ad .qs-btn { width: 100%; justify-content: center; }
.qs-widget--cta { background: var(--warm); border-color: var(--warm-deep); }
.qs-widget--cta .qs-widget__title::after { background: var(--accent); }

.qs-popular-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.qs-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.qs-popular-item:first-child { padding-top: 0; }
.qs-popular-item__num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: var(--ocean-mist); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ocean); }
.qs-popular-item__title { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.qs-popular-item__title:hover { color: var(--ocean); }
.qs-popular-item__meta { font-size: 11px; color: var(--muted-light); margin-top: 4px; }

.qs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-tags a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.qs-tags a:hover { border-color: var(--ocean); color: var(--ocean); background: var(--ocean-mist); }

/* ===== SINGLE POST ===== */
.qs-single-header {
  padding: calc(var(--header-h) + 52px) 0 52px;
  background: linear-gradient(160deg, #2c4a52 0%, #3d7f8e 50%, #5a9ca8 100%);
  position: relative; overflow: hidden;
}
.qs-single-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 50%), radial-gradient(ellipse at 30% 80%, rgba(192,96,64,0.1) 0%, transparent 50%);
}
.qs-single-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px; background: var(--paper); border-radius: 40px 40px 0 0; }
.qs-single-header__inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.qs-single-header .qs-blog-featured__cat { display: inline-block; margin-bottom: 20px; }
.qs-single-header h1 { color: #fff; font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 20px; line-height: 1.3; }
.qs-single-header__meta { display: flex; align-items: center; justify-content: center; gap: 16px; color: rgba(255,255,255,0.65); font-size: 14px; }

.qs-article { max-width: 760px; margin: 0 auto; padding: 60px 0 40px; }
.qs-article__featured-img { margin: -80px auto 48px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); position: relative; z-index: 2; }
.qs-article__featured-img img { width: 100%; height: auto; display: block; }
.qs-article__content { font-size: 17px; line-height: 1.85; color: #444; }
.qs-article__content p { color: #444; margin-bottom: 24px; }
.qs-article__content h2 { font-size: 26px; margin: 48px 0 20px; color: var(--ink); }
.qs-article__content h3 { font-size: 21px; margin: 36px 0 16px; color: var(--ink); }
.qs-article__content a { color: var(--ocean); border-bottom: 1px solid var(--ocean-light); }
.qs-article__content a:hover { border-color: var(--ocean); }
.qs-article__content img { border-radius: var(--radius); margin: 32px 0; }
.qs-article__content blockquote { border-left: 3px solid var(--ocean); padding: 20px 28px; margin: 32px 0; background: var(--warm); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--ink); }
.qs-article__content ul, .qs-article__content ol { margin: 20px 0; padding-left: 24px; }
.qs-article__content li { margin-bottom: 8px; list-style: disc; }
.qs-article__content ol li { list-style: decimal; }

.qs-article-cta { background: linear-gradient(145deg, #3d7f8e 0%, #2c6370 100%); color: #fff; border-radius: var(--radius-lg); padding: 40px; margin: 40px 0; text-align: center; }
.qs-article-cta h3 { color: #fff; margin-bottom: 12px; }
.qs-article-cta p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }

.qs-share { display: flex; align-items: center; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 40px 0; }
.qs-share__label { font-size: 14px; font-weight: 600; }
.qs-share a { width: 40px; height: 40px; border-radius: 10px; background: var(--warm); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.2s; }
.qs-share a:hover { background: var(--ocean); color: #fff; }

.qs-related { padding: 60px 0 80px; }
.qs-related h3 { margin-bottom: 32px; }

/* Pagination */
.qs-pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.qs-pagination a, .qs-pagination span { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.qs-pagination a:hover { border-color: var(--ocean); color: var(--ocean); background: var(--ocean-mist); }
.qs-pagination .current { background: var(--ocean); color: #fff; border-color: var(--ocean); }

/* Footer */
.qs-footer { padding: 60px 0 40px; border-top: 1px solid var(--border); background: var(--warm); }
.qs-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.qs-footer__brand p { font-size: 14px; margin: 16px 0 20px; max-width: 280px; }
.qs-footer__social { display: flex; gap: 10px; }
.qs-footer__social a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); transition: all 0.2s; background: #fff; }
.qs-footer__social a:hover { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.qs-footer__col h5 { font-size: 14px; font-weight: 700; margin-bottom: 20px; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; }
.qs-footer__col li { margin-bottom: 10px; }
.qs-footer__col a { font-size: 14px; color: var(--muted); }
.qs-footer__col a:hover { color: var(--ocean); }
.qs-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* Scroll top */
.qs-scroll-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--ocean); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); transition: all 0.3s; z-index: 50; box-shadow: 0 4px 20px rgba(61,127,142,0.25); }
.qs-scroll-top.show { opacity: 1; transform: translateY(0); }
.qs-scroll-top:hover { background: var(--ocean-dark); }

/* Animations */
@keyframes qs-fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.qs-animate { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.qs-animate.visible { opacity: 1; transform: translateY(0); }

/* WooCommerce */
.woocommerce ul.products li.product { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.35s; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 16px 48px var(--shadow-md); }
.woocommerce ul.products li.product .price { color: var(--accent); font-weight: 700; font-size: 18px; }
.woocommerce ul.products li.product .price del { color: var(--muted); font-size: 13px; }
.woocommerce .button, .woocommerce a.button { background: var(--ocean) !important; color: #fff !important; border-radius: 10px !important; padding: 12px 24px !important; font-weight: 600 !important; transition: all var(--transition) !important; }
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--ocean-dark) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .qs-container { padding: 0 24px; }
  .qs-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .qs-product-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .qs-features-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .qs-promo { grid-template-columns: 1fr; }
  .qs-promo__visual { min-height: 240px; }
  .qs-blog-grid { grid-template-columns: 1fr; }
  .qs-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .qs-blog-featured { grid-template-columns: 1fr; }
  .qs-blog-featured__img { min-height: 240px; }
}
@media (max-width: 768px) {
  .qs-container { padding: 0 16px; }
  .qs-nav { display: none; }
  .qs-mobile-toggle { display: flex; }
  .qs-auth-btn span { display: none; }
  .qs-auth-btn { padding: 8px; border-radius: 10px; }
  .qs-register-btn { display: none; }
  .qs-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .qs-product-card__img img { height: 180px; }
  .qs-stats__inner { flex-wrap: wrap; gap: 20px; }
  .qs-stat { flex: 1; min-width: 120px; }
  .qs-promo__content { padding: 32px; }
  .qs-newsletter__form { flex-direction: column; }
  .qs-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .qs-footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .qs-hero__grid { gap: 12px; }
  .qs-mini-card__img { height: 140px; }
  .qs-post-list { grid-template-columns: 1fr; }
  .qs-sidebar { grid-template-columns: 1fr; }
  .qs-blog-featured__content { padding: 24px; }
  .qs-article { padding: 40px 16px; }
  .qs-blog-nav__inner { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .qs-hero { padding-top: calc(var(--header-h) + 32px); }
  .qs-section { padding: 48px 0; }
  .qs-product-grid { grid-template-columns: 1fr; }
  .qs-cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}