/* ============================================================
   theme27 — 美妆护肤/化妆品
   主色: #e91e63 玫瑰粉 | 底色: #fff 纯白 | 圆角: 16px
   字体: Cormorant Garamond (headings) + 系统无衬线 (body)
   ============================================================ */

:root {
    --color-primary: #e91e63;
    --color-primary-dark: #c2185b;
    --color-primary-light: #fce4ec;
    --color-accent: #d4a574;
    --color-text: #333;
    --color-text-dark: #222;
    --color-text-muted: #888;
    --color-text-light: #bbb;
    --color-bg: #fff;
    --color-bg-warm: #fdf6f8;
    --color-bg-card: #fff;
    --color-bg-card-alt: #fafafa;
    --color-bg-input: #fff;
    --color-border: #f0e8ec;
    --color-border-focus: #e91e63;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 12px rgba(233, 30, 99, 0.06);
    --shadow-md: 0 8px 30px rgba(233, 30, 99, 0.10);
    --shadow-lg: 0 16px 48px rgba(233, 30, 99, 0.12);
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: var(--font-body);
    font-size: 14px; line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-primary-dark); text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; color: var(--color-text-dark); }
.container { max-width: 1200px; }

/* ---- A11y ---- */
.skip-link {
    position: absolute; top: -50px; left: 8px; z-index: 9999;
    padding: 10px 18px; background: var(--color-primary); color: #fff !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); font-size: 14px;
    transition: top 0.2s ease-out;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* ---- Header ---- */
.site-header {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: sticky; top: 0; z-index: 1000;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; }
.site-logo img { height: 40px; }
.mobile-toggle { background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 8px 10px; }
.mobile-toggle .icon-bar { display: block; width: 22px; height: 2px; background: var(--color-primary); border-radius: 1px; }
.mobile-toggle .icon-bar + .icon-bar { margin-top: 4px; }

.main-nav { background: #fff; border-top: 1px solid var(--color-border); }
.main-menu { display: flex; flex-wrap: wrap; }
.main-menu > li > a {
    display: block; padding: 12px 24px; color: var(--color-text-dark); font-family: var(--font-heading);
    font-size: 16px; font-weight: 600; letter-spacing: 0.3px; transition: color 0.3s;
}
.main-menu > li > a:hover,
.main-menu > li.active > a { color: var(--color-primary); }
.main-menu .dropdown-menu {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 8px 0; min-width: 160px; box-shadow: var(--shadow-md);
}
.main-menu .dropdown-menu > li > a { display: block; padding: 8px 20px; color: var(--color-text); font-size: 14px; }
.main-menu .dropdown-menu > li > a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.main-menu .caret { margin-left: 4px; }

/* ---- Footer ---- */
.site-footer {
    background: var(--color-bg-warm); border-top: 1px solid var(--color-border);
    padding: 40px 0 24px; margin-top: 60px; text-align: center;
}
.footer-friend-links { margin-bottom: 16px; }
.footer-friend-links a { display: inline-block; padding: 0 14px; color: var(--color-text-muted); font-size: 13px; }
.footer-friend-links a:hover { color: var(--color-primary); }
.footer-nav { margin-bottom: 14px; }
.footer-nav a { display: inline-block; padding: 0 14px; color: var(--color-text-dark); font-size: 14px; font-family: var(--font-heading); font-weight: 600; }
.footer-nav a:hover { color: var(--color-primary); }
.footer-copyright { color: var(--color-text-light); font-size: 12px; }
.footer-copyright a { color: var(--color-text-light); margin-left: 8px; }

/* ---- Float button ---- */
#floatbtn { position: fixed; right: 16px; bottom: 60px; z-index: 999; }
#back-to-top {
    display: none; width: 42px; height: 42px; line-height: 42px; text-align: center;
    background: var(--color-primary); color: #fff; border-radius: 50%;
    font-size: 16px; box-shadow: var(--shadow-sm); transition: opacity 0.3s, transform 0.3s;
}
#back-to-top.show { display: block; }
#back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---- Hero ---- */
.hero-section {
    position: relative; min-height: 440px; display: flex; align-items: center;
    background: linear-gradient(135deg, #fdf6f8 0%, #fce4ec 30%, #fdf6f8 60%, #fff5f7 100%);
    overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(233,30,99,0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 60px 15px; max-width: 700px; margin: 0 auto; }
.hero-title {
    font-family: var(--font-heading); font-size: 52px; font-weight: 700; color: var(--color-text-dark);
    margin: 0 0 16px; letter-spacing: 1px; font-style: italic;
}
.hero-subtitle {
    font-size: 17px; color: var(--color-text-muted); margin: 0 0 36px;
    font-weight: 400; letter-spacing: 2px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-block; padding: 14px 40px; background: var(--color-primary); color: #fff;
    font-family: var(--font-heading); font-size: 17px; font-weight: 600; letter-spacing: 0.5px;
    border: none; border-radius: 50px; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); color: #fff; }
.btn-outline {
    display: inline-block; padding: 14px 40px; background: transparent; color: var(--color-primary);
    font-family: var(--font-heading); font-size: 17px; font-weight: 600; letter-spacing: 0.5px;
    border: 1.5px solid var(--color-primary); border-radius: 50px; cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { background: var(--color-primary-light); transform: translateY(-2px); color: var(--color-primary); }

/* ---- Banner ---- */
.banner-section { padding: 30px 0 10px; }
.focus-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.focus-banner .swiper-slide a { position: relative; display: block; }
.focus-banner .swiper-slide img { width: 100%; height: 380px; object-fit: cover; }
.banner-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 28px; background: linear-gradient(transparent, rgba(0,0,0,0.5));
}
.banner-caption span { color: #fff; font-family: var(--font-heading); font-size: 20px; font-weight: 600; font-style: italic; }

/* ---- Main section ---- */
.main-section { padding: 30px 0; }

/* ---- Block ---- */
.block { margin-bottom: 44px; }
.block-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 2px solid var(--color-border);
}
.block-title {
    font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--color-text-dark);
    margin: 0; font-style: italic; letter-spacing: 0.5px;
}
.block-more {
    font-size: 13px; color: var(--color-text-muted); font-family: var(--font-heading); font-weight: 600;
}
.block-more:hover { color: var(--color-primary); }

/* ---- Beauty grid (4-col) ---- */
.beauty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.beauty-card {
    display: block; background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.beauty-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--color-primary-light);
}
.beauty-card-cover { position: relative; overflow: hidden; height: 240px; background: var(--color-bg-card-alt); }
.beauty-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.beauty-card:hover .beauty-card-cover img { transform: scale(1.08); }
.beauty-tag {
    position: absolute; top: 12px; left: 12px;
    padding: 3px 12px; background: rgba(233,30,99,0.85); color: #fff;
    font-size: 11px; font-weight: 600; border-radius: 20px; letter-spacing: 0.5px;
}
.beauty-card-body { padding: 18px; text-align: center; }
.beauty-card-title {
    font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--color-text-dark);
    margin: 0 0 8px; font-style: italic;
}
.beauty-card-intro { font-size: 12px; color: var(--color-text-muted); margin: 0 0 12px; line-height: 1.5; }
.beauty-card-price { font-size: 18px; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); }

/* ---- Article list ---- */
.article-list { }
.article-row { margin-bottom: 1px; }
.article-row a {
    display: flex; align-items: center; gap: 18px; padding: 16px 20px;
    background: var(--color-bg-card); border-left: 3px solid transparent;
    border-radius: var(--radius-sm); transition: all 0.3s;
}
.article-row a:hover { border-left-color: var(--color-primary); background: var(--color-primary-light); }
.article-row img { width: 200px; height: 120px; object-fit: cover; flex-shrink: 0; border-radius: var(--radius-md); }
.article-row-text { flex: 1; min-width: 0; }
.article-row-text h4 { font-size: 17px; font-weight: 600; color: var(--color-text-dark); margin: 0 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.article-row-meta { display: flex; gap: 16px; font-size: 12px; color: var(--color-text-muted); }

/* ---- Page banner ---- */
.page-banner {
    background: linear-gradient(135deg, #fdf6f8 0%, #fce4ec 100%);
    border-bottom: 1px solid var(--color-border); padding: 56px 0; text-align: center;
}
.page-banner-title {
    font-family: var(--font-heading); font-size: 36px; font-weight: 700; color: var(--color-text-dark);
    margin: 0 0 12px; font-style: italic; letter-spacing: 1px;
}
.breadcrumb-inline { font-size: 13px; color: var(--color-text-muted); }
.breadcrumb-inline a { color: var(--color-text-muted); }
.breadcrumb-inline a:hover { color: var(--color-primary); }
.breadcrumb-inline .fa-angle-right { margin: 0 8px; font-size: 12px; }

.page-container { padding: 30px 15px; }
.breadcrumb-box { font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; }
.breadcrumb-box a { color: var(--color-text-muted); }
.breadcrumb-box a:hover { color: var(--color-primary); }
.breadcrumb-box .fa-angle-right { margin: 0 8px; }

/* ---- Channel page ---- */
.channel-block { margin-bottom: 40px; }

/* ---- Text list ---- */
.text-list { }
.text-list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--color-border);
}
.text-list-title { flex: 1; min-width: 0; color: var(--color-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.text-list-title:hover { color: var(--color-primary); }
.text-list-meta { display: flex; gap: 12px; flex-shrink: 0; margin-left: 16px; font-size: 12px; color: var(--color-text-light); }

/* ---- Article card list ---- */
.article-card { display: flex; gap: 20px; padding: 22px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: 16px; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-cover { flex-shrink: 0; width: 240px; height: 160px; overflow: hidden; border-radius: var(--radius-md); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-body { flex: 1; min-width: 0; }
.article-title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--color-text-dark); margin: 0 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.article-intro { font-size: 13px; color: var(--color-text-muted); margin: 0 0 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--color-text-light); }
.meta-cat { display: inline-block; padding: 2px 12px; border: 1px solid var(--color-primary); border-radius: 20px; color: var(--color-primary); font-size: 11px; font-weight: 600; }
.meta-cat:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* ---- Toolbar ---- */
.list-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    margin-bottom: 20px; padding: 12px 20px;
    background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.toolbar-title { font-family: var(--font-heading); font-size: 15px; color: var(--color-text-dark); font-weight: 600; font-style: italic; }
.toolbar-order { display: flex; gap: 4px; }
.toolbar-order a { padding: 6px 16px; font-size: 13px; color: var(--color-text-muted); border: 1px solid transparent; border-radius: 20px; transition: all 0.2s; }
.toolbar-order a.active,
.toolbar-order a:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-primary-light); }

/* ---- Images grid ---- */
.images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.image-tile {
    display: block; background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.image-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.image-tile-cover { height: 200px; overflow: hidden; }
.image-tile-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.image-tile:hover .image-tile-cover img { transform: scale(1.05); }
.image-tile-body { padding: 12px 14px; text-align: center; }
.image-tile-title { font-size: 14px; color: var(--color-text); font-weight: 500; margin: 0 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.image-tile-view { font-size: 11px; color: var(--color-text-light); }

/* ---- Product grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.product-cover { display: block; height: 220px; overflow: hidden; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-cover img { transform: scale(1.08); }
.product-body { padding: 16px; text-align: center; }
.product-title { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--color-text-dark); margin: 0 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: italic; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 18px; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); }
.product-btn {
    display: inline-block; padding: 6px 18px;
    border: 1.5px solid var(--color-primary); border-radius: 20px;
    color: var(--color-primary); font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
    transition: all 0.3s;
}
.product-btn:hover { background: var(--color-primary); color: #fff; }

/* ---- Detail page ---- */
.article-detail { padding: 28px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.article-detail-head { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.article-detail-title {
    font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--color-text-dark);
    margin: 0 0 14px; font-style: italic; letter-spacing: 0.5px;
}
.article-detail-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--color-text-light); }
.detail-cat { display: inline-block; padding: 2px 12px; border: 1px solid var(--color-primary); border-radius: 20px; color: var(--color-primary); font-size: 11px; font-weight: 600; }
.article-detail-content { font-size: 15px; line-height: 1.9; color: var(--color-text); word-wrap: break-word; overflow-wrap: break-word; }
.article-detail-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0; }
.article-detail-content p { margin: 0 0 14px; }
.article-detail-content h2,
.article-detail-content h3 { font-family: var(--font-heading); color: var(--color-primary); margin: 24px 0 12px; font-style: italic; }

/* ---- Article summary ---- */
.article-summary {
    --as-primary: var(--color-primary);
    --as-bg: var(--color-bg-warm);
    --as-border: var(--color-border);
    --as-text: var(--color-text);
    --as-muted: var(--color-text-muted);
    --as-radius: var(--radius-lg);
    margin: 30px 0; padding: 22px 26px;
    background: var(--as-bg);
    border-left: 4px solid var(--as-primary);
    border-radius: var(--as-radius);
}
.article-summary-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.summary-deco { color: var(--as-primary); flex-shrink: 0; font-size: 18px; }
.article-summary-title { font-size: 17px; margin: 0; color: var(--color-text-dark); font-weight: 700; font-family: var(--font-heading); font-style: italic; }
.article-summary-text { color: var(--as-text); font-size: 14px; line-height: 1.8; margin: 0 0 12px; }
.article-summary-cite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--as-border); font-size: 12px; color: var(--as-muted); }
.cite-label { font-weight: 600; flex-shrink: 0; color: var(--color-primary); }
.cite-text { flex: 1; min-width: 0; font-family: Menlo, Monaco, monospace; background: #fff; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--as-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Prev/Next nav ---- */
.article-detail-nav { display: flex; justify-content: space-between; gap: 16px; }
.detail-nav-item {
    flex: 1; min-width: 0; padding: 16px 20px;
    background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.detail-nav-item:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary-light); }
.detail-nav-label { display: block; font-size: 12px; color: var(--color-primary); margin-bottom: 6px; font-weight: 600; }
.detail-nav-title { display: block; font-size: 14px; color: var(--color-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-nav-next { text-align: right; }

/* ---- Related ---- */
.related-section { margin-top: 30px; }
.related-title { font-family: var(--font-heading); font-size: 22px; color: var(--color-text-dark); margin: 0 0 16px; font-style: italic; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card {
    display: block; background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related-cover { height: 130px; overflow: hidden; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-card:hover .related-cover img { transform: scale(1.05); }
.related-body { padding: 12px 14px; text-align: center; }
.related-body h4 { font-size: 14px; color: var(--color-text); margin: 0 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.related-body span { font-size: 11px; color: var(--color-text-light); }

/* ---- Single page ---- */
.single-main { padding: 28px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.single-content { font-size: 15px; line-height: 1.9; color: var(--color-text); word-wrap: break-word; overflow-wrap: break-word; }
.single-content img { max-width: 100%; border-radius: var(--radius-md); margin: 16px 0; }
.subnav { margin-bottom: 24px; }
.subnav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav li a { display: block; padding: 8px 20px; background: var(--color-bg-card-alt); border: 1px solid var(--color-border); border-radius: 30px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--color-text-muted); transition: all 0.3s; }
.subnav li.active a,
.subnav li a:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }

/* ---- Widget / Sidebar ---- */
.widget { margin-bottom: 24px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-head { padding: 14px 18px; border-bottom: 1px solid var(--color-border); background: var(--color-bg-warm); }
.widget-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-primary); margin: 0; font-style: italic; }
.widget-body { padding: 14px 18px; }
.widget-ad { background: transparent; border: none; box-shadow: none; }
.widget-ad img { border-radius: var(--radius-lg); }

/* ---- Rank list ---- */
.rank-list { }
.rank-item { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--color-border); }
.rank-item:last-child { border-bottom: none; }
.rank-num {
    flex-shrink: 0; width: 24px; height: 24px; line-height: 24px; text-align: center;
    font-size: 12px; font-weight: 700; color: var(--color-text-muted);
    background: var(--color-bg-card-alt); border-radius: 50%; margin-right: 10px;
}
.rank-num.rank-top { background: var(--color-primary); color: #fff; }
.rank-title { flex: 1; min-width: 0; font-size: 13px; color: var(--color-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-title:hover { color: var(--color-primary); }

/* ---- Contact form ---- */
.contact-form-wrap { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.contact-form-title { font-family: var(--font-heading); font-size: 22px; color: var(--color-text-dark); margin: 0 0 20px; font-style: italic; }
.form-row { display: flex; gap: 16px; margin-bottom: 14px; }
.form-row label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.form-row label span { flex-shrink: 0; font-size: 13px; color: var(--color-text-muted); }
.form-message .inp {
    flex: 1; min-width: 0; padding: 10px 16px;
    background: var(--color-bg-input); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    color: var(--color-text); font-size: 14px; font-family: var(--font-body); transition: border-color 0.3s;
}
.form-message .inp:focus { border-color: var(--color-border-focus); outline: none; box-shadow: 0 0 0 3px var(--color-primary-light); }
.form-message .mes { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.form-message .mes span { flex-shrink: 0; font-size: 13px; color: var(--color-text-muted); padding-top: 10px; }
.form-message textarea {
    flex: 1; min-width: 0; height: 120px; padding: 10px 16px; resize: vertical;
    background: var(--color-bg-input); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    color: var(--color-text); font-size: 14px; font-family: var(--font-body); transition: border-color 0.3s;
}
.form-message textarea:focus { border-color: var(--color-border-focus); outline: none; box-shadow: 0 0 0 3px var(--color-primary-light); }
.msgbtn-box { display: flex; gap: 12px; }
.btn-contact {
    padding: 12px 36px; background: var(--color-primary); color: #fff;
    border: none; border-radius: 30px; font-family: var(--font-heading); font-size: 16px;
    font-weight: 700; cursor: pointer; letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.btn-contact:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-contact-reset {
    padding: 12px 28px; background: transparent; color: var(--color-text-muted);
    border: 1px solid var(--color-border); border-radius: 30px;
    font-family: var(--font-heading); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.btn-contact-reset:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }

/* ---- Product detail ---- */
.product-detail-main { padding: 28px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.product-detail-title { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--color-text-dark); margin: 0 0 16px; font-style: italic; }
.product-price-box { margin-bottom: 20px; padding: 16px 20px; background: var(--color-bg-warm); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.product-price-box > span:first-child { font-size: 13px; color: var(--color-text-muted); }
.product-price-box .price { font-size: 30px; font-weight: 700; color: var(--color-primary); margin-left: 12px; font-family: var(--font-heading); }
.product-params { margin-bottom: 20px; }
.param-row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.param-key { width: 80px; color: var(--color-text-muted); flex-shrink: 0; font-weight: 600; }
.param-val { flex: 1; min-width: 0; color: var(--color-text); }
.product-actions { margin-top: 20px; }
.product-actions button {
    padding: 12px 36px; background: var(--color-primary); color: #fff;
    border: none; border-radius: 30px; font-family: var(--font-heading);
    font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.product-actions button:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.product-detail-content { margin-top: 30px; }
.product-detail-content .nav-tabs { border-bottom: 1px solid var(--color-border); margin-bottom: 20px; }
.product-detail-content .nav-tabs > li > a {
    padding: 10px 24px; font-family: var(--font-heading); font-size: 15px; font-weight: 600; font-style: italic;
    color: var(--color-text-muted); border: 1px solid transparent; border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-right: 4px; transition: all 0.3s;
}
.product-detail-content .nav-tabs > li.active > a { color: var(--color-primary); border-color: var(--color-border) var(--color-border) var(--color-bg-card); background: var(--color-bg-card); }
.product-detail-content .nav-tabs > li > a:hover { color: var(--color-primary); border-color: var(--color-border); }
.detail-content-body { font-size: 15px; line-height: 1.9; color: var(--color-text); }

/* ---- PC Slide ---- */
.pc-slide .view .swiper-slide { text-align: center; }
.pc-slide .view .swiper-slide img { max-height: 400px; object-fit: contain; }
.pc-slide .preview { position: relative; margin-top: 10px; padding: 0 30px; }
.pc-slide .preview .swiper-slide { opacity: 0.5; cursor: pointer; transition: opacity 0.3s; border-radius: var(--radius-md); overflow: hidden; }
.pc-slide .preview .swiper-slide.active-nav { opacity: 1; }
.pc-slide .arrow-left,
.pc-slide .arrow-right {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 26px; height: 26px; line-height: 26px; text-align: center;
    background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 50%;
    color: var(--color-primary); font-size: 12px; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: box-shadow 0.3s;
}
.pc-slide .arrow-left:hover,
.pc-slide .arrow-right:hover { box-shadow: var(--shadow-md); }
.pc-slide .arrow-left { left: 0; }
.pc-slide .arrow-right { right: 0; }

/* ---- Search ---- */
.search-keyword { color: var(--color-primary); }

/* ---- Pagination ---- */
.pagination-box { text-align: center; margin-top: 30px; }
.pagination { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination li a,
.pagination li span {
    display: inline-block; min-width: 40px; height: 40px; line-height: 38px; padding: 0 16px;
    border: 1px solid var(--color-border); background: var(--color-bg-card);
    text-align: center; border-radius: 20px;
    font-size: 13px; font-weight: 600; color: var(--color-text-muted);
    transition: all 0.3s;
}
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.pagination .active a,
.pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .disabled span { opacity: 0.35; cursor: not-allowed; }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .beauty-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .images-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .hero-title { font-size: 38px; }
    .beauty-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .images-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card { flex-direction: column; }
    .article-cover { width: 100%; height: 200px; }
    .form-row { flex-direction: column; }
}
@media (max-width: 767px) {
    body { font-size: 13px; }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 14px; }
    .beauty-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .images-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .article-row a { flex-direction: column; }
    .article-row img { width: 100%; height: 160px; }
    .article-detail-title { font-size: 22px; }
    .main-menu { flex-direction: column; }
    .page-banner-title { font-size: 26px; }
}
